/* Viking Imports website: the one stylesheet (spec 02).
   Same look as the current site: warm beige backgrounds, Recoleta serif headings, coral pill buttons,
   a photo mosaic hero, thin coral circle outlines, bordered cards. Rebuilt without Bootstrap, jQuery,
   carousels, popups or icon fonts, and made to work on phones.

   Rules that the checks enforce:
   - Colours appear only in the :root block below (plus transparent, currentColor and rgba() from black or white).
   - Menus and recipe tabs are native <details> and radio buttons, so they work without JavaScript.
   - Nothing moves for longer than 150 ms, and nothing moves at all when reduced motion is asked for.
   - Body text is never lighter than --ink-muted on --bg. --accent is never used for text on a light background. */

:root {
  /* surfaces */
  --bg: #F6F2EF;            /* page background (current site) */
  --bg-band: #EDE5DE;       /* Light Beach: header + hero band on Home, promo cards */
  --bg-panel: #E0D4C7;      /* Beach: hero call-to-action panel */
  --black: #000000;         /* hero dark panel */
  --white: #FFFFFF;

  /* text */
  --ink: #3C3C3C;           /* body text */
  --ink-strong: #24292E;    /* headings */
  --ink-muted: #5A6268;     /* captions, dates. Do not go lighter than this on --bg. */

  /* brand */
  --briney: #527A8A;        /* Briney Blue: hero heading, mega menu background, large text only on light backgrounds */
  --indigo: #1A4F63;        /* Indigo: small links and anything small that must be blue */
  --accent: #FC7C55;        /* web coral (current site): fills, circle outlines, text on black only */
  --accent-strong: #DB5240; /* brand Coral: outline buttons and large coral text on light backgrounds */
  --sage: #4A7A57;          /* tags */
  --pine: #2C5234;

  /* lines */
  --rule: rgba(60, 60, 60, 0.16);
  --card-border: #DCD3CA;

  /* type */
  --font-display: "Recoleta", Georgia, "Times New Roman", serif;
  --font-body: Aptos, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --container: 1140px;
  --gutter: 15px;
  --radius-pill: 999px;
  --header-h: 64px;
}

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "Recoleta"; font-weight: 300; font-style: normal; font-display: swap; src: url("/static/fonts/Recoleta-Light.woff2") format("woff2"); }
@font-face { font-family: "Recoleta"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/Recoleta-Regular.woff2") format("woff2"); }
@font-face { font-family: "Recoleta"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/Recoleta-Medium.woff2") format("woff2"); }
@font-face { font-family: "Recoleta"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/Recoleta-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Recoleta"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/Recoleta-Bold.woff2") format("woff2"); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--indigo); text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 16px;
  background: var(--ink-strong); color: var(--white); border-radius: 4px;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 780px; margin-inline: auto; }
.narrow-wide { max-width: 900px; margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: 56px; }
@media (min-width: 768px) {
  .container { padding-inline: var(--gutter); }
  .section { padding-block: 96px; }
}

/* ---------------------------------------------------------------- type scale (spec 02 section 3) */
.page-title { font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 38px; color: var(--ink-strong); margin-bottom: 24px; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; color: var(--ink-strong); margin-bottom: 24px; }
.big-title { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 36px; color: var(--ink-strong); margin-bottom: 40px; }
.caps-title { font-family: var(--font-body); font-weight: 300; font-size: 24px; line-height: 30px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-strong); margin-bottom: 24px; }
.eyebrow { font-weight: 600; font-size: 16px; line-height: 20px; text-transform: uppercase; color: var(--ink-strong); margin-bottom: 16px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 22px; color: var(--ink-strong); }
.lead { font-size: 17px; line-height: 26px; margin-bottom: 40px; }
.small-print { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.label-small { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--indigo); margin-bottom: 4px; }
@media (min-width: 768px) {
  .page-title { font-size: 44px; line-height: 53px; }
  .section-title { font-size: 40px; line-height: 48px; }
  .big-title { font-size: 48px; line-height: 58px; }
  .caps-title { font-size: 32px; line-height: 38px; }
  .eyebrow { font-size: 18px; line-height: 22px; }
  .lead { font-size: 18px; line-height: 28px; }
}

.prose > * + * { margin-top: 16px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; color: var(--ink-strong); margin-top: 40px; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--ink-strong); margin-top: 32px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 20px; font-family: var(--font-display); font-size: 20px; line-height: 30px; color: var(--ink-strong); }
.prose img { margin-block: 24px; width: 100%; height: auto; }
.prose a { color: var(--indigo); }

/* ---------------------------------------------------------------- buttons and links (spec 02 section 5.3) */
.btn-outline {
  display: inline-block; font-family: var(--font-body); font-weight: 400; font-size: 24px; line-height: 1.2;
  padding: 10px 28px; border: 1px solid var(--accent-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--accent-strong); text-decoration: none; cursor: pointer;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink-strong); }
.btn-solid {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 20px;
  padding: 7px 20px; border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--ink-strong);
  text-decoration: none; cursor: pointer; transition: background-color 120ms, color 120ms;
}
.btn-solid:hover, .btn-solid:focus-visible { background: var(--ink-strong); color: var(--white); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px;
}
.link-arrow .icon-arrow { flex: none; transition: transform 120ms; }
.link-arrow:hover .icon-arrow { transform: translateX(3px); }
.link-arrow.hero-size { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 30px; color: var(--briney); }
.hero-dark .link-arrow { color: var(--accent); font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 30px; }
.hero-dark :focus-visible { outline-color: var(--white); }
.mega-panel .link-arrow { color: var(--white); }
.mega-panel :focus-visible { outline-color: var(--white); }
.link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.link-row-section { padding-top: 0; }

/* ---------------------------------------------------------------- header (spec 02 section 5.1) */
.site-header { position: sticky; top: 0; z-index: 60; padding-block: 14px; background: var(--bg); }
.page-home .site-header { background: var(--bg-band); }
.header-bar { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.logo img { width: 120px; height: auto; }
.logo-desktop, .main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 16px; line-height: 24px; color: var(--ink-strong); text-decoration: none; cursor: pointer; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-link[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mobile-list > li > a[aria-current] { font-weight: 600; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.icon-chevron { transition: transform 120ms; }
details[open] > summary .icon-chevron { transform: rotate(180deg); }

/* mobile menu: a native <details>, so it works without JavaScript */
.menu-button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: 16px; color: var(--ink-strong); cursor: pointer; }
.menu-button .label-open, .menu-button .icon-when-open { display: none; }
.mobile-menu[open] .menu-button .label-open, .mobile-menu[open] .menu-button .icon-when-open { display: inline-flex; }
.mobile-menu[open] .menu-button .label-closed, .mobile-menu[open] .menu-button .icon-when-closed { display: none; }
.mobile-panel {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-band); padding: 16px 20px 48px;
}
.mobile-list { list-style: none; margin: 0; padding: 0; }
.mobile-list > li > a, .mobile-list > li > details > summary {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-size: 20px; line-height: 28px;
  color: var(--ink-strong); text-decoration: none; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.mobile-sub { list-style: none; margin: 0; padding: 8px 0 12px 16px; border-bottom: 1px solid var(--rule); }
.mobile-sub a { display: block; padding: 10px 0; font-size: 17px; line-height: 24px; color: var(--ink); text-decoration: none; }
.mobile-sub .mobile-sub-head a { font-weight: 600; color: var(--ink-strong); padding-top: 12px; }
.mobile-login { margin-top: 28px; font-size: 18px; padding: 10px 28px; }

/* mega menu panels (spec 02 section 5.2) */
.mega-panel { color: var(--white); }
.mega-heading { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 38px; color: var(--white); margin-bottom: 28px; max-width: 28ch; }
.mega-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.mega-col ul, .mega-brand-list { list-style: none; margin: 0; padding: 0; }
.mega-col-title { display: block; margin-bottom: 8px; font-weight: 700; font-size: 18px; color: var(--white); text-decoration: none; }
.mega-panel a { color: var(--white); text-decoration: none; }
.mega-panel li a { display: inline-block; padding: 3px 0; line-height: 24px; }
.mega-panel li a:hover, .mega-col-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega-brand-list { columns: 3; column-gap: 24px; font-size: 18px; margin-bottom: 28px; }
.mega-brand-list li { break-inside: avoid; }
.mega-more { margin: 0; }

@media (min-width: 992px) {
  .site-header { position: relative; padding-block: 24px; }
  .logo-mobile, .mobile-menu { display: none; }
  .header-bar { display: block; }
  .main-nav { display: grid; grid-template-columns: 1fr 160px 1fr; align-items: center; width: 100%; column-gap: 24px; }
  .logo-desktop { display: block; grid-column: 2; }
  .logo img { width: 160px; }
  .main-nav > * { grid-row: 1; }
  .nav-left { grid-column: 1; justify-self: end; }
  .nav-right { grid-column: 3; justify-self: start; }
  .login-pill { grid-column: 3; justify-self: end; }

  /* the panel hangs from the header and is as wide as the window */
  .mega { position: static; }
  .mega-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 80; background: var(--briney); padding-block: 40px 48px; }
  .mega-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; align-items: stretch; }
  .mega-brands .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega-photo { position: relative; min-height: 280px; overflow: hidden; }
  .mega-photo .mega-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* ---------------------------------------------------------------- hero mosaic (spec 02 section 5.4) */
.hero { background: var(--bg-band); padding-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-cell { position: relative; min-width: 0; overflow: hidden; }
.hero-photo { min-height: 240px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text { padding: 40px 0 32px; display: flex; flex-direction: column; justify-content: center; background: var(--bg-band); }
.hero-text > * + * { margin-top: 20px; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 38px; color: var(--briney); }
.hero-lead { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 30px; color: var(--ink-strong); }
.hero-dark { background: var(--black); color: var(--white); padding: 32px 20px; display: flex; flex-direction: column; justify-content: center; }
.hero-dark > * + * { margin-top: 16px; }
.hero-dark-text { font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 30px; color: var(--white); }
.hero-wide .hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 20px 24px; color: var(--white);
  font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}
.hero-prompts { background: var(--bg-panel); padding: 32px 20px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.prompt-title { font-weight: 700; font-size: 18px; line-height: 24px; color: var(--ink-strong); margin-bottom: 8px; }
.hero-prompts .link-arrow { font-size: 18px; }
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: minmax(300px, auto) 300px; }
  .hero-text { grid-column: 1 / 3; grid-row: 1; padding: 32px 15px; }
  .hero-main { grid-column: 3; grid-row: 1; min-height: 0; }
  .hero-dark { grid-column: 4; grid-row: 1; padding: 24px 15px; }
  .hero-left { grid-column: 1; grid-row: 2; min-height: 0; }
  .hero-wide { grid-column: 2 / 4; grid-row: 2; min-height: 0; }
  .hero-prompts { grid-column: 4; grid-row: 2; padding: 24px 15px; }
  .hero-title { font-size: 44px; line-height: 53px; }
  .hero-lead { font-size: 32px; line-height: 38px; }
  .hero-dark-text, .hero-wide .hero-caption { font-size: 32px; line-height: 38px; }
  .hero-wide .hero-caption { padding-inline: 15px; }
  .link-arrow.hero-size { font-size: 28px; line-height: 34px; }
}

/* ---------------------------------------------------------------- split sections (spec 02 sections 5.5 and 5.10) */
.split-section { overflow-x: clip; }
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.split-media { position: relative; order: -1; }
.split-photo { display: block; position: relative; z-index: 1; }
.split-photo img { width: 100%; height: auto; }
.circle { display: none; }
.split-media.pair { display: grid; grid-template-columns: repeat(10, 1fr); }
.split-media.pair .split-photo-1 { grid-column: 1 / 7; grid-row: 1; }
.split-media.pair .split-photo-2 { grid-column: 5 / 11; grid-row: 2; margin-top: -14%; }
.split-text > .split-action { margin-top: 32px; }
.split-section .caps-title { font-family: var(--font-display); }
.split-section.no-media .split { grid-template-columns: 1fr; }
.split-section.no-media .split-text { max-width: 900px; }
.split-compact .prose { max-width: 480px; line-height: 27px; }
.editorial { padding-block: 40px; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split-media { order: 0; }
  .image-left .split-media { order: -1; }
  .image-right .split-media { order: 1; }
  .circle {
    display: block; position: absolute; z-index: 0; width: 320px; height: 320px; border: 1px solid var(--accent);
    border-radius: 50%; pointer-events: none;
  }
  .image-right .circle { left: -22%; bottom: -16%; }
  .image-left .circle { left: -14%; top: -16%; }
  .editorial { padding-block: 56px; }
}

/* ---------------------------------------------------------------- brand logo strip (spec 02 section 5.6) */
.brand-strip { border-top: 1px solid var(--rule); margin-top: 24px; }
.logo-row {
  display: flex; align-items: center; gap: 40px; list-style: none; margin: 0 0 24px; padding: 8px 6px 20px;   /* side padding: the focus ring of the first and last logo is not clipped */
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.logo-row li { flex: 0 0 150px; scroll-snap-align: start; }
.logo-link { display: flex; align-items: center; justify-content: center; height: 150px; text-decoration: none; }
.logo-link img { width: 150px; max-height: 150px; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 24px; text-align: center; color: var(--ink-strong); }

/* ---------------------------------------------------------------- promo cards (spec 02 section 5.7) */
.promo-section { padding-block: 40px; }
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.promo-card { display: flex; flex-direction: column; background: var(--bg-band); border: 1px solid var(--card-border); padding: 24px; }
.promo-media { margin-bottom: 24px; }
.promo-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.promo-card .card-title { margin-bottom: 12px; }
.promo-text { margin-bottom: 20px; }
.promo-link { margin-top: auto; }
@media (min-width: 768px) {
  .promo-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .promo-section { padding-block: 48px; }
}
.after-hero > .promo-section:last-child { padding-bottom: 96px; }

/* ---------------------------------------------------------------- product card and grids (spec 02 section 5.8) */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 30px; list-style: none; margin: 0 0 48px; padding: 0; }
@media (min-width: 576px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.product-grid > li { min-width: 0; }
.product-card { display: flex; flex-direction: column; height: 100%; padding: 16px; border: 1px solid var(--card-border); background: transparent; color: var(--ink); text-decoration: none; }
.product-card:hover, .product-card:focus-visible { border-color: var(--ink); }
.product-code { font-size: 12px; line-height: 16px; color: var(--ink); }
.product-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin: 8px 0 14px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media.is-fallback { background: var(--bg-band); }
.product-media .product-fallback-logo { width: 62%; height: auto; max-height: 62%; object-fit: contain; }
.product-fallback-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 26px; text-align: center; padding: 16px; color: var(--ink-strong); }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 22px; color: var(--ink-strong); }
@media (min-width: 768px) { .product-name { font-size: 20px; line-height: 24px; } }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { display: inline-block; padding: 1px 10px; border-radius: var(--radius-pill); font-size: 12px; line-height: 18px; font-weight: 600; }
.badge-new { background: var(--sage); color: var(--white); }
.badge-state, .badge-note { border: 1px solid var(--ink-muted); color: var(--ink); font-weight: 400; }
.badge-season { background: var(--bg-band); border: 1px solid var(--card-border); color: var(--ink); }
.product-group { margin-top: 56px; }
.product-group:first-of-type { margin-top: 40px; }
.product-group .section-title a { color: inherit; text-decoration: none; }
.product-group .section-title a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* filter bar on /products/ (shown by site.js only) */
.filter-bar { display: grid; grid-template-columns: 1fr; gap: 0 20px; margin-bottom: 24px; padding: 20px; background: var(--bg-band); border: 1px solid var(--card-border); }
.filter-status { margin-bottom: 24px; color: var(--ink-muted); }
.filter-empty { padding-block: 32px; font-size: 18px; }
@media (min-width: 768px) { .filter-bar { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* category tiles on the storage pages */
.tile-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; margin: 0 0 24px; padding: 0; }
@media (min-width: 768px) { .tile-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .tile-row { grid-template-columns: repeat(5, 1fr); } }
.category-tile { display: block; height: 100%; padding: 12px; border: 1px solid var(--card-border); color: var(--ink); text-decoration: none; }
.category-tile:hover, .category-tile:focus-visible { border-color: var(--ink); }
.tile-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin-bottom: 10px; overflow: hidden; background: var(--bg-band); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media .product-fallback-logo { width: 62%; height: auto; object-fit: contain; }
.tile-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 22px; color: var(--ink-strong); }
.tile-count { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------------------------------------------------------------- listing header and breadcrumbs (spec 02 section 5.9) */
.breadcrumbs { margin: -12px 0 20px; font-size: 14px; line-height: 20px; }   /* the links' 12 px padding (a 44 px tap height) is taken back here, so nothing moves */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before {
  content: ""; display: inline-block; margin: 0 10px 0 9px; border-left: 6px solid var(--accent);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.breadcrumbs a { display: inline-block; padding-block: 12px; color: var(--ink); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.listing-header { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; margin-bottom: 56px; }
.listing-media img { width: 100%; height: auto; }
.listing-header:not(.brand-header) .listing-media img { aspect-ratio: 6 / 5; object-fit: cover; }
.listing-text > * + * { margin-top: 16px; }
.listing-text .page-title { margin-bottom: 8px; }
.brand-header .listing-media { display: flex; align-items: center; justify-content: center; background: var(--white); padding: 32px; min-height: 240px; }
.brand-header .listing-media img { width: auto; max-width: min(320px, 100%); }
.brand-origin { font-weight: 600; color: var(--ink-strong); }
.availability-note { padding: 10px 14px; border: 1px solid var(--card-border); background: var(--bg-band); }
@media (min-width: 768px) {
  .listing-header { grid-template-columns: 1fr 1fr; gap: 30px; }
  .listing-header.no-media { grid-template-columns: 1fr; max-width: 780px; }
}

/* brand cards on /brands/ */
.brand-grid { display: grid; grid-template-columns: 1fr; gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 576px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.brand-grid > li { min-width: 0; }
.brand-card { display: flex; flex-direction: column; height: 100%; padding: 16px; border: 1px solid var(--card-border); color: var(--ink); text-decoration: none; }
.brand-card:hover, .brand-card:focus-visible { border-color: var(--ink); }
.brand-logo { display: flex; align-items: center; justify-content: center; height: 180px; margin-bottom: 16px; background: var(--white); }
.brand-logo img { max-width: 70%; max-height: 140px; width: auto; height: auto; object-fit: contain; }
.brand-logo-text { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 28px; padding: 16px; text-align: center; color: var(--ink-strong); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 24px; color: var(--ink-strong); }
.brand-country { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.brand-line { margin-top: 8px; }
.new-brand { margin-bottom: 32px; padding: 20px 24px; background: var(--bg-band); border: 1px solid var(--card-border); }
.new-brand p { margin-top: 6px; }

/* ---------------------------------------------------------------- product page (spec 02 section 5.11) */
.product-panel { display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 24px; background: var(--white); margin-bottom: 40px; }
.product-photo { width: auto; max-width: 100%; max-height: 640px; object-fit: contain; }
.product-panel .product-panel-logo { width: 240px; height: auto; max-height: 240px; object-fit: contain; }
.product-info { max-width: 840px; margin-inline: auto; }
.product-info > * + * { margin-top: 20px; }
.product-brand { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 30px; }
.product-brand a { color: var(--ink-strong); text-decoration: none; }
.product-brand a:hover { text-decoration: underline; }
.spec-list { display: block; margin-top: 12px; }
.spec-list > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 16px; padding-block: 3px; }
.spec-list dt { font-weight: 600; color: var(--ink-strong); }
.spec-list dd { margin: 0; overflow-wrap: anywhere; }
.spec-list a { color: var(--ink); }
.product-description { font-size: 18px; line-height: 28px; }
.product-note { color: var(--ink-muted); }
.related, .from-journal { margin-top: 80px; }

/* ---------------------------------------------------------------- journal and recipe cards (spec 02 section 5.12) */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 576px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.media-card { min-width: 0; border: 1px solid var(--card-border); }
.media-card:hover, .media-card:focus-within { border-color: var(--ink); }
.card-link { display: block; height: 100%; padding: 24px; color: var(--ink); text-decoration: none; }
.card-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-date { display: block; margin: 20px 0 6px; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.card-heading { display: block; margin-top: 18px; }
.card-date + .card-heading { margin-top: 0; }
.journal-card .card-heading { font-weight: 400; font-size: 20px; line-height: 24px; color: var(--ink-strong); }
.recipe-card .card-heading { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 24px; color: var(--ink-strong); }
.card-excerpt { display: block; margin-top: 12px; }

/* journal post */
.article-head { text-align: center; max-width: 900px; margin-inline: auto; }
.article-head .card-date { margin-top: 0; }
.article-photo { margin: 24px 0 48px; }
.article-photo img { width: 100%; max-height: 560px; object-fit: cover; }
.article-body { font-size: 18px; line-height: 30px; }
.more-posts { padding-top: 0; }

/* ---------------------------------------------------------------- recipes (spec 02 section 5.13) */
.featured-recipe { margin-bottom: 72px; }
.featured-recipe .section-title a { color: inherit; text-decoration: none; }
.featured-recipe .section-title { font-weight: 600; }
.recipe-section { margin-top: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.recipe-section:last-of-type { border-bottom: 0; }
.recipe-section .section-title { font-size: 28px; line-height: 34px; margin-bottom: 20px; }
.view-more { margin-top: 28px; text-align: right; }
.view-more .btn-outline { padding: 8px 24px; }   /* 24 px like every outline button: coral on --bg is 3.56:1, enough only for large text */
.recipe-photo img { width: 100%; max-height: 450px; object-fit: cover; }
.recipe-photo { margin-bottom: 40px; }
.recipe-facts { display: grid; grid-template-columns: 1fr; gap: 4px 24px; }
.recipe-facts dt, .recipe-facts dd { display: inline; margin: 0; }
.recipe-facts dt { font-weight: 600; color: var(--ink-strong); }
.recipe-intro { margin-block: 24px; font-family: var(--font-display); font-size: 22px; line-height: 32px; text-align: center; color: var(--briney); }
@media (min-width: 576px) { .recipe-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .recipe-facts { grid-template-columns: repeat(3, 1fr); }
  .recipe-intro { font-size: 24px; line-height: 40px; }
}

/* tabs: radio buttons and labels, no scripting. Below 768 px, and whenever site.js has not run (JavaScript off),
   both sections are shown one under the other, each with its heading. site.js only sets the "js" class on <html>. */
.tab-input { display: none; }
.tab-labels { display: none; }
.tab-heading { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; color: var(--ink-strong); margin: 32px 0 14px; }
.ingredients, .method { margin: 0; padding-left: 22px; }
.ingredients { list-style: none; padding-left: 0; }
.ingredients li, .method li { padding-block: 3px; }
.ingredients .ingredients-subhead { margin-top: 14px; font-weight: 600; color: var(--ink-strong); }
.method li { padding-left: 6px; }
.pro-tip { margin-top: 48px; padding: 24px; background: var(--bg-band); border: 1px solid var(--card-border); }
.pro-tip p { margin-top: 8px; }
.recipe-body { margin-top: 40px; }
.products-used { margin-top: 72px; }
.brand-links { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; margin: 8px 0 0; padding: 0; justify-content: center; }
@media (min-width: 768px) {
  .js .tab-input { display: block; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
  .js .tab-labels { display: flex; gap: 32px; margin-bottom: 20px; }
  .js .tab-labels label {
    cursor: pointer; font-size: 18px; line-height: 24px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink);
    text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--ink-muted); text-underline-offset: 8px;
  }
  .js .tab-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .js #tab-method:checked ~ .panel-ingredients, .js #tab-ingredients:checked ~ .panel-method { display: none; }
  .js #tab-ingredients:checked ~ .tab-labels label[for="tab-ingredients"],
  .js #tab-method:checked ~ .tab-labels label[for="tab-method"] {
    font-weight: 600; color: var(--ink-strong); text-decoration-color: var(--accent); text-decoration-thickness: 3px;
  }
  .js #tab-ingredients:focus-visible ~ .tab-labels label[for="tab-ingredients"],
  .js #tab-method:focus-visible ~ .tab-labels label[for="tab-method"] { outline: 2px solid var(--indigo); outline-offset: 4px; }
}

/* ---------------------------------------------------------------- forms (spec 02 section 5.14) */
.field { margin-bottom: 16px; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-size: 16px; line-height: 24px; color: var(--ink-strong); }
.req { color: var(--ink-muted); font-size: 14px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 0;
  background: var(--white); color: var(--ink); font-family: inherit; font-size: 16px; line-height: 24px;
}
textarea { resize: vertical; min-height: 140px; }
select { appearance: auto; }
fieldset.field { border: 0; margin-inline: 0; padding: 0; }
.radio { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; cursor: pointer; }
.field .radio { display: flex; margin-bottom: 0; padding-block: 10px; }   /* 44 px rows for a thumb */
.radio input { margin: 5px 0 0; flex: none; }
.radio span { font-size: 16px; line-height: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: flex-end; margin-block: 16px; }
.form-status { margin-bottom: 8px; }
.form-status:not(:empty) { padding: 12px 16px; border: 1px solid var(--card-border); background: var(--white); }
.form-status.is-error { border-color: var(--accent-strong); color: var(--ink-strong); }
.form-note { margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--card-border); background: var(--bg-band); }
.enquiry-product { margin-bottom: 16px; padding: 10px 14px; background: var(--bg-band); font-weight: 600; color: var(--ink-strong); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-grid > * { min-width: 0; }
.contact-email a, .contact-phone a, .contact-address { overflow-wrap: anywhere; }
.geo-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.02em; color: var(--indigo); margin-bottom: 4px; }
.contact-address { font-family: var(--font-display); font-size: 20px; line-height: 26px; color: var(--ink-strong); margin-bottom: 36px; }
.contact-phone, .contact-email { font-family: var(--font-display); font-size: 20px; line-height: 26px; margin-bottom: 28px; }
.contact-phone a, .contact-email a { color: var(--ink-strong); text-decoration: none; }
.contact-phone a:hover, .contact-email a:hover { text-decoration: underline; }
.form-heading { margin-bottom: 14px; }
.form-thanks { padding: 24px; border: 1px solid var(--card-border); background: var(--bg-band); font-family: var(--font-display); font-size: 22px; line-height: 30px; color: var(--ink-strong); }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 2fr; gap: 56px; } }

/* ---------------------------------------------------------------- text pages, downloads, 404 */
.page-head { padding-top: 56px; }
@media (min-width: 768px) { .page-head { padding-top: 80px; } }
.page-prose { padding-bottom: 56px; }
.page-trade-login .page-prose, .page-thanks .page-prose { text-align: center; }
.page-trade-login .page-title, .page-thanks .page-title { font-weight: 400; }
.download-group { margin-top: 56px; }
.download-list { list-style: none; margin: 0 0 20px; padding: 0; }
.download-list li { padding-block: 10px; border-bottom: 1px solid var(--rule); }
.download-link { font-size: 20px; font-weight: 600; }
.download-meta { display: block; font-size: 14px; color: var(--ink-muted); }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 40px 0; padding: 0; }
.cta-band { padding-top: 24px; }
.cta-band .section-title { margin-bottom: 24px; }

/* ---------------------------------------------------------------- footer (spec 02 section 5.15) */
.site-footer { padding-block: 24px 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 40px; border-top: 1px solid var(--rule); }
.footer-title { font-weight: 600; font-size: 18px; line-height: 22px; text-transform: uppercase; color: var(--ink-strong); margin: 0 0 20px; }
.footer-list, .footer-caps, .social-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { line-height: 32px; }
.footer-list a, .footer-address a { color: var(--ink); text-decoration: none; }
.footer-list a:hover, .footer-address a:hover, .footer-caps a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-address { display: grid; font-style: normal; line-height: 28px; }
.footer-address a:first-of-type { margin-top: 2px; }
.footer-address a:last-of-type { margin-top: 14px; }
.footer-caps li { line-height: 35px; }
.footer-caps a { font-weight: 600; font-size: 17px; text-transform: uppercase; color: var(--ink-strong); text-decoration: none; }
.social-list { display: flex; gap: 14px; margin-top: 14px; }
.social-list a { display: inline-flex; padding: 11px; margin: -7px; color: var(--ink-strong); }   /* 44 x 44 to tap, same place on screen */
.social-list { gap: 14px; padding-left: 7px; }
@media (max-width: 575.98px) {
  .footer-list li, .footer-caps li { line-height: 24px; }
  .footer-list a, .footer-caps a { display: inline-block; padding-block: 10px; }   /* 44 px tap height on a phone */
  .footer-address a { padding-block: 8px; }
}
.enquire-top { margin: -8px 0 8px; }
.site-footer .small-print { margin-top: 40px; }
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- WP-08: new rules for the Contact page (spec 03 section 4.15) and the Catalogues page (4.9) */
.contact-fallback { margin: 0; padding: 20px 24px; border: 1px solid var(--card-border); background: var(--bg-band); font-family: var(--font-display); font-size: 20px; line-height: 28px; color: var(--ink-strong); }
.contact-fallback a { color: var(--ink-strong); overflow-wrap: anywhere; }
.enquiry-form input[readonly] { background: var(--bg-band); }
.download-action { margin-top: 20px; }
