/* ==========================================================
   SageFields International – site design system
   Layout, type scale and components benchmarked on biontech.com:
   inset 16px-radius frames, glass statement cards, pill buttons,
   tinted highlight panels and a rounded brand-colour footer.
   Brand colours live in :root – edit them here only.
   ========================================================== */

:root {
  /* Brand – palette from the SageFields brand brief */
  --ink: #003A41;          /* all text – BioNTech's single text colour */
  --brand: #0F1A14;        /* deep forest: footer, dark panels and tiles */
  --brand-2: #3B6347;      /* sage green: labels, icons, hover */
  --leaf: #729B7F;         /* light sage: small accents on dark */
  --accent: #C5A059;       /* champagne gold: primary pill button */
  --accent-hover: #B38D45;
  --gold: #C5A059;

  /* Neutrals */
  --white: #FFFFFF;
  --tint: #F1F4F1;         /* highlight panels (a step deeper than the brief's #F8F9F8 so panels read on white) */
  --tint-2: #E6ECE6;
  --line: #C9D4CB;         /* input lines */
  --line-soft: #E0E5E0;    /* dividers – brief's subtle border */
  --muted: #737373;        /* utility nav, meta text */
  --muted-ink: #003A41;    /* secondary copy – same as --ink, BioNTech never greys out paragraphs */
  --glass: rgba(255, 255, 255, 0.62);

  /* Type – sizes and line heights measured from biontech.com.
     Geist is the closest free match to Neue Haas Grotesk Display in letter shape (best of 61 free
     fonts scored glyph-by-glyph, strongest on the Helvetica-signature R, G, 1, g and Q).
     Weights and tracking are tuned so stroke thickness and line widths match BioNTech's
     500 (body) and 600 (headings): Geist 450 / 650, tracking -0.05em / -0.06em. */
  --font: "Geist", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fw-regular: 450;       /* BioNTech 500: body, nav, links */
  --fw-strong: 650;        /* BioNTech 600: headings, buttons, labels */
  --fs-display: 76px;
  --fs-h1: 54px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-h4: 20px;
  --fs-body: 16px;
  --fs-lead: 16px;
  --fs-small: 14px;
  --fs-xsmall: 12px;
  --track-head: -0.06em;
  --track-body: -0.05em;

  /* Layout */
  /* Like biontech.com: frames (hero, panels, banners, footer) run edge to edge at any screen size,
     while text and cards stay in a centred column no wider than --content. --inset grows on wide
     screens to keep that column centred, so nothing looks boxed on big monitors. */
  --shell: 100%;           /* frames are full width */
  --content: 1272px;       /* max width of the text/card column (biontech.com: 1272px at every screen size) */
  --gutter: 20px;          /* frame inset from the viewport edge (biontech.com: 20px) */
  --inset: max(34px, calc((var(--vw, 100vw) - var(--content)) / 2 - var(--gutter)));   /* aligns content to the centred column; --vw is set by site.js */
  --pad: 34px;             /* fixed padding inside boxes and cards (does not grow with the screen) */
  --edge: calc(var(--gutter) + var(--inset) - var(--pad));   /* frame edge of page content: --pad outside the column */
  --radius: 16px;
  --radius-sm: 8px;
  --section: 96px;         /* vertical rhythm between blocks */
  --header-h: 107px;
}

@media (max-width: 991px) {
  :root { --inset: 24px; --pad: 24px; --section: 72px; --header-h: 72px; }
}
@media (max-width: 767px) {
  :root { --fs-display: 36px; --fs-h1: 32px; --fs-h2: 28px; --fs-h3: 24px; }
}
@media (max-width: 575px) {
  :root { --gutter: 12px; --inset: 16px; --pad: 16px; --section: 56px; }
}
/* Large and very large monitors: slightly bigger headings and more breathing room (biontech.com: 60px H1 at 2560px) */
@media (min-width: 1920px) {
  :root { --fs-display: 84px; --fs-h1: 60px; --fs-h2: 42px; --fs-h3: 30px; --fs-h4: 22px; --section: 120px; }
}
@media (min-width: 2560px) {
  :root { --fs-body: 17px; --fs-lead: 17px; --section: 136px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: var(--track-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Tracking is set per element (not inherited from body) so the em scales with each font size */
:where(body *) { letter-spacing: var(--track-body); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: var(--fw-strong); line-height: 1.2; letter-spacing: var(--track-head); color: var(--ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 200;
  background: var(--accent); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: var(--fw-strong);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout primitives ---------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.wrap { padding: 0 var(--inset); }
/* Page content below the hero / page banner sits in the content column too: its frames (panels, photos,
   gallery, map, call-to-action) stop --pad outside the column, so their text lines up with the logo.
   On screens narrower than the column this is the same as the full-width layout. */
main > .shell:not(.hero-stage):not(.page-head) {
  padding-left: var(--edge);
  padding-right: var(--edge);
  --inset: var(--pad);
}
.block { margin-top: var(--section); }
.block-sm { margin-top: calc(var(--section) * 0.6); }
.frame { border-radius: var(--radius); overflow: hidden; }

.text-lead { font-size: var(--fs-lead); line-height: 1.5; }
.text-muted { color: var(--muted-ink); }
.text-small { font-size: var(--fs-small); }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* Section labels: the brand brief's wide-tracked corporate caps (headings stay BioNTech-tight) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xsmall); font-weight: var(--fw-strong); line-height: 1.5;
  text-transform: uppercase; letter-spacing: 0.32em;
  color: var(--brand-2);
}

/* Section heading row: title left, optional action right */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .stack { max-width: 720px; }

/* Two-column split used by the intro, about and detail blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.split--top { align-items: start; }
.split--center { align-items: center; }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons (pill, like BioNTech) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px 8px 20px;
  border-radius: 999px; border: 0.8px solid transparent;
  font-size: var(--fs-body); font-weight: var(--fw-strong); line-height: 1.5;
  background: var(--accent); color: var(--ink);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover { background: var(--accent-hover); }
.btn:hover svg { transform: translateX(3px); }
.btn--secondary { background: transparent; border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--danger { background: #a3341f; color: var(--white); }
.btn--danger:hover { background: #82270f; color: var(--white); }
.btn--light { background: var(--white); }
.btn--light:hover { background: var(--tint-2); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-strong); color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--brand-2); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
/* The top bar scrolls away with the page and the main row stays: top is minus the top bar's height (set in site.js) */
.site-header { position: sticky; top: calc(-1 * var(--meta-h, 0px)); z-index: 100; background: var(--white); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px rgba(15, 26, 20, .06); }
.site-header .shell { padding-top: 0; padding-bottom: 0; }
.header-meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 9px var(--inset); border-bottom: 1px solid var(--line-soft); }
.header-meta ul { display: flex; gap: 22px; }
.header-meta a, .header-meta span { font-size: var(--fs-small); color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.header-meta a:hover, .header-meta a[aria-current="page"] { color: var(--ink); }
.header-meta svg { width: 16px; height: 16px; color: var(--brand-2); }
.header-main { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 12px var(--inset); }
.header-logo { flex: none; }
.header-logo img { display: block; height: 58px; width: auto; }

.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a,
.main-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border: 0; background: none; border-radius: var(--radius-sm);
  font-size: 18px; font-weight: var(--fw-regular); color: var(--ink); line-height: 1.5; cursor: pointer; white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > button:hover { background: var(--tint); }
.main-nav > ul > li > a[aria-current="page"],
.main-nav .is-active > a,
.main-nav .is-active > button { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.main-nav button svg { width: 16px; height: 16px; transition: transform .2s ease; }
.main-nav .has-sub[data-open="true"] > button svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 280px; padding: 12px; background: var(--white); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15, 26, 20, 0.14);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; } /* keeps hover across the gap */
.has-sub[data-open="true"] .subnav,
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.subnav a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: var(--fw-regular); }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--tint); }
.subnav a small { display: block; color: var(--muted); font-size: var(--fs-xsmall); font-weight: var(--fw-regular); }
/* Mega menus (Services, About): a full-width panel under the header, with the page blurred behind it */
.main-nav > ul > li.has-sub--mega { position: static; }
.subnav.subnav--mega {
  position: fixed; top: var(--mega-top, 120px); left: 16px; right: 16px; min-width: 0; padding: 0;
  border-radius: 18px; box-shadow: 0 30px 80px rgba(15, 26, 20, .18); transform: translateY(10px);
}
.has-sub--mega:hover .subnav--mega,
.has-sub--mega:focus-within .subnav--mega,
.has-sub--mega[data-open="true"] .subnav--mega { transform: none; }
.subnav--mega::before { height: 40px; }
.site-header::after {
  content: ""; position: fixed; left: 0; right: 0; top: var(--mega-top, 120px); bottom: 0; z-index: -1;
  background: rgba(15, 26, 20, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s;
}
.site-header:has(.has-sub--mega:hover)::after,
.site-header:has(.has-sub--mega:focus-within)::after,
.site-header:has(.has-sub--mega[data-open="true"])::after { opacity: 1; visibility: visible; }
.mega { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(240px, .9fr); gap: 56px; max-width: 1320px; margin: 0 auto; padding: 52px 56px 60px; }
.mega__title { margin: 0 0 16px; font-size: var(--fs-h2, 36px); font-weight: var(--fw-strong); line-height: 1.1; color: var(--brand); }
.mega__lead { margin: 0 0 24px; max-width: 34ch; font-size: 18px; line-height: 1.55; color: var(--ink); }
.subnav .mega__all { display: inline-flex; align-items: center; gap: 8px; padding: 0; font-weight: var(--fw-strong); color: var(--brand-2); }
.subnav .mega__all:hover { background: none; text-decoration: underline; }
.mega__all svg { width: 18px; height: 18px; }
.mega__links { display: grid; align-content: start; gap: 2px; margin: 0; padding: 0; list-style: none; }
.subnav .mega__links a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--ink); }
.mega__links a span { flex: 1; font-size: 21px; line-height: 1.25; }
.mega__links a small { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--muted); }
.mega__links a > svg { flex: none; width: 34px; height: 34px; padding: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-2); opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }
.subnav .mega__links a:hover, .subnav .mega__links a:focus-visible, .subnav .mega__links a[aria-current="page"] { background: var(--tint); }
.mega__links a:hover > svg, .mega__links a:focus-visible > svg, .mega__links a[aria-current="page"] > svg { opacity: 1; transform: none; }
.mega__thumb { display: none; }
.mega__media { position: relative; min-height: 260px; border-radius: 14px; overflow: hidden; background: var(--tint); }
.mega__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
@media (min-width: 992px) and (max-width: 1199px) {
  .mega { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; padding: 40px 40px 48px; }
  .mega__media { display: none; }
}

.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.header-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0.8px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; }
.header-icon:hover, .header-icon[aria-expanded="true"] { border-color: var(--brand-2); }
.header-icon svg { width: 20px; height: 20px; }
.header-quote { white-space: nowrap; padding-left: 18px; padding-right: 18px; }

/* Search: covers the header row while open */
.header-search { position: absolute; inset: 0 var(--inset); z-index: 3; display: flex; align-items: center; gap: 12px; background: var(--white); }
.header-search[hidden] { display: none; }
.header-search > svg { flex: none; width: 22px; height: 22px; color: var(--muted); }
.header-search input { flex: 1; min-width: 0; height: 48px; padding: 0 4px; border: 0; border-bottom: 1.5px solid var(--line); background: none; font: inherit; font-size: 20px; color: var(--ink); outline: none; }
.header-search input:focus { border-color: var(--brand-2); }
.header-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.header-search__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.header-search__close:hover { background: var(--tint); }
.header-search__close svg { width: 22px; height: 22px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0.8px solid var(--line); background: var(--white);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (min-width: 992px) and (max-width: 1279px) {
  .header-main { gap: 14px; }
  .header-logo img { height: 50px; }
  .main-nav > ul > li > a,
  .main-nav > ul > li > button { padding: 6px 7px; font-size: 16px; }
  .header-tools { gap: 8px; }
  .header-quote { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-meta ul { gap: 16px; }
  .header-quote { display: none; } /* still in reach: Contact, and the top of the contact page */
}
@media (max-width: 991px) {
  .header-meta { display: none; }
  .header-main { padding-top: 10px; padding-bottom: 10px; }
  .header-logo img { height: 44px; }
  .header-quote { display: none; }
  .header-tools { margin-left: auto; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    padding: 16px calc(var(--gutter) + var(--inset)) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .main-nav > ul > li > a,
  .main-nav > ul > li > button { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 22px; border-radius: 0; }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > button:hover { background: none; }
  .main-nav .is-active > a, .main-nav .is-active > button, .main-nav > ul > li > a[aria-current="page"] { box-shadow: none; color: var(--brand-2); }
  .subnav {
    position: static; transform: none; box-shadow: none; min-width: 0; padding: 0 0 12px;
    opacity: 1; visibility: visible; display: none;
  }
  .subnav::before { display: none; }
  .has-sub:hover .subnav, .has-sub:focus-within .subnav { transform: none; }
  .has-sub[data-open="true"] .subnav { display: block; transform: none; }
  .subnav.subnav--mega { position: static; left: auto; right: auto; top: auto; border-radius: 0; box-shadow: none; padding: 0 0 12px; }
  .site-header::after { display: none; }
  .mega { display: block; padding: 0; }
  .mega { display: flex; flex-direction: column-reverse; }
  .mega__title, .mega__lead, .mega__media { display: none; }
  .subnav .mega__all { margin-top: 8px; font-size: var(--fs-small); }
  .subnav .mega__links a { gap: 14px; padding: 6px 0; border-radius: 0; }
  .subnav .mega__links a:hover { background: none; }
  .mega__links a span { font-size: 16px; font-weight: var(--fw-strong); }
  .mega__links a small { font-weight: var(--fw-regular); }
  .mega__links a > svg { display: none; }
  .mega__thumb { display: block; flex: none; width: 76px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
  .main-nav .nav-cta { margin-top: 28px; border: 0; }
  .main-nav .nav-contact { margin-top: 24px; border: 0; color: var(--muted); font-size: var(--fs-small); }
  .main-nav .nav-contact a { display: block; padding: 4px 0; }
}
@media (max-width: 600px) {
  .header-search { gap: 8px; }
  .header-search .btn { display: none; }
  .header-search input { font-size: 17px; }
}
@media (min-width: 992px) {
  .main-nav .nav-cta, .main-nav .nav-contact { display: none; }
}

/* ---------- Hero stage (home) ---------- */
.hero-stage { position: relative; }
.hero-stage__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: clamp(520px, calc(100vh - var(--header-full, var(--header-h)) - 40px), max(760px, 42vw));
  background: var(--brand);
}
.hero-stage__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 30s ease-in-out infinite alternate; }
.hero-stage__media video { width: 100%; height: 100%; object-fit: cover; }
.hero-stage__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,20,0) 45%, rgba(15,26,20,.35) 100%);
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-stage__statement {
  position: absolute; z-index: 1; left: calc(var(--gutter) + var(--inset)); bottom: var(--pad);
  width: min(620px, calc(100% - 2 * (var(--gutter) + var(--inset))));
}
.hero-stage__statement .eyebrow { margin-bottom: 12px; }
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px);
  border-radius: var(--radius); padding: 28px;
}
.hero-stage__statement h2 { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 20px; }
.hero-stage__controls {
  position: absolute; z-index: 1; right: calc(var(--gutter) + var(--inset)); bottom: var(--pad);
  display: flex; align-items: center; gap: 8px;
}
.hero-stage__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 0;
  color: var(--white); background: rgba(15,26,20,.35);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.hero-stage__toggle:hover { background: rgba(15,26,20,.6); }
.hero-stage__toggle svg { width: 16px; height: 16px; }
.hero-stage__toggle .icon-play, .hero-stage__toggle.is-paused .icon-pause { display: none; }
.hero-stage__toggle.is-paused .icon-play { display: block; }
@media (max-width: 767px) {
  /* Phones: the hero is just the video – a shorter 4:3 frame, no statement card */
  .hero-stage__media { height: auto; aspect-ratio: 4 / 3; }
  .hero-stage__statement { display: none; }
  .glass { padding: 20px; }
  .hero-stage__controls { right: calc(var(--gutter) + 12px); bottom: 12px; }
}

/* Intro under the hero: H1 left, copy + button right */
.intro { padding-top: 48px; }
.intro h1 { max-width: 12ch; }
.intro .stack-lg { max-width: 560px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xsmall); font-weight: var(--fw-strong); color: var(--ink); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb svg { width: 14px; height: 14px; }
.page-head__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.page-head__grid .text-lead { max-width: 560px; }
.page-head__media { border-radius: var(--radius); overflow: hidden; height: clamp(240px, 32vw, 760px); position: relative; }
.page-head__media img,
.page-head__media video { width: 100%; height: 100%; object-fit: cover; }
.page-head__media--tall { height: auto; aspect-ratio: 2 / 1; }
.page-head__toggle { position: absolute; z-index: 1; right: 20px; bottom: 20px; }
@media (max-width: 991px) { .page-head__grid { grid-template-columns: 1fr; } }

/* ---------- Highlight panel (tinted, rounded) ---------- */
.panel { background: var(--tint); border-radius: var(--radius); padding: 56px var(--inset); }
.panel--dark { background: var(--brand); color: var(--white); }
.panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--white); }
.panel--dark .text-muted { color: rgba(255,255,255,.78); }
.panel--dark .eyebrow { color: var(--accent); }
@media (max-width: 575px) { .panel { padding: 40px var(--inset); } }

/* ---------- Teaser list (small square image + text) ---------- */
.teaser-list { display: grid; gap: 0; }
.teaser {
  display: grid; grid-template-columns: 125px 1fr auto; gap: 32px; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--line-soft);
}
.teaser:first-child { border-top: 0; padding-top: 0; }
.teaser:last-child { padding-bottom: 0; }
.teaser__media { width: 125px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.teaser__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.teaser:hover .teaser__media img { transform: scale(1.06); }
.teaser h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.teaser p { color: var(--muted-ink); max-width: 640px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags span { font-size: var(--fs-xsmall); font-weight: var(--fw-strong); padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--ink); }
.panel--dark .tags span { background: rgba(255,255,255,.12); color: var(--white); }
@media (max-width: 767px) {
  .teaser { grid-template-columns: 88px 1fr; gap: 16px 20px; align-items: start; }
  .teaser__media { width: 88px; }
  .teaser .link-arrow { grid-column: 2; }
}

/* ---------- Image teaser (large image with glass card) ---------- */
.image-teaser { position: relative; border-radius: var(--radius); overflow: hidden; min-height: clamp(560px, 34vw, 900px); display: flex; }
.image-teaser > img,
.image-teaser > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-teaser > video { object-position: 50% 30%; }   /* keep the drone (upper left of the shot) in frame */
.image-teaser__toggle { position: absolute; z-index: 2; left: 20px; bottom: 20px; }
.image-teaser__card { position: relative; z-index: 1; margin: 20px; width: min(440px, calc(100% - 40px)); align-self: flex-start; }
.image-teaser--right .image-teaser__card { margin-left: auto; }
.image-teaser--bottom .image-teaser__card { align-self: flex-end; }
.image-teaser__card h3 { margin-bottom: 14px; }
.image-teaser__card p { margin-bottom: 20px; }
@media (max-width: 767px) {
  .image-teaser { min-height: 0; flex-direction: column; }
  .image-teaser > img,
  .image-teaser > video { position: relative; height: 280px; }
  .image-teaser__toggle { top: 12px; left: 12px; bottom: auto; }
  .image-teaser__card { margin: -60px 12px 12px; width: auto; background: rgba(255,255,255,.9); }
}

/* ---------- Display number (404 page) ---------- */
.stat__num { font-size: var(--fs-display); font-weight: var(--fw-strong); line-height: 1.25; letter-spacing: var(--track-head); }

/* ---------- Chapter opening (thin image band + glass title) ---------- */
.chapter { position: relative; }
.chapter__band { height: 163px; border-radius: var(--radius); overflow: hidden; }
.chapter__band img { width: 100%; height: 100%; object-fit: cover; }
.chapter__title { position: relative; margin: -84px var(--inset) 0; padding: 32px; max-width: 760px; }
.chapter__title h2 { margin-top: 8px; }
@media (max-width: 575px) { .chapter__title { margin: -60px 12px 0; padding: 22px; } }

/* ---------- Step cards ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step__num { font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--ink); display: block; margin-bottom: 40px; }
.step h3 { font-size: var(--fs-h4); margin-bottom: 10px; }
.step p { color: var(--muted-ink); }
@media (max-width: 991px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Card grid (image top, text below) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; gap: 16px; }
.card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__meta { font-size: var(--fs-small); color: var(--muted); }
.card h3 { font-size: var(--fs-h4); }
.card p { color: var(--muted-ink); }
.card ul { display: grid; gap: 6px; }
.card .link-arrow { margin-top: auto; }
.panel--dark .card__meta, .panel--dark .card p { color: rgba(255,255,255,.75); }
@media (max-width: 1199px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }

.steps--drone { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding: 0; list-style: none; }
.group-card .card__meta { display: block; margin-bottom: 6px; }

/* ---------- Check list ---------- */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand-2); }
.checks--single { grid-template-columns: 1fr; }
@media (max-width: 575px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Accordion (native details/summary) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: var(--fs-h4); font-weight: var(--fw-strong); line-height: 1.2; letter-spacing: var(--track-head);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--brand-2); }
.accordion .acc-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 0.8px solid var(--ink); transition: transform .25s ease, background-color .2s ease;
}
.accordion .acc-icon svg { width: 18px; height: 18px; }
.accordion details[open] .acc-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.accordion .acc-body { padding: 0 60px 24px 0; color: var(--muted-ink); }

/* ---------- Detail page layout ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.side-nav { background: var(--tint); border-radius: var(--radius); padding: 24px; }
.side-nav h3 { font-size: var(--fs-small); color: var(--muted); font-weight: var(--fw-strong); margin-bottom: 8px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); font-weight: var(--fw-regular); }
.side-nav li:first-child a { border-top: 0; }
.side-nav a svg { width: 16px; height: 16px; opacity: .5; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--brand-2); }
.side-nav a[aria-current="page"] { font-weight: var(--fw-strong); }
.side-nav a[aria-current="page"] svg { opacity: 1; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer { background: var(--tint); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.offer__num { font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--ink); }
.offer h4 { font-size: var(--fs-h4); }
.offer p { color: var(--muted-ink); }
.offer--white { background: var(--white); }
.offer--white h4 { font-size: var(--fs-h4); }
.frame img { width: 100%; }
.image-teaser--compact { min-height: 420px; }
.image-teaser--compact .image-teaser__card { margin: 12px; width: calc(100% - 24px); padding: 20px; }
.image-teaser--compact h4 { margin-bottom: 14px; }
@media (max-width: 1199px) { .detail { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } }
@media (max-width: 991px) {
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
}
@media (max-width: 575px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---------- Catalogue content (service pages + products page) ---------- */
.covers { font-size: var(--fs-small); padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--tint); }
.covers strong { font-weight: var(--fw-strong); }
.group-card { padding: 24px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); }
.group-card h3 { font-size: var(--fs-h4); margin-bottom: 14px; }
.group-card ul { display: grid; gap: 8px; }
.group-card li { position: relative; padding-left: 16px; font-size: var(--fs-small); line-height: 1.5; }
.group-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }
.btn svg, .link-arrow svg { flex: none; }
.directory-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
html:not(.js) .directory-filter, html:not(.js) .directory-status { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.6px solid var(--line);
  border-radius: 999px; background: var(--white); color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-strong);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.filter-chip span { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--tint); font-size: var(--fs-xsmall); text-align: center; }
.filter-chip:hover { border-color: var(--brand-2); }
.filter-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.filter-chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .18); }
.directory-status { margin-bottom: 24px; font-size: var(--fs-small); color: var(--muted); }
.directory { display: grid; gap: 48px; }
.directory-group__head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.directory-group__head img { width: 56px; height: 56px; flex: none; border-radius: var(--radius-sm); object-fit: cover; }
.directory-group__head > div { flex: 1; min-width: 0; }
.directory-group__head h3 { font-size: var(--fs-h3); }
.directory-group__head p { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 575px) {
  .directory-group__head { flex-wrap: wrap; }
  .directory-group__head .link-arrow { flex-basis: 100%; }
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--tint); }
.product-grid--white .product-card { background: var(--white); }
.product-card h3, .product-card h4 { font-size: var(--fs-h4); }
.product-card p { color: var(--muted-ink); font-size: var(--fs-small); flex: 1; }
.product-card .tags { margin-top: 0; }
.tags a { font-size: var(--fs-xsmall); font-weight: var(--fw-strong); padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--ink); }
.tags a:hover { background: var(--brand-2); color: var(--white); }
@media (max-width: 991px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Shop cards (products page) ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1199px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.shop-card:hover { box-shadow: 0 16px 40px rgba(15, 26, 20, .10); transform: translateY(-2px); }
.shop-card.is-added { border-color: var(--brand-2); }
.shop-card__media { aspect-ratio: 4 / 3; background: var(--tint); }
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__placeholder {
  display: grid; place-content: center; justify-items: center; gap: 8px; height: 100%;
  background: linear-gradient(135deg, var(--tint), var(--tint-2)); color: var(--muted);
  font-size: var(--fs-xsmall); font-weight: var(--fw-strong);
}
.shop-card__placeholder svg { width: 32px; height: 32px; opacity: .6; }
.shop-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.shop-card__line { font-size: 11px; font-weight: var(--fw-strong); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); }
.shop-card h4 { font-size: var(--fs-h4); }
.shop-card__items { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-card__items li { padding: 4px 10px; border-radius: 999px; background: var(--tint); font-size: var(--fs-xsmall); line-height: 1.4; }
.shop-card__more summary {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: var(--fs-xsmall); font-weight: var(--fw-strong); color: var(--brand-2);
}
.shop-card__more summary::-webkit-details-marker { display: none; }
.shop-card__more[open] summary { margin-bottom: 6px; }
.shop-card__price { margin-top: auto; padding-top: 6px; font-size: var(--fs-small); color: var(--muted-ink); }
.shop-card__price strong { font-size: var(--fs-h4); font-weight: var(--fw-strong); color: var(--ink); }
.shop-card__price--ask { font-weight: var(--fw-strong); color: var(--brand-2); }
.shop-card__add {
  margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; padding: 8px 16px; border: 1.6px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-strong);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.shop-card__add > span { display: inline-flex; align-items: center; gap: 8px; }
.shop-card__add svg { width: 18px; height: 18px; }
.shop-card__add:hover { background: var(--ink); color: var(--white); }
.shop-card__add-on, .shop-card__add[aria-pressed="true"] .shop-card__add-off { display: none !important; }
.shop-card__add[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.shop-card__add[aria-pressed="true"] .shop-card__add-on { display: inline-flex !important; }
html:not(.js) .shop-card__add, html:not(.js) .cart { display: none; }

/* Export service page: one tile per export group, linking into the export catalogue */
.export-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 991px) { .export-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .export-tiles { grid-template-columns: 1fr; } }
.export-tile {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px;
  border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: box-shadow .25s ease, transform .25s ease;
}
.export-tile:hover { box-shadow: 0 12px 32px rgba(15, 26, 20, .10); transform: translateY(-2px); }
.export-tile img { width: 64px; height: 64px; flex: none; border-radius: var(--radius-sm); object-fit: cover; }
.export-tile span { flex: 1; min-width: 0; display: grid; }
.export-tile strong { font-weight: var(--fw-strong); }
.export-tile small { font-size: var(--fs-xsmall); color: var(--muted); }
.export-tile svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.export-tile:hover svg { transform: translateX(3px); }

/* Exports page: what we export, broadly (one tile per line) */
.export-whats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .export-whats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .export-whats { grid-template-columns: 1fr; } }
.export-what { overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); }
.export-what img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.export-what > div { display: grid; gap: 8px; padding: 20px; }
.export-what h3 { font-size: var(--fs-h4); }
.export-what p { font-size: var(--fs-small); color: var(--muted-ink); }

/* Export enquiry form */
.export-form .choice-group { flex-direction: row; }
.export-form .choice-group legend { font-size: var(--fs-small); font-weight: var(--fw-strong); margin-bottom: 8px; }
.export-form .quote-nav { justify-content: flex-start; flex-wrap: wrap; }

/* ---------- Shop: catalogue, product page, cart ---------- */
.shop-head { padding-top: 24px; }
.shop-head h1 { font-size: var(--fs-h2); margin-bottom: 6px; }
.shop-crumb-current::before { content: "›"; margin-right: 6px; }

/* Top-level categories */
.shop-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.shop-tile { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); color: var(--ink); transition: box-shadow .25s ease, border-color .25s ease; }
.shop-tile:hover { border-color: var(--brand-2); box-shadow: 0 10px 28px rgba(15, 26, 20, .08); }
.shop-tile img { width: 64px; height: 64px; flex: none; border-radius: var(--radius-sm); object-fit: cover; }
.shop-tile span { display: grid; min-width: 0; }
.shop-tile strong { font-weight: var(--fw-strong); }
.shop-tile small { font-size: var(--fs-xsmall); color: var(--muted); }
@media (max-width: 1099px) { .shop-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .shop-tiles { grid-template-columns: 1fr; } }

/* Homepage products section */
.home-products__tiles { margin-top: 20px; }
.home-products__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }
.home-products__bar h3 { font-size: var(--fs-h4); }
.shop-products.home-products__grid { margin-top: 16px; }
/* Layout: category tree beside the products */
.shop-section { margin-top: 32px; }
.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop-side { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.shop-panel { padding: 20px; border-radius: var(--radius); background: var(--tint); }
.shop-panel summary { display: none; }
.shop-side__title { margin: 20px 0 10px; font-size: var(--fs-small); font-weight: var(--fw-strong); letter-spacing: .06em; text-transform: uppercase; }
.shop-side__title:first-of-type { margin-top: 0; }
.shop-tree a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 8px; border-radius: var(--radius-sm); color: var(--ink); font-size: var(--fs-small); }
.shop-tree a:hover { background: var(--tint-2); }
.shop-tree a[aria-current] { background: var(--brand); color: var(--white); }
.shop-tree a[aria-current] span { color: var(--white); }
.shop-tree a span { color: var(--muted); font-size: var(--fs-xsmall); }
.shop-tree strong { font-weight: var(--fw-strong); }
.shop-tree__line ul { display: none; margin: 2px 0 8px 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.shop-tree__line.is-open ul { display: block; }
.shop-prices { display: grid; gap: 6px; font-size: var(--fs-small); }
.shop-prices label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.shop-prices input { accent-color: var(--brand-2); }

/* Toolbar */
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.shop-search { flex: 1 1 240px; }
.shop-search input, .shop-sort select { width: 100%; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: var(--fs-small); }
.shop-search input:focus, .shop-sort select:focus { outline: none; border-color: var(--brand-2); }
.currency-switch { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: var(--tint-2); }
.currency-switch button { min-width: 48px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: var(--fs-xsmall); font-weight: var(--fw-strong); }
.currency-switch button[aria-pressed="true"] { background: var(--brand); color: var(--white); }
.shop-count { margin: 14px 0; font-size: var(--fs-small); color: var(--muted); }
.shop-empty { padding: 32px; border-radius: var(--radius); background: var(--tint); text-align: center; }

/* Product grid */
.shop-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shop-products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
.shop-products .shop-card[hidden] { display: none; }
a.shop-card__media { display: block; }
.shop-card__media img { background: var(--white); }
.shop-card__name { font-size: 17px; line-height: 1.3; font-weight: var(--fw-strong); }
.shop-card__name a { color: var(--ink); }
.shop-card__name a:hover { text-decoration: underline; }
.shop-products .shop-card__price { font-size: 18px; font-weight: var(--fw-strong); color: var(--ink); }
.shop-card__add.is-in-cart { border-color: var(--brand-2); color: var(--brand-2); }
.shop-card__add.is-in-cart:hover { background: var(--brand-2); color: var(--white); }
.shop-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.shop-pages button { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-strong); }
.shop-pages button.is-current { border-color: var(--brand); background: var(--brand); color: var(--white); }

@media (max-width: 1199px) {
  .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-products--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .shop { grid-template-columns: 1fr; gap: 16px; }
  .shop-side { position: static; max-height: none; }
  .shop-panel { padding: 0; }
  .shop-panel summary { display: block; padding: 12px 18px; font-weight: var(--fw-strong); cursor: pointer; }
  .shop-panel[open] { padding: 0 18px 18px; }
  .shop-panel[open] summary { padding: 12px 0; }
  .shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .shop-products, .shop-products--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 575px) {
  .shop-products .shop-card__body { padding: 12px; }
  .shop-card__name { font-size: 15px; }
  .shop-products .shop-card__price { font-size: 16px; }
  .shop-products .shop-card__add { padding: 6px 8px; font-size: var(--fs-xsmall); }
}

/* Menu and cart sit together on the right of the header */
@media (min-width: 992px) { .main-nav { margin-left: auto; } .header-main { gap: 20px; } }

/* Header cart button */
.header-cart { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0.8px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); }
.header-cart:hover { border-color: var(--brand-2); }
.cart__icon { width: 22px; height: 22px; }
.header-cart__count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: var(--fw-strong); line-height: 20px; text-align: center; }
@media (max-width: 991px) { .header-cart { margin-left: auto; } .header-main { gap: 12px; } }

/* Cart drawer */
body.cart-open { overflow: hidden; }
.cart-backdrop { position: fixed; inset: 0; z-index: 160; background: rgba(15, 26, 20, .45); }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 170; display: flex; flex-direction: column; width: min(440px, 100vw); background: var(--white); box-shadow: -24px 0 60px rgba(15, 26, 20, .24); }
.cart-drawer[hidden], .cart-backdrop[hidden] { display: none; }
.cart-drawer__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.cart-drawer__head h2 { flex: 1; font-size: var(--fs-h4); }
.cart-drawer__close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); }
.cart-drawer__close svg { display: block; width: 18px; height: 18px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.cart-drawer__foot { display: grid; gap: 8px; padding: 16px 20px 20px; border-top: 1px solid var(--line-soft); }
.cart-drawer__foot[hidden] { display: none; }
.cart-drawer__foot .btn { justify-content: center; }
.cart-total { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cart-total strong { font-size: var(--fs-h4); font-weight: var(--fw-strong); text-align: right; }
.cart-empty-note { padding: 32px 0; color: var(--muted-ink); text-align: center; }

/* Cart lines */
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__media { width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--tint); }
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.cart-line__info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.cart-line__name { flex-basis: 100%; color: var(--ink); font-weight: var(--fw-strong); font-size: var(--fs-small); }
.cart-line__price { flex-basis: 100%; color: var(--muted); font-size: var(--fs-xsmall); }
.cart-line__total { font-size: var(--fs-small); font-weight: var(--fw-strong); white-space: nowrap; }
.cart-line__remove { padding: 0; border: 0; background: none; color: var(--muted-ink); font-size: var(--fs-xsmall); text-decoration: underline; }
.qty-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty-step button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 16px; }
.qty-step button:hover { background: var(--tint); }
.qty-step span { min-width: 26px; text-align: center; font-size: var(--fs-small); font-weight: var(--fw-strong); }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 16px; }
.product__media { overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); aspect-ratio: 4 / 3; }
.product__media img { width: 100%; height: 100%; object-fit: contain; }
.product__info { display: grid; justify-items: start; gap: 14px; }
.product__info h1 { margin: 0; }
.product__price { font-size: var(--fs-h3); font-weight: var(--fw-strong); }
.product__buy { display: flex; flex-wrap: wrap; gap: 12px; }
.product__buy[hidden] { display: none; }
.qty input { width: 84px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; text-align: center; }
.product__meta { display: grid; gap: 4px; margin: 0; font-size: var(--fs-small); }
.product__meta div { display: flex; gap: 8px; }
.product__meta dt { font-weight: var(--fw-strong); }
.product__meta dd { margin: 0; color: var(--muted-ink); }
.product__ask { color: var(--brand-2); font-weight: var(--fw-strong); font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 6px; }
.product__ask svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .product { grid-template-columns: 1fr; gap: 20px; } }

/* Cart page */
.cart-page__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; margin: 20px 0 0; }
.cart-page[hidden] { display: none; }
.cart-summary { padding: 24px; border-radius: var(--radius); background: var(--tint); scroll-margin-top: calc(var(--header-h) + 16px); }
.cart-summary h2 { margin-bottom: 14px; font-size: var(--fs-h4); }
.cart-summary__note { margin: 8px 0 16px; font-size: var(--fs-small); }
.cart-total--line { margin-bottom: 6px; font-size: var(--fs-small); }
.cart-total--line strong { font-size: var(--fs-small); }
.cart-total--grand { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cart-form { grid-template-columns: 1fr; gap: 12px; }
.cart-form .field textarea { min-height: 80px; }
.cart-form__actions { display: grid; gap: 8px; }
.cart-area-note { color: var(--muted-ink); font-size: var(--fs-xsmall); line-height: 1.4; }
.cart-pay { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cart-pay legend { margin-bottom: 8px; padding: 0; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.cart-pay__option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; }
.cart-pay__option:has(input:checked) { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); }
.cart-pay__option input { margin-top: 4px; accent-color: var(--brand-2); }
.cart-pay__option > span { display: grid; gap: 2px; }
.cart-pay__option strong { font-weight: var(--fw-strong); font-size: var(--fs-small); }
.cart-pay__option small { color: var(--muted-ink); font-size: var(--fs-xsmall); line-height: 1.4; }
.cart-form__actions .btn { justify-content: center; }
.order-done { display: grid; gap: 16px; max-width: 640px; margin: 24px auto 0; padding: 32px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); outline: none; }
.order-done[hidden] { display: none; }
.order-done__tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-2); color: var(--white); }
.order-done__tick svg { width: 28px; height: 28px; }
.order-done h2 { font-size: var(--fs-h3); }
.order-done__number strong { font-weight: var(--fw-strong); }
.order-done__lines { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-small); }
.order-done__lines li { display: flex; justify-content: space-between; gap: 16px; }
.order-done__lines strong { flex: none; font-weight: var(--fw-strong); }
.order-done__meta { display: grid; gap: 10px; margin: 0; font-size: var(--fs-small); }
.order-done__meta div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.order-done__meta dt { color: var(--muted-ink); }
.order-done__meta dd { margin: 0; }
.order-done__meta strong { font-size: var(--fs-h4); font-weight: var(--fw-strong); }
.cart-empty { padding: 48px 0; text-align: center; display: grid; justify-items: center; gap: 16px; }
.cart-empty[hidden] { display: none; }
@media (max-width: 991px) { .cart-page { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Shop admin (admin.html) ---------- */
.admin { min-height: 100vh; background: #F4F6F4; }
.adm-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; width: 250px; overflow-y: auto; background: var(--brand); color: rgba(255, 255, 255, .78); }
.adm-side__logo { display: block; padding: 18px 22px 10px; }
.adm-side__logo img { width: 150px; height: auto; }
.adm-side__group { margin: 18px 22px 6px; font-size: 11px; font-weight: var(--fw-strong); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.adm-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 22px; border-left: 3px solid transparent; color: inherit; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.adm-side nav a svg { width: 19px; height: 19px; flex: none; }
.adm-side nav a:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.adm-side nav a[aria-current] { border-left-color: var(--accent); background: rgba(197, 160, 89, .14); color: var(--white); }
.adm-side nav a[aria-current] svg { color: var(--accent); }
.adm-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(15, 26, 20, .5); }
.adm-page { margin-left: 250px; min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 10px 28px; background: #F4F6F4; }
.adm-top h1 { flex: 1; min-width: 0; font-size: var(--fs-h4); font-weight: var(--fw-strong); letter-spacing: .02em; text-transform: uppercase; }
.adm-top__menu { display: none; flex: none; width: 42px; height: 42px; padding: 9px; border: 0; border-radius: 10px; background: var(--white); color: var(--ink); }
.adm-top__search { display: flex; align-items: center; gap: 8px; width: min(280px, 32vw); padding: 0 14px; border-radius: 10px; background: var(--white); color: var(--muted); }
.adm-top__search svg { width: 17px; height: 17px; flex: none; }
.adm-top__search input { width: 100%; min-width: 0; min-height: 42px; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-small); outline: none; }
.adm-top__user { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-2); color: var(--white); font-size: 13px; font-weight: var(--fw-strong); }
.adm-main { padding: 4px 28px 32px; max-width: 1500px; }

/* Stat cards */
.adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.adm-stat { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px 14px; padding: 18px 18px 0; overflow: hidden; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 26, 20, .05); transition: box-shadow .2s ease, transform .2s ease; }
.adm-stat:hover { box-shadow: 0 10px 26px rgba(15, 26, 20, .1); transform: translateY(-1px); }
.adm-stat__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(59, 99, 71, .12); color: var(--brand-2); }
.adm-stat__icon svg { width: 25px; height: 25px; }
.adm-stat__body { display: grid; justify-items: end; text-align: right; min-width: 0; }
.adm-stat__body small { font-size: var(--fs-small); color: var(--muted-ink); }
.adm-stat__body strong { font-size: var(--fs-h3); font-weight: var(--fw-strong); line-height: 1.2; overflow-wrap: anywhere; }
.adm-stat__foot { grid-column: 1 / -1; margin: 0 -18px; padding: 9px 18px; background: #F8FAF8; font-size: var(--fs-xsmall); font-weight: var(--fw-strong); color: var(--brand-2); }

/* Cards, charts */
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.adm-card { padding: 20px; border-radius: 14px; background: var(--white); box-shadow: 0 1px 3px rgba(15, 26, 20, .05); }
.adm-card h2 { font-size: 17px; font-weight: var(--fw-strong); }
.adm-card--flush { padding: 0; overflow: hidden; }
.adm-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.adm-card__head [data-delete-removed] { margin-left: auto; }
.admin-warning { color: #a3341f; font-weight: var(--fw-strong); }
.adm-pill { padding: 4px 12px; border-radius: 999px; background: rgba(59, 99, 71, .12); color: var(--brand-2); font-size: var(--fs-xsmall); font-weight: var(--fw-strong); white-space: nowrap; }
.adm-bars { display: grid; gap: 16px; margin-top: 18px; }
.adm-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px; align-items: center; gap: 12px; color: var(--ink); font-size: var(--fs-small); }
.adm-bar:hover .adm-bar__fill { background: var(--accent); }
.adm-bar strong { font-weight: var(--fw-strong); text-align: right; }
.adm-bar__track { height: 14px; overflow: hidden; border-radius: 999px; background: var(--tint-2); }
.adm-bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--brand-2); transition: background-color .2s ease; }
.adm-donut-wrap { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 16px; }
.adm-donut { --share: 0%; position: relative; display: grid; place-content: center; justify-items: center; width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--brand-2) var(--share), var(--tint-2) 0); }
.adm-donut::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--white); }
.adm-donut > * { position: relative; }
.adm-donut strong { font-size: var(--fs-h3); font-weight: var(--fw-strong); line-height: 1.1; }
.adm-donut span { font-size: var(--fs-xsmall); color: var(--muted); }
.adm-legend { display: grid; gap: 10px; font-size: var(--fs-small); }
.adm-legend li { display: flex; justify-content: space-between; gap: 10px; }
.adm-legend strong { flex: none; font-weight: var(--fw-strong); }

/* Tables */
.adm-table-wrap { overflow-x: auto; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.admin-tools input, .admin-tools select, .adm-inline select { min-height: 40px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-size: var(--fs-small); }
.admin-tools input { flex: 1 1 220px; min-width: 0; }
.admin-tools select { flex: 0 1 auto; max-width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.admin-table th { padding: 11px 16px; background: #F8FAF8; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-xsmall); font-weight: var(--fw-strong); text-align: left; white-space: nowrap; color: var(--muted-ink); }
.admin-table td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.adm-strong { font-weight: var(--fw-strong); white-space: nowrap; }
.admin-photo { width: 76px; padding-right: 0 !important; }
.admin-select { width: 44px; padding-right: 0 !important; }
.adm-check { display: inline-grid; place-items: center; width: 32px; height: 32px; cursor: pointer; }
.adm-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-2); cursor: pointer; }
.adm-products tbody tr, [data-guide-table] tbody tr { cursor: pointer; }
.admin-table tr.is-selected { background: rgba(197, 160, 89, .12); }
.adm-low { color: #a3341f; font-weight: var(--fw-strong); }
.admin-tools { position: relative; }
.adm-bulk { position: absolute; inset: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 8px 14px; padding: 8px 20px; background: #FBF6EC; }
.adm-bulk__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.adm-bulk .btn { min-height: 36px; padding: 6px 14px; font-size: var(--fs-small); }
.admin-photo img, .admin-nophoto { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: #F4F6F4; object-fit: contain; }
.admin-nophoto { color: var(--muted); font-size: 10px; line-height: 1.2; text-align: center; }
.admin-name { min-width: 200px; }
.admin-name strong { display: block; font-weight: var(--fw-strong); }
.admin-name small { display: block; font-size: var(--fs-xsmall); color: var(--muted); }
.admin-name .admin-flag { color: #8a6416; }
.admin-missing { color: var(--muted); font-style: italic; white-space: nowrap; }
.admin-actions { white-space: nowrap; }
.adm-act { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 6px; padding: 0; border: 0; border-radius: 9px; background: var(--tint-2); color: var(--ink); cursor: pointer; }
.adm-act svg { width: 17px; height: 17px; }
.adm-act--edit { background: rgba(197, 160, 89, .2); color: #7a5b18; }
.adm-act--remove { background: rgba(163, 52, 31, .1); color: #a3341f; }
.adm-act:hover { filter: brightness(.94); }
.admin-link { padding: 4px 6px; border: 0; background: none; color: var(--brand-2); font-size: var(--fs-small); font-weight: var(--fw-strong); text-decoration: underline; cursor: pointer; }
.admin-link--danger { color: #a3341f; }
.admin-empty { padding: 40px; text-align: center; color: var(--muted-ink); }
.admin-pages { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line-soft); font-size: var(--fs-small); }
.admin-pages:empty { display: none; }
.admin-pages button { min-height: 36px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-weight: var(--fw-strong); }
.admin-pages button:disabled { opacity: .45; }
.admin-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }

/* Order status */
.adm-status { display: inline-block; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink); font: inherit; font-size: var(--fs-xsmall); font-weight: var(--fw-strong); white-space: nowrap; }
select.adm-status { cursor: pointer; }
.adm-status--new { background: rgba(197, 160, 89, .24); color: #6b4f14; }
.adm-status--processing { background: rgba(0, 58, 65, .12); color: var(--ink); }
.adm-status--out-for-delivery { background: rgba(59, 99, 71, .16); color: var(--brand-2); }
.adm-status--delivered { background: var(--brand-2); color: var(--white); }
.adm-status--cancelled { background: rgba(163, 52, 31, .12); color: #a3341f; }

/* Categories and settings */
.adm-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.adm-cat__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.adm-cat li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-small); }
.adm-cat a { color: var(--ink); }
.adm-cat a:hover { color: var(--brand-2); text-decoration: underline; }
.adm-cat li span { color: var(--muted); }
.adm-cats__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.adm-cats__head > div { display: grid; gap: 6px; max-width: 680px; }
.adm-cats__head p { font-size: var(--fs-small); }
.adm-cat .adm-cat__head { flex-wrap: nowrap; justify-content: flex-start; gap: 14px; }
.adm-cat__thumb { flex: none; width: 64px; height: 50px; overflow: hidden; border-radius: var(--radius-sm); background: var(--tint); }
.adm-cat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-cat__title { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.adm-cat__title h2 { font-size: var(--fs-h5, 18px); }
.adm-cat__title small { color: var(--muted-ink); font-size: var(--fs-xsmall); }
.adm-cat__tools, .adm-subs__tools { display: flex; flex: none; gap: 2px; }
.adm-cat__tools .adm-act, .adm-subs__tools .adm-act { width: 30px; height: 30px; }
.adm-cat__tools .adm-act:disabled, .adm-subs__tools .adm-act:disabled { opacity: .3; cursor: default; }
.adm-cat.is-hidden { opacity: .7; border-style: dashed; }
.adm-cat .adm-subs li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 0; }
.adm-cat .adm-subs li span.adm-subs__count { color: var(--muted); font-size: var(--fs-xsmall); white-space: nowrap; }
.adm-cat .adm-subs li.adm-subs__empty { display: block; color: var(--muted-ink); }
.adm-cat__add { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--brand-2); font-weight: var(--fw-strong); font-size: var(--fs-small); cursor: pointer; }
.adm-cat__add:hover { text-decoration: underline; }
.adm-sub-form { display: grid; gap: 14px; padding: 4px 0 18px; }
[data-delete-dialog] .field { margin-bottom: 14px; }
[data-delete-dialog] select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
@media (max-width: 575px) {
  .adm-cat .adm-cat__head { flex-wrap: wrap; }
  .adm-cat .adm-subs li { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-cat .adm-subs li .adm-subs__tools { grid-column: 1 / -1; justify-content: flex-end; }
}
.adm-settings { display: grid; gap: 14px; max-width: 900px; }
.adm-settings h2:not(:first-child) { margin-top: 10px; }
.adm-settings .field input { max-width: 320px; }
.adm-areas input, .adm-areas select { width: 100%; min-width: 90px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; }
.adm-areas td:first-child input { min-width: 160px; }
.adm-areas td:nth-child(4) select { min-width: 190px; }
.adm-times td:nth-child(2) input, .adm-times td:nth-child(3) input { min-width: 70px; max-width: 110px; }
.adm-times td:nth-child(4) input { min-width: 120px; }
.adm-days { margin: 0; padding: 0; border: 0; }
.adm-days legend { margin-bottom: 8px; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.adm-days > div { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-day { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); cursor: pointer; }
.adm-day input { width: 16px; height: 16px; accent-color: var(--brand-2); }
.adm-day:has(input:checked) { border-color: var(--brand-2); background: rgba(59, 99, 71, .1); }
.adm-settings select#s-pickup { max-width: 320px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.adm-settings__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.adm-settings__unsaved { margin-right: auto; align-self: center; color: #a3341f; font-size: var(--fs-small); }
.adm-settings__unsaved[hidden] { display: none; }
.adm-settings__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 12px; padding: 12px 0; background: var(--white); }

/* Add / edit and confirm dialogs */
.admin-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--radius); color: var(--ink); box-shadow: 0 24px 60px rgba(15, 26, 20, .3); }
.admin-dialog::backdrop { background: rgba(15, 26, 20, .5); }
.admin-dialog--small { width: min(440px, calc(100vw - 24px)); padding: 24px; }
.admin-dialog--small h2 { margin-bottom: 8px; font-size: var(--fs-h4); }
.admin-dialog--small p { margin-bottom: 18px; color: var(--muted-ink); font-size: var(--fs-small); }
.admin-dialog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.admin-dialog__head h2 { font-size: var(--fs-h4); }
.admin-dialog__head small { color: var(--muted); font-size: var(--fs-xsmall); }
.admin-dialog .form { padding: 18px 22px; gap: 14px; }
.admin-dialog .field textarea { min-height: 84px; }
.admin-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.admin-dialog__error { color: #a3341f; font-size: var(--fs-small); }
.admin-photo-field { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.admin-photo-preview { display: grid; place-items: center; width: 120px; height: 90px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--tint); color: var(--muted); font-size: var(--fs-xsmall); }
.admin-photo-preview img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.admin-photo-field > div { display: grid; justify-items: start; gap: 6px; font-size: var(--fs-xsmall); color: var(--muted-ink); }
.field .admin-photo-field input[type=file] { max-width: 100%; padding: 6px; font-size: var(--fs-xsmall); }
.admin-sell { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-small); }
.admin-sell label { display: inline-flex; gap: 6px; align-items: center; font-weight: var(--fw-regular); white-space: nowrap; }
.field .admin-sell input { flex: none; width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--brand-2); }
.admin-field-label { font-size: var(--fs-small); font-weight: var(--fw-strong); }
.admin-toast { position: fixed; left: 50%; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); padding: 12px 18px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: var(--fs-small); transform: translateX(-50%); box-shadow: 0 12px 32px rgba(15, 26, 20, .28); }
.admin-toast[hidden] { display: none; }
.admin-loading { padding: 18px 22px; color: var(--muted-ink); font-size: var(--fs-small); }
.admin-loading[hidden] { display: none; }
.admin-table tr.is-removed td { color: var(--muted); }
.admin-table tr.is-removed img { opacity: .5; }
.adm-top__logout { margin: 0; flex: none; }
.adm-top__logout .admin-link { font-size: var(--fs-small); }
.adm-orders .admin-link { padding: 0; border: 0; background: none; font: inherit; font-weight: var(--fw-strong); color: var(--brand-2); text-decoration: underline; cursor: pointer; }

/* Order details dialog */
.adm-order { display: grid; gap: 16px; padding: 18px 22px; font-size: var(--fs-small); }
.adm-order dl { display: grid; gap: 8px; margin: 0; }
.adm-order dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.adm-order dt { color: var(--muted-ink); }
.adm-order dd { margin: 0; overflow-wrap: anywhere; }
.adm-order__lines { display: grid; gap: 8px; margin: 0; padding: 14px 0; list-style: none; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.adm-order__lines li { display: flex; justify-content: space-between; gap: 16px; }
.adm-order__lines strong, .adm-order__totals div:last-child dd { flex: none; font-weight: var(--fw-strong); }

.admin-dialog .adm-order__update, .adm-order__update { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 0 0; border-top: 1px solid var(--line-soft); }
.adm-order__update h3 { font-size: var(--fs-small); font-weight: var(--fw-strong); }
.adm-order__update textarea { min-height: 64px; }
.adm-order__hint { color: var(--muted-ink); font-size: var(--fs-xsmall); }
.adm-order__notify { display: flex; gap: 8px; align-items: center; font-size: var(--fs-small); }
.adm-order__notify input { width: 16px; height: 16px; accent-color: var(--brand-2); }
.adm-order__track { margin-right: auto; align-self: center; font-size: var(--fs-small); }
.admin-table td.adm-muted { color: var(--muted-ink); }
@media (max-width: 575px) { .admin-dialog .adm-order__update, .adm-order__update { grid-template-columns: 1fr; } }

.adm-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--brand); font-size: 12px; font-weight: var(--fw-strong); text-align: center; }
.adm-badge[hidden] { display: none; }
.adm-paytag { display: block; width: max-content; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: var(--fw-strong); background: var(--tint-2); color: var(--muted-ink); }
.adm-paytag--pending { background: #fbf0d6; color: #8a6d1f; }
.adm-paytag--paid { background: rgba(59, 99, 71, .14); color: var(--brand-2); }
.adm-paytag--rejected { background: #fbeae6; color: #a3341f; }
.adm-pay { display: grid; gap: 12px; padding: 16px 0 0; border-top: 1px solid var(--line-soft); }
.adm-pay h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.adm-pay__status { padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--tint-2); }
.adm-pay__status--pending { background: #fbf0d6; color: #8a6d1f; }
.adm-pay__status--paid { background: rgba(59, 99, 71, .14); color: var(--brand-2); }
.adm-pay__status--rejected { background: #fbeae6; color: #a3341f; }
.adm-pay__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-pay__actions [hidden], .adm-pay__row[hidden], .adm-pay label[hidden] { display: none; }
.adm-pay__row { display: flex; gap: 8px; }
.adm-pay__row input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.adm-order dd.adm-warn { color: #a3341f; font-weight: var(--fw-strong); }

.adm-settings__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.adm-settings__grid .field input { max-width: none; }
.adm-emails { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.adm-emails__list ul { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.adm-emails__list button { display: grid; gap: 1px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer; }
.adm-emails__list button small { color: var(--muted); font-size: 11px; }
.adm-emails__list button:hover { background: var(--tint); }
.adm-emails__list button.is-current { background: rgba(59, 99, 71, .12); color: var(--brand-2); font-weight: var(--fw-strong); }
.adm-emails__preview { display: grid; gap: 12px; }
.adm-emails__bar { flex-wrap: wrap; padding: 0 0 4px; border: 0; }
.adm-emails__bar small { color: var(--muted); font-size: var(--fs-xsmall); }
.adm-emails__bar h2 { font-size: var(--fs-small); }
.adm-emails__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-emails__edited { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(197, 160, 89, .2); color: #7a5d1d; font-size: 10px; font-style: normal; font-weight: var(--fw-strong); vertical-align: 1px; }
.adm-emails.is-editing { grid-template-columns: 1fr; }
.adm-emails.is-editing .adm-emails__list { display: none; }
.adm-emails__preview.is-editing { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: start; }
.adm-emails__preview.is-editing > .adm-emails__bar { grid-column: 1 / -1; }
.adm-mailedit { display: grid; gap: 12px; align-content: start; max-height: 760px; overflow-y: auto; padding-right: 4px; }
.adm-mailedit[hidden] { display: none; }
.adm-mailedit__shared { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--tint); color: var(--muted-ink); font-size: var(--fs-xsmall); }
.adm-mailedit__shared[hidden] { display: none; }
.adm-mailedit__vars { display: grid; gap: 6px; font-size: var(--fs-xsmall); color: var(--muted-ink); }
.adm-mailedit__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-mailedit__chip { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand-2); font: inherit; font-family: ui-monospace, Consolas, monospace; font-size: 12px; cursor: pointer; }
.adm-mailedit__chip:hover { border-color: var(--brand-2); }
.adm-mailedit__fields { display: grid; gap: 12px; }
.adm-mailedit__field { margin: 0; }
.adm-mailedit__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.adm-mailedit__orig { font-size: var(--fs-xsmall); }
.adm-mailedit__orig[hidden] { display: none; }
.adm-mailedit__field textarea { resize: vertical; }
.adm-mailedit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.adm-mailedit__actions [data-email-reset] { margin-right: auto; }
.adm-mailedit__actions [hidden] { display: none; }
@media (max-width: 991px) {
  .adm-emails__preview.is-editing { grid-template-columns: 1fr; }
  .adm-mailedit { max-height: none; overflow: visible; }
}
.adm-emails__frame { width: 100%; height: 720px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #F1F4F1; }
.adm-emails__frame[hidden], .adm-emails__text[hidden] { display: none; }
.adm-emails__text { max-height: 720px; margin: 0; padding: 16px; overflow: auto; border-radius: var(--radius-sm); background: var(--tint); font-size: 13px; white-space: pre-wrap; }
@media (max-width: 991px) {
  .adm-emails { grid-template-columns: 1fr; }
  .adm-settings__grid { grid-template-columns: 1fr; }
  .adm-emails__list ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .adm-emails__list li { flex: none; }
  .adm-emails__list button { white-space: nowrap; background: var(--tint); }
  .adm-emails__frame { height: 640px; }
}

.adm-invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; }
.adm-invite input { min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.adm-admins .admin-actions { white-space: nowrap; }
.adm-admins .admin-link { margin-right: 10px; font-size: var(--fs-small); }
.adm-sub { display: block; color: var(--muted); font-size: 12px; font-weight: var(--fw-regular); }
.admin-table tr.is-new td { background: rgba(197, 160, 89, .08); }
.adm-thread { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.adm-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--tint); }
.adm-msg--mine { justify-self: end; border-radius: 14px 14px 4px 14px; background: rgba(59, 99, 71, .12); }
.adm-msg__head { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; font-size: 12px; }
.adm-msg__head span { color: var(--muted); }
.adm-msg__body { margin: 0; font-size: var(--fs-small); white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-reply { display: grid; gap: 8px; }
.adm-reply label:first-child { font-size: var(--fs-small); font-weight: var(--fw-strong); }
.adm-reply textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; resize: vertical; }
@media (max-width: 575px) { .adm-invite { grid-template-columns: 1fr; } }

.adm-guide-dialog { width: min(860px, calc(100vw - 24px)); }
.adm-guides-restore { margin-left: auto; }
.adm-guide-dialog .admin-dialog__head .admin-link { font-size: var(--fs-small); }
.adm-rte { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.adm-rte:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(59, 99, 71, .15); }
.adm-rte__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line-soft); background: var(--tint); }
.field .adm-rte__bar select { width: auto; min-height: 32px; height: 32px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 6px; background-color: #fff; background-position: right 8px center; background-size: 14px; font-size: var(--fs-small); }
.adm-rte__bar button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.adm-rte__bar button svg { width: 18px; height: 18px; }
.adm-rte__bar button:hover, .adm-rte__bar button:focus-visible { background: #fff; }
.adm-rte__bar button.is-on { background: rgba(59, 99, 71, .16); color: var(--brand-2); }
.adm-rte__sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.adm-rte__linkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line-soft); }
.adm-rte__linkbar[hidden] { display: none; }
.adm-rte__linkbar input { flex: 1; min-width: 180px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: var(--fs-small); }
.adm-rte__area { min-height: 320px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; color: var(--ink); font-size: 15px; line-height: 1.6; outline: none; }
.adm-rte__area > :first-child { margin-top: 0; }
.adm-rte__area p { margin: 0 0 .8em; }
.adm-rte__area h2 { margin: 1.1em 0 .4em; font-size: 1.35em; line-height: 1.25; }
.adm-rte__area h3 { margin: 1em 0 .35em; font-size: 1.12em; line-height: 1.3; }
.adm-rte__area ul, .adm-rte__area ol { margin: 0 0 .8em; padding-left: 1.4em; }
.adm-rte__area ul { list-style: disc; }
.adm-rte__area ol { list-style: decimal; }
.adm-rte__area li { margin: .2em 0; }
.adm-rte__area a { color: var(--brand-2); text-decoration: underline; }
.adm-guide-pub { align-self: end; padding-bottom: 10px; }

.adm-delete-choice { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; font-size: var(--fs-small); }
.adm-delete-choice[hidden], .adm-delete-choice [hidden] { display: none; }
.adm-delete-choice label { display: flex; align-items: center; gap: 8px; }
.adm-delete-choice input { width: 16px; height: 16px; accent-color: var(--brand-2); }
.adm-delete-choice select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.adm-delete-choice select:disabled { opacity: .5; }

/* Categories: two panes */
.adm-catx { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-catx__list { display: grid; gap: 10px; padding: 14px; }
.adm-catx__list input[type=search] { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-small); }
.adm-catx__cats, .adm-catx__subs { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.adm-catx__cat { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; border-radius: 10px; }
.adm-catx__cat.is-current { background: rgba(59, 99, 71, .12); }
.adm-catx__pick { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px 9px 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer; }
.adm-catx__cat.is-current .adm-catx__pick { color: var(--brand-2); font-weight: var(--fw-strong); }
.adm-catx__cat:not(.is-current):hover { background: var(--tint); }
.adm-catx__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-catx__count { color: var(--muted); font-size: var(--fs-xsmall); white-space: nowrap; }
.adm-catx__cat.is-hidden .adm-catx__name { color: var(--muted); }
.adm-catx__cat.is-hidden .adm-catx__count { padding: 1px 7px; border-radius: 999px; background: var(--tint-2); }
.adm-catx__none { padding: 10px; color: var(--muted-ink); font-size: var(--fs-small); }
.adm-catx__addcat { justify-self: stretch; }
.adm-grip { display: grid; place-items: center; width: 26px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.adm-grip svg { width: 14px; height: 14px; }
.adm-grip:hover, .adm-grip:focus-visible { color: var(--ink); background: var(--tint); }
.is-filtered .adm-grip { visibility: hidden; }
.is-dragging { opacity: .6; background: var(--tint) !important; }
.is-dragging .adm-grip { cursor: grabbing; }
.adm-catx__pane { padding: 16px 18px; }
.adm-catx__head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.adm-catx__visible { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-ink); font-size: var(--fs-small); white-space: nowrap; cursor: pointer; }
.adm-catx__visible input { width: 16px; height: 16px; accent-color: var(--brand-2); }
.adm-catx__subs { margin: 6px 0 0; }
.adm-catx__sub { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.adm-catx__sub.is-match { background: rgba(197, 160, 89, .12); }
.adm-catx__subname { justify-self: start; max-width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: var(--fs-small); text-align: left; cursor: text; }
.adm-catx__subname:hover { border-color: var(--line); }
.adm-catx__rename { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--brand-2); border-radius: 8px; font: inherit; font-size: var(--fs-small); }
.adm-catx__sub.is-empty .adm-catx__subname { color: var(--muted); }
.adm-catx__count.admin-link { padding: 0; border: 0; background: none; color: var(--brand-2); font: inherit; font-size: var(--fs-xsmall); cursor: pointer; }
.adm-catx__count--empty { padding: 1px 8px; border-radius: 999px; background: var(--tint-2); }
.adm-catx__add { display: flex; gap: 8px; margin-top: 12px; }
.adm-catx__add input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-small); }
@media (max-width: 991px) {
  .adm-catx { grid-template-columns: 1fr; }
  .adm-catx__head { flex-wrap: wrap; }
  .adm-catx__sub { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .adm-catx__sub .adm-subs__tools { grid-column: 2 / -1; justify-content: flex-end; }
}

.adm-onoff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: var(--fs-small); }
.adm-onoff label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.adm-onoff label input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-2); }
.field .adm-onoff input[type=number] { width: 84px; }
.field .adm-onoff input[type=time] { width: 160px; }
.adm-onoff.is-off > span, .adm-onoff.is-off input:disabled { opacity: .45; }

/* Admin sign-in */
.adm-login { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: #F4F6F4; }
.adm-login__card, .adm-login__card.form { width: min(400px, 100%); display: grid; grid-template-columns: 1fr; gap: 16px; padding: 32px 28px; }
.adm-login__logo { width: 160px; height: auto; }
.adm-login h1 { font-size: var(--fs-h4); }
.adm-login__ok { padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(59, 99, 71, .12); color: var(--brand-2); font-size: var(--fs-small); }
.adm-login__card > .admin-link { justify-self: center; font-size: var(--fs-small); }
.adm-login__card p { font-size: var(--fs-small); color: var(--muted-ink); }
.adm-login__error { padding: 10px 14px; border-radius: var(--radius-sm); background: #fbeae6; color: #a3341f; font-size: var(--fs-small); }

/* Track your order */
.track__intro { display: grid; gap: 8px; max-width: 640px; margin: 8px 0 24px; }
.track__intro p { color: var(--muted-ink); }
.track-form { max-width: 640px; padding: 28px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); }
.track-form__error { padding: 10px 14px; border-radius: var(--radius-sm); background: #fbeae6; color: #a3341f; font-size: var(--fs-small); }
.track__help { max-width: 640px; margin-top: 16px; color: var(--muted-ink); font-size: var(--fs-small); }
.track__help a { color: var(--brand-2); text-decoration: underline; }
.track-card { display: grid; gap: 28px; max-width: 860px; padding: 32px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); }
.track-day { display: grid; gap: 4px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--tint); }
.track-day span { color: var(--muted-ink); font-size: var(--fs-small); }
.track-day strong { font-size: var(--fs-h4); font-weight: var(--fw-strong); color: var(--brand); }
.track-day small { color: var(--muted-ink); font-size: var(--fs-xsmall); }
.track-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.track-steps li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.track-steps li::before { content: ""; position: absolute; top: 15px; right: 50%; left: -50%; height: 3px; background: var(--line); }
.track-steps li:first-child::before { display: none; }
.track-steps li.is-done::before { background: var(--brand-2); }
.track-steps__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 3px solid var(--line); border-radius: 50%; background: var(--white); color: var(--white); }
.track-steps__dot svg { width: 16px; height: 16px; }
.track-steps .is-done .track-steps__dot { border-color: var(--brand-2); background: var(--brand-2); }
.track-steps .is-current .track-steps__dot { box-shadow: 0 0 0 5px rgba(59, 99, 71, .18); }
.track-steps__label { font-size: var(--fs-small); font-weight: var(--fw-strong); }
.track-steps li:not(.is-done) .track-steps__label { color: var(--muted); font-weight: var(--fw-regular); }
.track-steps small { min-height: 1.2em; color: var(--muted-ink); font-size: var(--fs-xsmall); }
.track-cancelled { display: grid; gap: 4px; padding: 18px 22px; border-radius: var(--radius-sm); background: #fbeae6; color: #a3341f; }
.track-note { padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--tint); }
.track-note span { display: block; margin-bottom: 4px; color: var(--muted-ink); font-size: var(--fs-xsmall); font-weight: var(--fw-strong); text-transform: uppercase; letter-spacing: .04em; }
.track-details { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.track-details h2 { margin-bottom: 12px; font-size: var(--fs-h5, 18px); }
.track-details .order-done__meta { margin-top: 14px; }
@media (max-width: 767px) {
  .track-card, .track-form { padding: 20px; }
  .track-details { grid-template-columns: 1fr; gap: 24px; }
  .track-steps { grid-template-columns: 1fr; gap: 0; justify-items: start; }
  .track-steps li { grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; column-gap: 14px; row-gap: 0; padding-bottom: 18px; text-align: left; }
  .track-steps li::before { top: -18px; bottom: auto; left: 14px; right: auto; width: 3px; height: 22px; }
  .track-steps__dot { grid-row: 1 / span 2; }
}

/* Pay with M-Pesa */
.mpesa { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line-soft); border-left: 4px solid #4CAF50; border-radius: var(--radius-sm); background: var(--white); text-align: left; }
.mpesa[hidden] { display: none; }
.mpesa h3 { font-size: var(--fs-h5, 18px); }
.mpesa__steps { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: var(--fs-small); }
.mpesa__steps li { padding-left: 4px; }
.mpesa__copy { margin-left: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--brand-2); font-size: var(--fs-xsmall); font-weight: var(--fw-strong); cursor: pointer; }
.mpesa__dial { justify-self: start; }
.mpesa__dial[hidden], .mpesa__steps[hidden], .mpesa__form[hidden], .mpesa__done[hidden] { display: none; }
.mpesa__form { display: grid; gap: 8px; }
.mpesa__form label { font-size: var(--fs-small); font-weight: var(--fw-strong); }
.mpesa__form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; text-transform: none; resize: vertical; }
.mpesa__form .btn { justify-self: start; }
.mpesa__check { min-height: 1.2em; color: var(--muted-ink); font-size: var(--fs-small); }
.mpesa__check.is-warn { color: #a3341f; }
.mpesa__done { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--tint); font-weight: var(--fw-strong); }
.cart-pay__option.is-disabled { opacity: .55; }
.pay-status { font-weight: var(--fw-strong); }
.pay-status--paid { color: var(--brand-2); }
.pay-status--pending { color: #8a6d1f; }
.pay-status--rejected { color: #a3341f; }
.track-note--alert { border-left-color: #a3341f; }
.track-note--ok { border-left-color: #2f7d32; }
.paynow p { margin: 0 0 14px; }

/* Photo credits */
.credits h1 { margin: 8px 0 20px; }
.credits__wrap { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); }
.credits__table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.credits__table th, .credits__table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.credits__table th { color: var(--muted-ink); font-weight: var(--fw-strong); }
.credits__table a { color: var(--brand-2); text-decoration: underline; overflow-wrap: anywhere; }
a.footer-link { color: inherit; }

/* Guides */
.guides h1 { margin: 8px 0 8px; }
.guides__group { margin: 32px 0 14px; font-size: var(--fs-h4); }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--white); color: var(--ink); transition: box-shadow .2s ease, transform .2s ease; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15, 26, 20, .1); }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card__body { display: grid; align-content: start; gap: 8px; padding: 16px 18px 20px; }
.guide-card__body strong { color: var(--brand); font-size: 17px; line-height: 1.35; }
.guide-card__body small { color: var(--muted-ink); font-size: var(--fs-small); line-height: 1.5; }
.guide__head { display: grid; gap: 10px; margin: 0 0 28px; }
.guide__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.guide__main { min-width: 0; max-width: 820px; }
.guide__layout { margin-top: 8px; }
.guide__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.guide-box { padding: 22px 22px 24px; border-radius: var(--radius); background: var(--tint); }
.guide-box h2 { margin: 0 0 12px; font-size: var(--fs-small); font-weight: var(--fw-strong); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.guide-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; }
.guide-toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 7px 0; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: 15px; line-height: 1.4; }
.guide-toc li:first-child a { border-top: 0; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-size: 12px; padding-top: 2px; }
.guide-toc a:hover { color: var(--brand-2); }
.guide-help { background: var(--brand); color: var(--white); }
.guide-help h2 { color: var(--accent); }
.guide-help p { margin: 0 0 16px; color: rgba(255, 255, 255, .82); }
.guide-help .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-help .btn--secondary { color: var(--white); border-color: rgba(255, 255, 255, .5); background: transparent; }
.guide-help .link-arrow { margin-top: 16px; color: var(--white); }
.guide-related ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.guide-related a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--ink); font-size: 14px; line-height: 1.4; }
.guide-related img { width: 72px; height: 50px; object-fit: cover; border-radius: 8px; }
.guide-related a:hover span { color: var(--brand-2); text-decoration: underline; }
.guide__body h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
@media (max-width: 1099px) { .guide__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; } }
@media (max-width: 991px) {
  .guide__layout { grid-template-columns: 1fr; }
  .guide__main { max-width: none; }
  .guide__aside { position: static; }
}
.guide__lead { color: var(--muted-ink); font-size: 18px; line-height: 1.55; }
.guide__meta { color: var(--muted); font-size: var(--fs-small); }
.guide__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 26px; }
.guide__body { font-size: 17px; line-height: 1.75; color: var(--ink); }
.guide__body h2 { margin: 30px 0 10px; font-size: var(--fs-h4); color: var(--brand); }
.guide__body h3 { margin: 22px 0 8px; font-size: 18px; color: var(--brand); }
.guide__body p { margin: 0 0 14px; }
.guide__body ul, .guide__body ol { margin: 0 0 16px; padding-left: 22px; }
.guide__body li { margin: 4px 0; }
.guide__body a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 991px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .guide-cards { grid-template-columns: 1fr; } .guide__body { font-size: 16px; } }

/* Spam trap fields: off screen for people, still filled in by bots */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.admin-toast button { border: 0; background: none; color: var(--accent); font-weight: var(--fw-strong); text-decoration: underline; }

@media (max-width: 1199px) { .adm-grid { grid-template-columns: 1fr; } .adm-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 991px) {
  .adm-side { transform: translateX(-100%); transition: transform .25s ease; }
  .adm-side.is-open { transform: none; box-shadow: 24px 0 60px rgba(15, 26, 20, .3); }
  .adm-page { margin-left: 0; }
  .adm-top__menu { display: block; }
  .adm-top { padding: 10px 16px; gap: 10px; }
  .adm-main { padding: 4px 16px 28px; }
}
@media (max-width: 767px) {
  .adm-top__search { width: 42px; padding: 0 12px; overflow: hidden; }
  .adm-top__search:focus-within { position: absolute; left: 12px; right: 12px; width: auto; z-index: 2; box-shadow: 0 6px 20px rgba(15, 26, 20, .16); }
  .adm-top__search input { width: 0; }
  .adm-top__search:focus-within input { width: 100%; }
  .adm-cats { grid-template-columns: 1fr; }
  .adm-bar { grid-template-columns: 110px minmax(0, 1fr) 30px; gap: 8px; }
  .adm-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .adm-legend { width: 100%; }
  .adm-stat { grid-template-columns: 44px minmax(0, 1fr); padding: 14px 14px 0; gap: 10px; }
  .adm-stat__icon { width: 44px; height: 44px; }
  .adm-stat__body strong { font-size: 20px; }
  .adm-stat__body small { font-size: var(--fs-xsmall); }
  .adm-stat__foot { margin: 0 -14px; padding: 8px 14px; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-table:not(.adm-bands), .admin-table:not(.adm-bands) tbody { display: block; }
  .admin-table:not(.adm-bands) tr { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; padding: 12px; border-bottom: 1px solid var(--line-soft); }
  .admin-table:not(.adm-bands) td { display: block; padding: 0; border: 0; min-width: 0; }
  .admin-table:not(.adm-bands) td.admin-photo { grid-row: span 2; width: auto; }
  .admin-table:not(.adm-bands) td.admin-name, .admin-table:not(.adm-bands) td[data-label="Category"] { grid-column: 2 / -1; }
  .admin-table:not(.adm-bands) td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: var(--fw-regular); color: var(--muted); font-style: normal; }
  .admin-table:not(.adm-bands) td.admin-actions { grid-column: 1 / -1; }
  .adm-products thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; }
  .adm-products thead tr { display: flex; padding: 6px 12px; }
  .adm-products thead th:not(.admin-select) { display: none; }
  .adm-products thead th.admin-select { padding: 0; background: none; border: 0; }
  .adm-products td.admin-select { grid-row: 1; grid-column: 1; width: auto; }
  .adm-products td.admin-photo { grid-row: 2 / span 2; grid-column: 1; }
  .adm-products td.admin-name { grid-row: 1; }
  .adm-products td[data-label="Category"] { grid-row: 2; }
  .adm-orders tr { grid-template-columns: 1fr 1fr !important; }
  [data-guide-table] thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; }
  [data-guide-table] thead tr { display: flex; padding: 6px 12px; }
  [data-guide-table] thead th:not(.admin-select) { display: none; }
  [data-guide-table] thead th.admin-select { padding: 0; background: none; border: 0; }
  [data-guide-table] tbody tr { grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr) !important; }
  [data-guide-table] td.admin-select { grid-row: 1 / span 3; grid-column: 1; width: auto; }
  [data-guide-table] td[data-label="Title"] { grid-column: 2 / -1; }
  [data-guide-table] td[data-label="Title"] .admin-link { white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .adm-areas tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px !important; align-items: end; }
  .adm-areas td[data-label="Place"], .adm-areas td[data-label="Delivery time"] { grid-column: 1 / 3; }
  .adm-areas td.admin-actions { grid-column: 3 !important; grid-row: 1; align-self: end; }
  .adm-times tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px !important; }
  .adm-times td[data-label="Name"] { grid-column: 1 / 3; }
  .adm-times td[data-label="Same-day cut-off"] { grid-column: 1 / 3; }
  .adm-times td:nth-child(2) input, .adm-times td:nth-child(3) input { max-width: none; }
  .adm-areas td:first-child input, .adm-areas td:nth-child(4) select { min-width: 0; }
  .admin-dialog .form { grid-template-columns: 1fr; }
  .admin-dialog .form .full { grid-column: auto; }
}

/* ---------- Values / pill list ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { padding: 8px 16px; border-radius: 999px; border: 0.8px solid var(--ink); font-weight: var(--fw-regular); }
.panel--dark .pills span { border-color: rgba(255,255,255,.6); }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-tile { background: var(--tint); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.contact-tile .label { font-size: var(--fs-small); color: var(--muted); }
.contact-tile a, .contact-tile address { font-size: var(--fs-h4); font-weight: var(--fw-strong); font-style: normal; line-height: 1.35; word-break: break-word; }
.contact-tile a:hover { color: var(--brand-2); }
.contact-tile svg { width: 28px; height: 28px; color: var(--brand-2); margin-bottom: 12px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--fs-small); font-weight: var(--fw-strong); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: var(--fw-regular); color: var(--ink); background: var(--white);
  border: 1.6px solid var(--line); border-radius: var(--radius-sm); padding: 12px 20px; min-height: 51px;
  transition: border-color .2s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003A41' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); }
.form-note { font-size: var(--fs-small); color: var(--muted-ink); margin-top: 12px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 480px; height: 100%; }
.map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .form { grid-template-columns: 1fr; } }

/* ---------- Quote portal (multi-step form on the contact page) ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quote-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.quote-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.steps--compact { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
.steps--compact .step { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top-color: var(--line); }
.steps--compact .step__num { margin: 0; }
.steps--compact h3 { font-size: var(--fs-body); margin: 0; }
.quote-card { background: var(--white); border-radius: var(--radius); padding: 32px; }
.quote-progress { display: flex; gap: 8px; margin-bottom: 28px; }
.quote-progress li {
  flex: 1; display: flex; align-items: center; gap: 8px; padding-top: 12px;
  border-top: 3px solid var(--line-soft); font-size: var(--fs-xsmall); font-weight: var(--fw-strong); color: var(--muted);
  transition: border-color .25s ease, color .25s ease;
}
.quote-progress li span {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--tint); font-size: 11px; letter-spacing: 0;
}
.quote-progress li.is-current { color: var(--ink); border-top-color: var(--accent); }
.quote-progress li.is-current span { background: var(--accent); }
.quote-progress li.is-done { color: var(--ink); border-top-color: var(--brand-2); }
.quote-progress li.is-done span { background: var(--brand-2); color: var(--white); }
html:not(.js) .quote-progress { display: none; }
.quote-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-step + .quote-step { margin-top: 36px; }
.js .quote-step:not(.is-current) { display: none; }
.js .quote-step + .quote-step { margin-top: 0; }
.js .quote-step.is-current { animation: fade-up .3s ease; }
.quote-step__title { padding: 0; margin-bottom: 20px; font-size: var(--fs-h4); font-weight: var(--fw-strong); letter-spacing: var(--track-head); }
.choice-groups { display: grid; gap: 20px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend {
  float: left; width: 100%; padding: 0; margin-bottom: 10px;
  font-size: var(--fs-xsmall); font-weight: var(--fw-strong); text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-2);
}
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; padding: 9px 16px; border: 1.6px solid var(--line); border-radius: 999px;
  font-size: var(--fs-small); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.choice:hover span { border-color: var(--brand-2); }
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.quote-summary {
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 24px;
  padding: 16px 20px; border-radius: var(--radius-sm); background: var(--tint); font-size: var(--fs-small);
}
.quote-summary dt { color: var(--muted); }
.quote-summary dd { margin: 0; font-weight: var(--fw-strong); }
.quote-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quote-nav [data-quote-next], .quote-nav [data-quote-submit] { margin-left: auto; }
html:not(.js) [data-quote-back], html:not(.js) [data-quote-next] { display: none; }
.quote-error { margin-top: 12px; font-size: var(--fs-small); color: #A63D2F; }
.optional { color: var(--muted); font-weight: var(--fw-regular); }
.map--wide { min-height: 0; height: 420px; }
.map--wide iframe { min-height: 420px; }
@media (max-width: 991px) {
  .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .quote-intro { position: static; }
}
@media (max-width: 575px) {
  .quote-card { padding: 20px; margin: 0 calc(var(--pad) * -1 + 4px); }
  .quote-progress li { font-size: 11px; }
  .map--wide, .map--wide iframe { height: 320px; min-height: 320px; }
}

/* ---------- Cookie consent (bar, settings dialog, gated embeds) ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--brand); color: var(--white);
  box-shadow: 0 -12px 40px rgba(15, 26, 20, .18);
  animation: cookie-up .35s ease;
}
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }
.cookie-banner__inner { position: relative; display: flex; align-items: center; gap: 40px; padding-top: 28px; padding-bottom: 28px; }
.cookie-banner__text { flex: 1; padding-left: var(--inset); max-width: 820px; }
.cookie-banner__text p { font-size: var(--fs-small); line-height: 1.6; color: var(--white); }
.cookie-banner__actions { display: flex; gap: 12px; flex: none; padding-right: calc(var(--inset) + 24px); }
.cookie-banner .btn { font-size: var(--fs-small); }
.cookie-banner .btn--light:hover { background: var(--accent); }
.cookie-banner__close {
  position: absolute; top: 10px; right: calc(var(--gutter) + 8px);
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .75);
}
.cookie-banner__close:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.cookie-banner__close svg { width: 18px; height: 18px; }
@media (max-width: 991px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 20px; padding-top: 24px; padding-bottom: 20px; }
  .cookie-banner__text { padding-right: calc(var(--inset) + 24px); max-width: none; }
  .cookie-banner__actions { padding: 0 var(--inset); display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-banner__actions .btn { justify-content: center; }
  .cookie-banner__actions [data-consent-settings] { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 575px) {
  .cookie-banner__inner { gap: 16px; padding-top: 18px; padding-bottom: 16px; }
  .cookie-banner__text p { font-size: 13px; line-height: 1.5; }
  .cookie-banner__actions { gap: 8px; }
}

.cookie-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-radius: var(--radius); color: var(--ink); background: var(--white);
}
.cookie-dialog::backdrop { background: rgba(15, 26, 20, .55); }
.cookie-dialog__form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.cookie-dialog__form > p { color: var(--muted-ink); }
.cookie-dialog__close {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
}
.cookie-dialog__close:hover { background: var(--tint); }
.cookie-dialog__close svg { width: 18px; height: 18px; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cookie-option h3 { font-size: var(--fs-body); margin-bottom: 4px; }
.cookie-option p { font-size: var(--fs-small); color: var(--muted-ink); }
.cookie-option__fixed { flex: none; font-size: var(--fs-xsmall); font-weight: var(--fw-strong); color: var(--brand-2); }
.cookie-switch {
  flex: none; appearance: none; -webkit-appearance: none; position: relative; margin: 0;
  width: 46px; height: 26px; border-radius: 999px; background: var(--line); cursor: pointer;
  transition: background-color .2s ease;
}
.cookie-switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.cookie-switch:checked { background: var(--brand-2); }
.cookie-switch:checked::before { transform: translateX(20px); }
.cookie-dialog__actions { margin-top: 8px; }
@media (max-width: 575px) {
  .cookie-dialog__form { padding: 24px 20px; }
  .cookie-dialog__actions .btn { flex: 1 1 100%; justify-content: center; }
}

.consent-embed { display: grid; place-items: center; background: var(--tint); }
.consent-embed.is-loaded { display: block; background: none; }
.consent-embed__placeholder { max-width: 460px; padding: 32px var(--pad); text-align: center; display: grid; justify-items: center; gap: 12px; }
.consent-embed__placeholder > svg { width: 32px; height: 32px; color: var(--brand-2); }
.consent-embed__placeholder h3 { font-size: var(--fs-h4); }
.consent-embed__placeholder p { color: var(--muted-ink); }
.consent-embed__placeholder .btn-row { justify-content: center; margin-top: 8px; }

/* ---------- Chat with us (guided chat that hands off to WhatsApp) ---------- */
.chat { --chat-bottom: calc(20px + var(--banner-h, 0px)); }
.chat__launcher {
  position: fixed; right: 20px; bottom: var(--chat-bottom); z-index: 140;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px;
  border: 0; border-radius: 999px; background: var(--brand); color: var(--white);
  font-size: var(--fs-small); font-weight: var(--fw-strong);
  box-shadow: 0 12px 32px rgba(15, 26, 20, .28); transition: transform .2s ease, bottom .3s ease;
}
.chat__launcher:hover { transform: translateY(-2px); }
.chat__launcher .chat__icon { width: 22px; height: 22px; color: var(--accent); }
.chat.is-open .chat__launcher-label { display: none; }
.chat.is-open .chat__launcher { padding: 12px; }

.chat__panel {
  position: fixed; right: 20px; bottom: calc(var(--chat-bottom) + 64px); z-index: 145;
  width: min(380px, calc(100vw - 40px)); height: min(600px, calc(100vh - 120px - var(--banner-h, 0px)));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--white);
  box-shadow: 0 24px 60px rgba(15, 26, 20, .28);
  animation: chat-in .25s ease;
}
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 16px; background: var(--brand); color: var(--white); }
.chat__head > div { flex: 1; min-width: 0; }
.chat__avatar { width: 40px; height: 40px; flex: none; padding: 5px; border-radius: 50%; background: var(--white); object-fit: contain; }
.chat__title { font-size: var(--fs-body); color: var(--white); }
.chat__subtitle { font-size: var(--fs-xsmall); color: var(--leaf); }
.chat__icon-btn {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--white);
}
.chat__icon-btn:hover { background: rgba(255, 255, 255, .12); }
.chat__icon-btn svg { width: 18px; height: 18px; }

.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat__row { display: flex; }
.chat__row--user { justify-content: flex-end; }
.chat__bubble {
  max-width: 85%; padding: 10px 14px; font-size: var(--fs-small); line-height: 1.45; white-space: pre-wrap;
  border-radius: 16px 16px 16px 4px; background: var(--tint); color: var(--ink);
}
.chat__row--user .chat__bubble { border-radius: 16px 16px 4px 16px; background: var(--brand-2); color: var(--white); }
.chat__typing { display: inline-flex; gap: 4px; padding: 14px; }
.chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-dot 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 4px; }
.chat__chip {
  padding: 8px 14px; border: 1.6px solid var(--brand-2); border-radius: 999px; background: var(--white);
  color: var(--brand-2); font-size: var(--fs-small); font-weight: var(--fw-strong); text-align: left;
  transition: background-color .2s ease, color .2s ease;
}
.chat__chip:hover { background: var(--brand-2); color: var(--white); }
.chat__chip--ghost { border-style: dashed; border-color: var(--line); color: var(--muted); font-weight: var(--fw-regular); }
.chat__chip--ghost:hover { background: var(--tint); color: var(--ink); }
.chat__summary { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--white); }
.chat__summary p { font-size: 13px; line-height: 1.5; white-space: pre-wrap; color: var(--ink); }
.chat__wa { justify-content: center; background: #25D366; color: var(--brand); }
.chat__wa:hover { background: #1EBE5A; }
.chat__wa svg { width: 20px; height: 20px; }

.chat__composer { display: flex; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line-soft); }
.chat__input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 16px;
  border: 1.6px solid var(--line); border-radius: 999px; font: inherit; font-size: var(--fs-small); color: var(--ink);
}
.chat__input:focus { outline: none; border-color: var(--brand-2); }
.chat__send {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--accent); color: var(--brand);
}
.chat__send:hover { background: var(--accent-hover); }
.chat__send svg { width: 20px; height: 20px; }
.chat__note { padding: 0 16px 12px; font-size: 11px; color: var(--muted); text-align: center; }

@media (max-width: 575px) {
  .chat { --chat-bottom: calc(14px + var(--banner-h, 0px)); }
  .chat__launcher { right: 14px; padding: 14px; }
  .chat__launcher-label { display: none; }
  .chat__panel { inset: 8px; width: auto; height: auto; }
  .chat.is-open .chat__launcher { display: none; }
}

/* ---------- Footer (rounded brand container) ---------- */
.site-footer { margin-top: var(--section); padding-bottom: var(--gutter); }
.footer-box { background: var(--brand); color: var(--white); border-radius: var(--radius); padding: 56px var(--inset) 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-top img { height: 52px; width: auto; }   /* same size as the header logo */
@media (max-width: 991px) { .footer-top img { height: 44px; } }
.footer-top p { max-width: 460px; color: var(--white); margin-top: 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; }
.footer-grid h4 { font-size: var(--fs-xsmall); line-height: 1.5; color: var(--white); font-weight: var(--fw-strong); margin-bottom: 16px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: var(--white); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid address { font-style: normal; font-size: var(--fs-xsmall); color: var(--white); line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: var(--fs-xsmall); color: var(--white); }
.footer-bottom .motto { color: var(--accent); font-weight: var(--fw-strong); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--white); background: none; border: 0; padding: 0; font-size: var(--fs-xsmall); }
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { color: var(--accent); }
.footer-bottom__links { display: flex; align-items: center; gap: 24px; }
.footer-link { color: var(--white); background: none; border: 0; padding: 0; font-size: var(--fs-xsmall); text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: var(--accent); }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; } .footer-box { padding-top: 40px; } }

/* ---------- 404 ---------- */
.error-block { text-align: center; padding: 80px var(--inset); }
.error-block .stat__num { font-size: clamp(96px, 18vw, 200px); color: var(--brand-2); }
.error-block p { max-width: 520px; margin: 16px auto 28px; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-stage__media img { animation: none; }
  * { transition-duration: 0s !important; }
}
