/* ==========================================================================
   Kalliopi's Kitchen, v4: "MOSAIC" (Ψηφιδωτό)

   The previous three attempts changed colour and type on an identical
   layout, which is why none of them fixed anything. This is a structural
   rethink.

   PRINCIPLE: Greek visual culture is assembled from tesserae. Mosaic, tile,
   the meander. So the page is a TILED WALL, not a column of stacked boxes.

     - Full-bleed bands, not centred sections floating on white.
     - A mosaic grid of mixed-size tiles, not uniform 3-column cards.
       Photos run edge to edge with 4px white "grout" between them.
     - Titles sit ON the tile in a navy scrim, not in a card body below it.
     - The recipe page opens with a split full-bleed masthead: navy type
       panel hard against a full-height photograph.
     - The recipe card breaks out as a full-bleed navy band, so the thing
       people came for is the loudest object on the page.
     - The sidebar is a rail aligned to the grid, not a bolted-on box.

   Navy and white, with Byzantine gold as the single accent.
   ========================================================================== */

:root {
  --navy: #16375A;
  --navy-deep: #0E2540;
  --navy-soft: #24507C;
  --wash: #EDF2F7;
  --gold: #E0A526;
  --gold-deep: #9A6F0F;
  --coral: #C8452E;

  --ink: #12202F;
  --body: #38495B;
  --muted: #5A6B7D;
  --line: #D7E0E9;
  --line-soft: #EAEFF4;
  --white: #FFFFFF;
  --grout: 4px;

  --s1: 4px;  --s2: 8px;   --s3: 16px;  --s4: 24px;
  --s5: 32px; --s6: 48px;  --s7: 64px;  --s8: 96px; --s9: 128px;

  --t-xs: 12.5px;
  --t-sm: 15px;
  --t-base: 19px;
  --t-md: 21px;
  --t-lg: 26px;
  --t-xl: 32px;
  --t-2xl: 42px;
  --t-3xl: 56px;
  --t-4xl: 76px;

  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: var(--sans); font-size: var(--t-base); line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
figure { margin: 0; }

/* Headings are wide and inscriptional: Archivo's expanded width axis, which
   echoes the fluted column in the logo. Confident, not shouty. */
h1, h2, h3, h4 {
  font-family: var(--head); color: var(--ink); margin: 0;
  font-weight: 700; font-stretch: 112%;
  line-height: 1.08; letter-spacing: -0.022em;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-xl); margin: var(--s7) 0 var(--s3); }
h3 { font-size: var(--t-lg); margin: var(--s5) 0 var(--s2); font-weight: 600; }
h4 { font-size: var(--t-md); font-weight: 600; }
p { margin: 0 0 var(--s4); }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

.eyebrow {
  font-family: var(--head); font-size: var(--t-xs); font-weight: 700;
  font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 var(--s3);
}
.lede { font-size: var(--t-md); line-height: 1.6; max-width: 54ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.wrap--narrow { max-width: 820px; }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--body); }
.prose ul, .prose ol { padding-left: var(--s4); margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- bands
   Full-bleed horizontal bands are the page's structural unit. Sections do
   not float on white with air around them. */
.band { padding: var(--s8) 0; }
.band--navy { background: var(--navy); color: #D8E3EF; }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }
.band--navy .eyebrow { color: var(--gold); }
.band--navy a { color: #fff; }
.band--wash { background: var(--wash); }
.band--tight { padding: var(--s7) 0; }

.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s5); flex-wrap: wrap; }
.band-head h2 { margin: 0; }
.band-head p { margin: var(--s2) 0 0; color: var(--muted); max-width: 56ch; }
.band--navy .band-head p { color: #A9BCCF; }
.band-head .more { font-family: var(--head); font-weight: 700; font-size: var(--t-sm); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.band-head .more:hover { color: var(--gold-deep); }

/* Home hero: copy left, Kalliopi right. */
.home-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--s7); align-items: center; }
.home-hero h1 { max-width: 16ch; }
.home-hero-art img { width: 100%; max-width: 380px; height: auto; margin-left: auto; }

/* The photo cutout: gold halo behind, sticker edge, and a slow easy sway.
   The halo is the same Byzantine framing the illustration used, so the
   photo inherits the brand device rather than replacing it. */
.hero-cutout { position: relative; width: min(430px, 100%); margin-left: auto; }
.hero-cutout::before {
  content: ""; position: absolute; top: -4%; left: 2%; right: 2%;
  aspect-ratio: 1; border-radius: 50%;
  border: 10px solid var(--gold);
  box-shadow: inset 0 0 0 14px var(--navy), inset 0 0 0 17px rgba(224,165,38,.5);
}
.hero-cutout img {
  position: relative; width: 100%; height: auto; max-width: none; margin: 0;
  max-height: 560px; object-fit: contain; object-position: bottom;
  /* sticker edge drawn around the alpha silhouette */
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
          drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
          drop-shadow(0 18px 22px rgba(9,22,38,.45));
  animation: kk-sway 6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes kk-sway {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cutout img { animation: none; }
}

/* --------------------------------------------------------- the meander
   Structural edge, not a decorative squiggle. It runs along band joins. */
.meander {
  height: 12px; background-repeat: repeat-x; background-size: auto 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cg fill='none' stroke='%23E0A526' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M0 13H28'/%3E%3Cpath d='M24 13V3H6v6h12V6.5'/%3E%3C/g%3E%3C/svg%3E");
}
.meander--navy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cg fill='none' stroke='%2316375A' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M0 13H28'/%3E%3Cpath d='M24 13V3H6v6h12V6.5'/%3E%3C/g%3E%3C/svg%3E");
}
.meander--short { width: 132px; }
.rules { margin: var(--s7) 0; }

/* --------------------------------------------------------------- header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 60; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: 14px var(--s4); max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: #fff; min-width: 0; }
.brand svg { width: 28px; height: 24px; color: var(--gold); }
.brand-name { font-family: var(--head); font-weight: 700; font-stretch: 112%; font-size: 18px; line-height: 1; letter-spacing: -0.01em; }
.brand-sub { display: block; font-family: var(--head); font-size: 9px; font-weight: 600; letter-spacing: 0.24em; color: var(--gold); margin-top: 4px; text-transform: uppercase; }
.nav { display: flex; gap: var(--s5); align-items: center; }
.nav > a, .nav-item > a {
  color: #fff; text-decoration: none; font-family: var(--head);
  font-size: var(--t-xs); font-weight: 600; font-stretch: 112%;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent; display: block;
}
.nav > a:hover, .nav-item > a:hover, .nav [aria-current="page"] { border-bottom-color: var(--gold); }
.nav-item { position: relative; }
.nav-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--navy-deep); border-top: 3px solid var(--gold);
  padding: var(--s4); min-width: 600px; display: none;
  grid-template-columns: repeat(3,1fr); gap: 2px var(--s5); z-index: 70;
}
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { display: grid; }
.nav-panel a { font-family: var(--sans); font-size: var(--t-sm); text-transform: none; letter-spacing: 0; color: #C6D6E4; text-decoration: none; padding: 5px 0; border: 0; font-weight: 400; }
.nav-panel a:hover { color: var(--gold); }
.nav-panel .panel-title { grid-column: 1/-1; font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-bottom: var(--s2); border-bottom: 1px solid #26456A; margin-bottom: var(--s2); }
.nav-toggle { display: none; background: var(--gold); color: var(--navy-deep); border: 0; padding: 9px var(--s3); cursor: pointer; font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ================================================================= MOSAIC
   The signature. A packed grid of mixed-size tiles with 4px white grout.
   Titles sit on the image in a navy scrim. No card chrome at all. */
.mosaic {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--grout); grid-auto-flow: dense;
}
.mosaic-tile {
  position: relative; overflow: hidden; text-decoration: none; color: #fff;
  grid-column: span 2; aspect-ratio: 3/2; background: var(--navy);
  display: block;
  /* hairline inset keeps photo edges crisp against the white grout */
  box-shadow: inset 0 0 0 1px rgba(14,37,64,.18);
}
.mosaic-tile--wide { grid-column: span 3; }
.mosaic-tile--tall { grid-column: span 2; grid-row: span 2; aspect-ratio: 3/4.04; }
.mosaic-tile--big  { grid-column: span 4; grid-row: span 2; aspect-ratio: 3/2.02; }

.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.mosaic-tile:hover img { transform: scale(1.05); }
.mosaic-tile .name-tile { width: 100%; height: 100%; aspect-ratio: auto; }

/* The scrim carries the caption. Solid enough to guarantee AA contrast
   over any photograph, which a soft gradient cannot promise. */
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px var(--s4) 18px;
  background: linear-gradient(to top, rgba(9,22,38,.96) 0%, rgba(9,22,38,.82) 34%, rgba(9,22,38,0) 100%);
  pointer-events: none;
}
.tile-cap .k {
  font-family: var(--head); font-size: 10.5px; font-weight: 700; font-stretch: 112%;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 4px;
}
.tile-cap .t {
  font-family: var(--head); font-weight: 700; font-stretch: 112%;
  font-size: var(--t-md); line-height: 1.1; letter-spacing: -0.018em;
  color: #fff; display: block; max-width: 30ch;
}
.mosaic-tile--big .tile-cap .t { font-size: var(--t-xl); }
.mosaic-tile--tall .tile-cap .t { font-size: var(--t-lg); }
.tile-cap .m { display: block; margin-top: 5px; font-size: 12.5px; letter-spacing: .01em; color: #A9BCCF; }
.mosaic-tile:hover .tile-cap .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Map tiles. The map is the artwork; the caption sits over it. */
.mosaic-tile--map { background: var(--navy-deep); aspect-ratio: 3/2; }
.mosaic-tile--map .region-map {
  width: 100%; height: 100%; object-fit: contain;
  padding: var(--s5) var(--s4) 78px; opacity: .95;
}
.mosaic-tile--map:hover .region-map { opacity: 1; }
.mosaic-tile--map .tile-cap {
  background: linear-gradient(to top, rgba(9,22,38,.96) 0%, rgba(9,22,38,.86) 55%, rgba(9,22,38,0) 100%);
}

/* Region hub masthead: copy left, map right */
.hub-masthead { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s7); align-items: center; }
.hub-map .region-map { width: 100%; height: auto; }

/* Plain text tiles, for taxonomy hubs */
.mosaic-tile--text { background: var(--navy); display: flex; align-items: flex-end; padding: var(--s4); aspect-ratio: 3/2; }
.mosaic-tile--text:nth-child(3n+2) { background: var(--navy-soft); }
.mosaic-tile--text:nth-child(3n+3) { background: var(--navy-deep); }
.mosaic-tile--text .tile-cap { position: static; padding: 0; background: none; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  white-space: nowrap;
  background: var(--gold); color: var(--navy-deep); border: 2px solid var(--gold);
  padding: 13px var(--s4); text-decoration: none;
  font-family: var(--head); font-size: var(--t-sm); font-weight: 700;
  font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.btn:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.band--wash .btn--ghost, .on-light .btn--ghost { color: var(--navy); border-color: var(--navy); }
.band--wash .btn--ghost:hover, .on-light .btn--ghost:hover { background: var(--navy); color: #fff; }

.tag-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.band--navy .tag { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.band--navy .tag:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }
.faq { border-top: 2px solid var(--navy); }
.tag {
  display: inline-block; padding: 8px 15px; border: 1px solid var(--line);
  background: #fff; color: var(--body); text-decoration: none;
  font-size: var(--t-sm); font-weight: 500;
}
.tag:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ======================================================= recipe masthead
   Split full-bleed: navy type panel hard against a full-height photograph.
   No container, no gap. The photo is above the fold at real size. */
.rmast { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); align-items: stretch; }
.rmast-copy { padding: var(--s8) var(--s7) var(--s7) max(var(--s4), calc((100vw - var(--wrap)) / 2 + var(--s4))); }
.rmast-copy h1 { color: #fff; font-size: var(--t-2xl); margin-bottom: var(--s3); max-width: 18ch; }
.rmast-copy .eyebrow { color: var(--gold); }
.rmast-figure { position: relative; overflow: hidden; min-height: 460px; }
.rmast-figure img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rmast-figure .name-tile { width: 100%; height: 100%; aspect-ratio: auto; }

.greek-name { font-family: var(--head); font-weight: 600; font-stretch: 112%; font-size: var(--t-md); color: var(--gold); margin: 0 0 var(--s4); }
.greek-name .pron { color: #A9BCCF; font-weight: 400; font-family: var(--sans); font-size: var(--t-sm); }

.rmast-byline { font-size: var(--t-sm); color: #A9BCCF; margin: 0 0 var(--s4); }
.rmast-byline strong { color: #fff; font-weight: 600; }
.rmast-byline span { color: rgba(255,255,255,.35); }
.rmast-meta { display: flex; flex-wrap: wrap; gap: 0; margin: var(--s5) 0 var(--s5); border-top: 1px solid rgba(255,255,255,.22); }
.rmast-meta div { padding: var(--s3) var(--s5) var(--s3) 0; }
.rmast-meta dt { font-family: var(--head); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.rmast-meta dd { margin: 3px 0 0; font-family: var(--head); font-weight: 600; font-stretch: 112%; font-size: var(--t-md); color: #fff; }

.action-bar { display: flex; flex-wrap: wrap; gap: var(--s2); }
.action-btn {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45);
  padding: 12px 18px; text-decoration: none; cursor: pointer;
  font-family: var(--head); font-size: var(--t-sm); font-weight: 600;
  font-stretch: 112%; letter-spacing: .04em;
}
.action-btn:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.action-btn svg { width: 16px; height: 16px; flex: none; }

.photo-credit { font-size: var(--t-xs); line-height: 1.5; color: var(--muted); margin: var(--s3) 0 0; max-width: 80ch; }
.photo-credit a { color: var(--muted); }

/* ---------------------------------------------------- content + rail
   A grid, not a page with a box stuck to the side. */
.recipe-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--s8); align-items: start; padding-top: var(--s7); }
.sidebar { position: sticky; top: 92px; }
.rail-block { margin-bottom: var(--s6); }
.rail-block h3 { margin: 0 0 var(--s3); font-size: var(--t-sm); font-family: var(--head); font-weight: 700; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: var(--s2); border-bottom: 2px solid var(--navy); }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { display: flex; gap: var(--s3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list img, .sidebar-list .name-tile { width: 64px; height: 48px; object-fit: cover; flex: none; aspect-ratio: auto; }
.sidebar-list .name-tile .gr { font-size: 12px !important; }
.sidebar-list .name-tile .tr { display: none; }
.sidebar-list a { font-size: var(--t-sm); font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.3; }
.sidebar-list a:hover { color: var(--navy); text-decoration: underline; }

.answer-block { background: var(--wash); border-left: 5px solid var(--gold); padding: var(--s4) var(--s5); margin: 0 0 var(--s6); }
.answer-block p { margin: 0; font-size: var(--t-md); line-height: 1.6; color: var(--ink); }
.answer-block .eyebrow { margin-bottom: var(--s2); }

.keysteps { counter-reset: k; list-style: none; padding: 0; margin: 0 0 var(--s5); }
.keysteps li { counter-increment: k; position: relative; padding-left: 48px; margin-bottom: var(--s3); }
.keysteps li::before {
  content: counter(k); position: absolute; left: 0; top: 3px;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--gold); color: var(--navy-deep);
  font-family: var(--head); font-weight: 700; font-size: 15px;
}

/* ============================================ the recipe card, full bleed
   Breaks the container and runs edge to edge in navy. The thing people
   came for is the loudest object on the page. */
.recipe-card { background: var(--navy); color: #D8E3EF; margin: var(--s8) 0; scroll-margin-top: 84px; }
.recipe-card-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.recipe-card-head { padding: var(--s7) 0 var(--s5); }
.recipe-card-head h2 { color: #fff; margin: 0 0 var(--s2); font-size: var(--t-xl); max-width: 24ch; }
.recipe-card-head p { margin: 0; color: var(--gold); font-family: var(--head); font-size: var(--t-sm); font-weight: 600; letter-spacing: .06em; }
.recipe-card-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }
.recipe-card .action-btn { border-color: rgba(255,255,255,.5); }

.recipe-stats { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.recipe-stats div { padding: var(--s4) var(--s4) var(--s4) 0; }
.recipe-stats dt { font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.recipe-stats dd { margin: var(--s1) 0 0; font-family: var(--head); font-size: var(--t-lg); font-weight: 700; font-stretch: 112%; color: #fff; }

.recipe-cols { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s8); padding: var(--s6) 0 var(--s7); }
/* Named grid cells. No decoration needed inside the navy band, but they are
   the semantic halves of the card and are addressed by the print styles. */
.recipe-ingredients, .recipe-method { min-width: 0; }
.recipe-cols h3 { margin: 0 0 var(--s4); color: #fff; font-size: var(--t-lg); }

.scaler { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s4); flex-wrap: wrap; }
.scaler span { font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-right: 2px; }
.scaler button { border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; padding: 6px 11px; cursor: pointer; font-family: var(--head); font-size: var(--t-sm); font-weight: 700; }
.scaler button:hover { border-color: var(--gold); color: var(--gold); }
.scaler button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

.ing-group { margin-bottom: var(--s5); }
.ing-group h4 { font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s2); }
.ing-list { list-style: none; padding: 0; margin: 0; }
.ing-list li { border-bottom: 1px solid rgba(255,255,255,.16); }
.ing-list label { display: flex; gap: var(--s3); align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: var(--t-sm); line-height: 1.55; color: #D8E3EF; }
.ing-list input { margin: 5px 0 0; width: 17px; height: 17px; accent-color: var(--gold); flex: none; cursor: pointer; }
.ing-list .qty { font-weight: 600; color: #fff; }
.ing-list input:checked + .ing-text { text-decoration: line-through; color: #7E93A9; }
.ing-list input:checked + .ing-text .qty { color: #7E93A9; }

.method-list { counter-reset: m; list-style: none; padding: 0; margin: 0; }
.method-list li { counter-increment: m; position: relative; padding-left: 52px; padding-bottom: var(--s4); margin-bottom: var(--s4); border-bottom: 1px solid rgba(255,255,255,.16); font-size: var(--t-sm); line-height: 1.7; color: #D8E3EF; }
.method-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.method-list li::before {
  content: counter(m); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: #fff; color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 16px;
}
.method-list .step-figure { margin: var(--s3) 0 0; }
.method-list .step-figure img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }

.nutrition-strip { border-top: 1px solid rgba(255,255,255,.22); padding: var(--s5) 0 var(--s7); }
.nutrition-strip h3 { color: #fff; margin: 0 0 var(--s3); font-size: var(--t-md); }
.nutrition-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: var(--s3); margin: 0 0 var(--s4); }
.nutrition-grid dt { font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.nutrition-grid dd { margin: var(--s1) 0 0; font-family: var(--head); font-size: var(--t-md); font-weight: 700; color: #fff; }
.nutrition-note { font-size: var(--t-xs); color: #A9BCCF; margin: 0; line-height: 1.55; max-width: 74ch; }

/* ----------------------------------------------------------------- misc */
.faq-item { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.faq-item h3 { margin: 0 0 var(--s2); font-size: var(--t-md); max-width: 48ch; }
.faq-item p { margin: 0; max-width: var(--measure); }
.note { background: var(--wash); border-left: 4px solid var(--navy); padding: var(--s4) var(--s5); margin: var(--s5) 0; }
.note h4 { font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0 0 var(--s2); }
.note p:last-child { margin-bottom: 0; }
.inline-figure { margin: var(--s6) 0; }
.inline-figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.inline-figure figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s2); }
.recipe-hero { margin: 0 0 var(--s5); }
.recipe-hero img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }

/* Ads centre in a full-width band, but inside a reading column they align
   to the same left edge as the text, or they read as a stray object. */
.ad-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--wash); border: 1px dashed var(--line); color: var(--muted); margin: var(--s6) auto; overflow: hidden; contain: layout size; }
/* Ads align to the same left edge as everything else. A centred ad against
   hard-left content breaks the grid, which is the thing the layout is for. */
.ad-slot { margin-left: 0; margin-right: auto; }
.sidebar .ad-slot { margin-left: 0; }
/* No dead space when an ad opens a band: the band already has its padding. */
.band > .wrap > .ad-slot:first-child { margin-top: 0; }
.ad-slot span { font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ad-slot small { font-size: 11px; margin-top: var(--s1); }
.ad-leaderboard { min-height: 90px; max-width: 728px; }
.ad-incontent { min-height: 280px; max-width: 336px; }
.ad-billboard { min-height: 250px; max-width: 970px; }
.ad-sidebar { min-height: 600px; max-width: 300px; margin: 0 0 var(--s6); }
@media (max-width: 900px) { .ad-leaderboard { min-height: 100px; max-width: 320px; } .ad-billboard { min-height: 250px; max-width: 300px; } }

.subscribe { background: var(--navy); color: #D8E3EF; padding: var(--s7) var(--s6); margin-top: var(--s8); }
.subscribe h2 { color: #fff; margin: 0 0 var(--s3); max-width: 22ch; }
.subscribe p { color: #A9BCCF; max-width: 54ch; }
.subscribe form { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); max-width: 600px; }
.subscribe input { flex: 1; min-width: 220px; padding: 13px var(--s4); border: 0; font-family: var(--sans); font-size: var(--t-sm); color: var(--ink); }
.subscribe small { display: block; margin-top: var(--s3); color: #A9BCCF; font-size: var(--t-xs); }
.sidebar .subscribe { padding: var(--s4); margin: 0 0 var(--s6); }
.sidebar .subscribe h2 { font-size: var(--t-md); }

.crumbs { padding: var(--s3) 0 0; font-size: var(--t-xs); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0; }
.crumbs li::after { content: "›"; margin-left: var(--s2); color: var(--line); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

.site-footer { background: var(--navy-deep); color: #A9BCCF; padding: 0 0 var(--s5); margin-top: var(--s8); }
.site-footer .meander { margin-bottom: var(--s7); }
.site-footer .brand { margin-bottom: var(--s4); }
.site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4,1fr); gap: var(--s5) var(--s6); }
.footer-brand svg { width: 30px; height: 26px; color: var(--gold); margin: 0; }
.footer-brand p { font-size: var(--t-sm); color: #7E93A9; max-width: 30ch; line-height: 1.6; }
.site-footer h3 { font-family: var(--head); font-size: var(--t-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer a { color: #C6D6E4; text-decoration: none; font-size: var(--t-sm); line-height: 1.5; display: inline-block; padding: 3px 0; white-space: nowrap; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid #23405F; display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--t-xs); color: #8FA4B8; }

.name-tile { position: relative; overflow: hidden; aspect-ratio: 4/3; display: grid; place-items: center; flex: none; container-type: inline-size; }
.name-tile .gr { font-family: var(--head); font-weight: 700; font-stretch: 112%; line-height: .95; text-align: center; padding: 0 var(--s4); white-space: normal; word-break: normal; }
.name-tile .tr { position: absolute; left: var(--s3); bottom: var(--s3); font-family: var(--head); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: 1; }
.tile--blue { background: var(--navy); color: #fff; }
.tile--sun { background: var(--gold); color: var(--navy-deep); }
.tile--tomato { background: var(--coral); color: #fff; }
.tile--olive { background: var(--navy-soft); color: #fff; }
.tile--tint { background: var(--wash); color: var(--navy); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: var(--s4); top: -80px; background: var(--gold); color: var(--navy-deep); padding: var(--s3) var(--s4); z-index: 200; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }

@media (max-width: 1080px) {
  .recipe-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .rmast-copy { padding: var(--s7) var(--s5) var(--s6) var(--s4); }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic-tile--big { grid-column: span 4; }
  .mosaic-tile--wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  :root { --t-4xl: 44px; --t-3xl: 36px; --t-2xl: 31px; --t-xl: 26px; --t-lg: 22px; --t-md: 19px; --t-base: 18px; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); border-top: 3px solid var(--gold); padding: var(--s4); gap: var(--s2); align-items: flex-start; }
  .nav.open .nav-panel { display: none !important; }
  .nav-toggle { display: block; flex: none; }
  /* The longer "Yiayia's" sub-line pushed the menu button past the edge. */
  .header-bar { gap: var(--s3); }
  .brand svg { width: 24px; height: 21px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 8px; letter-spacing: .16em; }
  .rmast { grid-template-columns: 1fr; }
  .rmast-figure { min-height: 300px; order: -1; }
  .recipe-cols { grid-template-columns: 1fr; gap: var(--s6); }
  .recipe-stats { grid-template-columns: repeat(2,1fr); }
  .nutrition-grid { grid-template-columns: repeat(3,1fr); }
  .band { padding: var(--s7) 0; }
  .home-hero { grid-template-columns: 1fr; gap: var(--s5); }
  .home-hero-art { order: -1; }
  .home-hero-art img { max-width: 220px; margin: 0; }
  .hub-masthead { grid-template-columns: 1fr; gap: var(--s5); }
  .hub-map { max-width: 420px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic-tile, .mosaic-tile--wide, .mosaic-tile--big, .mosaic-tile--tall { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }
  .mosaic-tile--map { aspect-ratio: 4/3; }
  .mosaic-tile--map .region-map { padding: var(--s4) var(--s3) 70px; }
  .mosaic-tile--big { grid-column: span 2; }
  /* nowrap plus flex:1 pushed these past the viewport edge on small screens */
  .action-bar { width: 100%; }
  .action-bar .btn, .action-bar .action-btn {
    flex: 1 1 auto; min-width: 0; white-space: normal;
    padding-left: var(--s3); padding-right: var(--s3); text-align: center;
  }
  .band--navy .action-bar .btn, .band--navy .action-bar .btn--ghost { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-tile, .mosaic-tile--big { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .subscribe { padding: var(--s5) var(--s4); }
}

@media print {
  .site-header, .site-footer, .ad-slot, .sidebar, .subscribe, .nav-toggle,
  .action-bar, .crumbs, .rmast-figure, .prose, .band, .rules, .meander,
  .recipe-card-actions, .scaler { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .recipe-card { background: #fff; color: #000; border: 1px solid #000; margin: 0; break-inside: avoid; }
  .recipe-card-head h2, .recipe-stats dd, .recipe-cols h3, .method-list li, .ing-list label, .ing-list .qty, .nutrition-grid dd { color: #000 !important; }
  .recipe-stats dt, .ing-group h4, .nutrition-grid dt, .recipe-card-head p { color: #444 !important; }
  .method-list li::before { background: #000; color: #fff; }
  .ing-list input { display: none; }
}
