/* SVG Variants showcase. Editorial dark theme with a blue accent. No framework. */

/* Self-hosted fonts: no request to Google Fonts, so visitor IPs stay on svgvariants.com.
   woff2 files from the @fontsource npm packages (SIL OFL 1.1, see fonts/OFL.txt),
   latin subset only (same range Google Fonts served: French accents, œ, €, quotes).
   Inter variable and IBM Plex Mono 400. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens. Breakpoints: 599/600 (phone), 860/861 (header and heroes), 1059/1060 (wide grids), 1239/1240 (pixel collection, 3-column « What you get », home handoff). */
:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #171d24; --bg-2: #212a33; --surface: #20262d;            /* surface = --panel over --bg, opaque */
  --panel: rgba(255,255,255,.04); --panel-2: rgba(255,255,255,.08);
  --code-bg: #10151b;                                             /* code / file cards, dark on both themes (16.7:1 vs paper) */
  /* lines */
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.18);
  --line-strong: rgba(255,255,255,.40);                           /* form-field borders: 3.68:1 on a card, 3.78:1 on --bg */
  /* ink */
  --ink: #f6f5f1; --ink-2: #c8cdd2; --ink-3: #a7b0bb; --green: #10b981;
  /* accent (one blue family) */
  --accent: #365fb5; --accent-hover: #4771c7; --accent-strong: #345baa;   /* button 6.07 / hover 4.71 / CTA band (white 6.52) */
  --accent-ink: #b3c9fb;     /* THE light blue: .grad, .eyebrow, .link, .more, JSON keys, tree dirs (10.2:1 on --bg, 11.1 on --code-bg) */
  --accent-line: #94b4f2;    /* rules, bars, highlights, legal callout border (8.1:1 on --bg) */
  --accent-soft: rgba(70,113,199,.22);
  --num: #f2c97d;            /* JSON numbers, "Not on sale yet" chip (11.7:1 on code, 10.9 on --bg) */
  --focus: #94b4f2;
  /* paper (home light section) */
  --paper: #f6f4ee; --paper-card: #fff; --paper-ink: #18202a; --paper-ink-2: #4c5662; --paper-ink-3: #5d6773;  /* 6.78 / 5.23 */
  --paper-line: #bdc2c6; --paper-accent: #365fa8; --paper-focus: #315ba9; --paper-warn: #7a5200;           /* 5.68 / 5.97 / 6.29 */
  /* type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --fs-label: 12px; --fs-caption: 13px; --fs-small: 14px; --fs-body: 16px; --fs-lead: 18px;
  --fs-h3: 18px; --fs-h3-lg: clamp(22px, 2.2vw, 28px);
  --fs-h2: clamp(28px, 3.4vw, 40px); --fs-h1: clamp(38px, 5.4vw, 66px); --fs-display: clamp(42px, 5.8vw, 76px);
  /* space, radius, layout */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --section: clamp(48px, 7vw, 88px);
  --r-s: 8px; --r-m: 12px; --r-l: 18px;                          /* + 999px pills, 50% circles: nothing else */
  --gutter: 20px; --header-h: 68px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}
@media (max-width: 599px) { :root { --gutter: 16px; --header-h: 60px; --fs-lead: 17px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
/* One focus ring. Declared before the components so their own border-radius wins. */
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.home-paper { --focus: var(--paper-focus); color-scheme: light; }
.cta { --focus: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-2); padding: 8px 12px; border-radius: var(--r-s); }
.skip:focus { left: 8px; z-index: 50; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and mobile menu */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(23, 29, 36, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand .mark { width: 20px; height: 20px; display: inline-grid; place-items: center; }
.nav { display: flex; gap: 20px; }
.nav a, .mobile-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 40px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent-line); }
.bar-actions { margin-left: auto; display: flex; gap: 10px; }
.bar > .bar-cta { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; flex: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-m); color: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .bar { column-gap: 12px; }
  .nav, .bar-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .bar > .bar-cta { display: inline-flex; margin-left: auto; flex: none; white-space: nowrap; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .bar-cta + .menu-toggle { margin-left: 0; }
}
/* The two-word brand stays on one line: tighter gaps just above the menu breakpoint, a smaller brand on the narrowest phones. */
@media (min-width: 861px) and (max-width: 899px) { .bar { column-gap: 20px; } .nav { gap: 16px; } }
@media (max-width: 359px) { .bar { column-gap: 8px; } .brand { gap: 8px; font-size: 16px; } .bar > .bar-cta { padding: 0 10px; } }
.mobile-nav { display: grid; gap: 0; padding: 4px var(--gutter) 16px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 16px; }
.mobile-nav a:not(.btn):hover { color: var(--ink); }
.mobile-nav a[aria-current] { box-shadow: inset 3px 0 var(--accent-line); padding-left: 12px; color: var(--ink); }
.mobile-nav .btn { margin-top: 12px; min-height: 48px; }
.mobile-nav a.btn-primary { color: #fff; }
@media (min-width: 861px) { .mobile-nav { display: none; } }

/* Type */
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; line-height: 1.1; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 12px; }
p, li { text-wrap: pretty; }
.grad { color: var(--accent-ink); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-caption); }
.eyebrow { font: 400 var(--fs-label)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 var(--s-3); }
h1 .eyebrow { display: block; margin-bottom: var(--s-4); }
.home-paper .eyebrow, .home-use-label { color: var(--paper-accent); }
.cta .eyebrow { color: rgba(255, 255, 255, 0.85); margin-bottom: 10px; }
.link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.home-paper .link { color: var(--paper-accent); }
code { font-family: var(--mono); font-size: max(12px, .9em); background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }
/* Stand-alone link with an arrow ("Explore …", "Free or with a pack"). The arrow is out of flow so it is not underlined. */
.more { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding-right: 20px; font: 600 15px/1.4 var(--font); color: var(--accent-ink); text-decoration: underline 1px; text-underline-offset: 4px; }
.more::after { content: "→"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); transition: transform .15s ease; }
.more:hover::after { transform: translate(3px, -50%); }
.home-paper .more { color: var(--paper-accent); }

/* Buttons: primary, secondary, light */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-m); border: 1px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--panel-2); border-color: var(--accent-line); }
.btn-light { background: #fff; color: #14243f; }
.btn-light:hover { background: #e9eefb; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Hero (inner pages) */
.hero { display: grid; gap: 40px; align-items: center; padding: clamp(36px, 6vw, 72px) 0 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 861px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
  .hero:has(.pack-summary) { align-items: start; }
}
.hero.hero--text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.hero-art { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.hero-art > * { min-width: 0; align-self: start; }
.hero-art > p:last-child { margin-bottom: 0; } /* no trailing margin inside the grid (pricing note) */
@media (max-width: 599px) { .hero { gap: 24px; padding-top: 28px; } .hero + .section { padding-top: 32px; } } /* phones: the first section starts sooner */

/* Sections, section head, cards */
.section { padding: var(--section) 0 0; }
.section > p.muted { max-width: 72ch; } /* notes under a full-width table or grid keep a reading measure */
.section-head { margin-bottom: var(--s-6); }
.section-head h2 { margin: 0; }
.section-head p:not(.eyebrow) { margin: var(--s-3) 0 0; max-width: 62ch; color: var(--ink-2); font-size: 17px; }
.home-paper .section-head p:not(.eyebrow) { color: var(--paper-ink-2); }
.grid6 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 24px); }
a.card { color: inherit; text-decoration: none; transition: background-color .12s ease, border-color .12s ease; }
a.card:hover { border-color: var(--accent-line); background: var(--panel-2); }
.usecase { padding: 14px 14px 16px; display: grid; gap: 10px; }
.usecase h3 { margin: 6px 0 2px; font-size: 16px; }
.usecase p { margin: 0; font-size: 14px; color: var(--ink-2); }
.usecases-page .grid6 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.usecases-page .usecase { padding: 24px; align-content: start; }
@media (max-width: 599px) {
  .grid6.compact-list { gap: 0; }
  .grid6.compact-list > .card { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
}
.steps > li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; }
.step-n { display: block; font: 400 13px/1 var(--mono); letter-spacing: .04em; color: var(--accent-ink); margin-bottom: 12px; }
.checks { padding-left: 0; list-style: none; display: grid; gap: 12px; max-width: 72ch; }
/* Two-column lists flow down the left column then the right: no row holes beside a taller item. */
.checks.two-col { display: block; max-width: none; columns: 2 380px; column-gap: 32px; }
.checks.two-col > li { break-inside: avoid; margin: 0 0 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(16, 185, 129, 0.18); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 8px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Feature cards ("What you get"): a divided list on phones, cards from 600 px */
.fcards { list-style: none; margin: 0; padding: 0; display: grid; }
.fcard { padding: 12px 0; border-top: 1px solid var(--line); }
.fcard h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 16px; margin: 0 0 6px; }
.fcard p { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (min-width: 600px) {
  .fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; }
}
@media (min-width: 1240px) { .fcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* 2 columns beside the ZIP tree up to 1239 px */

/* Chips: traits, plan ("With a pack"), status ("Not on sale yet"), jump links */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; align-self: start; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 400 var(--fs-label)/1.3 var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink); white-space: nowrap; }
.chip > span { color: var(--ink-3); }
.chip-plan { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.chip-status { border-color: rgba(242, 201, 125, 0.45); color: var(--num); }
.chip-status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.home-paper .chip { border-color: var(--paper-line); background: var(--paper-card); color: var(--paper-ink); }
.home-paper .chip > span { color: var(--paper-ink-3); }
.home-paper .chip-plan { color: var(--paper-accent); }
.home-paper .chip-status { color: var(--paper-warn); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.jump .chip { min-height: 40px; padding: 0 14px; font-size: 13px; text-decoration: none; transition: border-color .12s ease; }
.jump .chip:hover { border-color: var(--accent-line); }

/* Availability line next to a paid claim */
.avail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.home-paper .avail { color: var(--paper-ink-2); }

/* Code, file and data cards: dark on every background */
.code-card, .file-tree, .rarity-card, .quote-card { margin: 0; min-width: 0; background: var(--code-bg); border: 1px solid var(--line-2); border-radius: var(--r-m); overflow: hidden; color: var(--ink-2); color-scheme: dark; }
.code-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 400 var(--fs-label)/1.4 var(--mono); color: var(--ink-3); }
.code-head span:first-child { color: var(--ink); }
.code { margin: 0; padding: 16px; font: 13px/1.6 var(--mono); color: var(--ink-3); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.code code { font: inherit; background: none; padding: 0; border-radius: 0; color: inherit; }
.j-k { color: var(--accent-ink); }
.j-s { color: var(--ink); }
.j-n { color: var(--num); }
.j-hl { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 1px 4px; margin: 0 -4px; box-shadow: inset 2px 0 0 var(--accent-line); }
.code-note { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--line); font: var(--fs-caption)/1.5 var(--font); color: var(--ink-2); }
.code-scroll { max-height: 360px; overflow: auto; border-top: 1px solid var(--line); }
.code-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 16px; border-top: 1px solid var(--line); font: var(--fs-caption) var(--mono); color: var(--accent-ink); cursor: pointer; list-style: none; }
.code-details summary::-webkit-details-marker { display: none; }
.code-details summary::after { content: "+"; color: var(--ink-3); }
.code-details[open] summary::after { content: "–"; }
.code-details summary:focus-visible, .code-scroll:focus-visible { outline-offset: -2px; }
@media (max-width: 420px) { .code { font-size: 12px; padding: 12px; } }

/* ZIP file tree (no box-drawing characters: the lines are borders) */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree { padding: 16px 24px 20px; font: 13px/1.5 var(--mono); color: var(--ink); }
.tree ul { margin: 2px 0 0 6px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.tree li { position: relative; padding: 4px 0; }
.tree ul > li::before { content: ""; position: absolute; left: -18px; top: 14px; width: 12px; border-top: 1px solid var(--line-2); }
.tree ul > li:last-child::after { content: ""; position: absolute; left: -19px; top: 15px; bottom: 0; border-left: 1px solid var(--code-bg); }
.tree-dir { color: var(--accent-ink); }
.tree-note { display: block; font: var(--fs-label)/1.4 var(--font); color: var(--ink-3); }
.tree .tree-on { color: var(--ink); margin-right: auto; padding-inline: 6px; margin-left: -6px; width: fit-content; border-radius: 4px; background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent-line); }
.tree .tree-on::before { left: -12px; }
.tree .tree-on:last-child::after { left: -13px; }
@media (max-width: 599px) { /* hero tree (features): notes inline, tighter rows, so the art stays short on phones */
  .hero .tree { padding: 12px 16px 14px; font-size: 12px; line-height: 1.5; }
  .hero .tree li { padding: 2px 0; }
  .hero .tree ul > li::before { top: 11px; }
  .hero .tree ul > li:last-child::after { top: 12px; }
  .hero .tree-note { display: inline; margin-left: 6px; }
}

/* Edition card (paper): one real engine output with its traits */
.edition { margin: 0; padding: 10px; background: var(--paper-card); border: 1px solid #e2e0da; border-radius: var(--r-m); display: grid; gap: 12px; max-width: 214px; } /* 192 px image: the 64 px grid at exactly 3× */
.edition img { border-radius: 6px; }
.edition figcaption { display: grid; gap: 8px; min-width: 0; }
.edition .chips { gap: 4px; }
.edition .chip { padding: 3px 8px; }
.ed-n { color: var(--ink); }
.edition .ed-n { font: var(--fs-caption)/1.3 var(--mono); color: var(--paper-ink); }
@media (max-width: 599px) { .edition { grid-template-columns: 128px minmax(0, 1fr); max-width: none; align-items: start; } }

/* Rarity card: the rows of rarity-stats.json */
.rarity { margin: 0; padding: 8px 16px 16px; display: grid; gap: 16px; }
.rarity-trait { min-width: 0; }
.rarity-trait dt { font: 400 var(--fs-label)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 8px 0 6px; }
.rarity dd { margin: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr) 92px; align-items: center; gap: 10px; min-height: 24px; font: var(--fs-caption)/1.3 var(--mono); }
.rarity-v { color: var(--ink); }
.rarity-n { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.rarity-bar { height: 6px; border-radius: 999px; background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, 0.08); }
.rarity-note { margin: 0; padding: 0 16px 12px; font: var(--fs-caption)/1.5 var(--font); color: var(--ink-3); }
@media (min-width: 600px) { .rarity { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); } }
@media (max-width: 599px) {
  .rarity { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .rarity dd { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
  .rarity-v { font: 13px/1.3 var(--font); }
  .rarity-v { grid-area: 1 / 1; }
  .rarity-n { grid-area: 1 / 2; font-size: 12px; }
  .rarity-bar { grid-area: 2 / 1 / 3 / -1; height: 3px; }
}
@media (max-width: 359px) { .rarity { grid-template-columns: minmax(0, 1fr); } }

/* Pixel art: native PNGs (64 × 69 px, one image pixel per grid pixel) scaled up without smoothing.
   crisp-edges first as the fallback, pixelated last so it wins wherever it is supported. */
.pixel-art img { width: 100%; height: auto; aspect-ratio: 64 / 69; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; image-rendering: pixelated; }
.px-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.px-grid figure { margin: 0; min-width: 0; }
.px-grid img { border-radius: 10px; background: var(--bg-2); }
.px-grid figcaption { display: grid; margin-top: 8px; font: var(--fs-label)/1.4 var(--mono); text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.ed-t { color: var(--ink-3); }
@media (max-width: 599px) { .ed-t { display: none; } }
@media (min-width: 600px) { .px-gallery { grid-template-columns: repeat(4, minmax(0, 256px)); } } /* at most 4× */
@media (min-width: 861px) { .px-strip { grid-template-columns: repeat(6, minmax(0, 192px)); column-gap: 9px; } } /* at most 3× */
.px-collection { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1240px) {
  .px-collection { grid-template-columns: 816px minmax(0, 1fr); }
  .px-collection .px-gallery { grid-template-columns: repeat(4, 192px); gap: 24px 16px; }
  .px-collection .rarity { grid-template-columns: minmax(0, 1fr); }
}
.px-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.px-compare figure { margin: 0; min-width: 0; }
.px-compare img { width: 100%; height: auto; aspect-ratio: 64 / 69; object-fit: cover; border-radius: 14px; background: var(--bg-2); }
.px-compare figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-2); color: var(--ink); font: var(--fs-label)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.px-compare figcaption span + span { color: var(--ink-3); }
.hero .px-compare { max-width: 526px; } /* 2 × 256 px + gap: the 64 px grid at exactly 4× */
@media (min-width: 861px) { .hero .px-compare { justify-self: end; width: 100%; } }
.hero .px-compare img { box-shadow: var(--shadow); }
.px-compare-sm { grid-template-columns: repeat(2, minmax(0, 128px)); gap: 10px; margin: 14px 0 4px; }
.px-compare-sm img { border-radius: var(--r-s); }
.px-compare-sm figcaption { margin-top: 6px; padding-top: 6px; }
.px-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.px-steps h3 { margin-bottom: 8px; }
.px-steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 600px) { .px-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .px-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .px-steps { gap: 12px; }
  .px-steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 16px; }
  .px-steps > li > * { grid-column: 2; }
  .px-steps .step-n { grid-column: 1; grid-row: 1 / span 2; margin: 0; line-height: 1.8; }
}
.px-templates { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.px-template { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.px-template h3 { margin: 0; }
.px-template p { margin: 0; color: var(--ink-2); font-size: 15px; }
.px-template .btn { margin-top: auto; align-self: flex-start; }
.px-size { font: var(--fs-label)/1 var(--mono); color: var(--ink-3); }
.px-swatches { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.px-swatches li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.px-swatches code { background: none; padding: 0; color: var(--ink-3); font-size: 12px; }
.px-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.px-cost { max-width: 72ch; color: var(--ink-2); padding: 18px 20px; margin: 0; }
.px-cost strong { color: var(--ink); }
.px-more { margin: 20px 0 0; max-width: 72ch; color: var(--ink-2); font-size: 15px; }

/* Handoff: what SVG Variants makes, the user's next step */
.handoff { display: grid; gap: 24px; padding: clamp(18px, 3vw, 32px); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-l); }
.handoff-lists { display: grid; gap: 20px; }
.handoff-label { margin: 0 0 10px; font: 400 var(--fs-label)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.handoff .checks { margin: 0; gap: 8px; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.next li { position: relative; padding-left: 24px; color: var(--ink-2); }
.next li::before { content: "→"; position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--ink-3); }
.handoff-note { margin: 0; font-size: var(--fs-small); color: var(--ink-3); }
.handoff-compact > p { margin: 0; color: var(--ink-2); }
.grid6 + .handoff { margin-top: var(--s-5); }
@media (min-width: 600px) { .handoff-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 861px) {
  .handoff { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
  .handoff .code-card { align-self: start; }
  .handoff-note { grid-column: 1 / -1; }
  .handoff-compact > p { align-self: center; } /* one short paragraph beside the taller excerpt card */
}
@media (min-width: 861px) and (max-width: 1239px) { /* home handoff: the two lists on one row, the excerpt card below */
  .handoff:not(.handoff-compact) { grid-template-columns: minmax(0, 1fr); }
  .handoff:not(.handoff-compact) .code-card { max-width: 560px; }
}
@media (min-width: 1240px) { .handoff:not(.handoff-compact) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } } /* wider lists, fewer wrapped items */
.checks.two-col > li:last-child { margin-bottom: 0; }

/* Plan strip, output cards, split */
/* Free-plan strip: the sentence flows inline (a flex row would break it after « Free plan: »); the link sits on its own line below it. */
.plan-strip { margin: var(--s-5) 0 0; padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: var(--r-m); font-size: var(--fs-small); color: var(--ink-2); }
.plan-strip strong { color: var(--ink); }
.plan-strip .more { display: flex; width: fit-content; margin: 6px 0 0; }
.outputs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .outputs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .outputs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.output { display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 24px); }
.output-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 8px; }
.output h3 { font-size: 16px; margin: 0; }
.output p { font-size: 14px; color: var(--ink-2); margin: 0; }
.output .chips { margin-top: auto; }
.split { display: grid; gap: 24px; }
.split > .checks { margin: 0; }
.outputs + .split { margin-top: var(--s-6); }
@media (min-width: 1060px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: start; } }

/* Home */
.home-hero { display: grid; gap: var(--s-6); padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
@media (min-width: 1060px) { .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-7); align-items: center; } }
.home-intro { min-width: 0; }
.home-intro h1 { font-size: var(--fs-display); line-height: 1.0; letter-spacing: -.035em; margin: 0 0 24px; }
.home-intro .lead { font-size: 16px; line-height: 1.7; max-width: 52ch; }
.home-intro .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.home-note { color: var(--ink-3); font-size: var(--fs-caption); max-width: 52ch; margin: 20px 0 0; }
.home-art { display: grid; grid-template-columns: minmax(0, 360px) auto; justify-content: start; gap: var(--s-5); align-items: center; min-width: 0; }
.home-original, .home-variants figure { margin: 0; min-width: 0; }
.home-original { max-width: 360px; }
.home-original img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.home-original figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line-2); font: var(--fs-label)/1.4 var(--mono); color: var(--ink-2); }
.home-original figcaption span:last-child { color: var(--ink-3); text-align: right; }
.home-variants { display: grid; grid-template-columns: repeat(2, 104px); gap: 16px 12px; }
.home-variants img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.home-variants figcaption { margin-top: 6px; font: var(--fs-label)/1.4 var(--mono); color: var(--ink-2); }
@media (max-width: 599px) {
  .home-hero { gap: var(--s-5); padding: 32px 0 40px; }
  .home-intro h1 { margin-bottom: 20px; }
  .home-intro .actions { margin-top: 24px; }
  .home-note { margin-top: 16px; }
  .home-original figcaption { margin-top: 12px; }
  .home-art { grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; gap: 20px; }
  .home-original { width: min(100%, 240px); }
  .home-variants { width: 100%; grid-template-columns: repeat(4, minmax(0, 72px)); justify-content: center; gap: 10px; }
  .home-variants figcaption { text-align: center; }
}
.home-paper { background: var(--paper); color: var(--paper-ink); }
.home-paper h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.03em; }
.home-applications { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 96px); }
.home-applications > h2 { max-width: 18ch; margin-bottom: 32px; }
.home-use-lead { display: grid; gap: var(--s-6); border-top: 1px solid var(--paper-line); padding-top: var(--s-6); }
@media (min-width: 1060px) { .home-use-lead { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); } }
.home-use-lead + .home-use-lead { margin-top: var(--s-7); }
.home-use-text { min-width: 0; }
.home-use-label { margin: 0 0 var(--s-3); font: 400 var(--fs-label)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.home-use-lead h3 { font-size: var(--fs-h3-lg); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 var(--s-3); }
.home-use-text > p:not(.home-use-label):not(.anatomy-note) { color: var(--paper-ink-2); font-size: 15px; line-height: 1.65; max-width: 52ch; }
.home-use-text .edition { margin: var(--s-5) 0 0; }
.home-use-lead > .code-card { align-self: start; max-width: 560px; }
@media (min-width: 1060px) { /* both rows end on the same right edge; the short print text sits beside the middle of its figure */
  .home-use-lead > .code-card { max-width: none; }
  .home-use-lead:has(.home-print-fig) { align-items: center; }
}
.anatomy-note { font: 14px/1.55 var(--font); color: var(--paper-ink-3); max-width: 48ch; margin: 12px 0 4px; }
.home-print-fig { margin: 0; min-width: 0; }
.home-print-fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.home-print-fig figcaption { margin-top: 10px; font-size: var(--fs-caption); color: var(--paper-ink-3); }
.home-how { border-top: 1px solid var(--paper-line); padding: clamp(56px, 6vw, 80px) 0 clamp(64px, 7vw, 96px); }
.home-how > h2 { margin-bottom: 34px; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.home-steps article { border-top: 1px solid var(--paper-line); padding: 16px 20px 0 0; }
.home-steps span { display: block; color: var(--paper-accent); font: 400 var(--fs-label)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.home-steps h3 { font-size: 22px; font-weight: 650; margin: 14px 0 8px; }
.home-steps p { color: var(--paper-ink-2); font-size: 14px; max-width: 37ch; }
@media (max-width: 599px) {
  .home-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-steps article { padding-top: 14px; }
}
.home-pixel-link { margin: 18px 0 0; }
.get { display: grid; gap: var(--s-5); }
@media (min-width: 1060px) { .get { grid-template-columns: 400px minmax(0, 1fr); align-items: start; } }

/* Use cases: hero mosaic of real outputs */
.mosaic { display: grid; gap: 12px; min-width: 0; }
.mosaic-px { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mosaic-px figure { margin: 0; min-width: 0; }
.mosaic-px img { border-radius: 10px; background: var(--bg-2); }
.mosaic figcaption { margin-top: 6px; font: var(--fs-label)/1.4 var(--mono); color: var(--ink-2); }
.mosaic-cap { margin: 0; font: var(--fs-label)/1.4 var(--mono); color: var(--ink-2); } /* same caption style as the figcaptions */
.mosaic-print { margin: 0; min-width: 0; }
.mosaic-print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); }
@media (max-width: 860px) { .mosaic-print { display: none; } } /* one-column hero: the editions alone keep the art short; the lazy mock-up is not loaded */
@media (min-width: 861px) { /* the text starts at the same height as on the other inner pages; a wider crop keeps the art close to the text height */
  .hero:has(.mosaic) { align-items: start; }
  .mosaic-print img { aspect-ratio: 16 / 9; }
}

/* Guide: contents column and diagram */
.guide-body { min-width: 0; max-width: 68ch; }
.guide-toc { display: none; }
.guide-toc-title { margin: 0 0 8px; font: 400 var(--fs-label)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.guide-toc ol { list-style: none; margin: 0; padding: 0; }
.guide-toc a { display: block; padding: 10px 0; line-height: 1.5; font-size: var(--fs-small); color: var(--ink-2); text-decoration: none; }
.guide-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1060px) {
  .guide-layout { display: grid; grid-template-columns: 220px minmax(0, 68ch); gap: 48px; align-items: start; }
  .guide-toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); padding-top: var(--s-7); }
}
:where(.guide-body) p { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.guide-body .section { padding-top: var(--s-7); }
.guide-body .section + .section { border-top: 1px solid var(--line); margin-top: var(--s-7); }
.diagram { display: grid; gap: 12px 16px; margin: var(--s-5) 0; }
.diagram-arrow { display: none; font: 400 20px/1 var(--mono); color: var(--ink-3); }
.diagram-note { grid-column: 1 / -1; margin: 0; font-size: var(--fs-small); color: var(--ink-3); }
@media (min-width: 861px) {
  .diagram { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; } /* both cards the same height */
  .diagram-arrow { display: block; align-self: center; }
}

/* Pricing */
.quote { margin: 0; padding: 4px 16px; }
.quote > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font: var(--fs-caption)/1.4 var(--mono); }
.quote > div:first-child { border-top: 0; }
.quote dt { color: var(--ink-3); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; }
.quote dd { margin: 0; color: var(--ink); text-align: right; }
.quote > .quote-total { border-top: 1px solid var(--line-strong); }
.quote-total dd { font-size: 18px; }
@media (max-width: 599px) { /* pricing hero: shorter art on phones. The Output row repeats the caption, the note repeats « How it is charged ». */
  .quote-card .quote > div { padding: 7px 0; }
  .quote-card .quote > div:first-child, .quote-card .code-note { display: none; }
  .quote-card .quote > div:nth-child(2) { border-top: 0; }
}
.pack-summary { display: grid; gap: 14px; justify-items: start; }
.pack-summary h2 { font-size: var(--fs-h3); margin: 0; }
.pack-summary .quote { padding: 0; justify-self: stretch; }
.pack-summary p, .pack-summary .coins { margin: 0; }
.packs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 20px 0; }
.pack-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 8px; }
.pack h3 { font-size: 15px; font-weight: 600; margin: 0; }
.pack .price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 0; }
.pack .credits { font-family: var(--mono); color: var(--ink-2); margin: 0 0 4px; font-size: 14px; }
.pack-eq { font-size: var(--fs-small); color: var(--ink-3); margin: 6px 0 0; }
.coins { margin: 12px 0; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 20px 0; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.plan h3 { margin: 0; font-size: 22px; }
.plan .plan-sub { margin: -8px 0 0; color: var(--ink-3); font-size: 14px; }
.plan .checks { margin: 0; gap: 10px; font-size: 15px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.costs { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); } /* no overflow: hidden, it would clip the caption */
.costs thead th:first-child { border-top-left-radius: 11px; }
.costs thead th:last-child { border-top-right-radius: 11px; }
.costs caption { caption-side: bottom; text-align: left; color: var(--ink-3); font-size: 13px; padding: 8px 0 0; }
.costs th, .costs td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.costs thead th { border-top: 0; background: var(--panel-2); font-weight: 600; font-size: 13px; }
.costs td { font-family: var(--mono); }
.costs th span { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.costs .group th { padding: 10px 14px; background: var(--panel-2); font: 400 var(--fs-label)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.costs .na { color: var(--ink-3); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 4px; font-weight: 600; font-size: 17px; list-style: none; cursor: pointer; border-radius: var(--r-s); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; font: 400 16px/1 var(--mono); color: var(--ink-2); transition: border-color .12s ease; } /* the mono 400 file, already loaded */
.faq summary:hover::after { border-color: var(--accent-line); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); max-width: 68ch; margin: 0; padding: 0 4px 16px; }
.faq .code-card { margin: 0 0 16px; max-width: 560px; }
.section.faq-group { padding-top: var(--s-6); }
.faq-group-title { font-size: 24px; margin: 0 0 8px; }

/* CTA band */
.cta { margin-top: var(--section); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); background: var(--accent-strong); display: grid; gap: 18px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 861px) { .cta { grid-template-columns: minmax(0, 1.4fr) auto; } }
.cta h2 { margin-bottom: 6px; max-width: 24ch; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.cta .right { display: grid; gap: 8px; justify-items: start; }
@media (min-width: 861px) { .cta .right { justify-items: end; text-align: right; } }
.cta-note { margin: 0; font: var(--fs-label)/1.4 var(--mono); color: rgba(255, 255, 255, 0.85); }

/* Form */
.access { max-width: 580px; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 12px 14px; width: 100%; min-height: 48px; }
.field [aria-invalid="true"] { border-color: #fda4af; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-size: 14px; min-height: 1.4em; }
.form-status:empty { margin: 0; min-height: 0; } /* the live region stays in the DOM; no blank band under the button */
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fda4af; }
.access-note { max-width: 580px; margin: 12px 0 0; }

/* 404: link cards */
.link-cards { display: grid; gap: 12px; margin-top: var(--s-5); }
@media (min-width: 600px) { .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-card { display: grid; align-content: start; gap: 4px; min-height: 64px; text-decoration: none; }
.link-card span { font-size: var(--fs-small); color: var(--ink-2); }

/* Legal pages (terms, refunds, privacy, legal notice): long-form reading */
.legal-doc { max-width: 72ch; padding: 4px 0 8px; color: var(--ink-2); line-height: 1.7; overflow-wrap: break-word; }
.legal-doc .legal-updated { display: inline-block; margin: 0 0 22px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink-3); font: 12px/1.5 var(--mono); }
.legal-updated span { white-space: nowrap; }
.legal-doc h2 { margin: 52px 0 14px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.legal-doc h3 { margin: 30px 0 8px; color: var(--ink); font-size: 17px; line-height: 1.3; }
.legal-doc h2 + h3 { margin-top: 20px; }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { padding-left: 1.35em; }
.legal-doc li { margin: 0 0 8px; padding-left: 4px; }
.legal-doc li::marker { color: var(--ink-3); }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--ink); }
.legal-toc { margin: 4px 0 24px; padding: 18px 22px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); }
.legal-toc .legal-toc-title { margin: 0 0 10px; color: var(--ink); font-weight: 600; }
.legal-toc ol { columns: 2 15rem; column-gap: 40px; margin: 0; padding-left: 1.7em; }
.legal-toc li { break-inside: avoid; margin: 0 0 6px; }
.legal-toc li::marker { font: 12px var(--mono); }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal-callout { padding: 14px 18px; background: var(--panel); border-left: 3px solid var(--accent-line); border-radius: 0 var(--r-m) var(--r-m) 0; }
.legal-form { margin: 18px 0 14px; padding: 20px 22px 10px; background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--r-l); }
.legal-form ul { list-style: none; padding: 0; }
.legal-form li { margin: 0; padding: 12px 0 6px; border-bottom: 1px dashed var(--line-2); }
/* Wide tables scroll sideways; the shadows show there is more on either side. */
.table-scroll { container-type: inline-size; margin: 18px 0 24px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-m);
  background:
    linear-gradient(to right, var(--surface) 30%, rgba(32, 38, 45, 0)) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, rgba(32, 38, 45, 0)) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.45), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.45), transparent) right / 12px 100% no-repeat scroll,
    var(--surface); }
.legal-doc .table-hint { display: none; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.legal-doc table.wide { min-width: 40rem; }
.legal-doc caption { position: sticky; left: 0; max-width: 100cqi; padding: 12px 14px; text-align: left; color: var(--ink-3); font-size: 13px; } /* stays readable while a wide table scrolls */
.legal-doc th, .legal-doc td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.legal-doc th + th, .legal-doc td + td { border-left: 1px solid var(--line); }
.legal-doc thead th { background: var(--panel-2); color: var(--ink); font-weight: 600; font-size: 13px; }
@media (max-width: 599px) {
  .legal-doc { font-size: 15px; }
  .legal-doc h2 { margin-top: 40px; padding-top: 22px; }
  .legal-toc, .legal-form { padding-inline: 18px; }
  .legal-toc li { margin: 0; }
  .legal-toc a { display: block; padding: 9px 0; }
  .legal-related li { margin: 0; }
  .legal-related a { display: block; padding: 9px 0; } /* stand-alone links: 40 px+ tap targets, like the contents list */
  .legal-doc .table-hint { display: block; margin: 0 0 -10px; font: var(--fs-label)/1.4 var(--mono); color: var(--ink-3); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--section); padding: 32px 0 40px; }
.foot { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 40px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--ink); }
.brand-foot { font-weight: 700; margin-bottom: 4px; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0; }
.foot .foot-legal nav { gap: 0 18px; }
.foot .foot-legal nav a { color: var(--ink-3); font-size: 13px; }
.foot .foot-legal nav a:hover { color: var(--ink); }
@media (min-width: 861px) { .foot { grid-template-columns: 1.2fr 1fr; } .foot-legal { grid-column: 1 / -1; } }
