/* GDPRStack visual system.
   1. Fonts   2. Tokens (light + dark)   3. Base   4. Layout   5. Components   6. Pages   7. Motion
   Palette: ink-slate neutrals with one deep teal accent. Every text/background pair below is at least WCAG AA
   (4.5:1; 3:1 for borders of controls and focus rings). No third-party requests: the font is self-hosted. */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/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;
}
/* Metric-matched fallback so the swap to Inter does not shift the layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.6%;
  ascent-override: 90.5%;
  descent-override: 22.6%;
  line-gap-override: 0%;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* colour: light */
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --surface: #ffffff;
  --fg: #12202b;
  --muted: #4a5a67;
  --line: #dbe2e7;
  --line-strong: #b9c5ce;
  --control: #64727e;
  --accent: #0b6477;
  --accent-strong: #0a5565;
  --accent-fg: #ffffff;
  --accent-soft: #e3f1f4;
  --accent-line: #a9d3dc;
  --info-bg: #eef2f6;
  --info-line: #c3cfda;
  --focus: #b45309;
  --danger-line: #b45309;
  --hero-glow: rgba(11, 100, 119, .10);
  --scroll-shadow: rgba(18, 32, 43, .22);

  /* type */
  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --text-xs: .8125rem;
  --text-sm: .9375rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
  --text-hero: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --leading: 1.6;
  --leading-tight: 1.15;

  /* spacing (4px base) */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  /* shape */
  --radius-sm: .375rem;
  --radius: .625rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(18, 32, 43, .06);
  --shadow-md: 0 1px 2px rgba(18, 32, 43, .05), 0 8px 24px -8px rgba(18, 32, 43, .14);

  /* layout */
  --w-page: 72rem;
  --w-prose: 50rem;
  --header-h: 4rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1419;
    --bg-soft: #111b21;
    --surface: #152028;
    --fg: #e5edf1;
    --muted: #9fb0bc;
    --line: #25333c;
    --line-strong: #3a4c58;
    --control: #7d8f9c;
    --accent: #4cc2d9;
    --accent-strong: #7fd6e6;
    --accent-fg: #04181d;
    --accent-soft: #12262e;
    --accent-line: #24505d;
    --info-bg: #17232d;
    --info-line: #34485a;
    --focus: #f59e0b;
    --danger-line: #f59e0b;
    --hero-glow: rgba(76, 194, 217, .10);
    --scroll-shadow: rgba(0, 0, 0, .6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 28px -10px rgba(0, 0, 0, .6);
  }
}

/* ---------- 3. Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-family: var(--font-sans); font-size: 100%; line-height: var(--leading); scroll-padding-top: var(--s-4); }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: var(--text-base); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { line-height: var(--leading-tight); letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--text-xl); margin: 0 0 var(--s-4); letter-spacing: -.03em; }
h2 { font-size: var(--text-lg); margin: var(--s-7) 0 var(--s-3); scroll-margin-top: var(--s-4); }
h3 { font-size: var(--text-md); }
p { margin: 0 0 var(--s-4); }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-soft); color: var(--fg); }
.muted { color: var(--muted); }
.lead { font-size: var(--text-md); color: var(--fg); line-height: 1.55; }
code, pre { font-family: var(--font-mono); font-size: .875em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--fg); padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0; box-shadow: var(--shadow-md); }
.skip:focus { left: 0; z-index: 20; }

/* ---------- 4. Layout ---------- */
.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--s-4); }
main { max-width: var(--w-page); margin: 0 auto; padding: var(--s-4) var(--s-4) var(--s-8); overflow-wrap: break-word; }
main:focus { outline: none; }
main a { overflow-wrap: anywhere; }
td { overflow-wrap: break-word; }
.glance td { overflow-wrap: anywhere; }
article > p, article > ul, article > ol, article > dl { max-width: 70ch; }
body[data-content-group="static"] main,
body[data-content-group="vendor"] main,
body[data-content-group="template"] main { max-width: var(--w-prose); }
body[data-content-group="template"] main { max-width: 56rem; }
article > h2 { margin-top: var(--s-7); }
/* long-form pages (everything except the wide, tool-like ones) get a quiet divider above each section */
body[data-content-group="vendor"] article > h2,
body[data-content-group="static"] article > h2,
body[data-content-group="template"] article > h2 { padding-top: var(--s-5); border-top: 1px solid var(--line); }
body[data-content-group="vendor"] article > h2#at-a-glance { border-top: 0; padding-top: 0; margin-top: var(--s-5); }

/* header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand-mark { flex: none; }
.bm-bg { fill: var(--accent); }
.bm-fg { fill: var(--accent-fg); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; border-radius: var(--radius-sm); color: var(--muted); font-size: var(--text-sm); font-weight: 500; text-decoration: none; position: relative; }
.site-header nav a:hover { color: var(--fg); background: var(--bg-soft); }
.site-header nav a[aria-current] { color: var(--fg); font-weight: 600; }
.site-header nav a[aria-current]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-1); list-style: none; margin: 0; padding: 0; }
@media (max-width: 40rem) {
  .header-inner { padding-bottom: var(--s-1); }
  .site-header nav { margin: 0 -.7rem; }
}

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.footer-inner { display: grid; gap: var(--s-5) var(--s-7); padding-top: var(--s-6); padding-bottom: var(--s-6); }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.footer-notes p { max-width: 62ch; margin: 0 0 var(--s-2); }
.footer-notes .footer-brand { color: var(--fg); font-weight: 700; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
@media (min-width: 48rem) { .footer-nav ul { flex-direction: column; } }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 var(--s-2); font-size: var(--text-sm); color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 .5rem; color: var(--line-strong); }
.breadcrumb [aria-current] { color: var(--fg); }

/* ---------- 5. Components ---------- */
/* buttons: primary (.btn), secondary (.btn-secondary), ghost (.btn-ghost, .link-button) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; font: inherit; font-weight: 600; font-size: var(--text-sm); padding: .6rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-fg); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--line-strong); box-shadow: none; }
.btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--accent); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.btn-lg { min-height: 48px; padding: .7rem 1.4rem; font-size: var(--text-base); }
.btn:disabled, .btn[disabled] { cursor: not-allowed; opacity: 1; background: var(--bg-soft); border-color: var(--line); color: var(--muted); box-shadow: none; }
.link-button { min-height: 44px; font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.button-row, .dialog-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0; }

/* chips: links get a 44px hit area and a slimmer visible pill */
.chips { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); list-style: none; margin: 0; padding: 0; }
a.chip { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .95rem; font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--fg); }
a.chip::before { content: ""; position: absolute; inset: 5px 0; z-index: -1; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); transition: background-color .15s, border-color .15s; }
a.chip:hover { color: var(--accent-strong); }
a.chip:hover::before { background: var(--accent-soft); border-color: var(--accent); }
span.chip { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: .75rem; background: var(--bg-soft); border: 1px solid var(--line); font-size: var(--text-xs); color: var(--muted); font-weight: 500; }
.chips-inline { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: var(--s-3); list-style: none; margin: var(--s-4) 0; padding: 0; max-width: none; }
.vendor-card { position: relative; display: flex; flex-direction: column; gap: var(--s-2); min-height: 7rem; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.vendor-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.vendor-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.vendor-card a:focus-visible { outline: none; }
.vendor-card p { margin: 0; }
.card-title { font-weight: 650; font-size: var(--text-md); letter-spacing: -.01em; }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.vendor-card:hover .card-title a { color: var(--accent-strong); }
.vendor-card .chips-inline { margin-top: auto; padding-top: var(--s-2); }
.link-cards { list-style: none; margin: var(--s-3) 0; padding: 0; display: grid; gap: var(--s-2); max-width: 36rem; }
.link-cards a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: .6rem var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); }
.link-cards a::after { content: "\2192"; color: var(--muted); transition: transform .15s; }
.link-cards a:hover { border-color: var(--accent); background: var(--accent-soft); }
.link-cards a:hover::after { transform: translateX(3px); color: var(--accent); }
.hub-foot { margin-top: var(--s-6); }

/* page head */
.page-head { margin: var(--s-2) 0 var(--s-5); }
.page-head .lead { max-width: 62ch; }
.page-head > p { max-width: 62ch; }
.page-head > p:last-child { margin-bottom: 0; }

/* CTA band (fake door) */
.cta { display: grid; gap: var(--s-4) var(--s-6); align-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); padding: var(--s-5); margin: var(--s-7) 0; }
.cta-copy h2 { margin: 0 0 var(--s-2); font-size: var(--text-lg); }
.cta-copy p { margin: 0; max-width: 60ch; color: var(--fg); }
.cta .btn { justify-self: start; }
@media (min-width: 52rem) { .cta { grid-template-columns: minmax(0, 1fr) auto; padding: var(--s-6); } }

/* forms */
input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--accent); flex: none; }
input[type="text"], input[type="search"], select, .field textarea { font: inherit; font-size: var(--text-base); color: var(--fg); background: var(--surface); border: 1px solid var(--control); border-radius: var(--radius-sm); padding: .5rem .75rem; min-height: 44px; }
input[type="text"]:hover, input[type="search"]:hover, select:hover, .field textarea:hover { border-color: var(--fg); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s-1); }
.field input[type="text"], .field input[type="search"], .field select { width: 100%; }
.field textarea { display: block; width: 100%; max-width: 40rem; min-height: 8rem; resize: vertical; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3) var(--s-4); }
legend { padding: 0 var(--s-2); font-weight: 600; }
summary { cursor: pointer; padding: .6rem 0; min-height: 44px; font-weight: 500; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: var(--s-4) 0; background-color: var(--surface);
  /* edge shadows that show only on the side that still has hidden content (cover layers scroll with the content) */
  background-image: linear-gradient(to right, var(--surface) 30%, transparent), linear-gradient(to left, var(--surface) 30%, transparent), linear-gradient(to right, var(--scroll-shadow), transparent), linear-gradient(to left, var(--scroll-shadow), transparent);
  background-position: left center, right center, left center, right center;
  background-size: 2.5rem 100%, 2.5rem 100%, .9rem 100%, .9rem 100%;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll; }
.table-wrap.card { border-radius: var(--radius-lg); }
.table-wrap table:not(.glance) { min-width: 34rem; }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
th, td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-soft); font-size: var(--text-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
tbody tr:last-child > th, tbody tr:last-child > td { border-bottom: 0; }
.table-wrap:focus-visible { outline-offset: 0; }
pre { overflow-x: auto; background: var(--bg-soft); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); }

/* status / notices */
.non-verdict { position: relative; background: var(--info-bg); border: 1px solid var(--info-line); border-radius: var(--radius); padding: var(--s-4) var(--s-4) var(--s-4) 3.25rem; font-weight: 500; max-width: 70ch; }
.non-verdict::before { content: "i"; content: "i" / ""; position: absolute; left: var(--s-4); top: 1.05rem; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--muted); color: var(--muted); font: italic 700 .9rem/1 Georgia, serif; }
.stays-with-you { color: var(--muted); }
.badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 .4rem; margin: 0; padding: .3rem .8rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--fg); font-size: var(--text-sm); font-weight: 600; }
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.badge-note { font-weight: 400; color: var(--muted); font-size: var(--text-xs); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); margin: 0 0 var(--s-4); }
.source { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: var(--s-1); }
ul.plain { margin: .25rem 0; padding-left: 1.2rem; }
.vendor-list { padding-left: 1.2rem; }
.vendor-list li { padding: .4rem 0; }

/* ---------- 6. Pages ---------- */
/* home */
.home > section { margin-block: var(--s-7); }
.prose-grid { display: grid; gap: var(--s-6) var(--s-7); margin-block: var(--s-7); }
@media (min-width: 52rem) { .prose-grid { grid-template-columns: 1fr 1fr; } }
.prose-grid .prose-block { margin: 0; }
.home > section:first-child { margin-top: var(--s-4); }
.hero { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-5) var(--s-4); border: 1px solid var(--line); border-radius: calc(var(--radius-lg) + .25rem); background: radial-gradient(60rem 28rem at 0% 0%, var(--hero-glow), transparent 70%), var(--bg-soft); }
.hero h1 { font-size: var(--text-hero); letter-spacing: -.035em; margin-bottom: var(--s-4); }
.hero .lead { max-width: 56ch; }
.eyebrow { margin: 0 0 var(--s-3); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 var(--s-3); }
.hero .muted { margin: 0; font-size: var(--text-sm); }
@media (min-width: 62rem) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: var(--s-7) var(--s-6); gap: var(--s-7); } }
.preview { margin: 0; min-width: 0; }
.preview figcaption { margin: 0 0 var(--s-2); font-size: var(--text-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.preview-window { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.preview-bar { display: flex; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.preview-bar span { width: .65rem; height: .65rem; border-radius: 50%; background: var(--line-strong); }
.preview .table-wrap { margin: 0; border: 0; border-radius: 0; overflow: visible; }
.preview .table-wrap table { min-width: 0; font-size: var(--text-xs); }
.preview th, .preview td { padding: .6rem .7rem; }
.preview thead th { white-space: normal; }
.preview tbody td:first-child { font-weight: 600; }
.preview-foot { margin: 0; padding: .7rem .9rem; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 40rem) { .preview th:nth-child(4), .preview td:nth-child(4) { display: none; } }

.steps-section h2, .vendor-strip h2, .prose-block h2 { margin-top: 0; }
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-3); margin: var(--s-4) 0 0; padding: 0; max-width: none; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5) var(--s-4) var(--s-4); box-shadow: var(--shadow-sm); color: var(--muted); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-bottom: var(--s-3); border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-strong); font-weight: 700; font-size: var(--text-sm); }
.steps strong { display: block; margin-bottom: var(--s-1); color: var(--fg); font-size: var(--text-md); letter-spacing: -.01em; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.vendor-strip > p { max-width: 62ch; }
.vendor-strip .chips { margin-top: var(--s-2); }
.prose-block { max-width: 70ch; }
.prose-block p, .prose-block ul { max-width: none; }

/* feedback */
.feedback { display: grid; gap: var(--s-5) var(--s-7); padding: var(--s-5); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feedback-intro h2 { margin-top: 0; }
.feedback-intro p { margin: 0; color: var(--muted); }
.feedback form { min-width: 0; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
#feedback .field { margin: 0 0 var(--s-2); }
#feedback .muted { max-width: 70ch; font-size: var(--text-sm); }
.feedback-status p { margin: var(--s-3) 0 0; padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); border-left: 4px solid var(--accent); background: var(--accent-soft); max-width: 40rem; }
.feedback-status [data-feedback-error] { border-left-color: var(--danger-line); background: var(--bg-soft); }
@media (min-width: 52rem) { .feedback { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding: var(--s-6); } }

/* vendor page */
.vendor-page .jump { margin: var(--s-4) 0 var(--s-5); padding: var(--s-3) var(--s-4); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.jump p { margin: 0 0 var(--s-1); font-weight: 650; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.jump ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); list-style: none; margin: 0; padding: 0; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 500; }
.glance { font-size: var(--text-sm); }
.glance th { width: 13rem; font-weight: 600; background: var(--bg-soft); color: var(--fg); }
.glance td { background: var(--surface); }
.glance td p { margin: var(--s-1) 0; }
.glance td ul { margin: 0; }
.glance td > p:first-child { margin-top: 0; }
.glance .source { margin-top: var(--s-2); }
.more { margin-left: .4rem; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.glance td ul + p { margin-top: var(--s-1); }
@media (max-width: 40rem) {
  .glance, .glance tbody, .glance tr, .glance th, .glance td { display: block; width: 100%; }
  .glance th { padding-bottom: .35rem; border-bottom: 0; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .glance td { padding-top: .5rem; }
}
.add-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); margin: var(--s-4) 0 var(--s-6); padding: var(--s-4); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); }
.add-bar p { margin: 0; font-weight: 600; max-width: 40ch; }
.add-action { margin-top: var(--s-4); }
.vendor-page article > p, .vendor-page > p { max-width: 70ch; }
.sources { list-style: none; margin: var(--s-3) 0; padding: 0; max-width: 70ch; }
.sources li { margin: 0 0 var(--s-2); padding-left: var(--s-3); border-left: 2px solid var(--line-strong); font-size: var(--text-xs); line-height: 1.5; color: var(--muted); }
.sources a { font-family: var(--font-mono); word-break: break-all; }
.related { list-style: none; margin: var(--s-3) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s-2); max-width: none; }
.related li { padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--text-sm); }
.related li .muted { display: block; font-size: var(--text-xs); }
.related a { font-weight: 600; }
.changelog { margin: var(--s-3) 0; border-left: 2px solid var(--line-strong); padding-left: var(--s-4); }
.changelog div { position: relative; padding: 0 0 var(--s-4); }
.changelog div::before { content: ""; position: absolute; left: calc(-1 * var(--s-4) - 5px); top: .45rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.changelog dt { font-weight: 650; font-size: var(--text-sm); }
.changelog dd { margin: var(--s-1) 0 0; }
.facts { margin: var(--s-4) 0; }
.fact { border-top: 1px solid var(--line); padding: var(--s-3) 0; }
.fact dt { font-weight: 600; }
.fact dd { margin: .25rem 0 0; }
.fact p { margin: .25rem 0; }

/* generator: two columns on desktop once the script has loaded the vendor list */
.gen-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.gen-pick h2, .gen-out h2 { margin-top: 0; }
.gen-placeholder { display: none; }
.gen-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: var(--s-3); margin: 0 0 var(--s-3); padding: var(--s-3); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.gen-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-4); }
.gen-summary p, #gen-shown, #gen-empty { margin: var(--s-1) 0; font-size: var(--text-sm); }
#gen-count { font-weight: 600; color: var(--fg); }
#gen-empty { padding: var(--s-3) var(--s-4); border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-bottom: var(--s-3); }
#gen-picker fieldset { border: 0; padding: 0; margin: 0; }
#gen-picker legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--text-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pick { margin: 0 0 var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background-color .15s; }
.pick:hover { border-color: var(--line-strong); }
.pick > label { position: relative; display: block; min-height: 44px; padding: .65rem var(--s-4) .65rem 2.9rem; font-weight: 600; cursor: pointer; }
.pick > label input[type="checkbox"] { position: absolute; left: var(--s-4); top: .8rem; }
.pick > label .muted { display: block; font-weight: 400; font-size: var(--text-sm); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.pick:has(input:checked) .muted { color: var(--muted); }
.pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick input:focus-visible { outline: none; }
.pick-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: var(--s-2) var(--s-3); margin: 0; padding: 0 var(--s-4) var(--s-4) 2.9rem; }
.pick-fields .field label { font-size: var(--text-xs); color: var(--muted); }
.pick-fields input[type="text"] { background: var(--surface); }
@media (max-width: 40rem) { .pick-fields { padding-left: var(--s-4); } }
#gen-picker fieldset { max-height: 32rem; overflow-y: auto; padding-right: var(--s-1); }
#gen-error { border-left: 4px solid var(--danger-line); padding: .5rem 1rem; background: var(--bg-soft); }
#gen-output { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); box-shadow: var(--shadow-md); }
#gen-output .muted { font-size: var(--text-sm); }
#gen-output .table-wrap { margin-top: var(--s-3); }
#gen-output .table-wrap table { min-width: 34rem; }
#gen-output thead th { white-space: normal; }
#gen-output .button-row { margin-bottom: 0; padding-top: var(--s-3); border-top: 1px solid var(--line); gap: var(--s-2); }
#gen-output .button-row .btn:first-child { flex: 1 1 auto; }
#gen-status { margin: var(--s-3) 0 0; min-height: 0; font-size: var(--text-sm); font-weight: 600; }
#gen-status:not(:empty) { display: flex; align-items: flex-start; gap: .6rem; padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); border-left: 4px solid var(--accent); background: var(--accent-soft); color: var(--fg); animation: status-in .25s ease-out; }
#gen-status[data-state]::before { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border-radius: 50%; font-size: .8rem; font-weight: 700; line-height: 1; }
#gen-status[data-state="ok"] { border-left-color: var(--accent); }
#gen-status[data-state="ok"]::before { content: "¹3"; content: "¹3" / ""; background: var(--accent); color: var(--accent-fg); }
#gen-status[data-state="error"] { border-left-color: var(--danger-line); background: var(--bg-soft); }
#gen-status[data-state="error"]::before { content: "!"; content: "!" / ""; background: var(--danger-line); color: var(--bg); }
@keyframes status-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#gen-cta .cta { margin-top: var(--s-6); }
.before-send { max-width: 70ch; }
@media (min-width: 62rem) {
  .gen-layout:has(#gen-controls:not([hidden])) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-6); align-items: start; }
  .gen-layout:has(#gen-controls:not([hidden])) #gen-picker fieldset { max-height: 36rem; }
}
@media (min-width: 62rem) {
  .gen-layout:has(#gen-controls:not([hidden])) .gen-out:not(:has(#gen-output:not([hidden]))) .gen-placeholder { display: grid; }
}
.gen-placeholder { gap: var(--s-3); padding: var(--s-6) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-soft); }
.gen-placeholder-title { margin: 0 0 var(--s-2); font-weight: 650; color: var(--muted); text-align: center; }
.gen-placeholder span { display: block; height: 1.1rem; border-radius: var(--radius-sm); background: var(--line); }
.gen-placeholder span:nth-of-type(2) { width: 82%; }
.gen-placeholder span:nth-of-type(3) { width: 64%; }

/* fake-door dialog */
.fake-door { max-width: 34rem; width: calc(100% - 2rem); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); padding: 0; box-shadow: var(--shadow-md); }
.fake-door form { padding: var(--s-5); }
.fake-door::backdrop { background: rgba(8, 14, 18, .6); }
.fake-door h2 { margin-top: 0; }
.fake-door fieldset { border: 0; padding: 0; margin: 0; }
.fake-door legend { padding: 0; font-weight: 650; margin-bottom: var(--s-2); }
.fake-door label { display: flex; align-items: flex-start; gap: var(--s-3); margin: 0 0 var(--s-2); padding: .65rem var(--s-3); min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.fake-door label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fake-door label input { margin-top: .15rem; }
.fake-door [data-step]:focus { outline: none; }

/* ---------- 7. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
