/* MediWatch "Thread": page components (homepage story, answer card, locator,
 * live board, sign-up, the line). Loads after thread.css on pages built
 * fully in Thread. Everything is th- prefixed so later phases can reuse it.
 */
/* ── hero ────────────────────────────────── */
.th-hero { position: relative; padding: 52px 0 72px; }
.th-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.th-fresh {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--th-wash); border: 1px solid var(--th-line);
  font-size: 14px; font-weight: 560; color: var(--th-ink-700); margin-bottom: 26px;
}
.th-fresh time { font-variant-numeric: tabular-nums; color: var(--th-ink-900); font-weight: 650; }
.th-fresh-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--th-ink-500); opacity: .5; }
.th-fresh-dot {
  position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--th-green-500); flex: none;
}
.th-fresh-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--th-green-500); opacity: 0;
}
.th-js.th-motion .th-hero .th-fresh-dot::after { animation: th-ping 1.6s var(--th-ease-out) .9s 2; }
@keyframes th-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.th-hero-title { font-size: clamp(40px, 4.65vw, 68px); line-height: 1.02; letter-spacing: -.036em; font-weight: 700; }
.th-hero-title .th-tl { display: block; }
.th-hero-title .th-hl { position: relative; display: inline-block; white-space: nowrap; color: var(--th-teal-700); }
.th-hl-ink { position: absolute; left: -2%; right: -1%; bottom: -.16em; width: 103%; height: .28em; overflow: visible; }
.th-hero-sub { margin-top: 22px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--th-ink-700); max-width: 31em; }

/* hero copy entrance (time-based, once) */
.th-js.th-motion .th-hero [data-th-reveal] { opacity: 0; transform: translateY(14px); animation: th-rise .8s var(--th-ease-out) forwards; }
.th-js.th-motion .th-hero [data-th-reveal="0"] { animation-delay: .05s; }
.th-js.th-motion .th-hero [data-th-reveal="3"] { animation-delay: .7s; }
.th-js.th-motion .th-hero-title .th-word { display: inline-block; opacity: 0; transform: translateY(.42em); animation: th-rise .9s var(--th-ease-out) forwards; }
.th-js.th-motion .th-hero-title .th-tl:first-child .th-word:nth-child(1) { animation-delay: .12s; }
.th-js.th-motion .th-hero-title .th-tl:first-child .th-word:nth-child(2) { animation-delay: .2s; }
.th-js.th-motion .th-hero-title .th-tl:last-child > .th-word { animation-delay: .28s; }
.th-js.th-motion .th-hero-title .th-hl .th-word:nth-of-type(1) { animation-delay: .36s; }
.th-js.th-motion .th-hero-title .th-hl .th-word:nth-of-type(2) { animation-delay: .44s; }
@keyframes th-rise { to { opacity: 1; transform: none; } }

/* search */
/* Own layer above the hero art: the reveal animation leaves a transform on this form, which traps the list's z-index inside it, and .th-hero-art comes later in the DOM. */
.th-search { position: relative; z-index: 40; margin-top: 34px; max-width: 580px; }
.th-search-label { display: block; font-size: 15px; font-weight: 650; color: var(--th-ink-900); margin-bottom: 10px; }
.th-search-box {
  position: relative; display: flex; align-items: center; height: 66px; padding: 0 9px 0 18px;
  background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--th-field), var(--th-shadow-md);
  transition: box-shadow .25s;
}
.th-search-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--th-teal-700), 0 0 0 5px rgba(25,195,177,.18), var(--th-shadow-md); }
.th-search-icon { width: 22px; height: 22px; color: var(--th-ink-500); flex: none; transition: color .2s, transform .3s var(--th-ease-spring); }
.th-search-box:focus-within .th-search-icon { color: var(--th-teal-700); transform: scale(1.08) rotate(-6deg); }
.th-search-box input {
  flex: 1 1 auto; width: 0; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0 12px; font-size: 18px; font-weight: 500; color: var(--th-ink-900);
}
.th-search-box input::placeholder { color: var(--th-ink-500); opacity: 1; }
.th-search-clear[hidden] { display: none; }
.th-search-clear { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 10px; color: var(--th-ink-500); cursor: pointer; display: grid; place-items: center; }
@media (hover: hover) { .th-search-clear:hover { background: var(--th-wash); color: var(--th-ink-900); } }
.th-search-clear svg { width: 18px; height: 18px; }
.th-search-go { height: 48px; border-radius: 12px; padding: 0 22px; }
.th-search-box .th-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.th-search-box .th-trace rect {
  fill: none; stroke: url(#g-thread-local); stroke-width: 2.5;
  stroke-dasharray: 100 100; stroke-dashoffset: 100; opacity: 0;
  transition: stroke-dashoffset .9s var(--th-ease-out), opacity .2s;
}
.th-search-box:focus-within .th-trace rect { stroke-dashoffset: 0; opacity: 1; }
.th-search-hint { margin-top: 10px; font-size: 14px; color: var(--th-ink-500); }

.th-search-list {
  position: absolute; left: 0; right: 0; top: calc(66px + 34px + 8px); z-index: 20;
  list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--th-line), var(--th-shadow-lg);
  transform-origin: top; animation: th-drop .22s var(--th-ease-out);
}
@keyframes th-drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.th-search-list li {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center;
  padding: 11px 12px 11px 16px; border-radius: 11px; cursor: pointer;
}
.th-search-list li::before {
  content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--th-turq-500), var(--th-green-500)); transform: scaleY(0); transition: transform .2s var(--th-ease-out);
}
.th-search-list li[aria-selected="true"] { background: var(--th-wash); }
.th-search-list li[aria-selected="true"]::before { transform: scaleY(1); }
.th-opt-name { font-weight: 650; color: var(--th-ink-900); font-size: 16px; }
.th-opt-name mark { background: none; color: var(--th-teal-700); }
.th-opt-meta { grid-column: 1; font-size: 13.5px; color: var(--th-ink-500); }
.th-search-list .th-chip { grid-row: 1 / span 2; grid-column: 2; }
.th-search-list .th-empty { display: block; cursor: default; padding: 14px 16px; color: var(--th-ink-700); overflow-wrap: anywhere; }
.th-rcard-nomatch h3 { overflow-wrap: anywhere; }
.th-search-list .th-empty::before { display: none; }

.th-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.th-picks-label { font-size: 14px; font-weight: 600; color: var(--th-ink-500); margin-right: 2px; }
.th-pick {
  height: 36px; padding: 0 15px; border-radius: 999px; border: 0; background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--th-line-strong); font-size: 14.5px; font-weight: 600; color: var(--th-ink-900);
  transition: background-color .18s, box-shadow .18s, transform .18s var(--th-ease-out), color .18s;
}
@media (hover: hover) { .th-pick:hover { background: var(--th-wash); box-shadow: inset 0 0 0 1.5px var(--th-teal-700); color: var(--th-teal-800); transform: translateY(-1px); } }
.th-pick:active { transform: scale(.96); }
.th-pick[aria-pressed="true"] { background: var(--th-mint); box-shadow: inset 0 0 0 1.5px var(--th-teal-700); color: var(--th-teal-800); }

/* result card */
.th-result-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--th-ease-out); }
.th-result-wrap.th-open { grid-template-rows: 1fr; }
.th-result-inner { overflow: hidden; }
.th-result { margin-top: 18px; }
.th-result:empty { margin: 0; }
.th-rcard {
  position: relative; background: #fff; border-radius: 18px; padding: 20px 22px 18px;
  box-shadow: inset 0 0 0 1px var(--th-line), var(--th-shadow-md);
}
.th-rcard::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--th-turq-500), var(--th-green-500));
}
.th-rcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.th-rcard h3 { font-size: 20px; line-height: 1.25; }
.th-rcard h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.th-rcard h3 a:hover { color: var(--th-teal-700); }
.th-rcard-detail { font-size: 14px; color: var(--th-ink-500); margin-top: 2px; }
.th-rcard-until { margin-top: 12px; font-size: 14.5px; color: var(--th-ink-700); }
.th-rcard-until strong { color: var(--th-ink-900); }
.th-rcard ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.th-rcard li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; color: var(--th-ink-900); }
.th-rcard li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--th-turq-500); }
.th-rcard-refs { margin-top: 12px; font-size: 13px; color: var(--th-ink-500); }
.th-rcard-refs a { color: var(--th-ink-500); }
.th-rcard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.th-rcard-actions .th-btn { height: 42px; font-size: 14.5px; }
.th-rcard-none p + p { margin-top: 8px; }

/* hero art */
.th-hero-art { position: relative; }
.th-illo { position: relative; width: 100%; }
.th-illo .th-ill { width: 100%; height: auto; overflow: visible; }
.th-illo-hero { aspect-ratio: 520 / 440; max-width: 600px; margin-left: auto; }
.th-ill text { font-family: var(--th-font); }
.th-port { position: absolute; width: 0; height: 0; pointer-events: none; }
.th-float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 14px; border-radius: 999px; border: 0; background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--th-line), 0 12px 30px -14px rgba(12,43,40,.32), 0 2px 6px rgba(12,43,40,.05);
  font-size: 14px; font-weight: 650; color: var(--th-ink-900); white-space: nowrap;
  transition: box-shadow .2s, translate .35s var(--th-ease-out);
  will-change: transform;
}
@media (hover: hover) { .th-float-chip:hover { box-shadow: inset 0 0 0 1.5px var(--th-teal-700), 0 16px 34px -14px rgba(12,43,40,.38); translate: 0 -2px; } }
.th-float-chip .th-chip { height: 24px; font-size: 12.5px; }
.th-fc-a, .th-fc-b, .th-fc-c { flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px 14px 12px; border-radius: 16px; translate: var(--px, 0) var(--py, 0); }
@media (hover: hover) { .th-fc-a:hover, .th-fc-b:hover, .th-fc-c:hover { translate: var(--px, 0) calc(var(--py, 0) - 2px); } }
.th-chip-callout { left: 53.65%; top: 26.8%; translate: -50% -100%; }
@media (hover: hover) { .th-chip-callout:hover { translate: -50% calc(-100% - 2px); } }
.th-fc-a { left: -3%; top: 0; }
.th-fc-b { right: -4%; top: 83%; }
.th-fc-c { left: -3%; top: 83%; }

/* ── how it works ────────────────────────── */
.th-how { padding: 26px 0 8px; }
.th-how-inner { max-width: calc(var(--th-wrap) + 2 * var(--th-gutter)); }
.th-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-teal-700); }
.th-how-title { margin-top: 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.03em; max-width: 15em; }
.th-steps-index { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.th-steps-index a {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px; border-radius: 999px;
  text-decoration: none; color: var(--th-ink-700); font-weight: 620; font-size: 15px;
  box-shadow: inset 0 0 0 1px var(--th-line-strong); background: #fff; transition: box-shadow .25s, color .25s, background-color .25s;
}
@media (hover: hover) { .th-steps-index a:hover { box-shadow: inset 0 0 0 1.5px var(--th-teal-700); color: var(--th-ink-900); } }
.th-si-n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13.5px; font-weight: 750; color: var(--th-teal-700); background: var(--th-mint); transition: background-color .3s, color .3s;
}
.th-steps-index a.th-active { color: var(--th-ink-900); box-shadow: inset 0 0 0 1.5px var(--th-teal-700); }
.th-steps-index a.th-active .th-si-n, .th-steps-index a.th-done .th-si-n { background: var(--th-teal-700); color: #fff; }

/* ── stations ────────────────────────────── */
.th-station { position: relative; padding: 72px 0; }
.th-station-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.th-station.th-flip .th-station-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.th-station.th-flip .th-station-art { order: -1; }
.th-station-copy { max-width: 520px; }
.th-station.th-flip .th-station-copy { justify-self: end; }
.th-step-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--th-teal-700); }
.th-step-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 760;
  color: var(--th-teal-700); box-shadow: inset 0 0 0 1.5px var(--th-teal-700); transition: background-color .35s, color .35s;
}
.th-station.th-lit .th-step-n { background: var(--th-teal-700); color: #fff; }
.th-station h2 { margin-top: 16px; font-size: clamp(30px, 3.3vw, 46px); line-height: 1.06; letter-spacing: -.032em; }
.th-lede { margin-top: 18px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--th-ink-700); }

/* copy reveal (time-based, once, triggered as the line approaches) */
.th-js.th-motion [data-th-copy] > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--th-ease-out), transform .8s var(--th-ease-out); }
.th-js.th-motion .th-near [data-th-copy] > * { opacity: 1; transform: none; }
.th-js.th-motion .th-near [data-th-copy] > *:nth-child(2) { transition-delay: .07s; }
.th-js.th-motion .th-near [data-th-copy] > *:nth-child(3) { transition-delay: .14s; }
.th-js.th-motion .th-near [data-th-copy] > *:nth-child(4) { transition-delay: .21s; }
.th-js.th-motion .th-near [data-th-copy] > *:nth-child(5) { transition-delay: .28s; }

.th-sources { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.th-sources li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--th-ink-700); }
.th-sources strong { color: var(--th-ink-900); font-weight: 700; }
.th-sources svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--th-mint); color: var(--th-teal-700); flex: none; }
.th-meta-line { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14.5px; color: var(--th-ink-500); }

.th-glossary { margin: 26px 0 0; display: grid; gap: 12px; }
.th-glossary div { padding: 14px 16px; border-radius: 14px; background: var(--th-wash); box-shadow: inset 0 0 0 1px var(--th-line); }
.th-glossary dt { font-size: 14px; font-weight: 650; color: var(--th-ink-500); }
.th-glossary dd { margin: 4px 0 0; font-size: 16px; color: var(--th-ink-900); font-weight: 560; }

.th-ticks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.th-ticks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; color: var(--th-ink-900); font-size: 15.5px; }
.th-ticks svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--th-green-100); color: #13804c; }

/* station illustrations */
.th-illo-notice { aspect-ratio: 480 / 480; }
.th-illo-plain { display: grid; gap: 0; background: radial-gradient(closest-side, #f0faf7 60%, rgba(240,250,247,0)) center / 96% 86% no-repeat; }
.th-plain-top, .th-plain-bottom { width: 100%; height: auto; }
.th-plain-bottom { margin-top: -6px; }
.th-illo-alert { aspect-ratio: 480 / 520; }
.th-illo-pharmacy { aspect-ratio: 480 / 500; }
.th-ill-decor { position: absolute; inset: 0; }
.th-t-tag { font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.th-t-small { font-size: 11px; fill: var(--th-ink-500); font-weight: 520; }
.th-t-ref { font-size: 13px; font-weight: 750; fill: var(--th-ink-900); letter-spacing: .01em; }
.th-t-title { font-size: 15.5px; font-weight: 720; fill: var(--th-ink-900); letter-spacing: -.01em; }
.th-t-body text { font-size: 11.6px; fill: #4a625e; font-weight: 500; }
.th-t-badge { font-size: 12px; font-weight: 700; }
.th-t-screen-h { font-size: 19px; font-weight: 760; fill: var(--th-ink-900); letter-spacing: -.02em; }
.th-t-row-from { font-size: 11.5px; font-weight: 750; fill: var(--th-ink-900); }
.th-t-row-sub { font-size: 11px; font-weight: 600; fill: var(--th-ink-700); }
.th-t-chip { font-size: 10px; font-weight: 700; }
.th-t-mail-h { font-size: 14.5px; font-weight: 760; fill: var(--th-ink-900); letter-spacing: -.01em; }
.th-t-mail { font-size: 11.5px; font-weight: 560; fill: var(--th-ink-700); }
.th-t-mail-s { font-size: 10.5px; font-weight: 520; fill: var(--th-ink-500); }
.th-t-btn { font-size: 11px; font-weight: 700; fill: #fff; }
.th-t-unsub { font-size: 9.5px; fill: var(--th-ink-500); text-decoration: underline; }
.th-t-note-s { font-size: 9.5px; font-weight: 560; fill: var(--th-ink-500); }
.th-t-note-h { font-size: 11px; font-weight: 750; fill: var(--th-ink-900); }
.th-t-label { font-size: 11.5px; font-weight: 700; fill: var(--th-ink-900); }
.th-t-sign { font-size: 12.5px; font-weight: 780; letter-spacing: .16em; fill: #0a5e55; }

/* SVG transform helpers (the engine sets transform; these set the origin) */
.th-ill [data-a] { transform-box: fill-box; transform-origin: center; }
.th-ill .th-flap { transform-origin: center top; }
.th-ill .th-awning { transform-origin: center top; }
.th-ill .th-hls rect { transform-origin: left center; }

/* the answer card (station 2) */
.th-answer {
  position: relative; margin: 0 6% 0 2%;
  background: #fff; border-radius: 22px; padding: 22px 24px 18px;
  box-shadow: inset 0 0 0 1px var(--th-line), var(--th-shadow-lg);
}
.th-answer-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.th-answer-icon { width: 40px; height: 40px; }
.th-answer-name h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.th-answer-name p { font-size: 13px; color: var(--th-ink-500); margin-top: 1px; }
.th-pairs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.th-pairs li { padding-top: 14px; border-top: 1px solid var(--th-line); }
.th-pairs q {
  display: block; font-size: 13px; line-height: 1.45; color: var(--th-ink-500); font-weight: 500; quotes: "\201C" "\201D";
}
.th-pairs q::before { content: open-quote; }
.th-pairs q::after { content: close-quote; }
.th-plain { position: relative; margin-top: 6px; padding-left: 26px; font-size: 16.5px; line-height: 1.42; font-weight: 640; color: var(--th-ink-900); letter-spacing: -.01em; }
.th-plain::before {
  content: ""; position: absolute; left: 2px; top: .1em; width: 15px; height: 13px;
  border-left: 2.5px solid var(--th-turq-500); border-bottom: 2.5px solid var(--th-turq-500); border-bottom-left-radius: 7px;
}
.th-plain .th-w { display: inline-block; }
.th-answer-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--th-line-strong); font-size: 12.5px; color: var(--th-ink-500); }

/* locator (station 4) */
.th-locator { margin-top: 24px; }
.th-locator-row {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 14px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--th-field);
}
.th-locator-row:focus-within { box-shadow: inset 0 0 0 1.5px var(--th-teal-700), 0 0 0 5px rgba(25,195,177,.18); }
.th-locator-row svg { width: 22px; height: 22px; color: var(--th-teal-700); flex: none; }
.th-locator-row input { flex: 1 1 auto; width: 0; min-width: 0; border: 0; outline: 0; height: 100%; font-size: 17px; font-weight: 650; color: var(--th-ink-900); letter-spacing: .02em; background: transparent; }
.th-locator-row .th-btn { height: 44px; }
.th-locator-note { margin-top: 10px; font-size: 13.5px; color: var(--th-ink-500); }
.th-pharmacies { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.th-ph {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center;
  padding: 12px 12px 12px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--th-line);
  transition: box-shadow .2s, background-color .2s, transform .2s var(--th-ease-out);
}
@media (hover: hover) { .th-ph:hover { background: var(--th-wash); box-shadow: inset 0 0 0 1px var(--th-line-strong); } }
.th-ph-name { font-weight: 700; color: var(--th-ink-900); font-size: 16px; }
.th-ph-addr { grid-column: 1; font-size: 13.5px; color: var(--th-ink-500); }
.th-ph-miles { color: var(--th-teal-700); font-weight: 700; font-variant-numeric: tabular-nums; }
.th-ph-call {
  grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 11px; text-decoration: none; font-weight: 650; font-size: 14.5px; color: var(--th-teal-800); background: var(--th-mint);
  font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s;
}
.th-ph-call svg { width: 17px; height: 17px; transition: transform .3s var(--th-ease-spring); }
@media (hover: hover) { .th-ph-call:hover { background: var(--th-teal-700); color: #fff; } }
@media (hover: hover) { .th-ph-call:hover svg { transform: rotate(-14deg) scale(1.1); } }
.th-ph-more { border: 0; background: none; padding: 8px 2px; cursor: pointer; color: var(--th-teal-700); font-size: 15px; }
.th-callout { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--th-wash); box-shadow: inset 0 0 0 1px var(--th-line); font-size: 15px; line-height: 1.55; }
.th-callout svg { width: 22px; height: 22px; color: var(--th-teal-700); flex: none; margin-top: 1px; }
.th-callout strong { color: var(--th-ink-900); }
.th-anchor { position: absolute; top: 40px; }

/* ── right now ───────────────────────────── */
.th-now { padding: 96px 0 72px; }
.th-now-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-left: 64px; }
.th-now-head > .th-port { left: 24px; top: 11px; }
.th-now h2 { margin-top: 12px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.034em; }
.th-stats { display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 12px; margin: 0; }
.th-stat {
  position: relative; padding: 18px 20px; border-radius: 18px; background: #fff; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--th-line), var(--th-shadow-sm);
}
.th-stat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(25,195,177,.14), transparent 70%);
}
@media (hover: hover) { .th-stat:hover::after { opacity: 1; } }
.th-stat dt { font-size: 13.5px; font-weight: 600; color: var(--th-ink-500); max-width: 11em; line-height: 1.35; }
.th-stat dd { margin: 6px 0 0; font-size: 44px; line-height: 1; font-weight: 720; color: var(--th-ink-900); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.th-board { position: relative; margin-top: 40px; }
.th-board > .th-port[data-th-port="now:out"] { left: 24px; bottom: 0; }
.th-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--th-line); }
.th-row {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1.6fr) minmax(0, 1fr) 150px 28px; gap: 16px; align-items: center;
  min-height: 74px; padding: 14px 8px 14px 0; border-bottom: 1px solid var(--th-line);
  text-decoration: none; color: inherit; transition: background-color .2s;
}
@media (hover: hover) { .th-row:hover { background: linear-gradient(90deg, transparent 0, var(--th-wash) 40px, var(--th-wash) calc(100% - 8px), transparent); } }
.th-row-dot { justify-self: start; margin-left: 17px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--th-line-strong); transition: transform .45s var(--th-ease-spring), background-color .3s, box-shadow .3s; transform: scale(.7); }
.th-row.th-lit .th-row-dot { transform: scale(1); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--th-line); }
.th-row.th-lit[data-th-node="short"] .th-row-dot { background: var(--th-short-dot); }
.th-row.th-lit[data-th-node="limited"] .th-row-dot { background: linear-gradient(90deg, var(--th-limited-dot) 50%, #fff 50%); box-shadow: inset 0 0 0 2px var(--th-limited-dot), 0 0 0 4px #fff, 0 0 0 5px var(--th-line); }
.th-row.th-lit[data-th-node="maybe"] .th-row-dot { background: #fff; box-shadow: inset 0 0 0 2.5px var(--th-maybe-dot), 0 0 0 4px #fff, 0 0 0 5px var(--th-line); }
.th-row-name { font-weight: 680; color: var(--th-ink-900); font-size: 17px; line-height: 1.3; }
.th-row-name small { display: block; font-size: 13.5px; font-weight: 500; color: var(--th-ink-500); margin-top: 2px; }
.th-row-until { font-size: 15px; color: var(--th-ink-700); }
.th-row-until span { display: block; font-size: 12.5px; color: var(--th-ink-500); }
.th-row-status { justify-self: start; }
.th-row-arrow { width: 20px; height: 20px; color: var(--th-ink-500); transition: transform .25s var(--th-ease-out), color .2s; }
@media (hover: hover) { .th-row:hover .th-row-arrow { transform: translateX(4px); color: var(--th-teal-700); } }
.th-js.th-motion .th-row { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--th-ease-out), transform .6s var(--th-ease-out), background-color .2s; }
.th-js.th-motion .th-row.th-shown { opacity: 1; transform: none; }

.th-now-foot { padding-left: 64px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-top: 26px; }
.th-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 680; font-size: 16px; text-decoration: none; border-radius: 8px; }
.th-link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--th-ease-out); }
@media (hover: hover) { .th-link-arrow:hover svg { transform: translateX(4px); } }
.th-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--th-ink-500); }
.th-legend > span { display: inline-flex; align-items: center; gap: 8px; }

/* ── honest ──────────────────────────────── */
/* patient testimonials (Ben's G7): initials, no photos */
.th-voices { padding: 72px 0 8px; }
.th-voices .th-wrap { padding-left: calc(var(--th-gutter) + 64px); }
.th-voices-title { margin-top: 8px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 680; letter-spacing: -.032em; line-height: 1.06; color: var(--th-ink-900); }
.th-voices-lede { margin-top: 12px; max-width: 36em; font-size: 18px; line-height: 1.6; color: var(--th-ink-700); }
.th-voices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.th-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; margin: 0; padding: 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--th-line), var(--th-shadow-sm); }
.th-quote blockquote { margin: 0; }
.th-quote blockquote p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--th-ink-900); }
.th-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.4; color: var(--th-ink-500); }
.th-quote figcaption strong { display: block; color: var(--th-ink-900); font-weight: 680; }
.th-quote-role, .th-quote-since { display: block; }
.th-quote-initials { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 700; font-size: 15px; color: var(--th-teal-800); background: var(--th-mint); box-shadow: inset 0 0 0 1.5px var(--th-turq-300); }
.th-honest { padding: 40px 0 24px; }
.th-honest .th-honest-grid { padding-left: calc(var(--th-gutter) + 64px); }
.th-honest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.th-honest-item { padding: 24px; border-radius: 20px; background: var(--th-wash); box-shadow: inset 0 0 0 1px var(--th-line); }
.th-honest-item svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--th-teal-700); box-shadow: inset 0 0 0 1px var(--th-line); }
.th-honest-item h3 { margin-top: 16px; font-size: 19px; letter-spacing: -.015em; }
.th-honest-item p { margin-top: 6px; font-size: 15.5px; color: var(--th-ink-700); }

/* ── sign up ─────────────────────────────── */
.th-signup { padding: 96px 0 120px; }
.th-signup-panel {
  position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 56px 64px; border-radius: 32px; background: linear-gradient(180deg, #f3fbf9, #ffffff 80%);
  box-shadow: inset 0 0 0 1px var(--th-line);
}
.th-signup-art .th-ill { width: 100%; height: auto; }
.th-signup-art .th-su-ok { opacity: 0; transform: scale(.4); transform-origin: 100px 100px; transition: opacity .35s, transform .6s var(--th-ease-spring); }
.th-signup-art .th-su-tick { stroke-dasharray: 70; stroke-dashoffset: 70; transition: stroke-dashoffset .6s var(--th-ease-out) .25s; }
.th-signup-art .th-su-bell { transform-origin: 100px 60px; transition: opacity .3s, transform .4s var(--th-ease-out); }
.th-signup.th-done .th-su-ok { opacity: 1; transform: none; }
.th-signup.th-done .th-su-tick { stroke-dashoffset: 0; }
.th-signup.th-done .th-su-bell { opacity: 0; transform: scale(.7); }
.th-js.th-motion .th-signup.th-near .th-su-bell { animation: th-ring 1.2s var(--th-ease-out) .5s 1; }
@keyframes th-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-11deg); } 45% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); } }
.th-signup h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; letter-spacing: -.032em; }
.th-signup-form { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.th-field label { display: block; font-size: 14.5px; font-weight: 650; color: var(--th-ink-900); margin-bottom: 8px; }
.th-field input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 13px; border: 0; background: #fff; outline: 0;
  font-size: 16.5px; font-weight: 520; color: var(--th-ink-900); box-shadow: inset 0 0 0 1.5px var(--th-field); transition: box-shadow .2s;
}
.th-field input::placeholder { color: var(--th-ink-500); opacity: 1; }
.th-field input:focus { box-shadow: inset 0 0 0 1.5px var(--th-teal-700), 0 0 0 5px rgba(25,195,177,.18); }
.th-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--th-short-ink); }
.th-field-err { margin-top: 6px; font-size: 13.5px; color: var(--th-short-ink); font-weight: 560; }
.th-consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--th-ink-700); }
.th-consent { position: relative; }
.th-consent input { position: absolute; left: 0; top: 0; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.th-consent .th-box {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--th-field);
  display: grid; place-items: center; transition: background-color .2s, box-shadow .2s;
}
.th-consent .th-box svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--th-ease-out); }
.th-consent input:checked + .th-box { background: var(--th-teal-700); box-shadow: none; }
.th-consent input:checked + .th-box svg { stroke-dashoffset: 0; }
.th-consent input:focus-visible + .th-box { outline: 3px solid var(--th-teal-700); outline-offset: 3px; }
#su-consent-err { grid-column: 1 / -1; margin-top: -8px; }
.th-su-submit { grid-column: 1 / -1; justify-self: start; min-width: 220px; }
.th-su-submit.th-sending { pointer-events: none; }
.th-su-submit.th-sending .th-su-label { opacity: .0; }
.th-su-submit.th-sending::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: linear-gradient(90deg, #fff 0 40%, rgba(255,255,255,.3) 40%); background-size: 250% 100%; animation: th-load .9s linear forwards;
}
@keyframes th-load { from { background-position: 100% 0; } to { background-position: 0 0; } }
.th-fine { grid-column: 1 / -1; font-size: 13.5px; color: var(--th-ink-500); }
.th-signup-done { margin-top: 24px; padding: 20px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--th-line); }
.th-signup-done h3 { font-size: 22px; }
.th-signup-done p { margin-top: 6px; }

/* ── the thread ──────────────────────────── */
.th-thread { position: absolute; left: 0; top: 0; width: 100%; z-index: 30; pointer-events: none; overflow: visible; }
.th-thread .th-ghost { fill: none; stroke: #b9d3cd; stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; }
.th-thread .th-glow { fill: none; stroke: url(#g-thread-page); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .12; }
.th-thread .th-line { fill: none; stroke: url(#g-thread-page); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.th-thread .pen { transition: opacity .2s; }
.th-thread .pen-halo { fill: url(#g-pen-halo); }
.th-thread .pen-dot { fill: #fff; stroke-width: 3; }

.th-thread .node-ring { fill: #fff; }
.th-thread .node-dot { fill: #fff; stroke: #cfe2dd; stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(.72); transition: transform .45s var(--th-ease-spring), fill .3s, stroke .3s; }
.th-thread .node-half { fill: transparent; transition: fill .3s; }
.th-thread .node.lit .node-dot { transform: none; }
.th-thread .node-short.lit .node-dot { fill: var(--th-short-dot); stroke: var(--th-short-dot); }
.th-thread .node-limited.lit .node-dot { fill: #fff; stroke: var(--th-limited-dot); stroke-width: 2.2; }
.th-thread .node-limited.lit .node-half { fill: var(--th-limited-dot); }
.th-thread .node-maybe.lit .node-dot { fill: #fff; stroke: var(--th-maybe-dot); stroke-width: 2.6; }
.th-thread .node-halo { fill: var(--th-turq-500); opacity: 0; transition: opacity .25s; }
.th-thread .node.hot .node-halo { opacity: .22; }
.th-thread .node.hot .node-dot { transform: scale(1.3); }
.th-ready .th-row-dot { visibility: hidden; }
.th-thread .node-live .node-dot { fill: var(--th-green-500); stroke: var(--th-green-500); transform: none; }
.th-thread .node-pulse { fill: none; stroke: var(--th-green-500); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.th-motion .th-thread .node-live.lit .node-pulse { animation: th-node-pulse 2.2s var(--th-ease-out) 3; }
@keyframes th-node-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* Failsafe: if the engine never starts (a script failed to load), show
   everything after 3s instead of leaving the story hidden. */
@keyframes th-failsafe { to { opacity: 1; transform: none; } }
.th-js.th-motion:not(.th-ready) [data-th-copy] > *, .th-js.th-motion:not(.th-ready) .th-row { animation: th-failsafe .01s linear 3s forwards; }

/* ── still mode: reduced motion, no JS, or the footer toggle ── */
.th-still .th-hero [data-th-reveal], .th-still .th-hero-title .th-word { opacity: 1 !important; transform: none !important; animation: none !important; }
.th-still [data-th-copy] > * { opacity: 1 !important; transform: none !important; }
.th-still .th-row { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── tablet ──────────────────────────────── */
@media (max-width: 1100px) {
  .th-station-grid, .th-station.th-flip .th-station-grid { gap: 48px; }
  .th-now-head { grid-template-columns: 1fr; }
  .th-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .th-signup-panel { grid-template-columns: 200px minmax(0, 1fr); padding: 44px; gap: 40px; }
}

/* ── tablet and phone: one column; the line runs as a rail in the gutter ── */
@media (max-width: 900px) {
  .th-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .th-hero-copy { max-width: 620px; }
  .th-illo-hero { max-width: 560px; width: 100%; margin: 0 auto; }
  .th-station-grid, .th-station.th-flip .th-station-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .th-station.th-flip .th-station-art { order: 0; }
  .th-station.th-flip .th-station-copy { justify-self: start; }
  .th-station-copy { max-width: 620px; }
  .th-station-art { width: 100%; max-width: 560px; justify-self: center; }
  .th-now-head { padding-left: 0; }
  .th-now-head > .th-port, .th-board > .th-port[data-th-port="now:out"] { left: calc(10px - var(--th-gutter)); }
  .th-now-foot { padding-left: 0; }
  .th-honest .th-honest-grid { padding-left: var(--th-gutter); }
  .th-voices .th-wrap { padding-left: var(--th-gutter); }
  .th-voices { padding-top: 48px; }
  .th-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto 20px; }
  .th-row-dot { display: none; }
  .th-rows-empty { padding-left: 0; }
}

/* ── phone ───────────────────────────────── */
@media (max-width: 760px) {
  .th-page { font-size: 16px; }

  .th-hero { padding: 28px 0 40px; }
  .th-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .th-fresh { font-size: 13px; margin-bottom: 18px; border-radius: 14px; gap: 4px 8px; }
  .th-fresh-sep { display: none; }
  .th-fresh > span:last-child { flex-basis: 100%; padding-left: 18px; }
  .th-hero-title { font-size: clamp(36px, 10.4vw, 46px); }
  .th-hero-sub { margin-top: 16px; }
  .th-search { margin-top: 26px; }
  .th-search-box { height: 60px; padding: 0 7px 0 14px; border-radius: 16px; }
  .th-search-box .th-trace rect { rx: 16px; }
  .th-search-box input { font-size: 16.5px; padding: 0 8px; }
  .th-search-go { height: 46px; padding: 0 16px; }
  .th-search-list { top: calc(60px + 34px + 8px); max-height: min(360px, 46svh); }
  .th-illo-hero { max-width: none; margin: 0 -4px; width: auto; }
  .th-float-chip { font-size: 12.5px; gap: 7px; padding: 5px 5px 5px 11px; }
  .th-float-chip .th-chip { height: 22px; font-size: 11.5px; padding: 0 9px 0 7px; }
  .th-chip-callout { top: 25%; }
  .th-fc-a, .th-fc-b, .th-fc-c { padding: 8px 10px 9px; gap: 5px; border-radius: 13px; }
  .th-fc-a, .th-fc-b { display: none; }
  .th-fc-c { left: auto; right: -1%; top: 86%; }

  .th-how { padding-top: 16px; }
  .th-steps-index { gap: 8px; }
  .th-steps-index a { height: 44px; font-size: 14.5px; padding-right: 14px; }

  .th-station { padding: 52px 0; }
  .th-station h2 { margin-top: 12px; }
  .th-answer { margin: 0; padding: 18px 18px 14px; border-radius: 18px; }
  .th-answer-name h3 { font-size: 17px; }
  .th-pairs { gap: 10px; margin-top: 12px; }
  .th-pairs li { padding-top: 10px; }
  .th-plain { font-size: 15px; }
  .th-pairs q { font-size: 12.5px; }
  .th-ph { grid-template-columns: 1fr; }
  .th-ph-call { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 8px; }

  .th-now { padding: 72px 0 56px; }
  .th-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .th-stat { padding: 14px 12px; border-radius: 14px; }
  .th-stat dt { font-size: 12px; }
  .th-stat dd { font-size: 32px; }
  .th-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 10px; padding: 14px 0; align-items: start; }
  .th-row-name { grid-column: 1; font-size: 16px; }
  .th-row-status { grid-column: 1; grid-row: 2; }
  .th-row-until { grid-column: 1; grid-row: 3; font-size: 14px; }
  .th-row-arrow { grid-column: 2; grid-row: 1; }

  .th-honest-grid { grid-template-columns: 1fr; }
  .th-signup { padding: 56px 0 72px; }
  .th-signup-panel { grid-template-columns: 1fr; padding: 28px 20px 26px; gap: 8px; border-radius: 24px; }
  .th-signup-art { width: 132px; }
  .th-signup-form { grid-template-columns: 1fr; }
  .th-su-submit { width: 100%; }
}

/* ── live-site additions (phase 2) ──────────────────────────── */
.th-fresh p { display: inline; margin: 0; }
.th-how-note { margin-top: 14px; font-size: 15.5px; color: var(--th-ink-500); }
.th-chip-none { color: var(--th-ink-700); background: #f1f5f4; border-color: var(--th-line-strong); }
.th-chip-none::before { border: 1.8px solid #8aa29d; background: transparent; }
.th-rcard-headline { margin-top: 10px; font-size: 17px; font-weight: 650; line-height: 1.4; color: var(--th-ink-900); }
.th-rcard-explain { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--th-ink-700); }
/* the official wording, line by line, with plain English under the lines that need it */
.th-rcard-official { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--th-wash); }
.th-rcard-label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--th-ink-500); }
.th-rcard .th-rcard-official ul { margin-top: 6px; gap: 10px; }
.th-rcard .th-rcard-official li { font-size: 14.5px; line-height: 1.5; color: var(--th-ink-700); }
.th-rcard-official q { quotes: "\201C" "\201D"; }
.th-rcard-gloss { display: block; margin-top: 3px; color: var(--th-ink-900); }
.th-rcard-gloss b { font-weight: 700; color: var(--th-teal-700); }
.th-rcard-more { margin-top: 8px; font-size: 13px; color: var(--th-ink-500); }
.th-rcard-stale { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--th-ink-700); }
.th-rcard-advice { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--th-ink-900); }
.th-rcard-none p + p { margin-top: 8px; }
.th-rows-empty { padding: 22px 0 22px 64px; color: var(--th-ink-500); font-size: 15.5px; list-style: none; border-bottom: 1px solid var(--th-line); }
.th-row {
  width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--th-line); background: none; border-radius: 0;
  font: inherit; text-align: left; cursor: pointer; color: inherit;
}
.th-row:focus-visible { outline: 3px solid var(--th-teal-700); outline-offset: -3px; border-radius: 8px; }
.th-locator-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto; gap: 10px; align-items: end; }
.th-locator-fields .th-btn { height: 54px; }
.th-locator .th-field label { font-size: 14px; }
.th-hp { position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.th-turnstile:empty { display: none; }
.th-su-err { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; background: var(--th-short-bg); }
.th-signup-done a { font-weight: 650; }
@media (max-width: 760px) {
  .th-rows-empty { padding-left: 0; }
  .th-locator-fields { grid-template-columns: 1fr; }
  .th-locator-fields .th-btn { width: 100%; }
}

/* ── touch comfort (phase 2, Ben: "Has to be optimised for [mobile] too") ── */
.th-search { scroll-margin-top: calc(var(--th-header-h) + 10px); }
.th-search-box input, .th-locator input, .th-signup input, .th-pick, .th-float-chip { touch-action: manipulation; }
/* Fingers get 44px targets; a mouse keeps the desktop sizes. */
@media (pointer: coarse), (max-width: 900px) {
  .th-pick { height: 44px; }
  .th-chip-callout { min-height: 44px; }
  .th-steps-index a { height: 44px; }
  .th-link-arrow { min-height: 44px; }
  .th-search-clear { width: 44px; height: 44px; }
  .th-ph-call { height: 44px; }
  .th-ph-more { min-height: 44px; }
  .th-rcard-actions .th-btn { height: 44px; }
}
/* The count line keeps its space while the live number loads, so nothing shifts. */
.th-js [data-th-active-wrap].th-pending { visibility: hidden; }
.th-no-js [data-th-active-wrap] { display: none; }
