/* Shared component library for the seven tool sites.
   Vendored copy: edit in toolsites/_shared/src/css/kit.css and run `node _shared/sync.mjs`.
   Every colour, font and radius is a token; each site sets its own values in theme.css. */

:root {
  --c-bg: #f7f7f5;
  --c-surface: #ffffff;
  --c-surface-2: #f1f2f4;
  --c-field: #ffffff;
  --c-text: #1b1f24;
  --c-muted: #5b6470;
  --c-border: #dfe3e8;
  --c-border-strong: #b8c0cb;
  --c-primary: #2456d6;
  --c-primary-hover: #1b45b3;
  --c-on-primary: #ffffff;
  --c-primary-soft: #e8eefc;
  --c-accent: #2456d6;
  --c-on-accent: #ffffff;
  --c-link: var(--c-primary);
  --c-focus: #1a73e8;
  --c-success: #1a7f4b;
  --c-success-bg: #e5f5ec;
  --c-danger: #b3261e;
  --c-danger-bg: #fdecea;
  --c-warn: #8a5a00;
  --c-warn-bg: #fff4d6;
  --c-info: #1d5fa8;
  --c-info-bg: #e7f1fc;
  --c-ink: #1b1f24;
  --c-on-ink: #ffffff;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-num: var(--font-sans);

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 1px 3px rgb(16 24 40 / 0.08);
  --shadow-lg: 0 12px 32px rgb(16 24 40 / 0.14);
  --w-page: 72rem;
  --w-prose: 46rem;
  --gap: clamp(1rem, 2.5vw, 1.5rem);
  --h1-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --h1-weight: 750;
  --h1-tracking: -0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must win over component display rules such as .k-field { display: flex }. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { max-width: 100%; }
a { color: var(--c-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--c-text); text-wrap: balance; }
h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); letter-spacing: var(--h1-tracking); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol, table, pre, blockquote { margin: 0 0 1rem; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }
kbd { border: 1px solid var(--c-border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 0.35em; background: var(--c-surface); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }

.k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-muted { color: var(--c-muted); }
.k-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.k-skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 100; background: var(--c-ink); color: var(--c-on-ink); padding: 0.6rem 1rem; border-radius: var(--radius); }
.k-skip:focus { top: 0.5rem; }

/* ---------- Header ---------- */
.k-header { background: var(--c-header-bg, var(--c-surface)); color: var(--c-header-text, var(--c-text)); border-bottom: 1px solid var(--c-header-border, var(--c-border)); }
.k-header__inner { max-width: var(--w-page); margin: 0 auto; padding: 0.6rem var(--gap); display: flex; align-items: center; gap: 0.75rem 1.25rem; flex-wrap: wrap; }
.k-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; color: inherit; text-decoration: none; min-height: 2.75rem; }
.k-brand__mark { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--c-primary); color: var(--c-on-primary); font-size: 1rem; }
.k-brand__mark svg { width: 1.15rem; height: 1.15rem; }
/* The site's own mark (public/favicon.svg), shown inline next to the wordmark */
.k-brand__logo { display: inline-flex; flex: none; width: 2.1rem; height: 2.1rem; }
.k-brand__logo svg { display: block; width: 100%; height: 100%; }
.k-brand__name { white-space: nowrap; }
.k-nav { flex: 1 1 auto; min-width: 0; }
.k-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.k-nav a { display: block; padding: 0.5rem 0.7rem; border-radius: var(--radius); color: inherit; text-decoration: none; font-weight: 550; font-size: 0.97rem; white-space: nowrap; }
.k-nav a:hover { background: var(--c-nav-hover, var(--c-surface-2)); }
.k-nav a[aria-current] { color: var(--c-nav-current, var(--c-primary)); box-shadow: inset 0 -2px 0 currentColor; border-radius: var(--radius) var(--radius) 0 0; }
.k-header__actions { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.k-search-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.8rem; font: inherit; font-size: 0.95rem; color: var(--c-muted); background: var(--c-field); border: 1px solid var(--c-border-strong); border-radius: 999px; cursor: pointer; }
.k-search-btn:hover { border-color: var(--c-primary); color: var(--c-text); }
.k-search-btn kbd { font-size: 0.75rem; }
.k-icon-btn { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.5rem; font: inherit; font-size: 0.8rem; color: inherit; background: transparent; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; }
.k-icon-btn:hover { background: var(--c-nav-hover, var(--c-surface-2)); }
@media (max-width: 52rem) {
  .k-header__inner { padding-bottom: 0; }
  .k-nav { order: 3; flex-basis: 100%; margin: 0 calc(var(--gap) * -1); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .k-nav::-webkit-scrollbar { display: none; }
  .k-nav ul { padding: 0 var(--gap); }
  .k-nav a { padding: 0.55rem 0.6rem; font-size: 0.92rem; }
  .k-search-btn span, .k-search-btn kbd { display: none; }
  .k-search-btn { padding: 0; width: 2.75rem; justify-content: center; }
}

/* ---------- Search dialog ---------- */
.k-search { width: min(40rem, calc(100vw - 2rem)); max-height: min(34rem, 85vh); margin-top: 8vh; padding: 0; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-lg); overflow: hidden; }
.k-search[open] { display: flex; flex-direction: column; }
.k-search::backdrop { background: rgb(15 20 30 / 0.45); }
.k-search__box { display: flex; gap: 0.5rem; padding: 0.75rem; border-bottom: 1px solid var(--c-border); }
.k-search__box input { flex: 1; min-width: 0; min-height: 2.75rem; padding: 0 0.75rem; font: inherit; font-size: 1.05rem; color: var(--c-text); background: var(--c-field); border: 1px solid var(--c-border-strong); border-radius: var(--radius); }
.k-search__results { list-style: none; margin: 0; padding: 0.4rem; overflow-y: auto; }
.k-search__results a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem; border-radius: var(--radius); color: var(--c-text); text-decoration: none; }
.k-search__results a span:last-child { color: var(--c-muted); font-size: 0.85rem; white-space: nowrap; }
.k-search__results [aria-selected="true"] a, .k-search__results a:hover { background: var(--c-primary-soft); }
.k-search__empty { padding: 1rem; color: var(--c-muted); }
.k-search__hint { margin: 0; padding: 0.6rem 1rem; border-top: 1px solid var(--c-border); font-size: 0.9rem; }

/* ---------- Page shell ---------- */
.k-main { max-width: var(--w-page); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) var(--gap) 3rem; }
.k-page--tool, .k-page--guide, .k-page--plain { max-width: var(--w-prose); margin: 0 auto; }
.k-page--wide { max-width: none; }
.k-page__head { margin-bottom: 1rem; }
.k-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0 0 0.6rem; padding: 0; font-size: 0.875rem; color: var(--c-muted); }
.k-crumbs li + li::before { content: "›"; margin-right: 0.5rem; }
.k-crumbs a { color: inherit; }
.k-lede { font-size: 1.12rem; color: var(--c-muted); margin: 0 0 0.75rem; max-width: 40rem; }
.k-trust { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; margin: 0 0 0.25rem; font-size: 0.875rem; color: var(--c-muted); }
.k-trust span + span::before { content: "·"; margin-right: 0.5rem; }
.k-trust a { color: inherit; }

/* ---------- Prose ---------- */
/* Long unbreakable strings (snake_case samples, URLs, hashes) wrap instead of widening the page. */
.k-prose, .k-page__head, .k-faq, .k-sources { overflow-wrap: break-word; }
.k-prose code, .k-prose samp, .k-prose kbd, .k-faq code, .k-faq samp { overflow-wrap: anywhere; }
.k-prose > :first-child { margin-top: 0; }
.k-prose ul, .k-prose ol { padding-left: 1.3rem; }
.k-prose li { margin-bottom: 0.3rem; }
.k-prose table, .k-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; font-variant-numeric: tabular-nums; }
.k-prose th, .k-prose td, .k-table th, .k-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.k-prose thead th, .k-table thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); border-bottom: 2px solid var(--c-border-strong); }
.k-table td.k-num, .k-table th.k-num { text-align: right; }
.k-table-wrap { overflow-x: auto; margin: 0 0 1rem; }
/* A wide table written straight into the text scrolls sideways on a phone instead of widening the page. */
@media (max-width: 40rem) {
  .k-prose > table { display: block; max-width: 100%; overflow-x: auto; }
}
.k-table-wrap > table { margin: 0; }
.k-prose blockquote { margin-left: 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--c-primary); color: var(--c-muted); }
.k-prose pre { overflow-x: auto; padding: 0.9rem 1rem; background: var(--c-surface-2); border-radius: var(--radius); }
.k-formula { margin: 0 0 1rem; padding: 0.9rem 1.1rem; background: var(--c-surface-2); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.98rem; overflow-x: auto; }
.k-callout { margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); background: var(--c-info-bg); border-left: 4px solid var(--c-info); }
.k-callout--warn { background: var(--c-warn-bg); border-color: var(--c-warn); }
.k-callout--ok { background: var(--c-success-bg); border-color: var(--c-success); }
.k-callout > :last-child { margin-bottom: 0; }

/* ---------- Tool panel and form controls ---------- */
.tool { margin: 1rem 0 2rem; padding: clamp(1rem, 3vw, 1.6rem); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tool > :first-child { margin-top: 0; }
.tool > :last-child { margin-bottom: 0; }
.tool h2, .tool h3 { margin-top: 1.25rem; font-size: 1.1rem; }
.tool label { font-weight: 600; }
.tool input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
.tool select, .tool textarea, .k-input {
  max-width: 100%; min-height: 2.75rem; padding: 0.55rem 0.75rem;
  font: inherit; color: var(--c-text); background: var(--c-field);
  border: 1px solid var(--c-border-strong); border-radius: var(--radius);
}
.tool textarea { width: 100%; min-height: 7rem; line-height: 1.5; }
/* Tools that predate the kit: a label followed by a bare field inside a plain, class-less <div>.
   Rebuilt forms (.k-field and friends) are never matched. */
.tool div:not([class]) > label:not([class]):not(:has(input)) { display: block; margin: 0 0 0.3rem; }
.tool div:not([class]) > label:not([class]) + input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([style*="width"]),
.tool div:not([class]) > label:not([class]) + select:not([style*="width"]),
.tool div:not([class]) > label:not([class]) + br + input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([style*="width"]),
.tool div:not([class]) > label:not([class]) + br + select:not([style*="width"]) { width: min(100%, 22rem); }
.tool > div:not([class]) > div:not([class]), .tool > div:not([class]):not(:last-child) { margin-bottom: 0.75rem; }
.tool div:not([class]) > button + button { margin-left: 0.25rem; }

.tool input:focus-visible, .tool select:focus-visible, .tool textarea:focus-visible, .k-input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-primary); }
.tool input[type="checkbox"], .tool input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--c-primary); vertical-align: -0.15em; }
.tool input[type="range"] { accent-color: var(--c-primary); }
.tool button, .k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.55rem 1.1rem;
  font: inherit; font-weight: 650; color: var(--c-on-primary); background: var(--c-primary);
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; text-decoration: none;
}
.tool button:hover, .k-btn:hover { background: var(--c-primary-hover); }
.tool button:disabled, .k-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.k-btn--ghost, .tool button.k-btn--ghost, .tool button[type="reset"] { color: var(--c-text); background: transparent; border-color: var(--c-border-strong); }
.k-btn--ghost:hover, .tool button.k-btn--ghost:hover, .tool button[type="reset"]:hover { background: var(--c-surface-2); }
.k-btn--small { min-height: 2.25rem; padding: 0.3rem 0.75rem; font-size: 0.9rem; }
.tool table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tool td, .tool th { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--c-border); text-align: left; }
.tool [aria-live], .tool output { font-variant-numeric: tabular-nums; }

/* Structured form grid used by rebuilt tools */
.k-form { display: grid; gap: 0.9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.k-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.k-field > label, .k-field > .k-label { font-weight: 600; font-size: 0.95rem; }
.k-field > input, .k-field > select, .k-field > textarea { width: 100%; }
.k-field__hint { font-size: 0.85rem; color: var(--c-muted); }
.k-field--wide { grid-column: 1 / -1; }
.k-affix { display: flex; align-items: stretch; }
.k-affix > span { display: grid; place-items: center; padding: 0 0.7rem; background: var(--c-surface-2); border: 1px solid var(--c-border-strong); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.k-affix > span:first-child { border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.k-affix > span:last-child { border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.k-affix > input { flex: 1; min-width: 0; width: 100%; }
.k-affix > span:first-child + input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.k-affix > input:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.k-check { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 500; }
.k-check input { margin-top: 0.25em; flex: none; }
.k-segmented { display: inline-flex; padding: 3px; background: var(--c-surface-2); border-radius: calc(var(--radius) + 3px); }
.k-segmented label { position: relative; }
.k-segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.k-segmented span { display: block; padding: 0.4rem 0.9rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; color: var(--c-muted); }
.k-segmented input:checked + span { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow); }
.k-segmented input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 1px; }

/* Result block: the answer is the largest thing on the page */
.k-result { margin-top: 1.25rem; padding: 1rem 1.15rem; background: var(--c-result-bg, var(--c-primary-soft)); border-radius: var(--radius); }
.k-result__label { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--c-muted); }
.k-result__value { margin: 0; font-family: var(--font-num); font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem); font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--c-result-text, var(--c-text)); }
.k-result__note { margin: 0.35rem 0 0; color: var(--c-muted); }
.k-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.85rem; font-weight: 650; background: var(--c-surface-2); color: var(--c-text); }
.k-badge--ok { background: var(--c-success-bg); color: var(--c-success); }
.k-badge--bad { background: var(--c-danger-bg); color: var(--c-danger); }
.k-badge--warn { background: var(--c-warn-bg); color: var(--c-warn); }
.k-chip { display: inline-flex; align-items: center; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; background: var(--c-surface-2); color: var(--c-text); text-decoration: none; }
.k-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* Numbered steps ("Here's how we got it") */
.k-steps { list-style: none; counter-reset: step; margin: 0 0 1rem; padding: 0; }
.k-steps > li { counter-increment: step; position: relative; padding: 0.15rem 0 0.9rem 2.6rem; }
.k-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary); font-weight: 700; font-size: 0.9rem; }
.k-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 0.9rem; top: 2rem; bottom: 0.1rem; width: 2px; margin-left: -1px; background: var(--c-border); }
.k-steps mark { background: var(--c-mark, var(--c-warn-bg)); color: inherit; padding: 0 0.2em; border-radius: 3px; }

/* ---------- Cards, tiles, grids ---------- */
.k-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); list-style: none; margin: 0 0 1rem; padding: 0; }
.k-card { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 0.9rem 1rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.k-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow); }
.k-card__title { font-weight: 650; color: var(--c-link); }
.k-card__text { font-size: 0.9rem; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-tiles { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); list-style: none; margin: 0 0 1rem; padding: 0; }
.k-tile { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.15rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); color: var(--c-text); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.k-tile:hover { transform: translateY(-2px); border-color: var(--c-primary); box-shadow: var(--shadow); }
.k-tile__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 0.25rem; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 800; }
.k-tile__icon svg { width: 1.4rem; height: 1.4rem; }
.k-tile__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.k-tile__text { font-size: 0.93rem; color: var(--c-muted); }
.k-hero { padding: clamp(1rem, 4vw, 2.5rem) 0 1.5rem; }
.k-hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); max-width: 22ch; }
.k-hero .k-lede { font-size: 1.2rem; }
.k-hero__search { display: flex; align-items: center; gap: 0.6rem; width: min(100%, 32rem); min-height: 3.25rem; margin-top: 1rem; padding: 0 1rem; font: inherit; font-size: 1.05rem; color: var(--c-muted); background: var(--c-field); border: 1px solid var(--c-border-strong); border-radius: 999px; cursor: pointer; text-align: left; }
.k-hero__search:hover { border-color: var(--c-primary); }
/* Split hero: promise on the left, a real example of the product on the right */
.k-hero--split { display: grid; gap: 1.75rem clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .k-hero--split { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.k-hero__text, .k-hero__aside { min-width: 0; }
.k-hero-card { display: block; padding: 1.4rem 1.5rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--c-text); text-decoration: none; }
a.k-hero-card { transition: transform 0.15s, border-color 0.15s; }
a.k-hero-card:hover { transform: translateY(-2px); border-color: var(--c-primary); }
.k-hero-card__eyebrow { margin: 0 0 0.35rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.k-hero-card__value { margin: 0; font-family: var(--font-num); font-size: clamp(2.6rem, 2rem + 3vw, 4rem); font-weight: 780; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.k-hero-card__foot { margin: 1rem 0 0; font-size: 0.9rem; color: var(--c-muted); }
.k-hero-card__foot strong { color: var(--c-link); font-weight: 650; }
.k-trustline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; margin: 1rem 0 0; padding: 0; font-size: 0.92rem; color: var(--c-muted); }
.k-trustline li::before { content: "✓"; margin-right: 0.4rem; color: var(--c-success); font-weight: 700; }
.k-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.25rem 0 0.75rem; }
.k-section-head h2 { margin: 0; }
.k-related, .k-faq, .k-sources, .k-byline { margin-top: 2.5rem; }
.k-related__more { margin: 0; }
.k-faq details { border-bottom: 1px solid var(--c-border); }
.k-faq summary { padding: 0.8rem 0; font-weight: 650; cursor: pointer; list-style-position: outside; }
.k-faq details > div { padding: 0 0 0.9rem; color: var(--c-text); }
.k-faq details > div > :last-child { margin-bottom: 0; }
.k-sources ul { padding-left: 1.2rem; font-size: 0.95rem; }
.k-byline { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 1rem 1.15rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.k-byline p { margin: 0; font-size: 0.95rem; }
.k-byline__role { font-size: 0.8rem !important; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-muted); }
.k-byline__name { font-weight: 700; }
.k-sisters { margin-top: 3rem; padding: 1.5rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.k-sisters h2 { margin-top: 0; }
.k-sisters ul { display: grid; gap: 0.5rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.k-sisters a { display: flex; flex-direction: column; padding: 0.4rem 0; text-decoration: none; color: var(--c-text); }
.k-sisters a strong { color: var(--c-link); }
.k-sisters a span { font-size: 0.9rem; color: var(--c-muted); }

/* ---------- Footer ---------- */
.k-footer { margin-top: 2rem; background: var(--c-footer-bg, var(--c-surface)); color: var(--c-footer-text, var(--c-text)); border-top: 1px solid var(--c-border); }
.k-footer__inner { max-width: var(--w-page); margin: 0 auto; padding: 2.25rem var(--gap) 1.5rem; }
.k-footer__brand { margin-bottom: 1.75rem; }
.k-footer__brand .k-brand { display: inline-flex; padding: 0; min-height: 0; font-size: 1.15rem; }
.k-footer__brand .k-brand:hover { text-decoration: none; }
.k-footer__brand .k-brand__logo { width: 1.9rem; height: 1.9rem; }
.k-footer__brand p { margin: 0.5rem 0 0; max-width: 34rem; font-size: 0.93rem; color: var(--c-footer-muted, var(--c-muted)); }
.k-footer__cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.k-footer h2 { margin: 0 0 0.6rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-footer-muted, var(--c-muted)); }
.k-footer ul { list-style: none; margin: 0; padding: 0; }
.k-footer li { margin-bottom: 0.15rem; }
.k-footer a { display: inline-block; padding: 0.3rem 0; color: inherit; text-decoration: none; }
.k-footer a:hover { text-decoration: underline; }
.k-footer__sisters span { display: block; font-size: 0.82rem; color: var(--c-footer-muted, var(--c-muted)); margin-top: -0.2rem; }
.k-footer__legal { margin: 1.75rem 0 0; padding-top: 1rem; border-top: 1px solid var(--c-border); font-size: 0.875rem; color: var(--c-footer-muted, var(--c-muted)); }

/* ---------- Consent ---------- */
.k-consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; max-width: 44rem; margin: 0 auto; padding: 0.9rem 1.1rem; background: var(--c-ink); color: var(--c-on-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: 0.93rem; }
.k-consent[hidden] { display: none; }
@media (max-width: 36rem) {
  .k-consent { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.7rem 0.8rem; font-size: 0.85rem; gap: 0.5rem; }
  .k-consent p { flex-basis: 100%; }
  .k-consent__actions { width: 100%; }
  .k-consent__actions .k-btn { flex: 1; min-height: 2.5rem; padding: 0.3rem 0.6rem; }
}
.k-consent p { flex: 1 1 16rem; margin: 0; }
.k-consent a { color: inherit; }
.k-consent__actions { display: flex; gap: 0.5rem; }
.k-consent .k-btn--ghost { color: var(--c-on-ink); border-color: rgb(255 255 255 / 0.4); }
.k-consent .k-btn--ghost:hover { background: rgb(255 255 255 / 0.12); }

/* Reserved ad slot: fixed height so nothing shifts when an ad loads. Never placed between input and result. */
.k-ad { display: grid; place-items: center; min-height: 280px; margin: 2rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .k-header, .k-footer, .k-consent, .k-related, .k-search, .k-actions, .k-ad { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .tool, .k-card { box-shadow: none; }
  .k-main { padding: 0; max-width: none; }
}
