/* Food Compliance Software — "inspection ledger" design system
   Evergreen ink on warm cream paper, leaf green for verified states, saffron tag for actions,
   tomato for warnings. Type: Fraunces (headings) + Geist (text) + Geist Mono (labels). Mobile-first. */
:root {
  --ink: #0F2E24;
  --ink-2: #133A2E;
  --ink-3: #1C4A3A;
  --ink-line: #2C5B4A;
  --paper: #F7F4EC;
  --paper-2: #EEE8DA;
  --card: #FFFDF8;
  --line: #DED6C4;
  --line-2: #EAE4D5;
  --text: #17211D;
  --text-2: #2F3C36;
  --muted: #5A655F;
  --on-dark: #E3EDE7;
  --on-dark-2: #A8C2B5;
  --leaf: #7FD3A0;
  --leaf-2: #A9E5C0;
  --accent: #19714A;
  --accent-tint: #E5F2E9;
  --saffron: #F2B84B;
  --saffron-2: #F7CB72;
  --saffron-edge: #D99A26;
  --warm: #B83E1B;
  --warm-tint: #FBECE4;
  --link: #145F9E;
  --focus: #145F9E;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,46,36,.05), 0 12px 30px -16px rgba(15,46,36,.25);
  --shadow-lg: 0 2px 4px rgba(15,46,36,.06), 0 30px 70px -32px rgba(15,46,36,.5);
  --f-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; --header-h: 68px; } }

/* Dark surfaces remap tokens so links, diagrams and labels stay legible */
.h-hero, .band-ink, .plate, .tool-out, .callout-key, .site-footer, .dark, .demo-cta {
  --accent: var(--leaf); --link: var(--leaf-2); --focus: var(--saffron); --muted: var(--on-dark-2);
  --line: var(--ink-line); --text: var(--on-dark); --text-2: var(--on-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.64 var(--f-sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: #CDEBD7; color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.12; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--f-serif); font-weight: 620; letter-spacing: -.018em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.05rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1.04; letter-spacing: -.024em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.15vw, 2.15rem); }
h3, h4 { font-family: var(--f-sans); font-weight: 650; letter-spacing: -.012em; }
h3 { font-size: 1.16rem; line-height: 1.28; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 640; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.mid { max-width: 1040px; }
.small { font-size: .88rem; color: var(--muted); }
.kicker { font: 500 .72rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; flex: none; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.meta { font-size: .86rem; color: var(--muted); margin-top: 18px; }
.meta a { color: inherit; }
code, kbd { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink); --fg: #fff; --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg); font: 600 1rem/1.1 var(--f-sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { --bg: var(--saffron); --fg: var(--ink); --bd: var(--saffron-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 24px -12px rgba(217,154,38,.9); }
.btn-primary:hover { --bg: var(--saffron-2); }
.btn-primary::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .15s ease; }
.btn-primary:hover::after { transform: translateX(3px); }
.qform .btn-primary::after, .btn-sm.btn-primary::after { display: none; }
.btn-ink { --bg: var(--ink); --fg: #fff; }
.btn-ink:hover { --bg: var(--ink-3); }
.btn-line { --bg: transparent; --fg: var(--ink); --bd: rgba(15,46,36,.32); }
.btn-line:hover { --bd: var(--ink); --bg: rgba(15,46,36,.04); }
.btn-ghost { --bg: transparent; --fg: var(--muted); }
.btn-ghost:hover { --fg: var(--ink); --bg: var(--paper-2); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.dark .btn-line, .band-ink .btn-line, .h-hero .btn-line { --fg: #fff; --bd: rgba(255,255,255,.38); }
.dark .btn-line:hover, .band-ink .btn-line:hover, .h-hero .btn-line:hover { --bd: #fff; --bg: rgba(255,255,255,.07); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,236,.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1rem/1 var(--f-sans); letter-spacing: -.02em; white-space: nowrap; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo span { overflow: hidden; text-overflow: ellipsis; }
.logo b { color: var(--accent); font-weight: 650; }
.logo-light { color: #fff; }
.logo-light b { color: var(--leaf); }
.logo-mark { width: 30px; height: 30px; flex: none; }
@media (min-width: 400px) { .logo { font-size: 1.05rem; } .logo-mark { width: 32px; height: 32px; } }
.main-nav { flex: 1; min-width: 0; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-btn, .nav-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: none; border: 0; color: var(--text-2); font: 500 .94rem/1 var(--f-sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.nav-btn svg { width: 12px; transition: transform .2s; opacity: .7; }
.nav-btn:hover, .nav-link:hover, .nav-group:focus-within .nav-btn, .nav-group.open .nav-btn { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.nav-group { position: relative; }
.nav-panel { position: absolute; left: -10px; top: calc(100% + 12px); width: 450px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-panel::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav-group:hover .nav-panel, .nav-group:focus-within .nav-panel, .nav-group.open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-group:hover .nav-btn svg, .nav-group.open .nav-btn svg { transform: rotate(180deg); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: flex; gap: 14px; padding: 12px; border-radius: 12px; text-decoration: none; color: inherit; transition: background-color .12s; }
.nav-panel a:hover { background: var(--paper); }
.nav-panel .code { flex: none; font: 500 .66rem/1 var(--f-mono); letter-spacing: .04em; color: var(--leaf); background: var(--ink); border-radius: 6px; padding: 7px 7px 6px; height: fit-content; }
.nav-panel strong { display: block; font-size: .97rem; font-weight: 620; color: var(--ink); letter-spacing: -.01em; }
.nav-panel small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.42; margin-top: 3px; }
.header-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 11px; cursor: pointer; }
.menu-btn i { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { padding: 6px var(--gutter) 22px; background: var(--card); border-top: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow: auto; overscroll-behavior: contain; }
.mobile-nav ul { list-style: none; margin: 0 0 6px; padding: 0; }
.mobile-nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 6px 0; color: var(--ink); font-weight: 520; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.m-head { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 20px 0 2px; }
.m-extra { margin-top: 16px !important; }
.mobile-nav .btn { width: 100%; margin-top: 16px; }
@media (max-width: 1040px) { .main-nav, .header-cta { display: none; } .menu-btn { display: block; } }
@media (min-width: 1041px) { .mobile-nav { display: none !important; } }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: inherit; }

/* ---------- Page hero ---------- */
.page-hero { padding: 34px 0 40px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); position: relative; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 18px, transparent 18px 24px); opacity: .08; }
.page-hero-plain { background: var(--paper); }
@media (min-width: 900px) { .page-hero { padding: 46px 0 56px; } }
.hero-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 52px; align-items: start; } }
.bluf { font-size: 1.1rem; line-height: 1.6; color: var(--text-2); max-width: 66ch; }
.bluf p:last-child { margin-bottom: 0; }
.bluf strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Spec plate: dark ledger card beside the H1 */
.plate { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 20px 22px 8px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.plate::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(127,211,160,.18), transparent 70%); }
.plate-title { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--leaf); margin: 0 0 12px; }
.plate dl { margin: 0; }
.plate dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; padding: 11px 0; border-top: 1px dashed var(--ink-line); }
.plate dt { font-size: .84rem; color: var(--on-dark-2); }
.plate dd { margin: 0; font-size: .92rem; font-weight: 560; color: #fff; }
.plate a { color: var(--leaf-2); }

/* ---------- Body layout ---------- */
.body-grid { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 1080px) { .body-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 56px; } .side-sticky { position: sticky; top: calc(var(--header-h) + 20px); } }
.l-article main > .wrap { padding-top: 36px; padding-bottom: 64px; }

/* ---------- Prose ---------- */
.prose { min-width: 0; }
.prose > h2, .prose section > h2 { margin-top: 2.1em; padding-top: .2em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--saffron); color: var(--text-2); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.cite { font: 600 .66rem/0 var(--f-mono); margin-left: 1px; }
.cite a { text-decoration: none; color: var(--accent); padding: 0 1px; }
.cite a:hover { text-decoration: underline; }

/* TOC */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 34px; }
.toc p { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; font-size: .95rem; margin: .3em 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
caption { caption-side: top; text-align: left; padding: 14px 16px 10px; font-size: .84rem; color: var(--muted); border-bottom: 1px solid var(--line); }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
thead th { font: 600 .74rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper); position: sticky; top: 0; white-space: nowrap; }
tbody th { font-weight: 620; color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: rgba(229,242,233,.45); }
.table-note { font-size: .82rem; color: var(--muted); margin-top: -.9em; }
.yes, .no, .na, .part { display: inline-flex; align-items: center; gap: 6px; font-weight: 560; white-space: nowrap; }
.yes { color: var(--accent); }
.yes::before { content: "✓"; font-weight: 700; }
.no { color: var(--muted); }
.no::before { content: "–"; font-weight: 700; }
.part { color: #8A5A00; }
.part::before { content: "◐"; }
.na { color: var(--muted); font-style: italic; font-weight: 400; }
.chip { display: inline-block; font: 500 .74rem/1 var(--f-mono); letter-spacing: .02em; padding: 5px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); margin: 2px 4px 2px 0; white-space: nowrap; }
.chip-warm { background: var(--warm-tint); color: var(--warm); }

/* Callouts */
.callout { border-radius: var(--radius); padding: 18px 20px 4px; margin: 1.6em 0; border: 1px solid var(--line); background: var(--card); position: relative; }
.callout-title { font: 600 .74rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; color: var(--accent); }
.callout-note { border-left: 4px solid var(--accent); }
.callout-limit { background: var(--warm-tint); border-color: #F0CDBE; border-left: 4px solid var(--warm); }
.callout-limit .callout-title { color: var(--warm); }
.callout-key { background: var(--ink); color: var(--on-dark); border: 0; }
.callout-key .callout-title { color: var(--leaf); }
.callout-key strong { color: #fff; }

/* Cards */
.cards { display: grid; gap: 14px; margin: 1.4em 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; }
.card h3 { margin-top: 0 !important; font-size: 1.04rem; }
.card p { font-size: .95rem; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 1.4em 0; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 14px 52px; margin: 0 0 6px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--leaf); font: 600 .86rem/1 var(--f-mono); }
.steps > li::after { content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 0; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }

/* Vendor cards (directory) */
.dir { display: grid; gap: 14px; margin: 1.4em 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.dir-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; display: flex; flex-direction: column; }
.dir-item h3 { margin: 0 0 4px !important; font-size: 1.08rem; }
.dir-item .hq { display: block; font: 500 .74rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: .02em; margin-bottom: 10px; }
.dir-item p { font-size: .94rem; }
.dir-item .dir-links { margin-top: auto; font-size: .88rem; padding-top: 6px; border-top: 1px dashed var(--line); }
.dir-item .chips { margin: -2px 0 10px; }

/* Diagrams */
.diagram { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); }
.diagram svg { display: block; width: 100%; height: auto; }

/* Inline CTA box */
.demo-cta { display: grid; gap: 16px; align-items: center; background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 22px 24px; margin: 2.2em 0; position: relative; overflow: hidden; }
.demo-cta::before { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242,184,75,.22), transparent 70%); }
.demo-cta p { margin: 0; font-size: .96rem; color: var(--on-dark-2); position: relative; }
.demo-cta .demo-cta-title { font: 600 1.25rem/1.25 var(--f-serif); color: #fff; margin-bottom: 6px; }
.demo-cta .btn { position: relative; justify-self: start; }
@media (min-width: 760px) { .demo-cta { grid-template-columns: 1fr auto; gap: 28px; padding: 26px 30px; } }

/* Sources */
.sources { margin-top: 3.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.3rem; }
.sources ol { font-size: .86rem; color: var(--muted); padding-left: 1.4em; }
.sources li { margin: .5em 0; scroll-margin-top: calc(var(--header-h) + 30px); }
.sources li:target { background: #FFF5D9; border-radius: 6px; }
.accessed { white-space: nowrap; }

/* ---------- Tools ---------- */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 1.8em 0; box-shadow: var(--shadow); }
@media (min-width: 640px) { .tool { padding: 26px; } }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.tool-head h3 { margin: 0 !important; font-size: 1.2rem; }
.tool-tag { flex: none; font: 600 .66rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); background: var(--saffron); padding: 6px 9px; border-radius: 999px; }
.tool-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 16px; }
.tool label, .qform label { display: grid; gap: 6px; font-size: .88rem; font-weight: 560; color: var(--text-2); }
.tool input:not([type=checkbox]):not([type=radio]), .tool select, .qform input:not([type=checkbox]), .qform select, .qform textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: 400 1rem/1.3 var(--f-sans); transition: border-color .15s, box-shadow .15s; }
.tool input:focus, .tool select:focus, .qform input:focus, .qform select:focus, .qform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25,113,74,.18); }
.qform textarea { min-height: 88px; resize: vertical; }
.tool .checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.tool .checks legend { font-size: .88rem; font-weight: 560; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.tool .checks label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 520; min-height: 42px; }
.tool .checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.tool .checks input { accent-color: var(--accent); width: 16px; height: 16px; }
.tool-out { background: var(--ink); color: var(--on-dark); border-radius: 14px; padding: 18px 20px; }
.tool-out h4 { color: #fff; margin: 0 0 8px; }
.tool-out ul { margin: 0; padding-left: 1.2em; }
.tool-out a { color: var(--leaf-2); }
.tool-out table { color: var(--on-dark); }
.tool-out th, .tool-out td { border-color: var(--ink-line); }
.tool-out thead th { background: var(--ink-2); color: var(--on-dark-2); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stats .lbl { font: 500 .68rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-2); margin: 0 0 6px; }
.stats .big { font: 600 1.7rem/1.1 var(--f-serif); color: #fff; margin: 0; }
.tool-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.tool .result { padding: 12px 0; border-bottom: 1px dashed var(--ink-line); }
.tool .result:last-child { border-bottom: 0; }
.tool button:not(.btn) { font: inherit; }

/* ---------- Demo form ---------- */
.qform { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); position: relative; }
.qform::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--accent), var(--leaf), var(--saffron)); }
.qform-title { font: 600 1.3rem/1.2 var(--f-serif); color: var(--ink); margin: 0 0 6px; }
.qform-sub { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.qform-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: q; }
.qform-steps li { counter-increment: q; flex: 1; font: 500 .72rem/1 var(--f-mono); letter-spacing: .04em; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.qform-steps li::before { content: counter(q) " · "; }
.qform-steps li.on { color: var(--accent); border-color: var(--accent); }
.qform fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.qform .row2 { display: grid; gap: 14px; }
@media (min-width: 520px) { .qform:not(.qform-compact) .row2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 420px) and (max-width: 1079px) { .qform-compact .row2 { grid-template-columns: 1fr 1fr; } }
.qform .opt { font-weight: 400; color: var(--muted); }
.qform .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.qform .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.qform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform [aria-invalid="true"] { border-color: var(--warm) !important; }
.qform .qnext { width: 100%; }
.qactions { display: flex; gap: 10px; }
.qactions .qsubmit { flex: 1; }
.js .qform .qstep[data-step="2"] { display: none; }
.js .qform.step2 .qstep[data-step="1"] { display: none; }
.js .qform.step2 .qstep[data-step="2"] { display: grid; }
.qform:not(.step2) .qback { display: none; }
.qform.done fieldset, .qform.done .qform-steps, .qform.done .qform-sub, .qform.done .qform-head .qform-title { display: none !important; }
.qform-error { background: var(--warm-tint); color: var(--warm); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 14px 0 0; }
.qform-done:focus { outline: none; }
.qform-done p { font-size: .95rem; }
.qform-fine { font-size: .76rem; color: var(--muted); margin: 16px 0 0; line-height: 1.45; }
.cf-turnstile { min-height: 65px; }
.qform-page { max-width: 640px; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; transform: translateY(140%); transition: transform .25s ease; }
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow-lg); }
.sticky-cta.show { transform: none; }
@media (min-width: 1080px) { .sticky-cta { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 56px 0 28px; font-size: .92rem; margin-top: 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.f-brand { grid-column: 1 / -1; max-width: 520px; }
@media (min-width: 1000px) { .f-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .f-brand { grid-column: auto; } }
.f-brand p { margin-top: 16px; }
.f-disclose { font-size: .82rem; color: #8FAA9C; }
.f-head { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--leaf); margin: 4px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 9px 0; }
.f-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-line); font-size: .84rem; }
.f-base p { margin: 0; }

/* ---------- Bands (home / company pages) ---------- */
.band { padding: 64px 0; }
@media (min-width: 900px) { .band { padding: 88px 0; } }
.band-tight { padding: 48px 0; }
.band-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-paper2 { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--on-dark); }
.band-ink h2, .band-ink h3 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 34px; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }
.band-ink .sec-head p { color: var(--on-dark-2); }

/* ---------- Home ---------- */
.h-hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; padding: 52px 0 60px; }
@media (min-width: 900px) { .h-hero { padding: 80px 0 88px; } }
.h-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 420px at 85% -10%, rgba(127,211,160,.16), transparent 60%),
  radial-gradient(700px 380px at -10% 110%, rgba(242,184,75,.12), transparent 60%); pointer-events: none; }
.h-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.h-hero .wrap { position: relative; z-index: 1; }
.h-hero h1 { color: #fff; max-width: 15ch; }
.h-hero h1 em { font-style: italic; color: var(--saffron); font-weight: 560; }
.h-hero .kicker { color: var(--leaf); }
.h-hero .bluf { color: var(--on-dark); font-size: 1.14rem; }
.h-hero .bluf strong { color: #fff; }
.h-hero-grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .h-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 56px; align-items: center; } }
.h-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.h-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--on-dark); }
.h-points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.6L12 5.5' fill='none' stroke='%230F2E24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.h-card { background: var(--card); color: var(--text); border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); --accent: #19714A; --link: #145F9E; --muted: #5A655F; --line: #DED6C4; --text: #17211D; --text-2: #2F3C36; }
.h-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.h-card > p { font-size: .92rem; color: var(--muted); }
.route { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.route a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.route a:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.route .ri { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.route .ri svg { width: 20px; height: 20px; }
.route strong { display: block; font-size: .98rem; }
.route small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.route .arr { color: var(--muted); }
.h-stats { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 16px; overflow: hidden; margin-top: 40px; }
@media (min-width: 800px) { .h-stats { grid-template-columns: repeat(4, 1fr); } }
.h-stats > div { background: var(--ink-2); padding: 18px 20px; }
.h-stats .big { font: 600 1.7rem/1.1 var(--f-serif); color: #fff; margin: 0 0 4px; }
.h-stats .lbl { font-size: .84rem; color: var(--on-dark-2); margin: 0; }
.h-stats a { color: var(--leaf-2); }

.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 18px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C9BFA8; text-decoration: none; }
.cat .code { font: 500 .68rem/1 var(--f-mono); color: var(--accent); letter-spacing: .08em; margin-bottom: 18px; }
.cat h3 { font: 600 1.3rem/1.2 var(--f-serif); margin: 0 0 8px; color: var(--ink); }
.cat p { font-size: .95rem; color: var(--muted); }
.cat .go { margin-top: auto; font-weight: 600; color: var(--accent); font-size: .92rem; }

.compare-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.compare-tabs button { font: 500 .9rem/1 var(--f-sans); padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text-2); cursor: pointer; min-height: 42px; }
.compare-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.vt td:first-child, .vt th:first-child { min-width: 150px; }
.vt .vname { font-weight: 650; color: var(--ink); display: block; }
.vt .vsub { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.vt tr[hidden] { display: none; }

.split { display: grid; gap: 36px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.split-form { display: grid; gap: 36px; }
@media (min-width: 960px) { .split-form { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: start; } }

.deadline { display: grid; gap: 6px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 18px; padding: 22px; }
.deadline .big { font: 600 2.4rem/1 var(--f-serif); color: var(--saffron); margin: 0; }
.deadline p { margin: 0; color: var(--on-dark-2); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--ink-line); }
.timeline time { font: 500 .82rem/1.4 var(--f-mono); color: var(--leaf); }
.timeline p { margin: 0; color: var(--on-dark); font-size: .95rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 620; color: var(--ink); position: relative; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem/1 var(--f-sans); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 12px; color: var(--text-2); }

/* Print */
@media print { .site-header, .site-footer, .sticky-cta, .side, .qform, .demo-cta, .hero-actions { display: none !important; } body { background: #fff; } }
.tool-out tbody th { color: var(--on-dark-2); }

/* FTL lookup results (tool-out is dark) */
.ftl-result { padding: 14px 0; border-bottom: 1px dashed var(--ink-line); }
.ftl-result:first-child { padding-top: 2px; }
.ftl-result:last-child { border-bottom: 0; padding-bottom: 2px; }
.ftl-result h4, .ftl-result p { margin: 0 0 6px; }
.ftl-status { margin: 0 0 8px; color: var(--on-dark-2); font-size: .86rem; line-height: 1.7; }
.ftl-status strong { display: inline-block; font: 600 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; border-radius: 999px; margin-right: 4px; background: rgba(255,255,255,.12); color: #fff; vertical-align: 1px; }
.ftl-status .small { font-size: .86rem; color: var(--on-dark-2); }
.ftl-on strong { background: var(--saffron); color: var(--ink); }
.ftl-likely strong { background: var(--saffron-2); color: var(--ink); }
.ftl-depends strong { background: #E3EDE7; color: var(--ink); }
.ftl-exempt strong, .ftl-not strong { background: var(--leaf); color: var(--ink); }
.tool-out .chip, .tool .chip { border: 0; cursor: pointer; font: 500 .78rem/1 var(--f-mono); }
.tool-out .chip { background: rgba(127,211,160,.16); color: var(--leaf-2); }
.tool-out .small, .tool-out .small a { color: var(--on-dark-2); }
button.chip { min-height: 32px; }
.ftl-result p { font-size: .95rem; }

/* ---------- Vendor tables: group header rows, small cell text, FSMA 204 column (appended 2026-11-27) ---------- */
.vt th[scope=colgroup], table th[scope=colgroup] { background: var(--paper-2); color: var(--ink); font: 600 .74rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 10px 14px; white-space: normal; border-bottom: 1px solid var(--line); }
th[scope=colgroup] strong { font-weight: 700; }
th[scope=colgroup] .vsub { display: block; margin-top: 4px; font: 400 .84rem/1.45 var(--f-sans); text-transform: none; letter-spacing: 0; color: var(--text-2); }
tbody tr:hover > th[scope=colgroup] { background: var(--paper-2); }
td .small { font-size: .84rem; line-height: 1.45; color: var(--text-2); }
td .vsub { display: block; font-size: .8rem; line-height: 1.45; color: var(--muted); font-weight: 400; margin-top: 2px; }
@media (min-width: 900px) { .vt th.col-fsma, .vt td.col-fsma { min-width: 240px; } }

/* ---------- /vendors/ directory (30-vendors.mjs; appended 2026-11-27) ---------- */
.vd-dir .dir-item h4 { margin: 0 0 4px; font-size: 1.08rem; }
.vd-letters ol { columns: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; }
.vd-letters li { margin: 0; }
.vd-letters a { display: inline-block; min-width: 28px; min-height: 28px; line-height: 28px; text-align: center; }
.prose h3.vd-letter { margin-top: 1.4em; font-family: var(--f-mono); font-size: 1rem; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; }

/* ---------- /food-traceability-list/: print the full list, not the lookup (appended 2026-11-27) ---------- */
@media print {
  #ftl-lookup { display: none !important; }
  .ftl-wrap { overflow: visible !important; border: 0; background: #fff; }
  .ftl-wrap thead th { position: static; white-space: normal; }
  .ftl-wrap thead { display: table-header-group; }
  .ftl-wrap tr { break-inside: avoid; page-break-inside: avoid; }
  .ftl-wrap tbody tr:hover { background: transparent; }
}
