/* Traffic & Authority Checker page (includes/traffic-checker/ta-page.php), 29 Nov 2026.
   Victor: "improve the look of the checker page ... highlight the datasources and avoid walls of text there too. Make
   the page more visual. Right now it kinda looks too much like the homepage. This is a separate tool."
   Its own document, on top of traffic-report.css (tokens, nav, hero, cards, kicker, logomarks, footer, tooltip): the
   same tool family as the report it leads to. Only BrandPush colours (traffic-report.css lists them). Old landing
   styles: /root/bp-backups/2026-11-29/traffic-checker/before-landing-redesign/traffic-checker.css. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* hero: the form on a white bar, the sources under it, a sample report beside it */
.tl-hero { margin-top: 4px; }
.tl-hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.tl-check { margin-top: 28px; }
.tl-form { position: relative; display: flex; align-items: center; gap: 8px; max-width: 34rem; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(26, 35, 64, .18); }
.tl-form-ico { display: inline-flex; flex: none; margin-left: 12px; color: var(--muted); }
.tl-input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 6px; border: 0; background: transparent; color: var(--ink); font: 500 1.125rem var(--font); outline: none; }
.tl-input::placeholder { color: var(--muted); opacity: .8; }
.tl-form:focus-within { box-shadow: 0 8px 24px rgba(26, 35, 64, .18), 0 0 0 4px rgba(255, 255, 255, .45); }
.tl-form .tr-btn { flex: none; }
.tl-input[aria-invalid="true"] { color: var(--low); }
.tl-error { max-width: 34rem; margin-top: 10px !important; padding: 8px 14px; border-radius: 12px; background: var(--low-soft); color: var(--low-ink); font-size: .9375rem; font-weight: 600; }
/* staff only (two-stage check, 3 Dec 2026): the "Test as a new visitor" line under the form */
.tl-staff { max-width: 34rem; margin-top: 10px !important; padding: 8px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-size: .875rem; }
.tl-staff a { color: inherit; font-weight: 600; text-decoration: underline; }
.tl-ts:empty { display: none; }
.tl-ts { margin-top: 10px; }
.tl-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; }
.tl-strip-label { color: rgba(255, 255, 255, .82); font-size: .9375rem; font-weight: 600; }
.tl-strip .tr-srcs { flex-wrap: wrap; gap: 8px; min-width: 0; }   /* 6 Dec 2026: on a phone the logos wrap (one row was 430 px wide: the page scrolled sideways) */
.tl-strip .tr-logomark { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
@media (max-width: 560px) {
  .tl-form { flex-wrap: wrap; border-radius: 20px; }
  .tl-form .tr-btn { width: 100%; }
}

/* the button's loading state (traffic-checker.js: "Starting your check…") */
.bp-ta-go.is-busy { opacity: .92; cursor: progress; }
.bp-ta-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; }
.bp-ta-go.is-busy .bp-ta-spin { display: inline-block; animation: tl-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .bp-ta-go.is-busy .bp-ta-spin { animation-duration: 3s; } }
@keyframes tl-spin { to { transform: rotate(360deg); } }

/* the sample report: the score panel and three figures, slightly overlapping */
.tl-preview { position: relative; margin: 0; }
.tl-preview-score { box-shadow: 0 18px 40px rgba(26, 35, 64, .22); }
.tl-preview-ring { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.tl-preview-ring .tr-ring { max-width: 190px; }
.tl-preview-parts { display: grid; gap: 8px; }
.tl-preview-parts li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; color: var(--ink); font-size: .9375rem; }
.tl-preview-parts b { font-weight: 700; }
.tl-preview-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: -14px 14px 0; position: relative; }
.tl-mini { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(26, 35, 64, .18); }
.tl-mini-l { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.tl-mini-l .tr-ico { color: var(--tone); }
.tl-mini b { color: var(--ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.tl-preview-cap { margin-top: 12px; color: rgba(255, 255, 255, .8); font-size: .875rem; text-align: center; }
@media (max-width: 960px) { .tl-preview { max-width: 520px; } }
@media (max-width: 480px) { .tl-preview-ring { grid-template-columns: 1fr; } .tl-preview-kpis { grid-template-columns: 1fr; margin: 10px 0 0; } }

/* sections */
.tl-sec .tr-sec-head { margin-bottom: 24px; }
.tl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tl-tile { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
@media (hover: hover) and (pointer: fine) { .tl-tile:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-lift); } }
.tl-tile-ico { display: inline-flex; color: var(--tone); }
.tl-tile h3, .tl-steps h3, .tl-source h3, .tl-grow h3 { margin-top: 12px; color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.tl-tile p, .tl-steps p, .tl-source p, .tl-grow p, .tl-band p { margin-top: 4px !important; color: var(--body); font-size: .9375rem; line-height: 1.5; }
.tl-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px !important; color: var(--muted); font-size: .9375rem; }
.tl-note .tr-ico { margin-top: 2px; color: var(--part); }
@media (max-width: 860px) { .tl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tl-tiles { grid-template-columns: 1fr; } }

.tl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.tl-step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hero); color: #fff; font-weight: 800; }
.tl-uses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px !important; }
.tl-uses--logos { gap: 6px; }
.tl-uses .tr-tag .tr-ico { margin-right: 2px; }
@media (max-width: 860px) { .tl-steps { grid-template-columns: 1fr; } }

.tl-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tl-source { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.tl-source .tr-logomark { width: 40px; height: 40px; }
.tl-source h3 { margin-top: 0; }
.tl-source a { color: var(--data-ink); }
@media (max-width: 860px) { .tl-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tl-sources { grid-template-columns: 1fr; } }
/* 3 Dec 2026: the free and public sources as one card under the six (the report's "Where the numbers come from" rows) */
.tl-more { margin-top: 16px; }
.tl-more h3 { margin: 0 0 16px; color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.tl-more .tr-how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.tl-more .tr-fine { margin-top: 16px; }
@media (max-width: 860px) { .tl-more .tr-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tl-more .tr-how { grid-template-columns: 1fr; } }

.tl-score { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.tl-weights h3 { margin-top: 0; }
.tl-weights ul { display: grid; gap: 12px; }
.tl-weights li { display: grid; grid-template-columns: minmax(120px, 9rem) 1fr 3rem; gap: 12px; align-items: center; }
.tl-w-name { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.tl-w-bar { display: block; height: 10px; border-radius: 5px; background: var(--line-soft); overflow: hidden; }
.tl-w-bar i { display: block; height: 100%; border-radius: 5px; }
.tr-part--authority .tl-w-bar i { background: var(--p-authority); }
.tr-part--links .tl-w-bar i { background: var(--p-links); }
.tr-part--search .tl-w-bar i { background: var(--p-search); }
.tr-part--speed .tl-w-bar i { background: var(--p-speed); }
.tr-part--trust .tl-w-bar i { background: var(--p-trust); }
.tl-weights b { color: var(--ink); text-align: right; }
.tl-preview-parts .tr-part-sw, .tl-weights .tr-part-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.tr-part--authority .tr-part-sw { background: var(--p-authority); }
.tr-part--links .tr-part-sw { background: var(--p-links); }
.tr-part--search .tr-part-sw { background: var(--p-search); }
.tr-part--speed .tr-part-sw { background: var(--p-speed); }
.tr-part--trust .tr-part-sw { background: var(--p-trust); }
.tl-bands { display: grid; gap: 12px; }
.tl-band { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 18px 20px; }
.tl-band b { color: var(--ink); font-size: 1.125rem; font-weight: 800; }
.tl-band p { grid-column: 1 / -1; }
@media (max-width: 860px) { .tl-score { grid-template-columns: 1fr; } }

.tl-grow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tl-grow li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.tl-grow h3 { margin-top: 4px; }
.tl-grow-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--found-soft); color: var(--found-ink); font-weight: 800; }

.tl-faq { padding-top: 6px; padding-bottom: 6px; }
.tl-q { border-bottom: 1px solid var(--line-soft); }
.tl-q:last-child { border-bottom: 0; }
.tl-q summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; color: var(--ink); font-size: 1.0625rem; font-weight: 600; cursor: pointer; list-style: none; }
.tl-q summary::-webkit-details-marker { display: none; }
.tl-q summary .tr-ico { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.tl-q[open] summary .tr-ico { transform: rotate(180deg); }
.tl-q p { padding: 0 0 18px; max-width: 46rem; color: var(--body); line-height: 1.6; }

.tl-closing { margin-top: clamp(56px, 8vw, 92px); padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: var(--hero); color: #fff; text-align: center; }
.tl-closing h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
.tl-closing p { margin-top: 8px !important; color: rgba(255, 255, 255, .88); font-size: 1.125rem; }
.tl-closing-btn { margin-top: 22px; background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tl-closing-btn:hover { color: var(--ink); background: var(--wash); } }
/* review fixes: steps in wider cards; on phones the sample keeps just its ring */
.tl-grow { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 560px) {
  .tl-preview-parts, .tl-preview-kpis { display: none; }
  .tl-preview-ring .tr-ring { max-width: 160px; }
  .tl-hero h1 { font-size: 2.25rem; }
}
.tl-mini-l { line-height: 1.25; }
/* Your score: both columns the same height (Victor, 30 Nov 2026); the weights spread down their card, the bands share
   the height; the news card under them */
.tl-score { align-items: stretch; }
.tl-weights { display: flex; flex-direction: column; }
.tl-weights ul { flex: 1 1 auto; align-content: space-evenly; }
.tl-bands { grid-auto-rows: 1fr; }
.tl-band { align-content: center; }
#score .tr-promo { margin-top: 16px; }
/* Questions in two thirds, "Check a website now" in the last third (Victor, 30 Nov 2026) */
.tl-faq-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.tl-faq-grid .tl-closing { margin-top: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; padding: clamp(24px, 3vw, 36px); }
.tl-closing-ico { display: inline-flex; margin-bottom: 14px; color: #fff; opacity: .9; }
.tl-faq-grid .tl-closing h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
@media (max-width: 860px) { .tl-faq-grid { grid-template-columns: 1fr; } }
.tl-faq-grid .tl-closing { border-radius: var(--r-card); }
.tl-faq-grid .tl-closing h2 { line-height: 1.15; letter-spacing: -.02em; }
.tl-input { padding-left: 20px; }   /* no globe in the field (Victor, 30 Nov 2026) */

/* =====================================================================================================================
   Round 4 (29 Nov 2026, Victor: "Yes, checker page"). The report got its design review first; this brings the page that
   leads to it in line:
   1. The hero's sample is one panel: the site, the score ring with the report's own legend (a bar per part), and three
      figures on a hairline inside the same card. The three small cards hung over the panel's edge (in the report Victor
      had them moved off the hero: "instead of overlapping").
   2. "What you get" shows a small piece of the report per tile, from the sample report's figures, in place of an icon.
   3. How it works, step 2: the order the parts arrive in (the six logos were on the page three times).
   Not touched (Victor set them 29 Nov): Your score and its columns, the news card under it, Questions two thirds with
   "Check a website now" beside it, the Data sources cards, the form.
   ===================================================================================================================== */
/* 1. the sample panel */
.tl-preview-score { padding: clamp(18px, 2.2vw, 24px); }
.tl-preview-site { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px !important; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.tl-preview-dom { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-preview-dom .tr-ico { color: var(--muted); }
.tl-preview-tag, .tl-sample-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--body); font-size: .8125rem; font-weight: 600; }
.tl-preview .tr-part { cursor: default; }
.tl-preview .tr-part:hover { background: transparent; }
.tl-preview-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); position: static; }
.tl-preview-kpis dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; line-height: 1.25; }
.tl-preview-kpis dt .tr-ico { flex: none; color: var(--tone); }
.tl-preview-kpis dd { margin-top: 4px; color: var(--ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
@media (max-width: 560px) {
  .tl-preview-parts, .tl-preview-kpis { display: grid; }
  .tl-preview .tr-score-in { grid-template-columns: 1fr; }
  .tl-preview .tr-ring { max-width: 170px; }
  .tl-preview-kpis dt .tr-ico { display: none; }
}
/* 2. what you get: a piece of the report per tile */
.tl-sec .tr-sec-top { align-items: center; }
.tl-tile { display: flex; flex-direction: column; }
@media (hover: hover) and (pointer: fine) { .tl-tile:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-card); } }
.tl-tile--viz h3 { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.tl-viz { height: 96px; margin: 0; }
.tl-viz-n { color: var(--ink); font-size: 2rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.tl-viz-n small { margin-left: 2px; color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.tl-viz-scale { color: var(--muted); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.tl-viz-sub { color: var(--muted); font-size: .875rem; }
.tl-viz--fig { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 2px 10px; align-items: baseline; }
.tl-viz--fig .tr-delta { font-size: .875rem; }
.tl-viz--fig .tl-spark { grid-column: 1 / -1; align-self: end; width: 100%; height: 46px; }
.tl-viz--fig .tl-viz-side { grid-column: 1 / -1; align-self: end; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--body); font-size: .9375rem; }
.tl-viz--fig .tl-viz-side b { color: var(--ink); font-weight: 800; }
.tl-spark polyline { fill: none; stroke: var(--tone); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tl-spark polygon { fill: var(--tone); opacity: .1; }
.tl-viz--cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.tl-viz--cols li { display: grid; grid-template-rows: 1fr auto; gap: 6px; color: var(--muted); font-size: .6875rem; text-align: center; }
.tl-viz-col { display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.tl-viz-col i { display: block; width: 100%; height: calc(var(--h) * 100%); border-radius: 5px 5px 0 0; background: var(--tone); }
.tl-viz--kv { display: grid; align-content: space-between; }
.tl-viz--kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.tl-viz--kv div:last-child { border-bottom: 0; }
.tl-viz--kv dt { color: var(--body); font-size: .9375rem; font-weight: 500; }
.tl-viz--kv dd { color: var(--ink); font-size: 1.0625rem; font-weight: 800; }
.tl-viz--gauge { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.tl-viz--gauge .tr-gauge-track { height: 10px; border-radius: 5px; }
.tl-viz--gauge .tr-gauge-track i { border-radius: 5px; }
.tl-viz--gauge .tr-credit a { color: var(--data-ink); }
.tl-viz--comp { display: grid; align-content: space-between; }
.tl-viz--comp li { display: grid; grid-template-columns: minmax(0, 7.5rem) 1fr 2.8rem; gap: 10px; align-items: center; color: var(--body); font-size: .875rem; }
.tl-viz-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-viz--comp .is-you .tl-viz-who { color: var(--ink); font-weight: 700; }
.tl-viz-track { display: block; height: 14px; border-radius: 5px; background: var(--wash); overflow: hidden; }
.tl-viz-track i { display: block; width: calc(var(--w) * 100%); height: 100%; border-radius: 5px; background: color-mix(in srgb, var(--tone) 35%, #fff); }
.tl-viz--comp .is-you .tl-viz-track i { background: var(--tone); }
.tl-viz--comp b { color: var(--ink); font-weight: 700; text-align: right; }
/* 3. step 2's order */
.tl-uses-n { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 6px 0 -4px; border-radius: 50%; background: #fff; color: var(--ink); font-size: .6875rem; font-weight: 800; }
/* the sample panel's three figures sit on one line whatever their labels' length */
.tl-preview-kpis > div { display: flex; flex-direction: column; justify-content: space-between; }
/* phones: the sample stays short (the ring and the three figures; the legend waits for the report), so "What you get"
   follows the form within a screen or so */
@media (max-width: 560px) {
  .tl-preview .tr-parts { display: none; }
  .tl-preview .tr-ring { max-width: 150px; }
}

/* 30 Nov 2026 (Victor: "when selecting the input box on the check page it looks weird and is not shaped right").
   The report sheet's general focus rule (.tr-page :focus-visible: dark outline, 8px corners) is stronger than
   .tl-input's "outline: none", so a rounded box was drawn inside the pill. The pill itself is the field: it carries
   the focus ring, and the input inside it draws none. */
.tl-form .tl-input:focus, .tl-form .tl-input:focus-visible { outline: none; border-radius: 999px; }
.tl-form:has(.tl-input:focus-visible) { box-shadow: 0 8px 24px rgba(26, 35, 64, .18), 0 0 0 4px rgba(255, 255, 255, .7); }
