/* Website v28.0: troubleshooter page, home chooser, article card. Logical properties for Arabic (RTL). */
:root{--ts-teal:#19C3E6;--ts-teal-2:#0A8FBF;--ts-mint:#5BF0E0;--ts-ink:#0B1622;--ts-soft:#9FAAB6}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ---------- hero with the problem picker */
.ts-hero{position:relative;overflow:hidden;padding:40px 0 46px}
.ts-hero::after{content:"";position:absolute;inset:auto -20% -55% auto;width:620px;height:620px;border-radius:50%;background:radial-gradient(circle,rgba(25,195,230,.16),rgba(25,195,230,0) 65%);pointer-events:none}
[dir="rtl"] .ts-hero::after{inset:auto auto -55% -20%}
.ts-hero .wrap{position:relative;z-index:1}
.ts-hero h1{margin:10px 0 10px}
.ts-hero .lead{max-width:62ch}
.ts-pick-h{margin:28px 0 12px;color:#C9D3DC;font:600 13px var(--body);letter-spacing:.06em;text-transform:uppercase}
[dir="rtl"] .ts-pick-h{letter-spacing:0}
.ts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.ts-card{position:relative;display:flex;align-items:flex-start;gap:14px;height:100%;box-sizing:border-box;padding:16px 40px 16px 16px;border-radius:14px;
  background:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.11);
  color:#E9EEF3!important;text-decoration:none!important;transition:transform .16s ease,border-color .16s ease,background .16s ease}
[dir="rtl"] .ts-card{padding:16px 16px 16px 40px}
.ts-card:hover,.ts-card:focus-visible{transform:translateY(-2px);border-color:rgba(91,240,224,.55);background:linear-gradient(160deg,rgba(25,195,230,.16),rgba(255,255,255,.04))}
.ts-card::after{content:"";position:absolute;inset-inline-end:16px;top:50%;width:8px;height:8px;margin-top:-5px;border-top:2px solid rgba(255,255,255,.45);border-inline-end:2px solid rgba(255,255,255,.45);transform:rotate(45deg);transition:border-color .16s}
[dir="rtl"] .ts-card::after{transform:rotate(-45deg)}
.ts-card:hover::after{border-color:var(--ts-mint)}
.ts-ico{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--ts-mint);
  background:linear-gradient(145deg,rgba(31,208,238,.24),rgba(10,143,191,.10));box-shadow:inset 0 0 0 1px rgba(91,240,224,.25)}
.ts-ico svg{width:24px;height:24px}
.ts-card b{display:block;font:600 16px/1.25 var(--mark);color:#fff}
[dir="rtl"] .ts-card b{font-family:'IBM Plex Sans Arabic',var(--body)}
.ts-card small{display:block;margin-top:4px;color:var(--ts-soft);font-size:13.5px;line-height:1.35}
.ts-tasks{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:20px;color:#AEB9C4;font-size:14px}
.ts-tasks a{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.18);color:#E9EEF3!important;text-decoration:none!important;font-weight:500}
.ts-tasks a:hover{border-color:var(--ts-teal);background:rgba(25,195,230,.1)}
.ts-tasks svg{width:15px;height:15px;color:var(--ts-mint)}

/* ---------- one problem */
.ts-p{padding:40px 0;scroll-margin-top:calc(var(--nav-h) + 6px);border-bottom:1px solid var(--line-soft)}
.ts-p:nth-of-type(even){background:#F4F6F5}
.ts-box{position:relative;border-radius:18px;padding:26px 26px 22px;background:#fff;border:1px solid var(--line);box-shadow:0 1px 2px rgba(16,22,28,.04);transition:box-shadow .3s,border-color .3s}
.ts-p:target .ts-box{border-color:var(--ts-teal);box-shadow:0 0 0 3px rgba(25,195,230,.18),0 18px 40px -24px rgba(10,143,191,.55);animation:tsGlow 1.6s ease-out 1}
@keyframes tsGlow{0%{box-shadow:0 0 0 0 rgba(25,195,230,.55)}100%{box-shadow:0 0 0 3px rgba(25,195,230,.18),0 18px 40px -24px rgba(10,143,191,.55)}}
@media (prefers-reduced-motion:reduce){.ts-p:target .ts-box{animation:none}}
.ts-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.ts-head .ts-ico{width:48px;height:48px;color:var(--ts-teal-2);background:linear-gradient(145deg,rgba(31,208,238,.18),rgba(10,143,191,.08));box-shadow:inset 0 0 0 1px rgba(10,143,191,.22)}
.ts-head h2{margin:0;font-size:clamp(21px,2.6vw,27px);line-height:1.2}
.ts-num{font:700 12px var(--mono);color:var(--ts-teal-2);letter-spacing:.04em}
.ts-cols{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px}
.ts-sub{margin:0 0 10px;font:700 13px var(--body);letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
[dir="rtl"] .ts-sub{letter-spacing:0}
.ts-causes{margin:0;padding:0;list-style:none}
.ts-causes li{position:relative;padding:9px 0;padding-inline-start:24px;border-bottom:1px dashed var(--line-soft);color:var(--ink-soft);font-size:15.5px;line-height:1.5}
.ts-causes li:last-child{border-bottom:0}
.ts-causes li::before{content:"";position:absolute;inset-inline-start:4px;top:17px;width:8px;height:8px;border-radius:50%;background:var(--ts-teal)}
.ts-steps{margin:0;padding:0;list-style:none;counter-reset:ts}
.ts-steps li{position:relative;counter-increment:ts;margin:0 0 10px;padding:12px 14px;padding-inline-start:54px;border-radius:12px;background:#F2F8FA;color:#1E2A33;font-size:15.5px;line-height:1.5}
.ts-steps li::before{content:counter(ts);position:absolute;inset-inline-start:12px;top:11px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,#1FD0EE,#0A8FBF);color:#04131C;font:700 14px var(--body)}
.ts-steps a{color:var(--ts-teal-2);font-weight:600}
.ts-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:20px}
.ts-btn{display:inline-flex;align-items:center;gap:9px;padding:12px 20px;border-radius:999px;font:700 15px var(--body);text-decoration:none!important;
  background:linear-gradient(135deg,#1FD0EE,#0A8FBF);color:#04131C!important;box-shadow:0 10px 24px -12px rgba(10,143,191,.8)}
.ts-btn:hover{filter:brightness(1.06)}
.ts-btn svg{width:16px;height:16px}
.ts-btn.ts-btn-alt{background:#0F1D2B;color:#E9F8FC!important;box-shadow:none}
.ts-btn.ts-btn-alt svg{color:var(--ts-mint)}
.ts-link{display:inline-flex;align-items:center;gap:7px;color:var(--signal)!important;font-weight:600;text-decoration:none!important;font-size:15px}
.ts-link:hover{text-decoration:underline!important}
.ts-link svg{width:17px;height:17px}
[dir="rtl"] .arr{transform:scaleX(-1)}
.ts-app{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:20px;padding:16px 18px;border-radius:14px;background:linear-gradient(150deg,#12202E,#0B1622);color:#D3DEE7}
.ts-app-txt{flex:1 1 320px}
.ts-app-txt b{display:block;color:#fff;font:600 15px var(--mark);margin-bottom:3px}
[dir="rtl"] .ts-app-txt b{font-family:'IBM Plex Sans Arabic',var(--body)}
.ts-app-txt span{font-size:14.5px;line-height:1.5}
.ts-app .play-badge{height:44px;width:auto;display:block}
.ts-back{display:inline-flex;align-items:center;gap:6px;margin-top:16px;color:var(--muted)!important;font-size:14px;text-decoration:none!important}
.ts-back:hover{color:var(--signal)!important}
.ts-back svg{width:15px;height:15px}

/* ---------- closing band */
.ts-end{padding:48px 0;background:linear-gradient(160deg,#121E2B,#0B131B);color:#D3DEE7}
.ts-end h2{color:#fff;margin:0 0 10px}
.ts-end p{max-width:64ch;margin:0;font-size:16px;line-height:1.6}
.ts-end b{color:#fff}
.ts-end .ts-actions{margin-top:22px}
.ts-end .play-badge{height:48px;width:auto;display:block}
.ts-note{margin:18px 0 0;color:#8E9AA6;font-size:13px}

/* ---------- home chooser and article card (light) */
.ts-home .sec-head{margin-bottom:22px}
.ts-light{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.ts-light .ts-card{background:#fff;border:1px solid var(--line);color:var(--ink)!important;box-shadow:0 1px 2px rgba(16,22,28,.04)}
.ts-light .ts-card:hover,.ts-light .ts-card:focus-visible{border-color:var(--ts-teal);background:#F6FBFD}
.ts-light .ts-card::after{border-color:#A9B4BE}
.ts-light .ts-card b{color:var(--ink)}
.ts-light .ts-card small{color:var(--muted)}
.ts-light .ts-ico{color:var(--ts-teal-2);background:linear-gradient(145deg,rgba(31,208,238,.18),rgba(10,143,191,.08));box-shadow:inset 0 0 0 1px rgba(10,143,191,.2)}
.ts-more{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-weight:700;color:var(--signal)!important;text-decoration:none!important}
.ts-more:hover{text-decoration:underline!important}
.ts-more svg{width:17px;height:17px}
.ts-art{margin:34px 0 8px;padding:22px 22px 18px;border-radius:16px;background:linear-gradient(150deg,#EEF8FB,#F6F9FA);border:1px solid #CFE3EA}
.ts-art-h{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.ts-art-h h2{margin:0;font-size:20px}
.ts-art-top{margin-top:0}
.ts-art p{margin:0 0 14px;color:var(--ink-soft)}
.ts-art .ts-light{grid-template-columns:repeat(2,minmax(0,1fr))}
.ts-art .ts-card{padding-top:12px;padding-bottom:12px}
.ts-art .ts-ico{width:38px;height:38px;border-radius:10px}
.ts-art .ts-ico svg{width:21px;height:21px}
.ts-art .ts-card b{font-size:15px}

@media (max-width:980px){
  .ts-grid,.ts-light{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ts-cols{grid-template-columns:1fr}
}
@media (max-width:560px){
  .ts-hero{padding:26px 0 34px}
  .ts-grid,.ts-light{gap:10px}
  .ts-card{flex-direction:column;gap:10px;padding:14px 14px 16px}
  [dir="rtl"] .ts-card{padding:14px 14px 16px}
  .ts-card::after{display:none}
  .ts-ico{width:40px;height:40px;border-radius:11px}
  .ts-card b{font-size:15px}
  .ts-card small{font-size:12.5px}
  .ts-p{padding:26px 0}
  .ts-box{padding:20px 16px 18px;border-radius:14px}
  .ts-head{gap:12px}
  .ts-head .ts-ico{width:42px;height:42px}
  .ts-steps li{padding-inline-start:48px;font-size:15px}
  .ts-steps li::before{inset-inline-start:10px}
  .ts-btn{width:100%;justify-content:center}
  .ts-art .ts-light{grid-template-columns:1fr 1fr}
  .ts-art .ts-card{flex-direction:row;align-items:center}
  .ts-art .ts-card small{display:none}
}
@media (max-width:360px){.ts-grid,.ts-light{grid-template-columns:1fr}.ts-card{flex-direction:row;align-items:center}.ts-card small{display:none}}

/* lists inside guides and hubs keep the card layout (no inherited bullets or indents) */
.ts-light,.ts-grid{padding:0!important;margin:0!important;list-style:none!important}
.ts-light li,.ts-grid li{margin:0!important;padding:0!important;min-width:0}
.ts-light li::before,.ts-grid li::before{content:none!important;display:none!important}
.ts-card>span:last-child{min-width:0;overflow-wrap:break-word}
@media (max-width:980px){
  .ts-grid li:last-child:nth-child(odd){grid-column:1/-1}
}
@media (max-width:560px){
  .ts-grid li:last-child:nth-child(odd) .ts-card{flex-direction:row;align-items:center}
  .ts-art .ts-light{grid-template-columns:1fr}
  .ts-art{padding:18px 14px 14px}
}
