/*
 * APL Brands. The look of a supplier's survey sheet: a white sheet, warm
 * graphite ink, hairline rules, photos as framed plates with a caption line,
 * facts set as a ruled legend. Brand red (the logo's) only for the main
 * action, the route of numbered steps and the closing band; a graphite field
 * for the certifications register and the footer. No gradients, shadows or
 * hover motion.
 *
 * Change the custom properties first; the rest reads from them. The one
 * webfont, Archivo (SIL Open Font License, assets/fonts/OFL.txt), is
 * self-hosted: a variable font, one file for every weight.
 */

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/archivo-latin.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;
}

:root {
    /* Sheet and ink */
    --paper: #ffffff;
    --sheet: #f2f1ee;              /* alternate sections, the quote aside */
    --ink: #1d1a17;                /* headings, neatlines, buttons' text */
    --text: #3a3530;               /* body text */
    --muted: #665f57;              /* labels, notes: 5.5:1 on --sheet */
    --line: #d9d5ce;               /* hairline rules */
    --input-line: #8c847a;         /* form field borders: 3.7:1 on white */

    /* Brand red, from the logo */
    --red: #da2e31;                /* buttons, route, closing band: white text 4.8:1 */
    --red-deep: #b9252a;           /* links and button hover: 5.5:1 on --sheet */

    /* The graphite field (certifications register, footer) */
    --field: #1f1b18;
    --field-text: #d6cfc6;
    --field-muted: #aaa196;        /* 7:1 on --field */
    --field-line: rgba(255, 255, 255, 0.18);

    --focus: #1d5fd6;
    --error: #b91c1c;
    --error-bg: #fdf1f1;

    --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 2px;
    --wrap: 1240px;
    --gutter: 20px;
    --section-space: clamp(64px, 8vw, 112px);
    --grid-gap: clamp(36px, 5.5vw, 80px);
}

@media (min-width: 640px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: #b9b2a8 var(--sheet); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.62;
    color: var(--text);
    background: var(--paper);
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    caret-color: var(--red);
    accent-color: var(--red);
}

::selection { background: var(--ink); color: var(--paper); }

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { color: var(--ink); margin: 0 0 0.55em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.15rem, 1.35rem + 2.6vw, 3.4rem); line-height: 1.06; font-weight: 720; letter-spacing: -0.024em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.018em; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; }

/* Small letter-spaced capitals: the sheet's labels. */
.label, .legend-line li, .plate-place, .specs caption, .status, .site-footer h2, .cert-facts dt, .route li::before {
    font-size: 0.78rem;
    font-weight: 620;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* Narrow text sections keep the page's left edge (where the headings start); only their measure is narrower. */
.narrow > * { max-width: 760px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.section-ink :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: #ffffff; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 720; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 42px; height: auto; }
.menu-toggle { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; font-weight: 520; font-size: 0.98rem; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.site-nav a[aria-current="page"]:not(.button) { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-nav .lang-switch { color: var(--muted); margin-left: 4px; }
.site-nav .button { margin-left: 10px; }

/* With JavaScript on a phone: the menu starts closed behind the Menu button. */
@media (max-width: 959px) {
    .js .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
    .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 14px; border-top: 1px solid var(--line); margin-top: 4px; }
    .js .site-nav.open { display: flex; }
    .js .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .js .site-nav .lang-switch { margin-left: 0; }
    .js .site-nav .button { margin: 14px 0 0; justify-content: center; border-bottom: 2px solid var(--red); }
}

/* Buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px;
    border: 2px solid var(--red); border-radius: var(--radius);
    background: var(--red); color: #ffffff;
    font: inherit; font-weight: 640; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--red-deep); border-color: var(--red-deep); text-decoration: none; }
.button-small { min-height: 42px; padding: 8px 18px; font-size: 0.98rem; }
.site-nav .button-small { color: #ffffff; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.button-light { background: #ffffff; border-color: #ffffff; color: var(--red-deep); }
.button-light:hover { background: var(--sheet); border-color: var(--sheet); color: var(--red-deep); }
.button[disabled] { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { font-weight: 640; }
.arrow { display: inline-block; width: 16px; height: 10px; margin-left: 0.4em; vertical-align: 0.05em; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero + .section { padding-top: clamp(32px, 4vw, 56px); }
.hero-grid { display: grid; gap: 48px; }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 3.7vw, 4.15rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 740; max-width: 15ch; }
.hero .lead { max-width: 34em; }
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--grid-gap); align-items: center; }
}

/* The legend line under the heading: three facts between rules. */
.legend-line { list-style: none; margin: 28px 0 28px; padding: 0; display: flex; flex-wrap: wrap; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--ink); }
.legend-line li { padding: 12px 20px 12px 0; }
.legend-line li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.legend-line-loose { margin: 8px 0 0; font-size: 1rem; }
.legend-line-loose li { font-size: 0.85rem; }

/* Phones: two facts on the first row, the place on its own row below. */
@media (max-width: 519px) {
    .legend-line { display: grid; grid-template-columns: auto 1fr; }
    .legend-line li:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); line-height: 1.58; max-width: 40rem; color: var(--text); }

.markets { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; color: var(--ink); }
.markets .label { color: var(--muted); }
.markets-list { display: inline-flex; flex-wrap: wrap; gap: 4px 0; font-weight: 600; }
.markets-list span + span::before { content: "·"; margin: 0 10px; color: var(--muted); font-weight: 400; }

/* Plates: a photo or video loop in a neatline frame with graticule ticks, and a caption line. */
.plate { margin: 0; width: 100%; min-width: 0; }
.plate-frame { position: relative; padding: 8px; border: 1px solid var(--ink); background: var(--paper); }
.plate-frame::before, .plate-frame::after { content: ""; position: absolute; pointer-events: none; }
.plate-frame::before { left: -1px; right: -1px; top: -8px; height: 7px; border-right: 1px solid var(--ink); background: linear-gradient(to right, var(--ink) 1px, transparent 1px) 0 0 / 25% 100% repeat-x; }
.plate-frame::after { top: -1px; bottom: -1px; left: -8px; width: 7px; border-bottom: 1px solid var(--ink); background: linear-gradient(to bottom, var(--ink) 1px, transparent 1px) 0 0 / 100% 25% repeat-y; }
.plate .media { width: 100%; height: auto; object-fit: cover; background: var(--sheet); }
.plate-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0 0 9px; font-size: 0.9rem; line-height: 1.4; color: var(--ink); }
.plate-place { color: var(--muted); font-size: 0.72rem; padding-top: 2px; }
.section-alt .plate-frame { background: var(--paper); }

.plate-hero { max-width: 540px; }
/* The reception clip is a 360 × 420 crop (it leaves out a truck), so it shows narrower to stay sharp. */
.plate-hero-video { max-width: 420px; }
.plate-landscape { max-width: 600px; }  /* the WhatsApp originals are 1280 px: never show them wider than about 600 CSS px */
.plate-square { max-width: 460px; }  /* every square plate (process equipment, the serving photos) shows at this size */
.plate-portrait { max-width: 440px; }
@media (min-width: 960px) { .plate-hero { justify-self: end; } }

/* Neutral boxes for photos still to come. */
.media-empty { background: var(--sheet); border: 1px solid var(--line); }
.media-square { aspect-ratio: 1 / 1; max-width: 520px; }

/* Sections */
.section { padding: var(--section-space) 0; }
.section-tight { padding: 40px 0 var(--section-space); }
.section-alt { background: var(--sheet); }
/* Two plain white sections in a row share one gap, divided by a hairline. */
.section:not(.section-alt):not(.section-ink) + .section:not(.section-alt):not(.section-ink) { padding-top: 0; }
.section:not(.section-alt):not(.section-ink) + .section:not(.section-alt):not(.section-ink) > .wrap > :first-child { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.section-ink { background: var(--field); color: var(--field-text); }
.section-ink h2, .section-ink h3 { color: #ffffff; }
.section-ink a { color: #ffffff; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p, .section-intro { color: var(--muted); font-size: 1.08rem; }
.section-ink .section-head p { color: var(--field-text); }
.section-foot { margin: 32px 0 0; }
.section-body { margin-top: clamp(40px, 5vw, 64px); }

.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--grid-gap); } .split-text { align-items: start; } }
/* Text comes first in the page order (phones read it before the photo); wide screens put the photo on the left. */
@media (min-width: 900px) { .split-photo-first > .plate, .uses-grid > .plate { order: -1; } }
.hero-grid > *, .split > *, .uses-grid > *, .aside-grid > *, .process-grid > * { min-width: 0; }
.stack > * + * { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }

.uses-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .uses-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--grid-gap); } }

.aside-grid { display: grid; gap: 40px; }
.aside-col .plate { margin-top: 36px; }
@media (min-width: 960px) { .aside-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--grid-gap); align-items: start; } .aside-col .plate { max-width: 380px; } }

.process-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .process-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--grid-gap); } .process-grid .plate { margin-top: 12px; } }

/* Ruled lists: headed items between hairlines, instead of cards. */
.ruled-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ruled-list li { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.ruled-list h3 { margin-bottom: 6px; }
.ruled-list p { margin: 0; max-width: 38rem; }
@media (min-width: 700px) {
    .ruled-list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-bottom: 0; }
    .ruled-list-2 li { padding: 24px 0 30px; }
    .ruled-list-2 li:first-child, .ruled-list-2 li:nth-child(2) { border-top: 2px solid var(--ink); }
}

/* The route: numbered steps joined by a red line. */
.route { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 32px; }
.route li { position: relative; counter-increment: step; padding-left: 60px; }
.route li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 38px; height: 38px; display: grid; place-items: center;
    border: 2px solid var(--red); border-radius: 50%; background: var(--paper);
    color: var(--red-deep); font-size: 0.95rem; letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.route li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: -32px; width: 2px; background: var(--red); }
.route h3 { padding-top: 6px; }
.route p { margin: 0; max-width: 34rem; }
.section-alt .route li::before { background: var(--sheet); }
@media (min-width: 800px) {
    .route:not(.route-vertical) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
    .route:not(.route-vertical) li { padding: 64px 0 0; }
    .route:not(.route-vertical) li:not(:last-child)::after { left: 38px; right: -56px; top: 18px; bottom: auto; width: auto; height: 2px; }
}
.route-vertical { gap: 0; margin-top: 8px; }
.route-vertical li { padding: 7px 0 28px 60px; }
.route-vertical li:not(:last-child)::after { bottom: 0; }
.route-vertical p { color: var(--ink); }

.list { padding-left: 1.25em; }
.list li + li { margin-top: 8px; }
.list li::marker { color: var(--muted); }
.list-inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink); font-weight: 600; font-size: 1.12rem; }
.list-inline li + li { margin-top: 0; }
.list-numbered li::marker { color: var(--red-deep); font-weight: 650; font-variant-numeric: tabular-nums; }

.prose p { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }

/* Inner page heads */
.page-head { padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-bottom: 0; }
.page-head-tall { padding: 96px 0; border-bottom: 0; }

/* Formats on the Product page */
.formats { list-style: none; margin: 0 0 1em; padding: 0; border-bottom: 1px solid var(--line); }
.formats li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 560; }
.formats li.is-coming { color: var(--muted); font-weight: 400; }
.status { display: inline-block; padding: 3px 8px 2px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 0.7rem; line-height: 1.4; white-space: nowrap; }

/* Certifications: the held ones as a register, the coming ones quieter below. */
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 32px; }
.cert { grid-column: 1 / -1; padding: 24px 0 28px; border-top: 2px solid var(--ink); }
.cert p { margin: 0; }
.cert-name { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.cert-status { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.cert-image { display: block; margin-bottom: 14px; }
.cert-image img { width: auto; height: 48px; }  /* the owner's ISO badge: about the height of the heading, never larger */
.cert-coming_soon { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.cert-coming_soon .cert-name { font-size: 1.02rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; letter-spacing: 0; }
.cert-coming_soon .cert-status { font-size: 0.9rem; font-weight: 400; }
@media (min-width: 760px) {
    .cert { grid-column: span 2; }
    .cert-coming_soon { grid-column: span 3; display: flex; align-items: baseline; gap: 14px; }
    .cert-coming_soon .cert-name { margin: 0; }
}
.section-ink .cert { border-top-color: #ffffff; }
.section-ink .cert-coming_soon { border-top-color: var(--field-line); }
.section-ink .cert-status, .section-ink .cert-coming_soon .cert-name { color: var(--field-muted); }

/* The full register on the Certifications page. */
.certs-full .cert-name + p { color: var(--text); max-width: 36rem; }
.cert .cert-note { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
.cert-facts { margin: 20px 0 0; display: grid; gap: 0; font-size: 0.97rem; border-bottom: 1px solid var(--line); }
.cert-facts div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.cert-facts dt { color: var(--muted); padding-top: 3px; font-size: 0.72rem; }
.cert-facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.cert-facts a { overflow-wrap: anywhere; }
@media (max-width: 480px) { .cert-facts div { grid-template-columns: 1fr; } }
.certs-full .cert:not(.cert-coming_soon) { grid-column: 1 / -1; }
@media (min-width: 1000px) {
    .certs-full .cert:not(.cert-coming_soon) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--grid-gap); }
    .certs-full .cert:not(.cert-coming_soon) > * { grid-column: 1; }
    .certs-full .cert:not(.cert-coming_soon) > .cert-facts { grid-column: 2; grid-row: 1 / span 6; margin-top: 4px; }
}

/* Specifications: a spec sheet in two tables. */
.spec-sheet { display: grid; gap: 48px; margin-bottom: 40px; }
@media (min-width: 1000px) { .spec-sheet { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--grid-gap); align-items: start; } }
.specs { width: 100%; border-collapse: collapse; }
.spec-sheet .specs { margin: 0; }
.specs caption { text-align: left; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.specs th { width: 38%; color: var(--ink); font-weight: 600; }
.specs td { color: var(--text); }
.specs-numeric th { width: auto; }
.specs-numeric td { text-align: right; padding-right: 0; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.specs thead th { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.specs tr.indent th { padding-left: 1.25em; font-weight: 400; }
.measure { max-width: 44rem; }
.note { color: var(--muted); font-size: 0.95rem; margin: 14px 0 0; }
/* Spec label: the physical and chemical specs in the manner of a Nutrition Facts panel. Always black on white, like a printed label. */
.spec-label { max-width: 380px; border: 1px solid #000; background: #fff; color: #000; padding: 6px 10px 10px; font-variant-numeric: tabular-nums; }
.spec-label table { width: 100%; border-collapse: collapse; }
.spec-label caption { text-align: left; padding-bottom: 4px; border-bottom: 12px solid #000; }
.spec-label-title { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.spec-label-product { display: block; font-size: 1rem; font-weight: 600; margin-top: 4px; }
.spec-label thead th { font-size: 0.78rem; font-weight: 800; padding: 4px 0; text-align: left; border-bottom: 1px solid #000; }
.spec-label thead th + th, .spec-label td { text-align: right; }
.spec-label th, .spec-label td { padding: 5px 0; border-top: 1px solid #000; font-size: 0.92rem; vertical-align: baseline; color: #000; }
.spec-label tbody th { font-weight: 700; text-align: left; padding-right: 12px; }
.spec-label td { font-weight: 500; white-space: nowrap; }
.spec-label tr.spec-label-lead th, .spec-label tr.spec-label-lead td { font-size: 1.6rem; font-weight: 900; line-height: 1.1; padding: 6px 0 8px; border-top: 0; }
.spec-label tr.spec-label-lead + tr th, .spec-label tr.spec-label-lead + tr td { border-top: 6px solid #000; }
.spec-label tr.spec-label-break th, .spec-label tr.spec-label-break td { border-top: 4px solid #000; }
.spec-label-foot { margin: 0; padding-top: 6px; border-top: 12px solid #000; font-size: 0.8rem; line-height: 1.4; color: #000; }
.spec-label-source { display: block; margin-top: 4px; color: #3b3632; }
@media (max-width: 420px) { .spec-label td { white-space: normal; } }

.nutrition { max-width: 760px; margin-top: 40px; padding: 14px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nutrition h3 { margin-bottom: 4px; font-size: 1rem; color: var(--muted); }
.nutrition p { margin: 0; color: var(--muted); }

/* Recipes */
.toc ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 0; }
.toc a { display: inline-block; padding: 12px 28px 12px 0; font-weight: 600; }
.recipe-yield { color: var(--muted); margin-bottom: 32px; }
.recipe-grid { display: grid; gap: 36px; }
@media (min-width: 860px) {
    .recipe-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; }
    /* With a photo: the photo beside the ingredients, the method across the full width below in two columns. */
    .recipe-grid.has-photo { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px var(--grid-gap); align-items: start; }
    .recipe-grid.has-photo > :last-child { grid-column: 1 / -1; }
    .recipe-grid.has-photo > :last-child ol { columns: 2; column-gap: var(--grid-gap); }
    .recipe-grid.has-photo > :last-child li { break-inside: avoid; }
}
.recipe-grid h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); }

/* Call to action: the closing band, in brand red. */
.cta { background: var(--red); color: #ffffff; padding: clamp(56px, 7vw, 88px) 0; }
.cta-box { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .cta-box { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }
.cta h2 { color: #ffffff; max-width: 22ch; margin-bottom: 14px; }
.cta p { margin: 0; max-width: 40rem; font-size: 1.1rem; }

/* Contact details */
.contact-list { list-style: none; margin: 0 0 1.25em; padding: 0; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 2px 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label { color: var(--muted); }
.contact-list a { overflow-wrap: anywhere; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; } }
.panel-muted .contact-list li { grid-template-columns: 1fr; gap: 0; }

/* Quote form */
.quote-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 48px; } }
/* The form and the aside are ruled columns on the sheet, not boxes. */
.panel { padding: 28px 0 0; border-top: 2px solid var(--ink); }
.panel-muted { padding-top: 22px; }
.panel-muted h2 { font-size: 1.35rem; }
.panel-muted h3 { margin-top: 28px; }
.quote-form { display: grid; gap: 24px; position: relative; }
.field { display: grid; gap: 6px; align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; gap: 24px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 620; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: 0; color: var(--muted); font-size: 0.92rem; }
input[type="text"], input[type="tel"], input[type="email"], textarea {
    width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--paper);
    border: 1px solid var(--input-line); border-radius: var(--radius);
}
input:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
textarea { resize: vertical; }
.choices { display: grid; gap: 8px; }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choice:hover { border-color: var(--input-line); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--sheet); }
.field .choice { padding: 12px 14px; font-weight: 400; color: var(--text); }
.choice input { margin: 0.3em 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.field-error { color: var(--error); font-size: 0.95rem; font-weight: 520; margin: 0; }
.form-error { margin: 0; padding: 16px 18px; border: 1px solid var(--error); border-radius: var(--radius); background: var(--error-bg); color: var(--error); }
.form-error p, .form-error ul { margin: 0; }
.form-error ul { padding-left: 1.2em; margin-top: 6px; }
.form-error a { color: inherit; }
.thanks h2 { font-size: 1.6rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer: the sheet's margin, on the graphite field. */
.site-footer { background: var(--field); color: var(--field-text); padding: clamp(56px, 6vw, 80px) 0 28px; font-size: 0.97rem; }
.site-footer a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.site-footer a:hover { text-decoration-color: #ffffff; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 56px; } }
.footer-name { display: flex; align-items: center; gap: 12px; color: #ffffff; font-weight: 720; font-size: 1.2rem; margin-bottom: 16px; }
.footer-name img { width: 36px; height: auto; }
.footer-certs { color: var(--field-muted); }
/* The owner's "Member, MX US Exporters Consortium" mark, redrawn in --field-muted by tools/make-media.php. */
.footer-member { margin-top: 28px; }
.footer-member img { display: block; width: 200px; height: auto; }
.site-footer h2 { color: var(--field-muted); margin-bottom: 14px; }
.site-footer ul:not(.contact-list) { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul:not(.contact-list) a { text-decoration: none; }
.site-footer ul:not(.contact-list) a:hover { text-decoration: underline; }
.site-footer .contact-list li { border-color: var(--field-line); grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); }
.site-footer .contact-label { color: var(--field-muted); }
@media (max-width: 480px) { .site-footer .contact-list li { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--field-line); color: var(--field-muted); font-size: 0.92rem; }

@media print {
    .site-header, .site-footer, .cta, .toc, .media-empty, video { display: none; }
    .section-alt, .section-ink { background: none; color: inherit; }
    .section-ink h2, .section-ink h3 { color: inherit; }
}
