/* Order of Feasts — site styles.
   Every colour, font and spacing value comes from the design system tokens.
   No black, no grey, no gradients, no rounded corners, no shadows. */

/* ---------- Fonts (self-hosted, never from fonts.googleapis.com) ---------- */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --ground: #f1e6cc;
  --parchment: #faf4e6;
  --navy: #24367a;
  --oxblood: #8e2a1c;
  --on-oxblood: #f7eedb;
  --gold: #b8863b;
  --ink: #2a211b;
  --ink-soft: #4a3d32;
  --label: #6b5a48;
  --sepia: #6b4a2a;
  --sepia-deep: #4a3726;
  --rule: #c9b58e;
  --hairline: #dccba8;
  --harlequin-navy: #022871;
  --harlequin-cream: #fdecd0;
  --plaque-gold: #cd9b5f;

  --space-xs: 12px;
  --space-s: 20px;
  --space-m: 28px;
  --space-l: 36px;
  --space-xl: 64px;
  --frame-inset: 8px;
  --gutter: 16px;

  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon fill='%23b8863b' points='12,2 13.38,8.67 19.07,4.93 15.33,10.62 22,12 15.33,13.38 19.07,19.07 13.38,15.33 12,22 10.62,15.33 4.93,19.07 8.67,13.38 2,12 8.67,10.62 4.93,4.93 10.62,8.67'/%3E%3C/svg%3E");
  --pattern: url("../img/brand/harlequin-stars.jpg");
}
@media (min-width: 768px) { :root { --gutter: var(--space-m); } }

/* ---------- Base ---------- */
*, *::before, *::after { 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(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-display);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--parchment); padding: 12px 16px; border: 1px solid var(--navy); }
.skip-link:focus { top: 12px; }

/* ---------- Type styles ---------- */
.title-hero    { font: 600 46px/1 var(--font-display); color: var(--navy); }
.title-section { font: 600 42px/1 var(--font-display); color: var(--navy); text-align: center; }
.title-card    { font: 600 34px/1.1 var(--font-display); color: var(--navy); }
.title-pillar  { font: 600 28px/1.15 var(--font-accent); color: var(--navy); }
.numeral       { font: 600 24px/1 var(--font-accent); color: var(--oxblood); }
.lead          { font: 400 20px/1.4 var(--font-display); color: var(--ink); }
.intro         { font: 400 18px/1.5 var(--font-display); color: var(--ink-soft); }
.motto         { font: italic 500 17px/1.3 var(--font-accent); color: var(--sepia-deep); }
.eyebrow       { font: 400 13px/1.2 var(--font-display); letter-spacing: 4px; text-transform: uppercase; color: var(--oxblood); }
.label         { font: 400 12px/1.2 var(--font-display); letter-spacing: 3px; text-transform: uppercase; color: var(--label); }
.label--star::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  vertical-align: -2px; background: var(--star) center/contain no-repeat;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 720px; }
.section { padding: var(--space-xl) 0; }
.band { background: var(--parchment); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); text-align: center; margin-bottom: var(--space-l); }
.section-head .intro { max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: var(--space-xs); }

/* Ornament: thin oxblood line, small diamond, thin line. 120px wide. */
.ornament { display: flex; align-items: center; gap: 8px; width: 120px; height: 7px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--oxblood); }
.ornament i { width: 7px; height: 7px; background: var(--oxblood); transform: rotate(45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 28px; border: 1px solid transparent; border-radius: 0;
  font: 400 14px/1.1 var(--font-display); letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer; background: none;
}
.btn--primary { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-oxblood); }
.btn--primary:hover { color: var(--on-oxblood); outline: 1px solid var(--on-oxblood); outline-offset: -5px; }
.btn--primary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.btn--secondary { border-color: var(--navy); color: var(--navy); }
.btn--secondary:hover { color: var(--navy); background: var(--parchment); }
.btn--small { min-height: 44px; padding: 0 16px; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

/* ---------- Card with the double frame ---------- */
.card { position: relative; background: var(--parchment); border: 1px solid var(--rule); padding: var(--space-m); }
.card::after { content: ""; position: absolute; inset: var(--frame-inset); border: 1px solid var(--rule); pointer-events: none; }
.card > * { position: relative; z-index: 1; }

/* The oxblood "confirmed" card */
.card--oxblood { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-oxblood); }
.card--oxblood::after { border-color: rgba(247, 238, 219, .55); }
.card--oxblood .title-card, .card--oxblood .label { color: var(--on-oxblood); }

/* ---------- Header ---------- */
.site-header { background: var(--ground); border-bottom: 1px solid var(--hairline); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px var(--space-s); padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.site-header__brand { text-decoration: none; white-space: nowrap; }
.site-header__brand:hover { color: var(--navy); }
.site-header__nav { display: flex; align-items: center; gap: var(--space-xs); }
.site-header__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  font: 400 14px/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
}
.site-header__link[aria-current="page"] { text-decoration: underline; }
@media (max-width: 559px) {
  .site-header__brand.title-hero { font-size: 40px; }
}
@media (min-width: 768px) {
  .site-header__inner { justify-content: space-between; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--parchment); border-top: 1px solid var(--rule); padding: var(--space-xl) 0 var(--space-l); text-align: center; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); }
.site-footer__name { font: 600 34px/1.1 var(--font-display); color: var(--navy); }
.site-footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px var(--space-s); padding: 0; list-style: none; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; color: var(--navy); text-decoration: none; }
.site-footer__social a:hover span { text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 var(--space-s); padding: 0; list-style: none; }
.site-footer__legal a, .site-footer__legal button { display: inline-flex; align-items: center; min-height: 44px; }
.link-button { background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-button:hover { color: var(--oxblood); }
.icon { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Home: hero ---------- */
/* Clean and light: parchment ground, the sun as emblem, the double rule as the only frame. */
.hero { background: var(--parchment); padding: var(--space-xs); border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .hero { padding: var(--space-m); } }
.hero__frame {
  position: relative;
  /* The home page has no site header: the first screen is the header. */
  min-height: max(520px, calc(100svh - 2 * var(--space-xs)));
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-s); text-align: center;
  padding: var(--space-xl) var(--space-s);
}
.hero__frame::after { content: ""; position: absolute; inset: var(--frame-inset); border: 1px solid var(--rule); pointer-events: none; }
.hero__sun { width: clamp(160px, 28vh, 260px); height: auto; margin-bottom: var(--space-xs);
  filter: drop-shadow(0 3px 4px rgba(42, 33, 27, .2)); }
.hero__frame .intro { max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin-top: var(--space-xs); }
.hero__actions .btn { min-width: 220px; }
@media (min-width: 768px) {
  .hero__frame { min-height: max(560px, calc(100svh - 2 * var(--space-m))); }
  .hero__frame .title-hero { font-size: 64px; }
}

/* ---------- Home: market guides (carousel + small map) ---------- */
.section--rule { border-top: 1px solid var(--rule); }
/* Section divider: the harlequin pattern, tiled (never stretched), between thin gold rules. */
.pattern-rule { height: 56px; background: var(--pattern) repeat-x left center / 112px 112px;
  border-top: 2px solid var(--plaque-gold); border-bottom: 2px solid var(--plaque-gold); }
.carousel { min-width: 0; }
/* Cards fill the container: one and a bit on phones, two on tablets, three on desktop. */
.carousel__track {
  --per-view: 1.15;
  display: grid; grid-auto-flow: column; column-gap: var(--space-m);
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--space-m)) / var(--per-view));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 2px; margin: -2px;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .carousel__track { --per-view: 2; } }
@media (min-width: 1000px) { .carousel__track { --per-view: 3; } }
.carousel__track:focus-visible { outline-offset: 4px; }
.carousel__item { scroll-snap-align: start; cursor: default; height: 100%; }
.carousel__item .mcard__img { aspect-ratio: 3 / 2; }
.carousel__item .mcard__name { font-size: 24px; }
.carousel__item .mcard__days { font-size: 16px; color: var(--ink-soft); }
.guides__more { display: flex; flex-direction: column-reverse; align-items: center; gap: var(--space-s); margin-top: var(--space-m); }
.guides__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); }
@media (max-width: 639px) { .guides__actions { flex-direction: column; width: 100%; max-width: 340px; } }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn { width: 44px; height: 44px; border: 1px solid var(--navy); background: var(--parchment); color: var(--navy);
  font: 400 26px/1 var(--font-display); cursor: pointer; border-radius: 0; }
.carousel__btn:hover:not(:disabled) { background: var(--navy); color: var(--parchment); }
.carousel__btn:disabled { border-color: var(--rule); color: var(--rule); cursor: default; }

/* ---------- Home: upcoming events ---------- */
.ecard { display: flex; flex-direction: column; gap: var(--space-xs); height: 100%; }
.ecard__img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--rule); }
.ecard .btn { margin-top: auto; align-self: flex-start; }
.ecard__soon { border-color: var(--rule); color: var(--label); cursor: default; }
.carousel__nav--end { justify-content: center; margin-top: var(--space-s); }

/* ---------- Home: home chef guides (PDF cards) ---------- */
/* Centre the cards only when they all fit; otherwise scroll from the start. */
.carousel__track--center.is-static { justify-content: center; }
.gcard { display: flex; flex-direction: column; gap: var(--space-xs); height: 100%; }
.gcard__cover { display: block; aspect-ratio: 3 / 4; background: var(--ground); border: 1px solid var(--rule); }
.gcard__cover img { width: 100%; height: 100%; object-fit: contain; }
.gcard .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Home: projects ---------- */
.projects { display: grid; gap: var(--space-l); }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { display: flex; flex-direction: column; gap: var(--space-xs); }
.project { padding: 32px var(--space-m); }
.project .btn { margin-top: auto; }
.project__body { flex: 1; }

/* ---------- Home: manifesto ---------- */
.manifesto { list-style: none; padding: 0; margin: 0 0 var(--space-l); }
.manifesto li { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; gap: var(--space-xs); padding: var(--space-s) 0; border-bottom: 1px solid var(--hairline); }
.manifesto li:first-child { border-top: 1px solid var(--hairline); }
.center { display: flex; justify-content: center; }

/* ---------- Waitlist dialog ---------- */
.dialog { width: min(100% - 2 * var(--gutter), 520px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); }
.dialog::backdrop { background: rgba(42, 33, 27, .55); }
.dialog .card { padding: var(--space-l) var(--space-m); }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--navy); font-size: 28px; line-height: 1; z-index: 2; }
.form { display: flex; flex-direction: column; gap: var(--space-s); margin-top: var(--space-s); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input[type="text"], .field input[type="email"], .select {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 0; background: var(--parchment); color: var(--ink); font-size: 17px;
}
.field input:focus, .select:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--oxblood); }
.form__error { color: var(--oxblood); font-size: 15px; }
.form__done { padding: var(--space-s) 0 0; }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 40;
  max-width: 640px; margin: 0 auto; padding: var(--space-m);
}
.consent__text { font-size: 16px; line-height: 1.5; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); margin-top: var(--space-s); }
.consent__actions .btn { padding: 0 12px; }

/* ---------- Markets catalogue ---------- */
.strip { height: 75px; background: var(--pattern) repeat; background-size: 150px 150px; }
.page-head { padding: var(--space-xl) 0 var(--space-l); }
.filters { display: flex; flex-direction: column; gap: var(--space-s); margin-bottom: var(--space-m); }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { margin-bottom: 10px; padding: 0; }
.daychips { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.daychip {
  min-height: 44px; border: 1px solid var(--rule); background: var(--parchment); color: var(--label);
  font: 400 12px/1.2 var(--font-display); letter-spacing: 2px; text-transform: uppercase; cursor: pointer; border-radius: 0;
}
.daychip[aria-pressed="true"] { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-oxblood); }
.filters__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-s); }
.filters__row .field { flex: 1 1 220px; }
.select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2324367a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.filters__count { color: var(--ink-soft); font-size: 16px; min-height: 44px; display: flex; align-items: center; }
@media (min-width: 900px) { .filters { flex-direction: row; align-items: flex-end; } .filters fieldset { flex: 1.4; } .filters__row { flex: 1; } }


.mapbox { position: relative; height: min(60vh, 520px); min-height: 320px; border: 1px solid var(--rule); background: var(--parchment); margin-bottom: var(--space-l); }
@media (min-width: 768px) { .mapbox { height: 520px; } }
.mapbox--market { margin: var(--space-l) 0 0; }
@media (min-width: 768px) { .mapbox--market { height: 420px; } }
.mapbox__map { position: absolute; inset: 0; }
.mapbox__gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs); padding: var(--space-m); text-align: center; overflow: hidden; }
.mapbox__gate::after { content: ""; position: absolute; inset: var(--frame-inset); border: 1px solid var(--rule); pointer-events: none; }
.mapbox__gate img { width: 120px; mix-blend-mode: multiply; }
.mapbox__gate p { max-width: 420px; }
.mapbox__note { font-size: 15px; color: var(--ink-soft); }

/* Google Maps info window, in the Order's dress */
.gm-style .gm-style-iw-c { border-radius: 0 !important; background: var(--parchment) !important; padding: 0 !important; box-shadow: none !important; border: 1px solid var(--rule); }
.gm-style .gm-style-iw-d { overflow: auto !important; padding: 0 !important; }
.gm-style .gm-style-iw-tc::after { background: var(--parchment) !important; }
.gm-style .gm-style-iw-chr { position: absolute; right: 0; top: 0; z-index: 2; }
.mappop { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 8px; font-family: var(--font-display); max-width: 260px; }
.mappop__name { font: 600 24px/1.1 var(--font-display); color: var(--navy); padding-right: 28px; }
.mappop__days { font-size: 16px; color: var(--ink); }
.mappop .btn { align-self: flex-start; margin-top: 6px; }
.marker { width: 30px; height: 30px; transition: transform .15s; cursor: pointer; }
.marker.is-active { transform: scale(1.45); }

.market-list { display: grid; gap: var(--space-l); padding: 0; list-style: none; }
@media (min-width: 720px) { .market-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .market-list { grid-template-columns: repeat(3, 1fr); } }
.mcard { display: flex; flex-direction: column; gap: var(--space-xs); cursor: pointer; height: 100%; }
.mcard.is-active { border-color: var(--oxblood); }
.mcard.is-active::after { border-color: var(--oxblood); }
.mcard__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.mcard__img--art { object-fit: contain; padding: var(--space-s); mix-blend-mode: multiply; background: var(--parchment); }
.mcard__name { font: 600 28px/1.15 var(--font-display); color: var(--navy); }
.mcard__name a { color: inherit; text-decoration: none; }
.mcard__name a:hover { text-decoration: underline; }
.mcard__days { color: var(--ink); }
.mcard .btn { margin-top: auto; align-self: flex-start; }
.empty { text-align: center; padding: var(--space-l) 0; color: var(--ink-soft); }

.cta { text-align: center; }
.cta .container { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); }

/* ---------- Market page ---------- */
/* Market hero: the wide collage (night sky, rising sun, clouds, harlequin band)
   across the top; the plaque rises from the harlequin band, which starts at 70%. */
.mhero { background: var(--ground); padding-bottom: 40px; }
.mhero__art img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
/* Vertical margins in % follow the width: 20% of the image height. */
.mhero__body { position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter); margin-top: -7%; }
@media (min-width: 600px) {
  .mhero__art img { aspect-ratio: 3 / 1; }
  .mhero__body { margin-top: -6.667%; }
}
.plaque { position: relative; width: 100%; max-width: 880px; background: var(--harlequin-cream); padding: 48px 56px 64px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.plaque::before { content: ""; position: absolute; inset: 16px; border: 2px solid var(--plaque-gold); pointer-events: none; }
.plaque > * { position: relative; }
.plaque h1 { font: 600 64px/1 var(--font-display); color: var(--harlequin-navy); }
.plaque__district { font: 400 12px/1.2 var(--font-display); letter-spacing: 3px; text-transform: uppercase; color: var(--sepia); }
.plaque .lead { max-width: 560px; }
.banner { position: relative; margin-top: -28px; width: 100%; max-width: 960px; background: var(--oxblood); color: var(--on-oxblood); padding: 18px 24px; text-align: center; font: 400 14px/1.3 var(--font-display); letter-spacing: 3px; text-transform: uppercase; }
.banner::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(247, 238, 219, .55); pointer-events: none; }
@media (max-width: 640px) {
  .plaque { padding: 36px 24px 48px; }
  .plaque h1 { font-size: 40px; }
}

.grid-3 { display: grid; gap: var(--space-l); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-auto { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: var(--space-l); }
.week__day { min-height: 56px; padding: 10px 2px; text-align: center; border: 1px solid var(--rule); background: var(--parchment); font: 400 12px/1.25 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--label); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.week__day small { font-size: 11px; letter-spacing: 1px; }
.week__day--open { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-oxblood); }
.checked { margin-top: auto; padding-top: var(--space-xs); font: 400 12px/1.2 var(--font-display); letter-spacing: 3px; text-transform: uppercase; color: var(--oxblood); }

.cats { width: 100%; border-collapse: collapse; }
.cats th { text-align: left; padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule); }
.cats td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.cats td:first-child { font-size: 20px; }
.cats th:last-child, .cats td:last-child { padding-right: 0; }
.stars { font-size: 22px; letter-spacing: 3px; line-height: 1; color: var(--gold); white-space: nowrap; font-family: Georgia, serif; }
.stars span { color: var(--hairline); }
.not-rated { color: var(--label); }
.small-note { font-size: 15px; color: var(--ink-soft); margin-top: var(--space-m); }
@media (max-width: 520px) { .cats td:first-child { font-size: 18px; } .stars { font-size: 18px; letter-spacing: 1px; } }

/* Assortment categories: dropdowns, closed by default. */
.vgroup { border-bottom: 1px solid var(--rule); }
.vgroup:first-of-type { border-top: 1px solid var(--rule); }
.vgroup__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--space-s);
  min-height: 64px; padding: var(--space-xs) 48px var(--space-xs) 0; position: relative; cursor: pointer; list-style: none; }
.vgroup__head::-webkit-details-marker { display: none; }
.vgroup__head:hover .title-card { color: var(--oxblood); }
.vgroup__head:focus-visible { outline-offset: -2px; }
.vgroup__chev { position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.vgroup[open] > .vgroup__head .vgroup__chev { transform: rotate(-135deg); margin-top: -3px; }
.vgroup > .vgrid { padding: var(--space-xs) 0 var(--space-l); }
@media (prefers-reduced-motion: reduce) { .vgroup__chev { transition: none; } }
.vgrid { display: grid; gap: var(--space-m); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vendor { display: flex; gap: var(--space-s); align-items: flex-start; }
.vendor__ph { flex: none; width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--rule); background: var(--parchment); }
/* Category illustrations: transparent cut-outs on the ground colour, like the mushroom reference. */
.vendor__ph--art { object-fit: contain; padding: 10px; background: var(--ground); }
/* Illustrations that run off their own edge fill the square with no inner padding. */
.vendor__ph--bleed { padding: 0; object-fit: cover; }
.vendor__ph--bleed-right { object-position: right center; }
.vendor__ph--bleed-bottom { object-fit: contain; object-position: center bottom; }
@media (min-width: 640px) { .vendor__ph { width: 120px; height: 120px; } }
.vendor__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.vendor__links a { overflow-wrap: anywhere; }
.vendor__prices { color: var(--ink-soft); }

/* Special mentions: title always visible, the rest behind "See prices". */
.special__more { text-align: center; }
.special__toggle { list-style: none; margin: 0 auto; }
.special__toggle::-webkit-details-marker { display: none; }
.special__more[open] .special__open, .special__more:not([open]) .special__close { display: none; }
.special__chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.special__more[open] .special__chev { transform: rotate(-135deg) translate(-2px, -2px); }
.special__body { text-align: left; margin-top: var(--space-l); }
.special__intro { text-align: center; max-width: 640px; margin: 0 auto var(--space-l); }
@media (prefers-reduced-motion: reduce) { .special__chev { transition: none; } }
.special__logo { width: auto; max-width: 220px; height: 120px; object-fit: contain; margin: 4px 0; }
/* Special mentions stand out: the harlequin pattern as the section ground (tiled, never
   stretched), the content on a harlequin-cream plaque with a 2px gold rule inset 16px,
   and two gilded clouds overlapping the plaque's top corners (never the text). */
.special { background: var(--pattern) repeat center / 112px 112px;
  border-top: 2px solid var(--plaque-gold); border-bottom: 2px solid var(--plaque-gold); overflow: hidden; }
.special__plaque { position: relative; max-width: 980px; margin: 0 auto; background: var(--harlequin-cream);
  padding: 64px 64px 56px; }
.special__plaque::before { content: ""; position: absolute; inset: 16px; border: 2px solid var(--plaque-gold); pointer-events: none; }
.special__plaque > :not(.special__cloud) { position: relative; }
.special__plaque .section-head { align-items: center; }
.special__plaque .section-head .ornament { margin: 2px auto 4px; }
.special__plaque .title-section { color: var(--harlequin-navy); }
.special__cloud { position: absolute; width: 150px; height: auto; pointer-events: none; z-index: 1; }
.special__cloud--left { top: -46px; left: -54px; }
.special__cloud--right { top: -40px; right: -50px; transform: scaleX(-1); width: 120px; }
.special__photos { margin-bottom: 0; }
.special__photos img { height: 360px; }
/* A single photo keeps its own proportions (no cropping), centred. */
.special__photos:has(> img:only-child) { display: flex; justify-content: center; }
.special__photos > img:only-child { width: auto; max-width: 100%; height: auto; max-height: 560px; object-fit: contain; }
@media (max-width: 720px) { .special__photos img { height: 260px; } .special__photos > img:only-child { height: auto; max-height: 460px; } }
.special__entry { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); }
.special__entry > .photos, .special__entry > .special__more, .special__entry > .special__intro, .special__entry > .special__order, .special__entry > .small-note, .special__entry > .grid-auto { align-self: stretch; }
.special__entry .title-section { text-align: center; margin-bottom: var(--space-s); }
.special__divider { margin: var(--space-xl) auto; }
.special__order { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); text-align: center; margin-top: var(--space-l); }
@media (max-width: 720px) {
  .special__plaque { padding: 48px 28px 40px; }
  .special__cloud { width: 96px; }
  .special__cloud--left { top: -30px; left: -18px; }
  .special__cloud--right { top: -26px; right: -14px; width: 78px; }
}
.photos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.photos img { width: 100%; height: 240px; object-fit: cover; border: 1px solid var(--rule); }
.price { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.price th { text-align: left; padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule); }
.price td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.price td:last-child, .price th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.price .unread { color: var(--label); font-style: italic; }

.gmaps { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); text-align: center; }
.gmaps__score { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px var(--space-s); }
.gmaps__num { font: 600 64px/1 var(--font-accent); color: var(--navy); }
.surroundings .card { background: var(--ground); }
.gmaps-mini__score { display: flex; align-items: center; gap: var(--space-xs); }
.gmaps-mini__num { font: 600 44px/1 var(--font-accent); color: var(--navy); }
.gmaps-mini__reviews { font-size: 15px; color: var(--ink-soft); }
.gmaps-mini__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--space-xs); }
.gmaps-card { max-width: 760px; margin: 0 auto; padding: var(--space-l) var(--space-m); }
.gmaps-card .title-card { text-align: center; }
.gmaps__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); }
@media (max-width: 639px) { .gmaps__actions { flex-direction: column; width: 100%; max-width: 340px; } }
.back { display: inline-flex; align-items: center; min-height: 44px; font: 400 14px/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Legal pages ---------- */
.prose { max-width: 720px; }
.prose h2 { font: 600 28px/1.15 var(--font-accent); color: var(--navy); margin: var(--space-l) 0 var(--space-xs); }
.prose p, .prose ul { margin-bottom: var(--space-xs); }
.todo { background: var(--parchment); border: 1px dashed var(--rule); padding: 2px 6px; color: var(--label); }

/* Project cards, as in the mockup: larger star, full-width button. */
.project .label--star { display: flex; align-items: center; }
.project .label--star::before { width: 22px; height: 22px; margin-right: 12px; flex: none; }
.project .btn { min-height: 48px; margin-top: 6px; }
