/*
  ortb.in toolkit - shared design system, loaded last on every page so it wins over each tool's own CSS.
  Every tool already names its colours --bg / --card / --fg / --muted / --line / --accent (/ --ok --err --warn --chip),
  so setting these tokens once re-themes all of them. Themes: light (default), dark, or follow the system
  (no data-theme attribute). The nav button writes the choice to the tk_theme cookie; the server puts it on <html>.

  Identity: a ledger of who may sell what. Green-grey paper, deep "authorized" teal, amber for caution.
  Type: Atkinson Hyperlegible (Braille Institute) - built so 0/O and l/1/I never look alike, which is exactly the
  mistake people make reading seller IDs. The mono cut is for record data only (domains, IDs, lines), never labels.
  Structure comes from borders and surface tint, not shadows; corner radius follows hierarchy (4 / 8 / 0).
*/
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next.woff2?v=ae2bab11eb") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-mono.woff2?v=ae2bab11eb") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #e9eeea; --card: #f7f9f7; --fg: #12201c; --muted: #52605b; --line: #cdd6d0;
  --accent: #0b6e5b; --accent-ink: #f7f9f7; --chip: #dce8e2;
  --ok: #0b6e5b; --err: #b0261f; --warn: #9a580a; --info: #3c5f8a;
  --well: #f2f5f2;                                   /* inputs and record wells, a step lighter than the page */
  --shadow: 0 1px 0 rgba(18, 32, 28, .04);
  /* Line statuses: the Excel report's own cell fills (Bulk Line Check), so a page and its report agree.
     --x is a chip fill, --x-ink its text, --bar-x a fill for bars; --sheet-* draw a spreadsheet preview. */
  --present: #C6EFCE; --present-ink: #006100; --missing: #FFC7CE; --missing-ink: #9C0006;
  --nofile: #D9D9D9; --nofile-ink: #404040; --refused: #FFEB9C; --refused-ink: #9C5700;
  --bar-present: #C6EFCE; --bar-missing: #FFC7CE; --bar-nofile: #D9D9D9; --bar-refused: #FFEB9C; --bar-edge: #9fb0a8;
  --sheet-head: #D9E1F2; --sheet-grid: #c9d0cc;
  --radius: 8px; --radius-s: 4px;
  --mono: "Atkinson Hyperlegible Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1513; --card: #151e1b; --fg: #e2ebe6; --muted: #93a39c; --line: #2a3833;
  --accent: #5bc9ae; --accent-ink: #0e1513; --chip: #1b2b26;
  --ok: #5bc9ae; --err: #ff8a80; --warn: #e7a957; --info: #8fb4e3;
  --well: #111a17;
  --shadow: none;
  /* Line statuses: the light values are the Excel report's own cell fills (Bulk Line Check), so a page and its
     report agree. --x is a chip fill, --x-ink its text, --bar-x a fill strong enough for bars on this page. */
  --present: #1f3a27; --present-ink: #8fd6a0; --missing: #3d2226; --missing-ink: #f0a3ab;
  --nofile: #2a2f2d; --nofile-ink: #b4bcb8; --refused: #3a3220; --refused-ink: #e7c36d;
  --bar-present: #4f9f68; --bar-missing: #b8545f; --bar-nofile: #59615d; --bar-refused: #b8913a; --bar-edge: #2a3833;
  --sheet-head: #22293a; --sheet-grid: #2f3a36;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1513; --card: #151e1b; --fg: #e2ebe6; --muted: #93a39c; --line: #2a3833;
    --accent: #5bc9ae; --accent-ink: #0e1513; --chip: #1b2b26;
    --ok: #5bc9ae; --err: #ff8a80; --warn: #e7a957; --info: #8fb4e3;
    --well: #111a17;
    --shadow: none;
    /* Line statuses: the light values are the Excel report's own cell fills (Bulk Line Check), so a page and its
       report agree. --x is a chip fill, --x-ink its text, --bar-x a fill strong enough for bars on this page. */
    --present: #1f3a27; --present-ink: #8fd6a0; --missing: #3d2226; --missing-ink: #f0a3ab;
    --nofile: #2a2f2d; --nofile-ink: #b4bcb8; --refused: #3a3220; --refused-ink: #e7c36d;
    --bar-present: #4f9f68; --bar-missing: #b8545f; --bar-nofile: #59615d; --bar-refused: #b8913a; --bar-edge: #2a3833;
    --sheet-head: #22293a; --sheet-grid: #2f3a36;
  }
}

/* ---- base ---- */
html { background: var(--bg); }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-feature-settings: "kern"; }
h1, h2, h3 { color: var(--fg); font-family: var(--sans); letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; line-height: 1.12; }
h2 { font-size: 19px; font-weight: 700; line-height: 1.25; }
h3 { font-size: 16px; font-weight: 700; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .94em; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

/* ---- surfaces, forms, buttons ---- */
.card, .cov, .wrap, details, .panel { border-radius: var(--radius); }
.card, .panel { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
input[type=text], input[type=search], input[type=number], input[type=password], input[type=email], input[type=url],
input:not([type]), select, textarea {
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--well); color: var(--fg); font-family: inherit;
}
input[type=text]:focus, input[type=search]:focus, input[type=number]:focus, input[type=password]:focus,
input[type=email]:focus, input[type=url]:focus, input:not([type]):focus, select:focus, textarea:focus {
  border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 0;
}
/* what people type into the tools is record data (domains, seller IDs, lines, JSON): set it in the mono cut */
textarea, main input[type=text], main input[type=search], main input:not([type]) { font-family: var(--mono); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
button, .btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-s); font-family: inherit;
  font-weight: 700; cursor: pointer; }
button:hover, .btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--fg)); }
button:active, .btn:active { transform: translateY(1px); }
.btn { display: inline-block; padding: 10px 16px; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--chip); }

/* ---- tables: sentence-case headers, figures that line up ---- */
table { font-variant-numeric: tabular-nums; }
th { font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
tr:hover > td { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* ---- navigation bar: a flat band; three tools in the bar, the rest in two menus that say what each tool does ---- */
.tk-nav { position: sticky; top: 0; z-index: 100; background: var(--card); color: var(--fg);
  border-bottom: 1px solid var(--line); font: 14.5px/1.2 var(--sans); }
.tk-nav-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; min-height: 56px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk-brand { font: 700 17px/1 var(--mono); letter-spacing: -.02em; color: var(--fg); text-decoration: none; margin-right: 22px; }
.tk-brand span { color: var(--accent); }
.tk-links { display: flex; gap: 0; flex: 1; align-items: stretch; align-self: stretch; }
.tk-link, .tk-group-btn { display: flex; align-items: center; color: var(--muted); text-decoration: none; padding: 0 12px;
  font: 500 14.5px/1.2 var(--sans); border: 0; border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  background: none; cursor: pointer; border-radius: 0; }
.tk-link:hover, .tk-group-btn:hover, .tk-group:hover > .tk-group-btn { color: var(--fg); border-bottom-color: var(--line); background: none; }
.tk-link.on, .tk-group.on > .tk-group-btn { color: var(--fg); font-weight: 700; border-bottom-color: var(--accent); }
.tk-group { position: relative; display: flex; }
.tk-group-btn::after { content: ""; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); opacity: .7; }
.tk-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 290px; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius); }
.tk-group:hover > .tk-drop, .tk-group:focus-within > .tk-drop, .tk-group.open > .tk-drop { display: block; }
.tk-drop a { display: block; padding: 9px 12px; border-radius: var(--radius-s); color: var(--fg); text-decoration: none; }
.tk-drop a:hover, .tk-drop a[aria-current] { background: var(--chip); }
.tk-drop b { display: block; font-weight: 700; }
.tk-drop small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tk-account { display: flex; align-items: center; margin-left: auto; gap: 4px; }
.tk-account a { color: var(--muted); text-decoration: none; padding: 8px 10px; font-weight: 500; }
.tk-account a:hover { color: var(--fg); }
.tk-account a.tk-user { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-account a.tk-up { padding: 8px 14px; border-radius: var(--radius-s); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.tk-account a.tk-up:hover { background: color-mix(in srgb, var(--accent) 86%, var(--fg)); color: var(--accent-ink); }
.tk-nav .tk-theme { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 6px 10px; font-size: 13px; font-weight: 500; margin-left: 6px; }
.tk-nav .tk-theme:hover { background: var(--chip); color: var(--fg); }
.tk-toggle, .tk-burger { display: none; }

@media (max-width: 1100px) {                       /* phones and narrow windows: one menu, groups listed in full */
  .tk-nav-in { min-height: 52px; }
  .tk-burger { display: inline-block; margin-left: auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; color: var(--fg); order: 2; }
  .tk-nav .tk-theme { order: 3; }
  .tk-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; align-self: auto; padding: 4px 0 10px; order: 4; }
  .tk-toggle:checked ~ .tk-links { display: flex; }
  .tk-link { padding: 12px 10px; border: 0; border-left: 3px solid transparent; }
  .tk-link.on { border-left-color: var(--accent); background: var(--chip); }
  .tk-group { display: block; }
  .tk-group-btn { padding: 14px 10px 4px; border: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: default; }
  .tk-group-btn::after { display: none; }
  .tk-group.on > .tk-group-btn { border: 0; }
  .tk-drop { display: block; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: none; }
  .tk-drop a { padding: 10px 10px; }
  .tk-drop b { font-weight: 500; }
  .tk-link { color: var(--fg); }
  .tk-account { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
}

/* ---- footer: what ortb.in is, every tool, the legal pages ---- */
.tk-foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 14px; }
.tk-foot-in { max-width: 1240px; margin: 0 auto; padding: 36px 16px 28px; display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr)); gap: 28px; }
.tk-foot-about p { margin: 12px 0 0; max-width: 42ch; line-height: 1.55; }
.tk-foot .tk-foot-h { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--fg); letter-spacing: 0; text-transform: none; }
.tk-foot ul { list-style: none; margin: 0; padding: 0; }
.tk-foot li { margin: 0 0 7px; }
.tk-foot a { color: var(--muted); text-decoration: none; }
.tk-foot a:hover { color: var(--fg); text-decoration: underline; }
.tk-foot-legal { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.tk-foot-legal span { margin-left: auto; }
@media (max-width: 760px) {
  .tk-foot-in { grid-template-columns: 1fr 1fr; }
  .tk-foot-about { grid-column: 1 / -1; }
  .tk-foot-legal span { margin-left: 0; }
}

/* ---- home page ---- */
main.home { max-width: 1120px; }
.eyebrow { font: 700 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0 0 8px; }
.intro { margin: 28px 0 22px; max-width: 760px; }
.intro h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.intro p { margin: 0; color: var(--muted); max-width: 64ch; font-size: 16.5px; line-height: 1.6; }

/* the one loud element: the search field reads as a line being typed into an ads.txt file */
.searchbar { display: flex; margin: 0 0 12px; border: 2px solid var(--fg); border-radius: var(--radius); background: var(--well); overflow: hidden; }
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.searchbar input, .searchbar input:focus { flex: 1; min-width: 0; padding: 18px 20px; border: 0; border-radius: 0; outline: 0; background: transparent;
  font: 500 clamp(16px, 2.2vw, 21px)/1.3 var(--mono); letter-spacing: -.01em; }
.searchbar input::placeholder { font-family: var(--sans); letter-spacing: 0; }   /* the prompt is prose; what is typed is data */
.searchbar button { padding: 0 30px; border-radius: 0; font-size: 16px; }
.examples { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0 0 34px; font-size: 14px; }
.examples span { color: var(--muted); }
.examples a { color: var(--fg); font: 500 14px var(--mono); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
.examples a:hover { color: var(--accent); text-decoration-color: var(--accent); }


/* tools: the same three groups as the navigation, name then purpose */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin: 0 0 56px; }
.tool-group h2 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
a.tool { display: block; padding: 12px 14px; margin: 0 0 8px; color: var(--fg); text-decoration: none; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius); }
a.tool b { display: block; font-size: 16px; font-weight: 700; }
a.tool small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
a.tool:hover { border-left-color: var(--accent); }
a.tool:hover b { color: var(--accent); }

/* ---- home, visual layer: a sample check beside the search, figures with icons, a three-step flow ---- */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home section > h2, .home .faq-wrap > h2 { font-size: clamp(22px, 3vw, 27px); font-weight: 800; letter-spacing: -.015em; margin: 0 0 22px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 28px 48px; align-items: center; margin: 30px 0 40px; }
.hero h1 { font-size: clamp(31px, 4.6vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin: 0 0 14px; max-width: 18ch; text-wrap: balance; }
.hero .lead { margin: 0 0 24px; color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 44ch; }
.hero .ask .hint { margin: 0 0 6px; }
.hero .examples { margin-bottom: 0; }

/* the sample check: what a result looks like, so the page shows the product before it explains it */
.demo { margin: 0; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.demo-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.demo-head b { color: var(--fg); font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere; }
.demo-head b.mono { font: 600 15px var(--mono); }
.demo-rows { list-style: none; margin: 0; padding: 6px 18px; }
.demo-rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; }
.demo-rows li + li { border-top: 1px dashed var(--line); }
.demo-rows code { font: 500 14px var(--mono); background: none; padding: 0; color: var(--fg); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 7px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pill .ic { width: 18px; height: 18px; stroke-width: 2; }
.pill.ok { background: var(--present); color: var(--present-ink); }
.pill.bad { background: var(--missing); color: var(--missing-ink); }
.pill.warn { background: var(--refused); color: var(--refused-ink); }
.pill.info { background: var(--chip); color: var(--fg); }
.demo figcaption { padding: 12px 18px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }

/* coverage: four figures, each with its icon */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0 0 10px;
  border-top: 2px solid var(--fg); border-bottom: 1px solid var(--line); }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 18px 16px 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat .ic { grid-row: span 2; width: 30px; height: 30px; color: var(--accent); }
.stat b { font: 700 25px/1.15 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.stats.kinds .stat b { font: 700 17px/1.25 var(--sans); letter-spacing: 0; }
.stats.kinds + .stats { border-top: 1px solid var(--line); }
.stats-note { margin: 0 0 64px; color: var(--muted); font-size: 14px; max-width: 90ch; }

/* how a check works: a real sequence, so it is numbered by its connecting line */
.how { margin: 0 0 64px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: flow; }
.flow li { position: relative; display: grid; gap: 6px; align-content: start; counter-increment: flow; }
.flow li .ic, .flow li .step-n { width: 56px; height: 56px; padding: 13px; margin-bottom: 8px; border-radius: 50%; color: var(--accent);
  background: var(--card); border: 2px solid var(--accent); position: relative; z-index: 1; }
.flow li .step-n { display: grid; place-items: center; padding: 0; font: 800 22px/1 var(--mono); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 64px; right: -16px; border-top: 2px dashed var(--line); }
.flow b { font-size: 17px; }
.flow b::before { content: counter(flow) ". "; color: var(--accent); }
.flow span { color: var(--muted); line-height: 1.55; max-width: 34ch; }

/* who it is for: three doors, each one whole card a link */
.who { margin: 0 0 64px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
a.who-card { display: grid; gap: 8px; align-content: start; padding: 22px 22px 20px; background: var(--card); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
a.who-card .ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 4px; }
a.who-card b { font-size: 17px; }
a.who-card span { color: var(--muted); line-height: 1.55; }
a.who-card em { font-style: normal; font-weight: 700; color: var(--accent); margin-top: 4px; }
a.who-card:hover { border-color: var(--accent); }
a.who-card:hover em { text-decoration: underline; }

/* trust: four short promises */
.trust { margin: 0 0 64px; }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 28px; }
.trust-grid li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; }
.trust-grid .ic { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); margin-top: 1px; }
.trust-grid b { font-size: 16px; }
.trust-grid span { color: var(--muted); line-height: 1.55; }

.faq-wrap { margin: 0 0 40px; }
.faq { max-width: 760px; }
.faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-weight: 700; font-size: 16px; cursor: pointer; }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; max-width: 68ch; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin: 0 0 40px;
  border: 2px solid var(--fg); border-radius: var(--radius); background: var(--card); }
.cta b { display: block; font-size: 19px; }
.cta span { color: var(--muted); }
.cta .btn { padding: 12px 22px; font-size: 16px; }

/* touch: example links and footer links get a thumb-sized target without looking bigger */
.examples a, .tk-foot li a { display: inline-block; padding: 8px 0; }
.tk-foot li { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .flow li { grid-template-columns: auto 1fr; column-gap: 16px; }
  .flow li .ic, .flow li .step-n { grid-row: span 2; margin: 0; }
  .steps-flow li { grid-template-rows: auto; align-items: center; }
  .steps-flow li .step-n { grid-row: auto; }
  .flow li:not(:last-child)::after { top: 58px; bottom: -18px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
}
@media (max-width: 560px) {
  .stat, .stat + .stat { padding: 12px 0; border-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .stat { grid-template-columns: 1fr; }
  .stat .ic { grid-row: auto; width: 24px; height: 24px; margin-bottom: 4px; }
  .stat b { font-size: 21px; }
}
.cols { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
.cols h2 { margin: 0 0 10px; }
.panel { padding: 4px 16px 8px; overflow-x: auto; }
.panel table { width: 100%; border-collapse: collapse; }
.panel th, .panel td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.panel tr:last-child td { border-bottom: 0; }
.empty { padding: 10px 2px; }
@media (max-width: 560px) {
  .intro { margin-top: 12px; }
  .searchbar { flex-direction: column; }
  .searchbar button { padding: 14px; }
}

/* ---- compact tool pages: short title, one-line index summary, help folded away ---- */
main:not(.home) h1 { font-size: 24px; font-weight: 800; margin: 8px 0 14px; }
.cov { font-size: 13.5px; color: var(--muted); padding: 8px 12px; margin: 10px 0; }
.note { margin: -6px 0 14px; padding: 2px 0 2px 12px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 14px; max-width: 80ch; }
.note b { color: var(--fg); font-weight: 700; margin-right: 2px; }
.note b:not(:first-child) { margin-left: 6px; }
main.err { max-width: 560px; margin: 64px auto; padding: 0 16px; }
main.err h1 { font-size: 34px; }
main.err .btn { margin: 6px 8px 0 0; }
details.help { margin-top: 22px; color: var(--muted); font-size: 14px; }
details.help > summary { cursor: pointer; width: max-content; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); }
details.help > p { margin: 10px 0 0; max-width: 76ch; }

/* ---- "working..." overlay ---- */
.tk-busy { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(2px); font: 15px/1.4 var(--sans); }
.tk-busy.on { display: flex; }
.tk-busy-box { background: var(--card); color: var(--fg); border: 2px solid var(--fg); border-radius: var(--radius);
  padding: 24px 28px; max-width: min(92vw, 380px); text-align: center; }
.tk-spin { width: 30px; height: 30px; margin: 0 auto 12px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: tk-rot 0.9s linear infinite; }
.tk-busy small { display: block; margin-top: 6px; color: var(--muted); }
@keyframes tk-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tk-spin { animation-duration: 3s; } button:active, .btn:active { transform: none; } }

/* ---- home: the tour video ---- */
.tour { margin: 0 0 44px; }
.tour h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.tour-sub, .tour-link { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.tour video { display: block; width: 100%; max-width: 960px; margin-top: 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }

/* ---- results: free banner, downloads ---- */
.freebanner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.freebanner .btn { padding: 8px 14px; }
p.downloads { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
p.downloads .muted { font-size: 13px; }

/* ---- tool pages: the glossary, folded lists, result pages ---- */
details.glossary { margin: 4px 0 14px; font-size: 13.5px; }
details.glossary > summary { cursor: pointer; color: var(--muted); width: max-content; }
details.glossary dl { margin: 10px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 16px; max-width: 900px; }
details.glossary dt { font-weight: 600; }
details.glossary dd { margin: 0; color: var(--muted); }
details.more { margin: 10px 0 18px; }
details.more > summary { cursor: pointer; color: var(--accent); width: max-content; margin-bottom: 10px; }
nav.pager { display: flex; gap: 12px; align-items: center; margin: 14px 0 6px; }
@media (max-width: 560px) { details.glossary dl { grid-template-columns: 1fr; } }

/* ---- visitor home: pick what to look up, then one box; the tour sits beside three plain steps ---- */
.ask { position: relative; margin: 0 0 6px; }
.ask > input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ask .opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.ask .ask-q { margin-right: 4px; color: var(--muted); font-size: 15px; }
.ask .opts label { padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--muted); font-weight: 600; cursor: pointer; }
.ask .opts label:hover { border-color: var(--fg); color: var(--fg); }
#ask-site:checked ~ .opts label[for="ask-site"], #ask-seller:checked ~ .opts label[for="ask-seller"] {
  border-color: var(--accent); background: var(--chip); color: var(--fg); }   /* chosen, but quieter than the Check button */
#ask-site:focus-visible ~ .opts label[for="ask-site"], #ask-seller:focus-visible ~ .opts label[for="ask-seller"] {
  outline: 3px solid var(--accent); outline-offset: 2px; }
#ask-site:checked ~ .pane-seller, #ask-seller:checked ~ .pane-site { display: none; }
.ask .hint { margin: 10px 0 8px; max-width: 70ch; color: var(--muted); font-size: 14.5px; }
.ask .examples { margin-bottom: 20px; }
.start { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 40px; align-items: center; margin: 0 0 56px; }
.start:not(:has(.tour)) { grid-template-columns: minmax(0, 60ch); }
.start .tour { margin: 0; }
.start .tour video { margin: 0; max-width: none; }
.start .first h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.start .first p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .start { grid-template-columns: minmax(0, 1fr); } .ask .opts label { flex: 1 1 auto; text-align: center; } .ask .ask-q { flex-basis: 100%; } }

/* ---- public tool pages (/tools, /tools/<name>): breadcrumb, a plain-language document, related cards ---- */
.crumbs { margin: 0 0 18px; font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; }
.crumbs a:hover { color: var(--accent); }
main.doc { max-width: 880px; }
main.doc .doc-head h1 { margin: 0 0 12px; font-size: clamp(28px, 4.6vw, 40px); line-height: 1.1; font-weight: 800; }
main.doc .lead { margin: 0 0 20px; max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
main.doc .doc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 10px; }
main.doc .doc-cta .btn { padding: 11px 20px; }
main.doc .doc-cta .try { font: 500 14px var(--mono); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; color: var(--fg); }
main.doc .doc-note { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.doc-block { margin: 40px 0 0; }
.doc-block h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; }
.doc-block .doc-sub { margin: -6px 0 14px; color: var(--muted); }
.doc-steps, .doc-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; max-width: 70ch; line-height: 1.6; }
.doc-terms { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 10px 20px; margin: 0; max-width: 78ch; }
.doc-terms dt { font-weight: 700; }
.doc-terms dd { margin: 0; color: var(--muted); line-height: 1.6; }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.doc-cards a.tool { margin: 0; }
p.all-tools { margin: -36px 0 64px; font-size: 15px; }
@media (max-width: 560px) { .doc-terms { grid-template-columns: 1fr; gap: 2px; } .doc-terms dd { margin-bottom: 10px; } }

/* guides: long-form reading */
.prose { max-width: 68ch; margin: 28px 0 0; line-height: 1.7; }
.prose h2 { margin: 38px 0 10px; font-size: 22px; font-weight: 800; }
.prose h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; }
.prose p { margin: 0 0 14px; }
.prose .doc-list { margin: 0 0 14px; padding-left: 22px; gap: 8px; }
pre.doc-code { margin: 0 0 18px; padding: 14px 16px; overflow-x: auto; background: var(--well); border: 1px solid var(--line);
  border-radius: var(--radius-s); font: 400 13px/1.6 var(--mono); }
pre.doc-code:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- result tables: sortable headings, a filter box, copy buttons, summary figures ---- */
th > button.sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; }
th > button.sort:hover { color: var(--fg); }
th > button.sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
th[aria-sort] > button.sort { color: var(--fg); }
th[aria-sort="ascending"] > button.sort::after { content: "\25B2"; font-size: 10px; }
th[aria-sort="descending"] > button.sort::after { content: "\25BC"; font-size: 10px; }
.tbl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.tbl-filter input { min-width: min(320px, 100%); padding: 7px 10px; }
.tbl-count { font-size: 13px; }
button.copy { padding: 3px 9px; font-size: 12px; font-weight: 600; background: transparent; color: var(--fg); border: 1px solid var(--line); }
button.copy:hover { background: var(--chip); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.facts > div { padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.facts b { display: block; font: 700 22px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 13px; }
th.n { text-align: right; }

/* ---- onboarding: the usage meter in the bar, the welcome panel ---- */
.tk-meter { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 10px; margin-right: 6px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.tk-meter b { color: var(--fg); font-variant-numeric: tabular-nums; }
.tk-meter:hover { border-color: var(--fg); }
.tk-meter.low { color: var(--warn); border-color: var(--warn); }
.tk-meter.out { color: var(--err); border-color: var(--err); }
.welcome { margin: 0 0 34px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.welcome[hidden] { display: none; }
.welcome h2 { margin: 0 0 4px; }
.welcome p { margin: 0 0 14px; color: var(--muted); max-width: 70ch; }
.welcome-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 0 0 12px; }
.welcome-cards a.tool { margin: 0; background: var(--well); }
.welcome button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); padding: 7px 14px; font-weight: 600; }
.welcome button.ghost:hover { background: var(--chip); }


/* ---- accessibility: text for screen readers only, and the skip link that appears on the first Tab ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tk-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; border-radius: var(--radius-s); text-decoration: none; }
.tk-skip:focus { top: 10px; }
#tk-main { outline: none; }
.nowrap { white-space: nowrap; }

/* ---- public tool pages, visual layer: a sample result beside the heading, steps as a flow, lists as icon grids ---- */
main.doc.doc-wide { max-width: 1120px; }
.doc-wide .lead, .doc-wide .doc-sub { max-width: 60ch; }
.doc-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px 48px; align-items: center; }
.doc-hero .doc-head h1 { text-wrap: balance; }
.doc-hero .demo { align-self: center; }
.demo-head { position: relative; }
.demo-head .demo-replay { margin-left: auto; padding: 5px 11px; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted);
  border: 1px solid var(--line); }
.demo-head .demo-replay:hover { color: var(--fg); background: var(--chip); }
.demo-query { display: flex; align-items: center; gap: 10px; margin: 14px 18px 4px; padding: 10px 14px; background: var(--well);
  border: 1.5px solid var(--fg); border-radius: var(--radius-s); color: var(--muted); }
.demo-query .ic { width: 18px; height: 18px; }
.demo-query .typed { color: var(--fg); font: 500 15px var(--mono); white-space: nowrap; overflow: hidden; }

.gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; max-width: 980px; }
.gets li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.gets .ic { width: 24px; height: 24px; color: var(--ok); margin-top: 1px; }
.whos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.whos li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); line-height: 1.5; }
.whos .ic { width: 26px; height: 26px; color: var(--accent); }
.term-cards { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.term-cards > div { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--card); }
.term-cards dt { font-weight: 700; margin: 0 0 4px; }
.term-cards dd { margin: 0; color: var(--muted); line-height: 1.55; }
a.tool.tool-ic { display: flex; gap: 12px; align-items: flex-start; }
a.tool.tool-ic > .ic { width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }

/* the tools list: one card per tool, with its icon */
.hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
a.hub-card { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--card); color: var(--fg); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); }
a.hub-card .ic { width: 36px; height: 36px; padding: 7px; color: var(--accent); background: var(--chip); border-radius: var(--radius); box-sizing: border-box; }
a.hub-card b { font-size: 17px; }
a.hub-card span { color: var(--muted); line-height: 1.55; }
a.hub-card em { font-style: normal; font-weight: 700; color: var(--accent); }
a.hub-card:hover { border-color: var(--accent); }
a.hub-card:hover em { text-decoration: underline; }

/* the supply chain: three stops, the file that proves each, an ad request travelling along */
.chain { margin: 36px 0 8px; padding: 26px 24px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.chain ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.chain-stop { flex: 0 1 220px; display: grid; justify-items: center; text-align: center; gap: 4px; }
.chain-stop .ic { width: 64px; height: 64px; padding: 15px; margin-bottom: 6px; border-radius: 50%; color: var(--accent);
  background: var(--bg); border: 2px solid var(--accent); box-sizing: border-box; }
.chain-stop b { font-size: 16.5px; }
.chain-stop span { color: var(--muted); font-size: 14px; }
.chain-stop code { margin-top: 8px; padding: 3px 9px; font: 600 14px var(--mono); background: var(--chip); color: var(--fg); border-radius: var(--radius-s); }
.chain-stop small { color: var(--muted); font-size: 14px; max-width: 24ch; }
.chain-link { flex: 1 1 60px; position: relative; height: 2px; margin-top: 32px; border-top: 2px dashed var(--line); }
.chain-dot { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); opacity: 0; }
.chain figcaption { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .doc-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .chain ol { flex-direction: column; align-items: center; }
  .chain-stop { flex: none; }
  .chain-link { flex: none; width: 2px; height: 44px; margin: 8px 0; border-top: 0; border-left: 2px dashed var(--line); }
  .chain-dot { top: 0; left: -7px; }
}

/* ---- motion: one sequence per sample (typed search, rows checked one by one, verdicts appear), steps that draw in,
   and the ad request moving along the chain. Only when the visitor has not asked for less motion; without CSS
   animation support or with "reduce motion" everything is simply shown in its final state. ---- */
@keyframes tk-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tk-caret { 0%, 100% { border-right-color: var(--fg); } 50% { border-right-color: transparent; } }
@keyframes tk-row { 0% { opacity: 0; transform: translateX(-10px); background: transparent; }
  40% { opacity: 1; transform: none; background: color-mix(in srgb, var(--accent) 14%, transparent); }
  100% { opacity: 1; transform: none; background: transparent; } }
@keyframes tk-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes tk-bar { from { width: 0; opacity: 1; } 90% { width: 100%; opacity: 1; } to { width: 100%; opacity: 0; } }
@keyframes tk-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tk-draw { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tk-travel-x { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
@keyframes tk-travel-y { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .demo-head::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent);
    animation: tk-bar 2.9s ease-in-out .2s both; }
  .demo-query .typed { padding-right: 2px; border-right: 2px solid transparent;
    animation: tk-type 1s steps(24, end) .3s both, tk-caret .7s step-end 1.3s 2; }
  .demo-rows li { animation: tk-row .9s ease-out both; }
  .demo-rows li .pill { animation: tk-pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
  .demo-rows li:nth-child(1) { animation-delay: 1.1s; }   .demo-rows li:nth-child(1) .pill { animation-delay: 1.5s; }
  .demo-rows li:nth-child(2) { animation-delay: 1.6s; }   .demo-rows li:nth-child(2) .pill { animation-delay: 2s; }
  .demo-rows li:nth-child(3) { animation-delay: 2.1s; }   .demo-rows li:nth-child(3) .pill { animation-delay: 2.5s; }
  .demo-rows li:nth-child(4) { animation-delay: 2.6s; }   .demo-rows li:nth-child(4) .pill { animation-delay: 3s; }
  .demo.demo-reset *, .demo.demo-reset *::after, .demo.demo-reset .demo-head::after { animation: none !important; }

  .tk-motion [data-anim]:not(.in-view) li { opacity: 0; }
  .tk-motion [data-anim].in-view li { animation: tk-rise .55s ease-out both; }
  .tk-motion [data-anim].in-view li:not(:last-child)::after { animation: tk-draw .6s ease-out both; }
  .tk-motion [data-anim].in-view li:nth-child(2) { animation-delay: .3s; }
  .tk-motion [data-anim].in-view li:nth-child(3) { animation-delay: .6s; }
  .tk-motion [data-anim].in-view li:nth-child(1)::after { animation-delay: .35s; }
  .tk-motion [data-anim].in-view li:nth-child(2)::after { animation-delay: .65s; }

  .chain-dot { animation: tk-travel-x 2.6s ease-in-out infinite; }
  .chain-link:nth-child(4) .chain-dot { animation-delay: 1.3s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .chain-dot { animation-name: tk-travel-y; }
}

/* ---- interaction motion: every control answers the pointer the same way, with the same three speeds and one easing.
   Fast for colour (hover), a little slower for movement, slowest for things that open. Nothing here runs by itself. ---- */
:root { --dur-1: 120ms; --dur-2: 200ms; --dur-3: 300ms; --ease: cubic-bezier(.2, .8, .2, 1); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px; border: solid var(--muted);
  border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.faq details[open] > summary::after { transform: translateY(2px) rotate(-135deg); border-color: var(--accent); }
.faq summary:hover { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  button, .btn { transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
  .searchbar { transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
  .ask .opts label { transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
  .examples a, .tk-link, .tk-group-btn, .tk-drop a, .faq summary { transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }

  /* cards that are links lift a little and point their action forward; a press settles them back */
  a.tool, a.who-card, a.hub-card { transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
  a.tool:hover, a.who-card:hover, a.hub-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--fg) 45%, transparent); }
  a.tool:active, a.who-card:active, a.hub-card:active { transform: none; box-shadow: none; transition-duration: var(--dur-1); }
  a.who-card em, a.hub-card em { display: inline-block; width: max-content; transition: transform var(--dur-2) var(--ease); }
  a.who-card:hover em, a.hub-card:hover em { transform: translateX(4px); }
  a.who-card .ic, a.hub-card .ic { transition: transform var(--dur-3) var(--ease); }
  a.who-card:hover .ic, a.hub-card:hover .ic { transform: scale(1.08); }

  /* the menus drop in instead of appearing (desktop bar only; the phone menu lists every item) */
  @media (min-width: 1101px) {
    .tk-group-btn::after { transition: transform var(--dur-2) var(--ease); }
    .tk-group:hover > .tk-group-btn::after, .tk-group:focus-within > .tk-group-btn::after, .tk-group.open > .tk-group-btn::after {
      transform: translateY(1px) rotate(-135deg); }
    .tk-group:hover > .tk-drop, .tk-group:focus-within > .tk-drop, .tk-group.open > .tk-drop {
      animation: tk-drop var(--dur-2) var(--ease) both; }
  }

  /* an answer opens downwards from its question; the chevron turns with it */
  .faq summary::after { transition: transform var(--dur-3) var(--ease), border-color var(--dur-1) var(--ease); }
  .faq details[open] > p { animation: tk-open var(--dur-3) var(--ease) both; }
  details.help[open] > p, details.glossary[open] > dl, details.more[open] > :not(summary) { animation: tk-open var(--dur-3) var(--ease) both; }

  /* the chosen look-up kind: the new box slides in so it is clear what changed */
  #ask-site:checked ~ .pane-site, #ask-seller:checked ~ .pane-seller { animation: tk-open var(--dur-3) var(--ease) both; }

  .demo-head .demo-replay { transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
}
@keyframes tk-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes tk-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
