/* ============================================================================
   theme-factory kit — base.css (CONTRACT lane)
   1. token defaults in :where(:root) — zero specificity, any skin.css :root wins
   2. reset + document defaults
   3. layout primitives  (.tf-container .tf-section .tf-grid .tf-stack .tf-cluster)
   4. the 7 slot defaults in :where() so a mapped template class always wins
   5. shared primitives  (.tf-card .tf-figure .tf-rule .tf-badge .tf-price .tf-prose)
   6. kit chrome structure (.tf-header .tf-nav .tf-footer .tf-float) — motifs.css varies them
   7. a11y: skip link, focus-visible, reduced motion, sr-only
   RULE: no hex, no font literal outside section 1. Everything else = var(--tf-*).
   ========================================================================== */

/* 1. Token defaults ------------------------------------------------------- */
:where(:root) {
  --tf-bg: #f6f5f1; --tf-surface: #fdfcfa; --tf-surface-2: #eeece6;
  --tf-ink: #1c1b19; --tf-ink-muted: #625f59; --tf-line: #dcd8cf;
  --tf-accent: #2f4f4f; --tf-accent-ink: #f6f5f1; --tf-accent-text: #29453f; --tf-accent-2: #b8935a;
  --tf-dark-bg: #1f1e1b; --tf-dark-ink: #f1efe9; --tf-dark-muted: #a9a59b;
  --tf-price: #1c1b19; --tf-sale: #b3261e; --tf-promo: #2f4f4f; --tf-badge-ink: #f6f5f1;
  --tf-font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tf-font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tf-font-label: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tf-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tf-step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --tf-step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --tf-step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --tf-step-2: clamp(1.44rem, 1.25rem + 0.95vw, 1.8rem);
  --tf-step-3: clamp(1.8rem, 1.45rem + 1.75vw, 2.5rem);
  --tf-step-4: clamp(2.3rem, 1.7rem + 3vw, 3.6rem);
  --tf-step-5: clamp(2.9rem, 1.9rem + 5vw, 5.2rem);
  --tf-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  --tf-measure: 65ch;
  --tf-display-weight: 600; --tf-display-case: none; --tf-display-tracking: -0.02em; --tf-display-leading: 1.08;
  --tf-label-case: uppercase; --tf-label-tracking: 0.12em; --tf-label-size: 0.75rem;
  --tf-radius: 6px; --tf-radius-lg: 12px; --tf-btn-radius: 6px; --tf-card-radius: 12px; --tf-img-radius: 8px;
  --tf-card-border: 1px solid var(--tf-line); --tf-card-shadow: none; --tf-rule: 1px solid var(--tf-line);
  --tf-container: 72rem; --tf-container-wide: 90rem; --tf-gutter: clamp(1rem, 4vw, 2.5rem);
  --tf-space-1: 0.25rem; --tf-space-2: 0.5rem; --tf-space-3: 0.75rem; --tf-space-4: 1rem;
  --tf-space-5: 1.5rem; --tf-space-6: 2.5rem; --tf-space-7: 4rem; --tf-space-8: 6.5rem;
  --tf-section-y: clamp(3rem, 8vw, 6rem);
  --tf-ease: cubic-bezier(0.16, 1, 0.3, 1); --tf-dur: 240ms;
  --tf-grain: 0; --tf-img-filter: none;
  --tf-header-h: 4rem; --tf-focus: 2px solid var(--tf-accent);
}

/* 2. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
/* Element resets sit in :where() (0,0,0) so the zero-specificity slot defaults in §4 (same specificity, later
   in this file) and any kit/skin rule win by source order. A bare `button{}`/`a{}` (0,0,1) used to beat `:where(.tf-btn)`. */
:where(input, button, textarea, select) { font: inherit; color: inherit; }
:where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
:where(a) { color: inherit; }
:where(table) { border-collapse: collapse; width: 100%; }
:where(iframe) { border: 0; max-width: 100%; }
:where(.tf-grid > *, .tf-cluster > *, .tf-row > *) { min-width: 0; }
/* Global hidden guard: `[hidden]` must beat every kit `display:` rule (JS-off empty states, :target blocks). */
[hidden] { display: none !important; }

body {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--tf-bg); color: var(--tf-ink);
  font-family: var(--tf-font-body); font-size: var(--tf-step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* break-word, not anywhere: `anywhere` split brand names ("Flow/desk"), label glyphs ("[01" / "]") and TOC numerals
     wherever a column was narrow. break-word only breaks a word that cannot fit on a line of its own. */
  overflow-wrap: break-word;
}
.tf-main { flex: 1 0 auto; }
:where(.tf-chrome) { flex: 0 0 auto; }
/* Wrapped chrome whose source header is sticky/fixed: the wrapper must carry the sticky (a sticky child can only stick
   within the wrapper's own height). KitLayout adds `tf-chrome--sticky` from skin.json `chrome.sticky: true`. */
.tf-chrome--sticky { position: sticky; top: 0; z-index: 60; }
::selection { background: var(--tf-accent); color: var(--tf-accent-ink); }

/* 3. Layout primitives ---------------------------------------------------- */
.tf-container { width: 100%; max-width: var(--tf-container); margin-inline: auto; padding-inline: var(--tf-gutter); }
.tf-container--wide { max-width: var(--tf-container-wide); }
.tf-container--narrow { max-width: calc(var(--tf-measure) + 2 * var(--tf-gutter)); }
.tf-section { padding-block: var(--tf-section-y); position: relative; }
.tf-section--tight { padding-block: calc(var(--tf-section-y) * 0.5); }
.tf-section--surface { background: var(--tf-surface); }
.tf-section--surface-2 { background: var(--tf-surface-2); }
.tf-section--dark, .tf-dark {
  background: var(--tf-dark-bg); color: var(--tf-dark-ink);
  --tf-bg: var(--tf-dark-bg);
  --tf-ink: var(--tf-dark-ink); --tf-ink-muted: var(--tf-dark-muted);
  --tf-line: color-mix(in oklab, var(--tf-dark-ink) 18%, transparent);
  --tf-surface: color-mix(in oklab, var(--tf-dark-bg) 88%, var(--tf-dark-ink));
  --tf-surface-2: color-mix(in oklab, var(--tf-dark-bg) 80%, var(--tf-dark-ink));
  /* Dark context guarantees (CONTRACT §1: dark-ink/dark-muted are AA on dark-bg by definition; accent/accent-2 are not):
     - labels, links and other accent-as-text use --tf-dark-muted (never accent-2, which fails on one of the two grounds)
     - the kit primary button inverts (dark-ink fill, dark-bg text) so accent=ink skins keep a visible CTA.
       Mapped slot classes (chrome.css) still win by specificity — a skin that wants its brand fill on dark bands
       styles `.tf-section--dark .<its-button-class>` in chrome.css. */
  --tf-accent-text: var(--tf-dark-muted);
  --tf-accent: var(--tf-dark-ink); --tf-accent-ink: var(--tf-dark-bg);
  --tf-promo: var(--tf-dark-ink); --tf-badge-ink: var(--tf-dark-bg);
}
.tf-grid { display: grid; gap: var(--tf-gap, var(--tf-space-5)); grid-template-columns: repeat(auto-fill, minmax(min(var(--tf-col, 18rem), 100%), 1fr)); }
.tf-grid--2 { --tf-col: 22rem; } .tf-grid--3 { --tf-col: 18rem; } .tf-grid--4 { --tf-col: 13rem; }
.tf-stack > * + * { margin-block-start: var(--tf-gap, var(--tf-space-4)); }
.tf-cluster { display: flex; flex-wrap: wrap; gap: var(--tf-gap, var(--tf-space-3)); align-items: center; }
.tf-row { display: flex; gap: var(--tf-gap, var(--tf-space-4)); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tf-sidebar-layout { display: grid; gap: var(--tf-space-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .tf-sidebar-layout { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); } }

/* 4. Slot defaults (zero specificity: template slot classes win) ---------- */
:where(.tf-h1, .tf-h2, .tf-h3, .tf-display) {
  font-family: var(--tf-font-display); font-weight: var(--tf-display-weight);
  text-transform: var(--tf-display-case); letter-spacing: var(--tf-display-tracking); line-height: var(--tf-display-leading);
  text-wrap: balance;
}
:where(.tf-h1) { font-size: var(--tf-step-4); }
:where(.tf-h1--hero) { font-size: var(--tf-step-5); }
:where(.tf-h2) { font-size: var(--tf-step-3); }
:where(.tf-h3) { font-size: var(--tf-step-1); }
:where(.tf-lead) { font-size: var(--tf-lead); color: var(--tf-ink-muted); max-width: var(--tf-measure); line-height: 1.5; text-wrap: pretty; } /* 1.5 = the VN body floor (VG) */
:where(.tf-muted) { color: var(--tf-ink-muted); }
:where(.tf-label) {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--tf-font-label); font-size: var(--tf-label-size); font-weight: 500;
  text-transform: var(--tf-label-case); letter-spacing: var(--tf-label-tracking); line-height: 1.2;
  color: var(--tf-accent-text);
  /* a label never wraps (its motif glyphs `[01` … `]` inherit this) and never stretches in a grid parent */
  white-space: nowrap; justify-self: start; max-width: 100%;
}
:where(.tf-btn) {
  --_bg: var(--tf-accent); --_ink: var(--tf-accent-ink); --_bd: var(--tf-accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 2.75rem; padding: 0.7em 1.35em;
  background: var(--_bg); color: var(--_ink); border: 1px solid var(--_bd); border-radius: var(--tf-btn-radius);
  font-family: var(--tf-font-body); font-weight: 600; font-size: var(--tf-step-0); line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background var(--tf-dur) var(--tf-ease), color var(--tf-dur) var(--tf-ease), transform var(--tf-dur) var(--tf-ease), box-shadow var(--tf-dur) var(--tf-ease), border-color var(--tf-dur) var(--tf-ease);
}
:where(.tf-btn--ghost) { --_bg: transparent; --_ink: var(--tf-ink); --_bd: currentColor; }
:where(.tf-btn--sm) { min-height: 2.25rem; padding: 0.45em 0.95em; font-size: var(--tf-step--1); }
:where(.tf-btn--lg) { min-height: 3.25rem; padding: 0.9em 1.8em; font-size: var(--tf-step-1); }
:where(.tf-btn[disabled], .tf-btn[aria-disabled="true"]) { opacity: 0.55; pointer-events: none; }
:where(.tf-input) {
  display: block; width: 100%; min-height: 2.75rem; padding: 0.6em 0.9em;
  /* control boundary >= 3:1 (WCAG 1.4.11): --tf-line is a hairline (~1.3:1), so derive the border from ink instead;
     a skin can override with `--tf-control-line` (optional token, not one of the 63) */
  background: var(--tf-surface); color: var(--tf-ink); border: 1px solid var(--tf-control-line, color-mix(in oklab, var(--tf-ink) 52%, var(--tf-surface))); border-radius: var(--tf-radius);
  font-size: var(--tf-step-0); line-height: 1.4;
  transition: border-color var(--tf-dur) var(--tf-ease), box-shadow var(--tf-dur) var(--tf-ease);
}
:where(.tf-input):focus { outline: none; border-color: var(--tf-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tf-accent) 22%, transparent); }
:where(textarea.tf-input) { min-height: 8rem; resize: vertical; }
:where(.tf-field) { display: grid; gap: var(--tf-space-2); }
:where(.tf-field > label) { font-weight: 600; font-size: var(--tf-step--1); }
:where(.tf-field__hint) { font-size: var(--tf-step--1); color: var(--tf-ink-muted); }

/* 5. Shared primitives ---------------------------------------------------- */
.tf-card {
  position: relative; display: flex; flex-direction: column; gap: var(--tf-space-3);
  background: var(--tf-surface); color: var(--tf-ink);
  border: var(--tf-card-border); border-radius: var(--tf-card-radius); box-shadow: var(--tf-card-shadow);
  padding: var(--tf-space-5); overflow: hidden;
  transition: transform var(--tf-dur) var(--tf-ease), box-shadow var(--tf-dur) var(--tf-ease), border-color var(--tf-dur) var(--tf-ease);
}
.tf-card--flush { padding: 0; }
.tf-card__body { padding: var(--tf-space-5); display: flex; flex-direction: column; gap: var(--tf-space-3); }
.tf-card__media { margin: 0; }
.tf-card__media img { width: 100%; aspect-ratio: var(--tf-card-ratio, 3 / 2); object-fit: cover; }
.tf-card__title { font-family: var(--tf-font-display); font-size: var(--tf-step-1); line-height: 1.2; text-wrap: balance; text-transform: var(--tf-display-case); letter-spacing: var(--tf-display-tracking); }
.tf-card__title a { text-decoration: none; }
.tf-card__title a::after { content: ""; position: absolute; inset: 0; }
.tf-card__meta { font-size: var(--tf-step--1); color: var(--tf-ink-muted); display: flex; flex-wrap: wrap; gap: var(--tf-space-2) var(--tf-space-3); }

.tf-figure { margin: 0; display: grid; gap: var(--tf-space-2); }
.tf-figure img, .tf-img { border-radius: var(--tf-img-radius); filter: var(--tf-img-filter); width: 100%; object-fit: cover; }
.tf-figure figcaption { font-size: var(--tf-step--1); color: var(--tf-ink-muted); }

.tf-rule, .tf-prose hr { border: 0; border-top: var(--tf-rule); margin-block: var(--tf-space-5); }

.tf-badge {
  display: inline-block; padding: 0.25em 0.6em; border-radius: var(--tf-radius);
  background: var(--tf-promo); color: var(--tf-badge-ink);
  font-family: var(--tf-font-label); font-size: var(--tf-label-size); letter-spacing: var(--tf-label-tracking); text-transform: var(--tf-label-case); line-height: 1.3;
}
/* Sale badge: outlined in --tf-sale (which is AA as TEXT on bg by contract) — no single colour is both sale-text on bg
   and a badge FILL under --tf-badge-ink, so a filled sale badge cannot be guaranteed. */
.tf-badge--sale { background: transparent; color: var(--tf-sale); border: 1px solid currentColor; }
.tf-price { color: var(--tf-price); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } /* an amount never splits (`320.00` / `0₫` in a narrow cart column) */
.tf-price--sale { color: var(--tf-sale); }
.tf-price--was { color: var(--tf-ink-muted); text-decoration: line-through; font-weight: 400; }
.tf-avatar { width: 2.5rem; height: 2.5rem; border-radius: 999px; object-fit: cover; background: var(--tf-surface-2); }
.tf-avatar--lg { width: 4rem; height: 4rem; }
.tf-avatar--initials { display: inline-grid; place-items: center; font-weight: 600; font-size: var(--tf-step--1); color: var(--tf-accent-text); }

/* Chips (tags, pagination, numbered dots) follow `--tf-chip-radius` — optional token, defaults to the button radius so
   sharp-cornered brands never get 999px pills. A pill brand sets `--tf-chip-radius: 999px` in skin.css. */
.tf-tag { display: inline-block; padding: 0.2em 0.7em; border: 1px solid var(--tf-line); border-radius: var(--tf-chip-radius, var(--tf-btn-radius)); font-size: var(--tf-step--1); text-decoration: none; color: var(--tf-ink-muted); }
.tf-tag:hover, .tf-tag[aria-current] { border-color: var(--tf-accent); color: var(--tf-accent-text); }

.tf-pagination { display: flex; flex-wrap: wrap; gap: var(--tf-space-2); align-items: center; justify-content: center; }
.tf-pagination a, .tf-pagination span { min-width: 2.5rem; min-height: 2.5rem; display: inline-grid; place-items: center; padding-inline: 0.75em; border-radius: var(--tf-chip-radius, var(--tf-btn-radius)); text-decoration: none; border: 1px solid transparent; }
.tf-pagination [aria-current] { background: var(--tf-accent); color: var(--tf-accent-ink); }
.tf-pagination a:hover { border-color: var(--tf-line); }

.tf-breadcrumb { display: flex; flex-wrap: wrap; gap: var(--tf-space-2); font-size: var(--tf-step--1); color: var(--tf-ink-muted); }
.tf-breadcrumb a { text-decoration: none; }
.tf-breadcrumb li + li::before { content: "/"; margin-inline-end: var(--tf-space-2); opacity: 0.5; }

/* Long-form typography (BlogSingle + Legal). K5: measure 60–75ch, body 17–18px, lh 1.55–1.7 */
.tf-prose { max-width: var(--tf-measure); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem); line-height: 1.65; }
.tf-prose > * + * { margin-block-start: 1.25em; }
.tf-prose > h2, .tf-prose > h3, .tf-prose > h4 { font-family: var(--tf-font-display); font-weight: var(--tf-display-weight); line-height: 1.2; letter-spacing: var(--tf-display-tracking); text-transform: var(--tf-display-case); text-wrap: balance; }
.tf-prose > h2 { font-size: var(--tf-step-2); margin-block-start: 2em; }
.tf-prose > h3 { font-size: var(--tf-step-1); margin-block-start: 1.6em; }
.tf-prose > h4 { font-size: var(--tf-step-0); margin-block-start: 1.4em; }
.tf-prose > h2 + *, .tf-prose > h3 + * { margin-block-start: 0.6em; }
.tf-prose a { color: var(--tf-accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.tf-prose strong { font-weight: 650; }
.tf-prose ul, .tf-prose ol { padding-inline-start: 1.4em; }
.tf-prose li + li { margin-block-start: 0.35em; }
.tf-prose blockquote { border-inline-start: 3px solid var(--tf-accent); padding: var(--tf-space-3) var(--tf-space-5); font-family: var(--tf-font-display); font-size: var(--tf-step-1); line-height: 1.35; color: var(--tf-ink); background: var(--tf-surface); border-radius: 0 var(--tf-radius) var(--tf-radius) 0; }
.tf-prose blockquote p + p { margin-block-start: 0.5em; }
.tf-prose img { border-radius: var(--tf-img-radius); filter: var(--tf-img-filter); width: 100%; }
.tf-prose figure { margin: 0; }
.tf-prose figcaption { font-size: var(--tf-step--1); color: var(--tf-ink-muted); margin-block-start: var(--tf-space-2); }
.tf-prose table { font-size: var(--tf-step--1); display: block; overflow-x: auto; }
.tf-prose th, .tf-prose td { text-align: start; padding: 0.6em 0.8em; border-bottom: var(--tf-rule); vertical-align: top; }
.tf-prose th { font-family: var(--tf-font-label); font-size: var(--tf-label-size); letter-spacing: var(--tf-label-tracking); text-transform: var(--tf-label-case); color: var(--tf-ink-muted); }
.tf-prose code { font-family: var(--tf-font-mono); font-size: 0.9em; background: var(--tf-surface-2); padding: 0.1em 0.35em; border-radius: var(--tf-radius); }
.tf-prose pre { background: var(--tf-surface-2); padding: var(--tf-space-4); border-radius: var(--tf-radius); overflow-x: auto; }
.tf-prose pre code { background: none; padding: 0; }
.tf-prose > p:first-child { font-size: var(--tf-lead); line-height: 1.5; color: var(--tf-ink-muted); }

/* 6. Kit chrome structure (header/footer authored by the kit; motifs vary them) */
.tf-header { position: sticky; top: 0; z-index: 40; background: var(--tf-surface); color: var(--tf-ink); border-bottom: var(--tf-rule); }
.tf-header__utility { display: none; }
.tf-header__bar { min-height: var(--tf-header-h); display: flex; align-items: center; gap: var(--tf-space-5); }
.tf-header__brand { display: inline-flex; align-items: center; gap: var(--tf-space-2); font-family: var(--tf-font-display); font-weight: var(--tf-display-weight); letter-spacing: var(--tf-display-tracking); font-size: var(--tf-step-1); text-decoration: none; }
.tf-header__logo { width: 1.75rem; height: 1.75rem; }
.tf-header__cta { margin-inline-start: auto; }
.tf-nav { display: flex; gap: var(--tf-space-4); align-items: center; }
.tf-nav a { text-decoration: none; padding: 0.35em 0; font-size: var(--tf-step--1); font-weight: 500; color: var(--tf-ink-muted); border-bottom: 2px solid transparent; transition: color var(--tf-dur) var(--tf-ease), border-color var(--tf-dur) var(--tf-ease); }
.tf-nav a:hover, .tf-nav a[aria-current="page"] { color: var(--tf-ink); border-color: var(--tf-accent); }
.tf-menu__btn, .tf-menu__close { display: none; }
@media (max-width: 47.99rem) {
  .tf-header__cta { display: none; }
  .tf-menu__btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75em; margin-inline-start: auto; text-decoration: none; font-weight: 600; font-size: var(--tf-step--1); border: 1px solid var(--tf-line); border-radius: var(--tf-btn-radius); }
  .tf-nav { display: none; position: fixed; inset: 0; z-index: 60; flex-direction: column; align-items: stretch; gap: 0; padding: var(--tf-space-7) var(--tf-gutter); background: var(--tf-surface); }
  .tf-nav:target { display: flex; }
  .tf-nav a { font-size: var(--tf-step-2); font-family: var(--tf-font-display); color: var(--tf-ink); padding: var(--tf-space-3) 0; border-bottom: var(--tf-rule); }
  .tf-menu__close { display: grid; place-items: center; position: absolute; top: var(--tf-space-4); inset-inline-end: var(--tf-gutter); width: 2.75rem; height: 2.75rem; border: 1px solid var(--tf-line) !important; border-radius: var(--tf-chip-radius, var(--tf-btn-radius)); font-size: 1.5rem; padding: 0 !important; }
}

.tf-footer { background: var(--tf-surface); color: var(--tf-ink); border-top: var(--tf-rule); margin-block-start: auto; font-size: var(--tf-step--1); }
.tf-footer a { text-decoration: none; color: var(--tf-ink-muted); }
.tf-footer a:hover { color: var(--tf-ink); text-decoration: underline; }
.tf-footer__grid { display: grid; gap: var(--tf-space-6); padding-block: var(--tf-space-7); grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.tf-footer__brand { grid-column: 1 / -1; }
@media (min-width: 60rem) { .tf-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .tf-footer__brand { grid-column: auto; } }
.tf-footer__logo { font-family: var(--tf-font-display); font-weight: var(--tf-display-weight); font-size: var(--tf-step-1); color: var(--tf-ink) !important; }
.tf-footer__tagline { color: var(--tf-ink-muted); max-width: 32ch; margin-block-start: var(--tf-space-2); }
.tf-footer__giant { display: none; }
.tf-footer__col { display: grid; gap: var(--tf-space-2); align-content: start; }
.tf-footer__heading { font-family: var(--tf-font-label); font-size: var(--tf-label-size); letter-spacing: var(--tf-label-tracking); text-transform: var(--tf-label-case); color: var(--tf-ink); margin-block-end: var(--tf-space-2); }
.tf-footer__payments { display: none; }
.tf-footer__badges { display: flex; flex-wrap: wrap; gap: var(--tf-space-2); }
.tf-footer__badges li { border: 1px solid var(--tf-line); border-radius: var(--tf-radius); padding: 0.2em 0.6em; }
.tf-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--tf-space-3); justify-content: space-between; padding-block: var(--tf-space-4); border-top: var(--tf-rule); color: var(--tf-ink-muted); }
.tf-footer__legal { display: flex; gap: var(--tf-space-4); }

/* VN float widget (VG5) — rendered by KitLayout for vi skins; fixed bottom-right, every page */
.tf-float { position: fixed; inset-inline-end: var(--tf-space-4); inset-block-end: var(--tf-space-4); z-index: 50; display: grid; gap: var(--tf-space-2); }
.tf-float a { width: 3rem; height: 3rem; border-radius: 999px; display: grid; place-items: center; background: var(--tf-accent); color: var(--tf-accent-ink); text-decoration: none; font-family: var(--tf-font-label); font-size: var(--tf-label-size); box-shadow: 0 8px 24px color-mix(in oklab, var(--tf-ink) 18%, transparent); }
.tf-float a:hover { background: var(--tf-accent-2); }

/* Stub placeholder used by src/kit/kinds/* until a kit lane replaces the kind */
.tf-stub { border: 2px dashed var(--tf-line); border-radius: var(--tf-card-radius); padding: var(--tf-space-6); display: grid; gap: var(--tf-space-4); background: var(--tf-surface); }
.tf-stub pre { font-family: var(--tf-font-mono); font-size: var(--tf-step--1); background: var(--tf-surface-2); padding: var(--tf-space-4); border-radius: var(--tf-radius); overflow-x: auto; max-height: 24rem; }

/* 7. a11y ------------------------------------------------------------------ */
.tf-skip { position: absolute; inset-inline-start: var(--tf-space-4); top: -100%; z-index: 100; padding: 0.6em 1em; background: var(--tf-accent); color: var(--tf-accent-ink); border-radius: var(--tf-radius); text-decoration: none; }
.tf-skip:focus { top: var(--tf-space-4); }
.tf-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: var(--tf-focus); outline-offset: 3px; }
:where(.tf-btn, .tf-input):focus-visible { outline-offset: 2px; }
@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; }
}
