/* Trade and city pages. Reuses site.css tokens and components; only what is new lives here. */
.tbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--sc-gutter); background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.tbar__mark { display: block; width: clamp(104px, 9vw, 136px); }
.tbar__mark img { display: block; width: 100%; height: auto; }

.t-hero { padding-block: clamp(3.5rem, 10vh, 7rem) clamp(4rem, 10vh, 7rem); background: #000; }
.t-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.t-hero__h { margin: 0; font-size: clamp(2.6rem, 1.1rem + 4.6vw, 5.6rem); line-height: 0.92; font-weight: 500; letter-spacing: -0.008em; font-variation-settings: 'wdth' 110; color: #fff; }
.t-hero__lede { margin: 1.5rem 0 2.25rem; max-width: 40ch; color: var(--text); font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.55; }
.t-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The illustration: a search result or a site, drawn in type, labelled as an illustration. */
.t-fig { margin: 0; }
.t-card { background: var(--sc-surface); border: 1px solid var(--rule); padding: clamp(1.25rem, 2.4vw, 1.75rem); }
.t-card__name { margin: 0; color: #fff; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 500; }
.t-card__meta { margin: 0.4rem 0 0; color: var(--mute); font-size: 0.9375rem; }
.t-card__meta b { color: var(--sc-accent); font-weight: 600; letter-spacing: 0.06em; }
.t-card__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 1.25rem; }
.t-card__btn { padding: 0.8rem 0.5rem; text-align: center; background: var(--surface-2); color: var(--text); font-size: 0.875rem; font-weight: 600; }
.t-card__btn--bad { outline: 2px solid var(--sc-accent); outline-offset: -2px; color: #fff; }
.t-card__where { margin: 1rem 0 0; padding: 0.85rem 1rem; background: #000; border-left: 2px solid var(--sc-accent); color: var(--text); font-size: 0.9375rem; line-height: 1.5; }
.t-card__where code { color: var(--gold-text); font: inherit; }
.t-browser__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; background: var(--surface-2); color: var(--mute); font-size: 0.8125rem; }
.t-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.t-browser__url { margin-left: 0.5rem; padding: 0.2rem 0.6rem; background: #000; flex: 1; }
.t-browser__view { display: grid; place-items: center; min-height: 15rem; padding: 2rem; text-align: center; background: #0a0a0a; }
.t-browser__view p { margin: 0; color: var(--mute); }
.t-browser__view strong { display: block; margin-bottom: 0.5rem; color: #fff; font-size: 1.35rem; font-weight: 500; }
.t-fig__cap { margin-top: 0.75rem; color: var(--mute); font-size: 0.8125rem; }

.t-found { padding-block: clamp(5rem, 12vh, 8rem); background: #0b0b0b; }
.t-found__list { list-style: none; margin: clamp(2rem, 5vh, 3rem) 0 0; padding: 0; display: grid; gap: 2px; max-width: 52rem; }
.t-found__item { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: baseline; padding: 1.4rem clamp(1.25rem, 2.4vw, 1.75rem); background: var(--sc-surface); }
.t-found__n { color: var(--sc-accent); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 500; font-feature-settings: 'tnum'; line-height: 1; min-width: 2.2ch; }
.t-found__item p { margin: 0; color: #e8e8e8; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.55; }
.t-found__note { margin: 1.5rem 0 0; max-width: 52ch; color: var(--text); }

.t-build { padding-block: clamp(5rem, 12vh, 8rem); }
.t-build .facets { margin-top: clamp(2rem, 5vh, 3rem); }

.t-why { padding-block: clamp(5rem, 12vh, 8rem); background: #0b0b0b; }
.t-why__list { list-style: none; margin: clamp(2rem, 5vh, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.t-why__item { padding: clamp(1.5rem, 2.6vw, 2.25rem); background: var(--sc-surface); }
.t-why__say { margin: 0 0 0.9rem; color: #fff; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); font-weight: 500; line-height: 1.2; }
.t-why__do { margin: 0; color: var(--text); line-height: 1.6; }
.t-why .quote { margin-top: 2px; }

.t-close { padding-block: clamp(5rem, 14vh, 9rem) 0; background: #000; }
.t-close .close__h { max-width: 16ch; }
.t-close .foot { margin-top: clamp(4rem, 10vh, 7rem); }

@media (max-width: 860px) {
  .t-hero__grid, .t-why__list { grid-template-columns: 1fr; }
  .t-build .facets { grid-template-columns: 1fr; }
}

/* Film hero: a scroll-scrubbed clip of the trade, copy anchored bottom-left over a corner scrim. */
.t-film .sc-stage { background: #000; }
.t-film__copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: clamp(2.5rem, 8vh, 5rem); }
.t-film__copy .t-hero__lede { margin-bottom: 1.75rem; }
.t-film .sc-scrim--lead { z-index: 1; }
@media (max-width: 860px) {
  .t-film .sc-scrim--lead { background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.74) 34%, rgba(0,0,0,.3) 58%, transparent 78%); }
}
/* Phones with no tall clip: show the whole wide clip as a sharp band under the bar, copy beneath it. */
@media (max-width: 860px) and (orientation: portrait) {
  .t-film--band .sc-stage :is(video[data-sc-scrub], .sc-stage__poster) { top: var(--bar-h); bottom: auto; height: 56.25vw; }
  .t-film--band .sc-scrim--lead { background: linear-gradient(to bottom, transparent 0, transparent calc(var(--bar-h) + 40vw), #000 calc(var(--bar-h) + 56.25vw)); }
}

/* Other cities in the same trade */
.t-cities { padding-block: clamp(3rem, 8vh, 5rem); background: #0b0b0b; }
.t-cities__h { margin: 0 0 1.25rem; color: #fff; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 500; }
.t-cities__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.t-cities__list a { display: inline-block; padding: 0.6rem 1rem; background: var(--sc-surface); color: var(--text); text-decoration: none; border-radius: 6px; }
.t-cities__list a:hover, .t-cities__list a:focus-visible { color: var(--gold-text); }

/* Per-business observations under the found stats */
.t-shops__h { margin: clamp(2.5rem, 6vh, 3.5rem) 0 1rem; color: #fff; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: 500; }
.t-shops { margin: 0; padding-left: 1.4rem; max-width: 52rem; display: grid; gap: 0.7rem; color: var(--text); line-height: 1.55; }
.t-shops li::marker { color: var(--sc-accent); }

/* Film framed about 2 inches left and 1 inch down on wide screens: zoom 1.2 keeps every edge covered */
@media (min-width: 861px) {
  .t-film--nudge-left .sc-stage video, .t-film--nudge-left .sc-stage__poster { transform: translate(-10%, 10%) scale(1.2); }
}

/* Door page (/look-up/): the homepage's lit-bay close used as the hero, the form standing in it. */
.d-door { min-height: auto; padding-bottom: clamp(4rem, 12vh, 8rem); }
.d-door__h { max-width: 14ch; font-size: clamp(2.6rem, 1.1rem + 4.6vw, 5.6rem); }
.d-door .story__line { line-height: 2.2; }
/* "Send it by text / email": two square toggles in the sentence; on a phone they get a label like the fields. */
.d-by { display: inline-flex; gap: 0.4em; margin: 0 0.12em; vertical-align: 0.12em; }
.d-by__h { display: none; }
.d-by label { position: relative; cursor: pointer; }
.d-by input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.d-by label span { display: inline-block; padding: 0.4em 0.8em; border: 1px solid rgba(255, 255, 255, 0.55); font-size: 0.72em; line-height: 1.2; color: #e8e8e8; }
.d-by input:checked + span { background: var(--sc-accent); border-color: var(--sc-accent); color: #000; }
.d-by input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 760px) {
  .d-by { display: flex; flex-wrap: wrap; margin: 0; }
  .d-by__h { display: block; width: 100%; margin: 1rem 0 0.35rem; color: var(--mute); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
  .d-by label span { padding: 0.65em 1.25em; font-size: 1rem; }
}
.d-see { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(2rem, 5vh, 3rem); }
.d-see .t-found__list { margin-top: 0; }
.d-see .t-found__item strong { color: #fff; font-weight: 600; }
.d-why__lede { margin-top: 1.25rem; max-width: 44ch; }
/* Example report: a miniature of the real report page (inbound/door/report.py), same wording and numbering. */
.d-ex__report { margin: clamp(2rem, 5vh, 3rem) 0 0; max-width: 52rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: #0d0d0d; border: 1px solid var(--rule); }
.d-ex__h { margin: 0; color: #fff; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 500; font-variation-settings: "wdth" 110; line-height: 1.05; text-transform: uppercase; max-width: 22ch; }
.d-ex__sub { margin: 1.25rem 0 0; color: var(--mute); }
.d-ex__list, .d-ex__good { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 2px; counter-reset: f; }
.d-ex__list li, .d-ex__good li { position: relative; padding: 1rem 1.1rem 1rem 3.4rem; background: #161616; color: #e8e8e8; }
.d-ex__list li::before { counter-increment: f; content: counter(f, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1rem; color: var(--sc-accent); font-weight: 600; }
.d-ex__good li::before { content: "\2713"; position: absolute; left: 1.25rem; top: 1rem; color: var(--sc-accent); }.d-phone { color: var(--gold-text); white-space: nowrap; }
@media (max-width: 860px) { .d-see { grid-template-columns: 1fr; } }
