/* Nordic Breakfast sales platform, draft v2.
   Palette from BRAND_VISUAL_RULES.md: cream #fff4e8, cream-deep #f7e7d6, sage-pale #dfe7dd,
   green #10521c, green-black #06240c, ink-soft #234f24, berries as accents only. */

:root {
  --cream: #fff4e8;
  --cream-deep: #f7e7d6;
  --sage-pale: #dfe7dd;
  --sage: #a6b5a2;
  --green: #10521c;
  --green-black: #06240c;
  --ink: #06240c;
  --ink-soft: #234f24;
  --lingon: #f44932;
  --blueberry: #4337b7;
  --cloudberry: #ed6f05;
  --line: rgba(16, 82, 28, 0.16);
  --white: #ffffff;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Poppins", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --radius: 14px;
  --maxw: 1320px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-black); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; color: var(--green-black); }
p { margin: 0 0 0.75em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blueberry); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }
.muted { color: var(--ink-soft); opacity: 0.85; }
.small { font-size: 0.85rem; }
.confirm { color: #a4302a; font-weight: 500; }

/* Tags */
.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
  background: var(--cream-deep); color: var(--ink-soft); border: 1px dashed var(--sage);
  vertical-align: middle; line-height: 1.6;
}
.tag-confirm { background: #fff; color: #a4302a; border-color: rgba(164, 48, 42, 0.4); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--green);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-black); border-color: var(--green-black); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--green); }
.btn-secondary:hover { background: var(--sage-pale); color: var(--green-black); }
.btn-light { background: var(--cream); color: var(--green-black); border-color: var(--cream); }
.btn-light:hover { background: var(--white); color: var(--green-black); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.85rem; white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 244, 232, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-black); font-family: var(--display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.nav { display: none; gap: 24px; margin-left: 24px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; }
.nav a:hover { color: var(--green-black); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.basket-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--green-black); font-size: 0.85rem; font-weight: 500; }
.basket-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--lingon); color: var(--white); font-size: 0.75rem; font-weight: 600; padding: 0 6px; }
.basket-label { display: none; }
.draft-bar { margin: 0; text-align: center; font-size: 0.72rem; padding: 4px var(--gutter); background: var(--sage-pale); color: var(--ink-soft); }
@media (min-width: 900px) { .nav { display: flex; } .basket-label { display: inline; } }
@media (max-width: 380px) { .header-actions .btn-small { padding: 0 12px; } }

/* Hero */
.hero { padding: 32px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 5.6rem); letter-spacing: -0.02em; color: var(--green); }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin: 16px 0 24px; max-width: 34ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-new { margin-top: 24px; font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: baseline; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lingon); flex: none; transform: translateY(1px); }
.hero-media { position: relative; }
.hero-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.hero-pack { position: absolute; width: 30%; border-radius: 16px; background: var(--white); box-shadow: 0 12px 30px rgba(6, 36, 12, 0.18); }
.hero-pack-a { left: -4%; bottom: -8%; }
.hero-pack-b { right: 4%; bottom: -10%; width: 26%; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-pack-a { left: -10%; }
}
@media (max-width: 899px) { .hero-media { margin: 0 4% 24px; } }

/* Values strip */
.values { background: var(--green); color: var(--cream); }
.values-list { list-style: none; margin: 0 auto; display: grid; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.values-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 3px solid var(--cloudberry); }
.values-list strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.values-list span { font-size: 0.88rem; opacity: 0.85; }
@media (min-width: 768px) { .values-list { grid-template-columns: repeat(3, 1fr); } }

/* Sections */
.section { padding: 48px 0; }
.section-sage { background: var(--sage-pale); }
.section-h { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 20px; }

/* Category tiles */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-tile { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform 0.15s, box-shadow 0.15s; }
a.cat-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 36, 12, 0.1); }
.cat-tile:first-child { grid-column: span 2; }
.cat-media { aspect-ratio: 4 / 3; background: var(--cream-deep); overflow: hidden; }
.cat-tile:first-child .cat-media { aspect-ratio: 16 / 9; }
.cat-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.cat-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cat-body h3 { font-size: 1.3rem; }
.cat-body p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.cat-body .cat-count { font-weight: 600; color: var(--green); margin-top: 4px; }
.tile-art { width: 100%; height: 100%; }
.tile-art-trad { background: radial-gradient(circle at 30% 40%, var(--cloudberry) 0 14%, transparent 15%), radial-gradient(circle at 65% 60%, #e9b45a 0 18%, transparent 19%), var(--cream-deep); }
.tile-art-award { background: url("/assets/brand/pattern-tile.webp") center / 70% repeat, var(--sage-pale); }
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-tile:first-child { grid-column: auto; }
  .cat-tile:first-child .cat-media { aspect-ratio: 4 / 3; }
}

/* Rails */
.rail { padding: 36px 0 12px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.rail-head h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.rail-more { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.rail-intro { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); font-size: 0.88rem; color: var(--ink-soft); }
.rail-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 12px var(--gutter) 24px;
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: thin;
}
.rail-item { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; display: flex; }
.rail-item > * { width: 100%; }
@media (min-width: 600px) { .rail-item { flex-basis: 260px; } }
.rail.wrap { padding-bottom: 32px; }

/* Cards */
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-media { aspect-ratio: 1 / 1; background: var(--cream-deep); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-producer { margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.03em; }
.card-producer a { text-decoration: none; }
.card-producer span { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.card-title { font-size: 1.15rem; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-note { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.74rem; padding: 3px 9px; border-radius: 999px; background: var(--sage-pale); color: var(--ink-soft); font-weight: 500; }
.chips-lg li { font-size: 0.85rem; padding: 5px 12px; }
.award-chip { margin: 0; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-size: 0.74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--lingon); color: var(--green-black); }
.award-chip span { color: var(--lingon); font-size: 0.6rem; }
.award-chip-lg { font-size: 0.85rem; padding: 5px 12px; margin-bottom: 12px; }
.btn-add { margin-top: auto; align-self: stretch; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-weight: 600; font-size: 0.82rem; }
.btn-add:hover { background: var(--sage-pale); }
.btn-add.is-added { background: var(--green); color: var(--cream); }

/* Producer photo slot */
.slot { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; }
.slot-cream { background: linear-gradient(160deg, #fbe7cf, var(--cream-deep)); }
.slot-sage { background: linear-gradient(160deg, var(--sage-pale), #cfdacc); }
.slot-berry { background: linear-gradient(160deg, #fde2d9, var(--cream-deep)); }
.slot-initials { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--green); line-height: 1; }
.slot-name { font-weight: 600; font-size: 0.85rem; color: var(--green-black); }
.slot-note { font-size: 0.75rem; color: var(--ink-soft); }
.slot-big { aspect-ratio: 1 / 1; border-radius: 20px; }
.slot-big .slot-initials { font-size: 5rem; }
.slot-big .slot-name { font-size: 1.1rem; }

/* Producer tiles */
.ptile { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--green-black); min-height: 170px; }
.ptile-cream { background: #fbe7cf; }
.ptile-sage { background: var(--sage-pale); }
.ptile-berry { background: #fde2d9; }
a.ptile:hover { box-shadow: 0 10px 24px rgba(6, 36, 12, 0.1); }
.ptile-initials { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--green); margin-bottom: auto; }
.ptile-name { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.ptile-place { font-size: 0.85rem; color: var(--ink-soft); }
.ptile-since { font-size: 0.8rem; font-weight: 600; color: var(--green); }

/* Channels */
.channel-grid { display: grid; gap: 14px; }
.channel { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--cream); background: var(--green-black); }
.channel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: 0.85; }
.channel-body { position: absolute; inset: auto 0 0 0; padding: 16px; background: linear-gradient(transparent, rgba(6, 36, 12, 0.88) 40%); }
.channel-body h3 { color: var(--cream); font-size: 1.5rem; }
.channel-body p { margin: 2px 0 6px; font-size: 0.88rem; }
@media (min-width: 768px) { .channel-grid { grid-template-columns: repeat(3, 1fr); } }

/* Build a range band */
.build { background: var(--green); color: var(--cream); padding: 40px 0; background-image: url("/assets/brand/pattern-tile.webp"); background-size: 260px; background-blend-mode: soft-light; }
.build h2 { color: var(--cream); font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 8px; }
.build p { margin: 0; }
.build .tag { background: var(--cream); }
.build-inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 768px) { .build-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Page tops, breadcrumb */
.page-top { padding-top: 20px; }
.crumbs { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-soft); }
.page-h { font-size: clamp(2.2rem, 7vw, 3.6rem); color: var(--green); margin-bottom: 8px; }
.page-intro { font-size: 1.05rem; color: var(--ink-soft); max-width: 60ch; }

/* Category */
.pstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px auto 24px; }
.pstrip .ptile { min-height: 130px; padding: 14px; }
.pstrip .ptile-initials { font-size: 1.5rem; }
@media (min-width: 900px) { .pstrip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--green-black); font-weight: 500; font-size: 0.88rem; }
.filter.is-on { background: var(--green-black); color: var(--cream); border-color: var(--green-black); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 599px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grid .card-body { padding: 12px; } .grid .card-title { font-size: 1rem; } }
.filter-empty { padding: 20px; background: var(--white); border-radius: var(--radius); border: 1px dashed var(--sage); }
.cat-footnote { margin: 24px 0 40px; font-size: 0.82rem; color: var(--ink-soft); max-width: 70ch; }
.card[hidden] { display: none; }

/* Product page */
.pdp { display: grid; gap: 24px; padding-bottom: 32px; }
.pdp-producer { font-size: 0.85rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.pdp-tagline { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 6px; }
.pdp-title { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 14px; }
.pdp-info .chips { margin-bottom: 20px; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pdp-actions .btn { flex: 1 1 200px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-top: 8px; } .pdp-media { position: sticky; top: 110px; } }
.pdp-sections { display: grid; gap: 36px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); }
.pdp-sections section { max-width: 760px; }
.pdp-sections .section-h { font-size: 1.6rem; margin-bottom: 12px; }
.why { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.why li { position: relative; padding-left: 26px; }
.why li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--lingon); }
.why li:nth-child(2)::before { background: var(--blueberry); }
.why li:nth-child(3)::before { background: var(--cloudberry); }
.pquote { margin: 20px 0 0; padding: 16px 20px; border-left: 4px solid var(--cloudberry); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.pquote p { font-family: var(--display); font-size: 1.25rem; margin: 0 0 4px; }
.pquote footer { font-size: 0.82rem; color: var(--ink-soft); }
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.award-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.award-year { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--lingon); margin: 0; }
.award-name { font-weight: 600; margin-bottom: 4px; }
.award-note { font-size: 0.85rem; margin-bottom: 4px; }
.award-src { font-size: 0.82rem; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.award-src a { overflow-wrap: anywhere; }
.specs { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; font-weight: 500; color: var(--ink-soft); background: #fffaf3; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.about-producer a { overflow-wrap: anywhere; }
.producer-hero { display: grid; gap: 24px; padding-bottom: 32px; align-items: center; }
.producer-hero-media { max-width: 420px; }
.producer-since { font-family: var(--display); font-size: 1.3rem; color: var(--lingon); font-weight: 600; }
@media (min-width: 900px) { .producer-hero { grid-template-columns: 420px 1fr; gap: 56px; } }

/* Footer */
.site-footer { background: var(--green-black); color: var(--cream); padding: 48px 0 24px; margin-top: 24px; }
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.footer-h { color: var(--cream); font-size: 1.3rem; margin-bottom: 12px; }
.open-q { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 0.85rem; opacity: 0.92; }
.open-q .tag-confirm { background: transparent; color: #ffb8a8; border-color: rgba(255, 184, 168, 0.5); margin-right: 4px; }
.footer-small { font-size: 0.75rem; opacity: 0.7; margin-top: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 2fr; gap: 64px; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 36, 12, 0.55); }
.modal-panel { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--cream); border-radius: 20px 20px 0 0; padding: 24px var(--gutter) 28px; }
@media (min-width: 600px) { .modal { place-items: center; } .modal-panel { border-radius: 20px; padding: 32px; } }
.modal-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.8rem; color: var(--green-black); }
.modal-panel h2 { font-size: 1.6rem; margin-right: 36px; }
.modal-lead { color: var(--ink-soft); font-size: 0.9rem; margin-top: 6px; }
.basket { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0 18px; }
.basket h3 { font-family: var(--body); font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.basket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; }
.basket-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.basket-list button { border: 0; background: none; color: #a4302a; font-size: 0.8rem; text-decoration: underline; }
.basket-empty { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.enquiry-form { display: grid; gap: 14px; }
.enquiry-form label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 500; }
.enquiry-form input[type="text"], .enquiry-form input[type="email"], .enquiry-form textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--sage); border-radius: 10px; background: var(--white); width: 100%; }
.enquiry-form fieldset { border: 1.5px solid var(--sage); border-radius: 10px; padding: 10px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.enquiry-form legend { font-size: 0.85rem; font-weight: 500; padding: 0 4px; }
.enquiry-form .radio { display: flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.draft-status { margin: 0; font-weight: 600; color: #a4302a; }
body.modal-open { overflow: hidden; }

/* Packshots on white backgrounds blend into the warm tile ground */
.card-media img, .cat-media img { mix-blend-mode: multiply; }

/* ---------- v2.1: producers lead ---------- */

/* Hero mosaic of producer imagery */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 74px; }
.mosaic figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--white); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 8px; bottom: 8px; font-size: 0.68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 244, 232, 0.92); color: var(--green-black); }
.m-a { grid-column: 1 / 5; grid-row: span 2; }
.m-b { grid-column: 5 / 7; grid-row: span 2; }
.m-c { grid-column: 1 / 3; grid-row: span 3; }
.m-c img { object-fit: contain; padding: 8px 0; }
.m-d { grid-column: 3 / 7; grid-row: span 2; }
.m-e { grid-column: 3 / 7; grid-row: span 1; }
@media (min-width: 900px) { .mosaic { grid-auto-rows: 92px; } }

/* Logos: never recoloured; white logos sit on dark ground */
.logo { display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.logo img { display: block; width: auto; max-width: 100%; }
.logo-sm { height: 40px; } .logo-sm img { max-height: 26px; max-width: 110px; }
.logo-md { height: 52px; } .logo-md img { max-height: 36px; max-width: 150px; }
.logo-lg { height: 72px; padding: 10px 16px; } .logo-lg img { max-height: 50px; max-width: 220px; }
.logo-on-dark { background: var(--green-black); border-color: var(--green-black); }
.logo-type { font-family: var(--display); font-weight: 700; color: var(--green-black); font-size: 0.95rem; white-space: nowrap; }
.logo-lg.logo-type { font-size: 1.3rem; }

/* Product image fits */
.card-media img.fit-cover { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.card-media img.fit-logo { object-fit: contain; padding: 22%; mix-blend-mode: normal; }

/* Producer tiles with photo and logo */
.rail-item > .ptile { padding: 0; overflow: hidden; background: var(--white); min-height: 0; }
.ptile-photo { display: block; aspect-ratio: 4 / 3; background: var(--cream-deep); overflow: hidden; }
.ptile-photo img { width: 100%; height: 100%; object-fit: cover; }
.ptile-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--green); background: linear-gradient(160deg, var(--sage-pale), #cfdacc); }
.ptile-noimg small { font-family: var(--body); font-size: 0.72rem; font-weight: 400; color: var(--ink-soft); }
.ptile-logo { display: block; margin: -24px 14px 6px; position: relative; }
.ptile-logo .logo { box-shadow: 0 6px 16px rgba(6, 36, 12, 0.12); }
.rail-item > .ptile .ptile-name, .rail-item > .ptile .ptile-place, .rail-item > .ptile .ptile-since { padding: 0 16px; }
.rail-item > .ptile .ptile-since { padding-bottom: 16px; }
.ptile-compact .logo { align-self: flex-start; margin-bottom: auto; }

/* Product page gallery and producer row */
.gallery-main { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin: 10px 0 6px; }
.thumb { width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--white); }
.thumb.is-on { border-color: var(--green); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-producer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.pdp-producer-row .pdp-producer { margin: 0; }
.award-item.has-badge { grid-template-columns: 64px 1fr 72px; align-items: center; }
.award-badge { width: 72px; height: 72px; object-fit: contain; }
.producer-hero-media img { width: 100%; border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; }
.producer-hero .logo { margin-bottom: 14px; }
.wide-fig { margin: 20px 0 0; }
.wide-fig img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.wrap.wide-fig { margin: 8px auto 0; }
.wrap.wide-fig img { max-height: 480px; }

/* Front-page card tiers */
.tcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: 100%; }
.tcard .card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tcard .logo { align-self: flex-start; }
.card-why { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.rail-item-m { flex-basis: 86%; max-width: 440px; }
@media (min-width: 600px) { .rail-item-m { flex-basis: 440px; } }
.tcard-m .card-media { aspect-ratio: 16 / 10; }
@media (min-width: 600px) {
  .tcard-m { flex-direction: row; }
  .tcard-m .card-media { aspect-ratio: auto; flex: 0 0 44%; }
}
.features { padding-top: 40px; padding-bottom: 16px; }
.rail-intro-inline { font-size: 0.88rem; color: var(--ink-soft); margin: -10px 0 18px; }
.features-grid { display: grid; gap: 18px; }
.tcard-l { display: grid; border-radius: 20px; }
.tcard-l-media { aspect-ratio: 16 / 10; background: var(--cream-deep); overflow: hidden; }
.tcard-l-media img { width: 100%; height: 100%; object-fit: cover; }
.tcard-l-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tcard-l-title { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.tcard-l-story { color: var(--ink-soft); max-width: 52ch; margin: 0; }
.tcard-l-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (min-width: 900px) {
  .tcard-l { grid-template-columns: 1.15fr 1fr; }
  .tcard-l:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
  .tcard-l:nth-child(even) .tcard-l-media { order: 2; }
  .tcard-l-media { aspect-ratio: auto; min-height: 380px; }
  .tcard-l-body { padding: 36px 40px; justify-content: center; }
}

/* Stories */
.story-card { display: flex; flex-direction: column; width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.story-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.story-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lingon); }
.story-title { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--green-black); line-height: 1.15; }
.story-stand { font-size: 0.88rem; color: var(--ink-soft); }
.story-more { font-weight: 600; color: var(--green); font-size: 0.9rem; text-decoration: underline; }
.story-hero img { width: 100%; height: clamp(220px, 42vw, 520px); object-fit: cover; }
.story-head { padding-top: 20px; max-width: 820px; }
.story-h { font-size: clamp(2.1rem, 6vw, 3.6rem); color: var(--green); margin: 4px 0 12px; }
.story-standfirst { font-size: 1.15rem; color: var(--ink-soft); }
.story-body-text { max-width: 820px; padding-top: 8px; padding-bottom: 8px; font-size: 1.02rem; }
.story-body-text h2 { font-size: 1.5rem; margin: 28px 0 10px; }
.story-logo { margin-bottom: 18px; }
.story-gallery { display: grid; gap: 12px; margin-top: 16px; }
.story-gallery figure { margin: 0; }
.story-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 768px) { .story-gallery { grid-template-columns: 1fr 1fr; } .story-gallery figcaption { grid-column: 1 / -1; } }
.story-prod .card-body .btn-small { margin-top: auto; }
.story-prod .btn-add { margin-top: 0; }
.card-media { overflow: hidden; min-height: 0; }
.tcard-m .card-media img { height: 100%; }
.gallery-main { aspect-ratio: 4 / 3; }

/* ---------- v2.2: frameless images, cleaner rows ---------- */
/* One frame only: the photo carries the rounded edge; text sits on the page ground. */
.card, .tcard, .story-card, .cat-tile, .rail-item > .ptile {
  background: transparent; border: 0; border-radius: 0; overflow: visible;
}
a.cat-tile:hover, a.ptile:hover { transform: none; box-shadow: none; }
.card-media, .cat-media, .story-media, .ptile-photo, .tcard-l-media {
  border-radius: var(--radius); overflow: hidden; background: var(--cream-deep);
}
.card-media img, .cat-media img { object-fit: cover; padding: 0; mix-blend-mode: normal; transition: transform 0.4s ease; }
a.cat-tile:hover .cat-media img, .story-card:hover .story-media img, a.ptile:hover .ptile-photo img,
.tcard:hover .card-media img.fit-cover { transform: scale(1.03); }
.story-media img, .ptile-photo img { transition: transform 0.4s ease; }
/* Packshots on white: no box; the white drops away and the product stands on the page */
.card-media:has(img.fit-contain) { background: transparent; border-radius: 0; }
.card-media img.fit-contain { object-fit: contain; padding: 4%; mix-blend-mode: multiply; }
.card-media img.fit-logo { object-fit: contain; padding: 24%; }
.card-body, .tcard .card-body, .cat-body, .story-body { padding: 12px 2px 4px; }
.rail-item > .ptile .ptile-name, .rail-item > .ptile .ptile-place, .rail-item > .ptile .ptile-since { padding: 0 2px; }
.ptile-logo { margin: -22px 10px 8px; }
.cat-body h3 { font-size: 1.2rem; }
.btn-add { align-self: flex-start; padding: 0 16px; }
/* Large cards: big photo, text beside it on the page */
.tcard-l { gap: 0; }
.tcard-l-media { border-radius: 20px; }
@media (min-width: 900px) {
  .tcard-l { column-gap: 48px; }
  .tcard-l-body { padding: 24px 0; }
}
/* Medium cards stack: photo on top, words below */
@media (min-width: 600px) {
  .tcard-m { flex-direction: column; }
  .tcard-m .card-media { flex: none; aspect-ratio: 16 / 10; }
}
.tcard-m .logo { display: none; }
/* Hero mosaic: photos only, no white backing */
.mosaic figure { background: var(--cream-deep); }
.m-c img { object-fit: cover; padding: 0; }
/* Product page: the photo is the frame */
.gallery-main { border: 0; background: transparent; }
.gallery-main img { mix-blend-mode: multiply; }
.thumb { background: transparent; }

/* Rows: no scrollbar, arrows in the heading, soft fade at the open edge */
.rail-head { align-items: center; }
.rail-nav { display: flex; align-items: center; gap: 8px; }
.rail-nav .rail-more { margin-right: 8px; }
.rail-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--green);
  background: transparent; color: var(--green); font-size: 1.1rem; line-height: 1; padding: 0;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.rail-btn:hover:not(:disabled) { background: var(--green); color: var(--cream); }
.rail-btn:disabled { opacity: 0.25; cursor: default; }
@media (min-width: 768px) and (hover: hover) { .rail-btn { display: inline-flex; align-items: center; justify-content: center; } }
.rail.is-static .rail-btn { display: none; }
.rail-track { scrollbar-width: none; gap: 20px; padding-bottom: 16px; }
.rail-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .rail-track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); }
  .rail.at-end .rail-track, .rail.is-static .rail-track { -webkit-mask-image: none; mask-image: none; }
}
.story-note { padding: 14px 16px; border-left: 4px solid var(--lingon); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.92rem; }
@media (min-width: 768px) { .story-gallery:has(> figure:only-of-type) { grid-template-columns: 1fr; } }
.story-gallery figure:only-of-type img { aspect-ratio: 16 / 9; }
/* Plain-words explainers for product and producer names */
.card-what { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--ink-soft); }
.card-what-lg { font-size: 1.02rem; max-width: 46ch; }
.pdp-what { font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; margin: -6px 0 16px; }
.ptile-means { display: block; font-size: 0.78rem; font-style: italic; color: var(--ink-soft); padding: 0 2px; }
/* Producer kind label: Brewery, Family bakery, ... */
.kind, .ptile-kind { display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--sage-pale); color: var(--green); vertical-align: 1px; }
.card-producer .kind { display: inline-block; margin-left: 4px; }
.ptile-kind { align-self: flex-start; margin: 2px 2px 4px; }
.rail-item > .ptile .ptile-kind { margin-left: 2px; }
.pdp-producer .kind { margin: 0 4px; }
.kind-solo { margin-left: 0 !important; }
@media (min-width: 768px) { .values-list { grid-template-columns: repeat(2, 1fr); } }

/* v2.3: labels are text, not buttons. Only things you can click look clickable. */
.kind, .ptile-kind { padding: 0; border-radius: 0; background: none; color: var(--ink-soft); letter-spacing: 0.06em; }
.kind::before { content: "\00B7\00A0"; color: var(--ink-soft); }
.kind-solo::before, .ptile-kind::before { content: none; }
.ptile-kind { display: block; margin-bottom: 2px; }
.chips { gap: 0 10px; }
.chips li, .chips-lg li { padding: 0; border-radius: 0; background: none; color: var(--ink-soft); }
.chips li + li::before { content: "\00B7"; margin-right: 10px; color: var(--sage); }
.award-chip { padding: 0; border: 0; border-radius: 0; background: none; color: var(--lingon); }
.tag { padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-soft); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 500; }
.mosaic figcaption { border-radius: 0; background: none; padding: 0; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

/* v2.4: fewer buttons. Secondary actions are text links. */
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.text-link:hover { text-decoration-thickness: 2px; }
.tcard-l-actions { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.hero-actions { align-items: center; gap: 8px 24px; }
.logo { border: 0; border-radius: 0; background: transparent; padding: 0; justify-content: flex-start; }
.logo img { mix-blend-mode: multiply; }
.logo-on-dark { background: var(--green-black); padding: 6px 10px; }
.ptile-logo { display: none; }
