/* Page-scoped styles for /docs/troubleshooting/ (2026-08-02).
   Loads after the shared inner-page stack; every selector is scoped to
   body.docs-troubleshooting-page so nothing here needs !important.

   NOTE: classes are deliberately NOT shared with the other docs sub-pages.
   The orphan-class lint checks markup against the UNION of all stylesheets,
   so borrowing .step-row from docs-quickstart.css would pass the lint while
   rendering unstyled here — only this page's own sheet is loaded. */

/* ── hero back-link ─────────────────────────────────────────────────────── */
body.docs-troubleshooting-page .ts-back {
  font-family: var(--font-m); font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grey-500);
  border-bottom: 1px solid var(--grey-300); text-decoration: none;
  padding-bottom: 2px; display: inline-block;
  transition: color 0.15s, border-color 0.15s;
}
body.docs-troubleshooting-page .ts-back:hover { color: var(--ink); border-color: var(--ink); }

/* ── shared body copy + code ────────────────────────────────────────────── */
body.docs-troubleshooting-page .ts-h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.015em; margin: 2.5rem 0 0.5rem;
}
body.docs-troubleshooting-page .ts-body {
  font-size: 0.92rem; color: var(--grey-700); line-height: 1.7;
  max-width: 720px; margin: 0.5rem 0 0;
}
body.docs-troubleshooting-page .ts-body strong { color: var(--ink); font-weight: 600; }
body.docs-troubleshooting-page .ts-body a,
body.docs-troubleshooting-page .ts-step-text a,
body.docs-troubleshooting-page .ts-cell a,
body.docs-troubleshooting-page .ts-note a {
  color: var(--ink); border-bottom: 1px solid var(--grey-300); text-decoration: none;
}
body.docs-troubleshooting-page .ts-body a:hover,
body.docs-troubleshooting-page .ts-step-text a:hover,
body.docs-troubleshooting-page .ts-cell a:hover,
body.docs-troubleshooting-page .ts-note a:hover { border-color: var(--ink); }

body.docs-troubleshooting-page .ts-body code,
body.docs-troubleshooting-page .ts-step-text code,
body.docs-troubleshooting-page .ts-cell code,
body.docs-troubleshooting-page .ts-note code,
body.docs-troubleshooting-page .ts-connect-note code,
body.docs-troubleshooting-page .ts-tier-body code,
body.docs-troubleshooting-page .ts-tools code {
  font-family: var(--font-m); font-size: 0.85em; background: var(--grey-100);
  border: 1px solid var(--grey-200); padding: 1px 6px; color: var(--grey-700);
}

body.docs-troubleshooting-page .ts-code {
  font-family: var(--font-m); font-size: 0.82rem; background: var(--grey-100);
  border: 1px solid var(--grey-200); padding: 1rem 1.25rem; overflow-x: auto;
  line-height: 1.55; color: var(--grey-700); margin: 1rem 0 0;
}
body.docs-troubleshooting-page .ts-code:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ── step list (get a key) ──────────────────────────────────────────────── */
body.docs-troubleshooting-page .ts-steps { display: grid; gap: 0; margin-top: 1rem; }
body.docs-troubleshooting-page .ts-step {
  display: grid; grid-template-columns: 80px 1fr; gap: 2rem;
  padding: 1.75rem 0; border-top: 1px solid var(--grey-200);
}
body.docs-troubleshooting-page .ts-step:last-child { border-bottom: 1px solid var(--grey-200); }
body.docs-troubleshooting-page .ts-step > * { min-width: 0; }
body.docs-troubleshooting-page .ts-step-num {
  font-family: var(--font-m); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-500);
  padding-top: 0.25rem;
}
body.docs-troubleshooting-page .ts-step-h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.5rem; line-height: 1.3; letter-spacing: -0.015em;
}
body.docs-troubleshooting-page .ts-step-text {
  font-size: 0.92rem; color: var(--grey-700); line-height: 1.7; max-width: 720px; margin: 0;
}
body.docs-troubleshooting-page .ts-step-text strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  body.docs-troubleshooting-page .ts-step { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
}

/* ── the connection URL card ────────────────────────────────────────────── */
body.docs-troubleshooting-page .ts-connect {
  border: 1px solid var(--grey-200); background: var(--ground);
  padding: 1.75rem; margin-top: 1.5rem;
}
body.docs-troubleshooting-page .ts-connect-label {
  font-family: var(--font-m); font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grey-500); margin: 0 0 0.85rem;
}
body.docs-troubleshooting-page .ts-connect-url {
  display: block; font-family: var(--font-m); font-size: 0.9rem;
  background: var(--white); border: 1px solid var(--grey-200);
  padding: 0.9rem 1rem; color: var(--ink); overflow-x: auto;
  white-space: nowrap; line-height: 1.5;
}
body.docs-troubleshooting-page .ts-token { color: var(--red); font-weight: 600; }
body.docs-troubleshooting-page .ts-connect-note {
  font-size: 0.88rem; color: var(--grey-700); line-height: 1.65;
  margin: 1rem 0 0; max-width: 720px;
}
body.docs-troubleshooting-page .ts-connect-note strong { color: var(--ink); font-weight: 600; }

/* ── per-client link rows ───────────────────────────────────────────────── */
body.docs-troubleshooting-page .ts-clients {
  display: grid; gap: 0; margin-top: 1rem;
  border-top: 1px solid var(--grey-200);
}
body.docs-troubleshooting-page .ts-client {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 1.5rem; padding: 1.25rem 0.25rem;
  border-bottom: 1px solid var(--grey-200); text-decoration: none;
  transition: background 0.15s;
}
body.docs-troubleshooting-page .ts-client:hover { background: var(--grey-100); }
body.docs-troubleshooting-page .ts-client-name {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em; margin-bottom: 0.3rem;
}
body.docs-troubleshooting-page .ts-client-desc {
  font-size: 0.88rem; color: var(--grey-700); line-height: 1.6; max-width: 640px;
}
body.docs-troubleshooting-page .ts-client-desc code {
  font-family: var(--font-m); font-size: 0.85em; background: var(--grey-100);
  border: 1px solid var(--grey-200); padding: 1px 5px; color: var(--grey-700);
}
body.docs-troubleshooting-page .ts-client-arrow {
  grid-row: 1 / span 2; font-size: 1rem; color: var(--grey-500);
  transition: transform 0.15s, color 0.15s;
}
body.docs-troubleshooting-page .ts-client:hover .ts-client-arrow { color: var(--ink); transform: translateX(3px); }
@media (max-width: 620px) {
  body.docs-troubleshooting-page .ts-client { grid-template-columns: 1fr; }
  body.docs-troubleshooting-page .ts-client-arrow { display: none; }
}

/* ── tool / tier table ──────────────────────────────────────────────────── */
body.docs-troubleshooting-page .ts-table-scroll { overflow-x: auto; margin-top: 1.25rem; }
body.docs-troubleshooting-page .ts-tools {
  width: 100%; min-width: 620px; border-collapse: collapse;
  border: 1px solid var(--grey-200);
}
body.docs-troubleshooting-page .ts-tools th {
  font-family: var(--font-m); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500);
  text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--grey-200);
  background: var(--white);
}
body.docs-troubleshooting-page .ts-tools td {
  font-size: 0.88rem; color: var(--grey-700); line-height: 1.6;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--grey-200);
  vertical-align: top;
}
body.docs-troubleshooting-page .ts-tools tbody tr:last-child td { border-bottom: 0; }
body.docs-troubleshooting-page .ts-tool { white-space: nowrap; }
body.docs-troubleshooting-page .ts-col-tier,
body.docs-troubleshooting-page .ts-col-cost { white-space: nowrap; }
body.docs-troubleshooting-page .ts-col-cost {
  font-family: var(--font-m); font-size: 0.82rem; color: var(--grey-700);
}
body.docs-troubleshooting-page .ts-pill {
  display: inline-block; font-family: var(--font-m); font-size: 0.62rem;
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border: 1px solid var(--grey-300);
  background: var(--white); color: var(--grey-700);
}
body.docs-troubleshooting-page .ts-pill-pro { border-color: var(--ink); color: var(--ink); }
body.docs-troubleshooting-page .ts-pill-scale { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* ── troubleshooting matrix ─────────────────────────────────────────────── */
body.docs-troubleshooting-page .ts-matrix {
  display: grid; gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--grey-200);
}
body.docs-troubleshooting-page .ts-row {
  padding: 1.5rem 0; border-bottom: 1px solid var(--grey-200);
}
body.docs-troubleshooting-page .ts-symptom {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  line-height: 1.45; letter-spacing: -0.01em; margin: 0 0 1rem; max-width: 780px;
}
body.docs-troubleshooting-page .ts-pair {
  display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem;
  align-items: baseline; margin-top: 0.6rem;
}
body.docs-troubleshooting-page .ts-pair > * { min-width: 0; }
body.docs-troubleshooting-page .ts-label {
  font-family: var(--font-m); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-500);
}
body.docs-troubleshooting-page .ts-cell {
  font-size: 0.9rem; color: var(--grey-700); line-height: 1.7; margin: 0; max-width: 760px;
}
body.docs-troubleshooting-page .ts-cell strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  body.docs-troubleshooting-page .ts-pair { grid-template-columns: 1fr; gap: 0.25rem; margin-top: 0.9rem; }
}

/* ── depth tiers ────────────────────────────────────────────────────────── */
body.docs-troubleshooting-page .ts-tiers { display: grid; gap: 0; margin-top: 1.5rem; }
body.docs-troubleshooting-page .ts-tier {
  padding: 1.5rem 0; border-top: 1px solid var(--grey-200);
}
body.docs-troubleshooting-page .ts-tier:last-child { border-bottom: 1px solid var(--grey-200); }
/* Depth tier is signalled by the same swatch the /coverage/ map legend uses —
   `background` on an inline <i>, not `fill` (the SVG classes are separate there
   for the same reason). Matching that idiom keeps one visual language for the
   tiers across the site. */
body.docs-troubleshooting-page .ts-tier-rank {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-m); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-500); margin: 0 0 0.4rem;
}
body.docs-troubleshooting-page .ts-sw {
  flex: 0 0 auto; width: 11px; height: 11px;
  border: 1px solid rgba(15, 17, 21, 0.18);
}
body.docs-troubleshooting-page .ts-sw-verified { background: var(--tier-verified); }
body.docs-troubleshooting-page .ts-sw-extract  { background: var(--tier-extract); }
body.docs-troubleshooting-page .ts-sw-api      { background: var(--tier-api); }
body.docs-troubleshooting-page .ts-tier-h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.015em; margin: 0 0 0.5rem;
}
body.docs-troubleshooting-page .ts-tier-body {
  font-size: 0.9rem; color: var(--grey-700); line-height: 1.7; margin: 0; max-width: 760px;
}
body.docs-troubleshooting-page .ts-tier-body strong { color: var(--ink); font-weight: 600; }

body.docs-troubleshooting-page .ts-note {
  font-size: 0.9rem; color: var(--grey-700); line-height: 1.7;
  margin: 1.25rem 0 0; max-width: 780px;
}
body.docs-troubleshooting-page .ts-note strong { color: var(--ink); font-weight: 600; }
