/* The "gastro" theme — a food-magazine frame: a deep band, picture-led browsing, a big
 * two-column recipe page (docs/redesign/gastro/GT_DESIGN.md). GT2 drew the frame — the
 * type, the buttons, the header, the phone menu, the footer band; GT3 the home page, the
 * cards and the lists; GT4 the recipe page — the head beside the picture, the ruled fact
 * strip, the ingredient box beside the steps, ticking off, the related recipes; GT5 the filter
 * row over the lists; GT6 the cooking view.
 *
 * Hand-written, no build step and no Tailwind (00 decision #3, PLAN §6.1).
 *
 * **Not one literal colour or font family outside `:root`** (themes/TOKENS.md, enforced by
 * a test). The deep band is `--color-deep`, derived per tenant by palette.py like every
 * other colour here, so a dark-background tenant gets a light band with nothing to handle
 * in this file. Shadows are drawn in `--color-border`/`--color-muted` for the same reason.
 *
 * The `:root` colour values are the fallback, the same in every theme; what makes this
 * theme *this theme* is the rhythm below them — 88px between sections, generous radii, a
 * 1280px frame — and the type: the heading face for every title, label, number and
 * control, the body face for prose.
 */

:root {
  /* --- overridable: the tenant's own (apps/publicsite/palette.py) ------------- */
  --color-primary: #b45309;
  --color-primary-ink: #89430d;
  --color-primary-soft: #f4e8de;
  --color-secondary: #0f766e;
  --color-secondary-ink: #135c56;
  --color-bg: #fdfcfb;
  --color-surface: #fefefe;
  --color-text: #1c1917;
  --color-muted: #767472;
  --color-border: #dbdad9;
  --color-deep: #3a2514;
  --color-deep-accent: #569e98;
  --font-body: Georgia, "Times New Roman", Times, serif;
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* --- theme-owned (GT_DESIGN §2.2) ------------------------------------------- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 5.5rem;
  --radius-sm: 0.875rem;
  --radius-md: 1.125rem;
  --radius-pill: 999px;
  --measure: 47.5rem;
  --measure-wide: 80rem;

  color-scheme: light;
}

/* Sections sit closer on a phone (GT_DESIGN §6). */
@media (max-width: 47.99rem) {
  :root { --space-xl: 2.5rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: var(--space-lg); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 1.125rem/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

/* Titles in the heading face, tight and balanced. No word in a title breaks over two lines:
 * site.js sets a title whose widest word outgrows the line just small enough for it (the
 * `<body>`'s `data-fit-words`, GT_DESIGN §8). `anywhere` is what it measures the room
 * against, and the fallback without the script — a broken word rather than a page wider
 * than the screen (§3, §8). */
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: anywhere;
}
p, li { text-wrap: pretty; }

img { max-width: 100%; height: auto; }

a { color: var(--color-primary-ink); text-underline-offset: 0.18em; }

/* One focus ring for everything focusable (GT_DESIGN §7); on the deep band it takes the
 * band's accent, the one colour palette.py guarantees there. */
:focus-visible { outline: 2px solid var(--color-primary-ink); outline-offset: 3px; }

[hidden] { display: none !important; }

/* The frame: 1280px with 32px of air each side, 20px on a phone. */
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--space-lg); }
.wrap-wide { max-width: var(--measure-wide); margin: 0 auto; padding: 0 var(--space-lg); }
@media (max-width: 47.99rem) {
  .wrap, .wrap-wide { padding: 0 1.25rem; }
}
/* The reading column of a page that is one column from top to bottom: a static page, a post,
 * the quiz, the error pages.
 *
 * A text block on a page laid out in the frame's width — the recipe's description, FAQ and
 * long article, an archive's description, the home introduction — is not held to this
 * measure: it fills the frame, one column, like the picture, the fact strip and the cooking
 * half around it (G14). Held to 760 px it stood beside 456 px of nothing — „Jobb oldalt ott
 * a semmi” (2026-11-29); broken into two columns it cut a sentence in two — „Abszulut semmire
 * való hogy 2 oszlopos megjelenés a leírás” (2026-11-30); and the owner's answer to where
 * the room should go: „Miért nem merül fel egyszerűen a szöveggel kitölteni?”.
 * `test_gastro.py` names every block that may use `--measure`; `test_themes.py` holds every
 * theme to one column. */
.reading { max-width: var(--measure); margin-left: auto; margin-right: auto; }

/* Keyboard users get to the content without tabbing the whole header first. */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--color-surface); color: var(--color-text);
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-md); top: var(--space-md); z-index: 40; }

/* Present to a screen reader, absent to the eye — the search label, the home page's h1. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.muted, .note { color: var(--color-muted); }
.note { font-size: 0.9em; }

/* The kicker: the small all-caps line over a title, in the secondary colour. */
.eyebrow, .term-kicker {
  margin: 0 0 var(--space-sm); font: 700 0.8125rem/1.2 var(--font-heading);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-secondary-ink);
}
@media (max-width: 47.99rem) {
  .eyebrow, .term-kicker { font-size: 0.75rem; letter-spacing: 0.12em; }
}

/* The text button: a quiet link in the heading face, underlined well below the line. */
.text-link, .section-more {
  font: 600 1rem/1.4 var(--font-heading); color: var(--color-primary-ink);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; white-space: nowrap;
}
.text-link:hover, .section-more:hover { color: var(--color-text); }

/* ------------------------------------------------------------------ buttons */

/* Three filled shapes, all pills of one height (GT_DESIGN §4, decision G4):
 *
 * - `.btn`, the filled one — the brand ink, the secondary on hover; the label is the page
 *   background, which palette.py walks every `-ink` shade to 4.5:1 against;
 * - `.btn-accent`, the highlighted one — the deep band's accent with the band's colour as
 *   label, flipping to the band itself on hover. Its border stays the accent, so on the
 *   band the button keeps its shape when its fill becomes the band's colour;
 * - `.btn-outline` — a ring in the text colour, filled with it on hover.
 */
.btn, .btn-accent, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 3.25rem; padding: 0 1.5rem; border-radius: var(--radius-pill);
  font: 650 1rem/1 var(--font-heading); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active, .btn-accent:active, .btn-outline:active { transform: translateY(1px); }

.btn {
  border: 1px solid var(--color-primary-ink);
  background: var(--color-primary-ink); color: var(--color-bg);
}
.btn:hover { background: var(--color-secondary-ink); border-color: var(--color-secondary-ink); }
.btn-lg { padding: 0 1.75rem; font-size: 1.0625rem; }

.btn-accent {
  padding: 0 1.625rem; font-size: 1.0625rem; font-weight: 700;
  border: 1.5px solid var(--color-deep-accent);
  background: var(--color-deep-accent); color: var(--color-deep);
}
.btn-accent:hover { background: var(--color-deep); color: var(--color-bg); }

.btn-outline {
  border: 1.5px solid var(--color-text);
  background: transparent; color: var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); }

@media (max-width: 47.99rem) {
  .btn, .btn-accent, .btn-outline { font-size: 0.9375rem; }
}

.btn-round {
  width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--color-primary-ink); background: var(--color-surface);
  font: 1.1rem/1 var(--font-heading); color: var(--color-primary-ink);
}
.btn-round:hover { border-color: var(--color-secondary-ink); color: var(--color-secondary-ink); }

/* ------------------------------------------------------------------- header */

/* Logo, menu and search in one row on the page's own background, a hairline under it.
 * Not sticky: the recipe page's ingredient box will follow the reader instead (GT4). */
.site-head {
  position: relative; z-index: 20;
  background: var(--color-bg); border-bottom: 1px solid var(--color-border);
}
.site-head-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) 2.25rem;
  padding-top: var(--space-md); padding-bottom: var(--space-md);
}
.site-brand { display: flex; align-items: center; gap: var(--space-md); min-width: 0; }
.site-name {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font: 700 1.5rem/1.1 var(--font-heading); letter-spacing: -0.02em;
  color: var(--color-text); text-decoration: none;
}
.site-logo { display: block; height: 1.875rem; width: auto; max-width: 14rem; }
.site-tagline {
  display: none; margin: 0; padding-left: var(--space-md);
  border-left: 1px solid var(--color-border); max-width: 14rem;
  font: 0.8125rem/1.35 var(--font-heading); color: var(--color-muted);
}
@media (min-width: 64rem) {
  .site-tagline { display: block; }
}

/* The menu: a row of 44px-tall targets; the current page in the brand ink, underlined. */
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
}
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem;
  font: 500 0.9375rem/1 var(--font-heading); color: var(--color-text);
  text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 0.5rem;
}
.site-nav a:hover { color: var(--color-primary-ink); text-decoration-line: underline; }
.site-nav a[aria-current="page"] {
  font-weight: 650; color: var(--color-primary-ink); text-decoration-line: underline;
}

/* The search box: one pill, the magnifier on its left. The markup is the shared
 * `_search_form.html` — a field and a submit button labelled "Keresés" — and the button
 * *is* the magnifier: moved in front of the field, its label kept for screen readers and
 * drawn over by two strokes in `currentColor`. */
.head-search { margin-left: auto; }
.site-search {
  display: flex; align-items: center; width: 18.75rem; max-width: 100%; height: 2.75rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-surface);
  transition: border-color 0.15s ease;
}
.site-search:focus-within {
  border-color: var(--color-primary-ink);
  outline: 2px solid var(--color-primary-ink); outline-offset: 3px;
}
.site-search-input {
  flex: 1; min-width: 0; height: 100%; -webkit-appearance: none; appearance: none;
  border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--color-text); font: 0.9375rem/1.2 var(--font-heading);
  padding: 0 1.125rem 0 0;
}
.site-search-input::placeholder { color: var(--color-muted); }
.site-search-input:focus, .site-search-input:focus-visible { outline: none; }
.site-search-button {
  order: -1; flex: none; position: relative; width: 2.75rem; height: 100%;
  padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--color-muted); font-size: 0; cursor: pointer;
  transition: color 0.15s ease;
}
.site-search-button:hover { color: var(--color-primary-ink); }
.site-search-button:focus-visible { outline-offset: -3px; }
/* The magnifier: an 11px ring and a 6px handle at 45 degrees from its lower right. */
.site-search-button::before {
  content: ""; position: absolute; left: 1rem; top: calc(50% - 0.4375rem);
  width: 0.6875rem; height: 0.6875rem;
  border: 1.8px solid currentColor; border-radius: 50%;
}
.site-search-button::after {
  content: ""; position: absolute; left: 1.5625rem; top: calc(50% + 0.125rem);
  width: 0.375rem; height: 1.8px; border-radius: 1px; background: currentColor;
  transform: rotate(45deg); transform-origin: 0 50%;
}

/* The phone's two folds — menu and search — exist on every width but show only below
 * 48rem, where the row above would not fit. */
.head-drop { display: none; }
.head-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill);
  color: var(--color-text); cursor: pointer; list-style: none;
}
.head-toggle::-webkit-details-marker { display: none; }
.head-toggle svg { width: 1.5rem; height: 1.5rem; }
.head-drop .icon-close, .head-drop[open] .icon-open { display: none; }
.head-drop[open] .icon-close { display: block; }

/* The open fold: a full-width panel hung under the header, over the page. */
.head-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  padding: var(--space-sm) 1.25rem var(--space-md);
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  box-shadow: 0 18px 30px -24px var(--color-muted);
}
.head-panel ul { list-style: none; margin: 0; padding: 0; }
.head-panel a {
  display: flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  font: 500 1.0625rem/1.2 var(--font-heading); color: var(--color-text); text-decoration: none;
}
.head-panel li:last-child a { border-bottom: 0; }
.head-panel a[aria-current="page"] { font-weight: 650; color: var(--color-primary-ink); }
.head-panel .site-search { width: 100%; margin: var(--space-sm) 0; }

/* Below 48rem: menu, logo, search — three cells, the logo centred. The DOM keeps logo,
 * menu, search (GT_DESIGN §9's focus order); the grid moves the menu to the left. */
@media (max-width: 47.99rem) {
  .site-head-inner {
    display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: center; gap: 0 var(--space-sm); padding: 0.625rem 0.75rem;
  }
  .site-brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .site-name { font-size: 1.25rem; }
  .site-logo { height: 1.5625rem; }
  .site-nav, .head-search { display: none; }
  .head-drop { display: block; }
  .head-menu { grid-column: 1; grid-row: 1; }
  .head-find { grid-column: 3; grid-row: 1; }
}

/* ------------------------------------------------------------------- footer */

/* The deep band: the brand, the biggest courses and cuisines, the site's own pages, and
 * the platform's line under a hairline. Text on it is the page background and the soft
 * wash — the two palette.py guarantees on `--color-deep` (7:1 and 4.5:1 at least). */
.site-foot {
  margin-top: var(--space-xl);
  background: var(--color-deep); color: var(--color-primary-soft);
  font: 0.9375rem/1.5 var(--font-heading);
}
.site-foot .wrap-wide { padding-top: 4rem; padding-bottom: var(--space-lg); }
.site-foot :focus-visible { outline-color: var(--color-deep-accent); }
.foot-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr));
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; }
.foot-name {
  font: 700 1.5rem/1.1 var(--font-heading); letter-spacing: -0.02em;
  color: var(--color-bg); text-decoration: none;
}
.foot-logo { display: block; height: 1.875rem; width: auto; max-width: 14rem; }
.foot-text { margin: 0; max-width: 24rem; color: var(--color-primary-soft); }
.foot-title {
  margin: 0 0 var(--space-sm); font: 700 0.75rem/1.2 var(--font-heading);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-primary-soft);
}
/* The theme's own link columns and the tenant's pages (`_footer_menu.html`), one look. */
.foot-links ul, .footer-menu ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-xs);
}
.foot-links a, .footer-menu a {
  display: inline-block; padding: 0.375rem 0;
  color: var(--color-bg); text-decoration: none;
}
.foot-links a:hover, .footer-menu a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.footer-menu { margin-top: var(--space-xs); }
/* T223: the tenant's recommendation box — a picture and a link, in the deep band. */
.foot-promo-link {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm);
  color: var(--color-bg); text-decoration: none;
}
.foot-promo-link img { display: block; width: 8rem; height: auto; border-radius: var(--radius-md); }
.foot-promo-link:hover span { text-decoration: underline; text-underline-offset: 0.25em; }

.social-links {
  list-style: none; margin: var(--space-xs) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
}
.social-links a {
  display: inline-block; padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-primary-ink); border-radius: var(--radius-pill);
  font: 600 0.85rem/1.4 var(--font-heading); color: var(--color-bg); text-decoration: none;
}
.social-links a:hover { border-color: var(--color-deep-accent); color: var(--color-deep-accent); }

.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm) var(--space-md);
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-primary-ink);
  font-size: 0.875rem; color: var(--color-primary-soft);
}
.foot-bottom p { margin: 0; }
.branding, .branding a { color: var(--color-primary-soft); }

@media (max-width: 47.99rem) {
  .site-foot .wrap-wide { padding-top: 2.25rem; padding-bottom: 2.5rem; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-logo { height: 1.625rem; }
  .foot-bottom { margin-top: 1.5rem; font-size: 0.8125rem; }
}

/* ------------------------------------------------------------- page chrome */

main { padding-bottom: var(--space-lg); }
/* The home page frames its own sections — its bands run the window's width (GT3). When the
 * light band is the last of them, it meets the footer's band with no strip of page between. */
.home-main { padding-bottom: 0; }
.home-main:has(> .band-soft:last-child) + .site-foot { margin-top: 0; }

/* A page's title (GT_DESIGN §3, G12): 56px on a wide screen, 36 on a phone — the largest
 * type in the theme, the same on every page's <h1>. */
.page-title {
  margin: 0; font-size: clamp(2.25rem, 1.7rem + 2.25vw, 3.5rem); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.03em;
}

.empty { color: var(--color-muted); }
.empty-panel {
  margin: var(--space-lg) 0; padding: 3rem var(--space-lg); text-align: center;
  background: var(--color-surface); border: 1px dashed var(--color-border);
  border-radius: calc(var(--radius-md) * 1.5);
}
.empty-panel .empty { margin: 0 auto; max-width: 32rem; }

/* The breadcrumb (§4): "Főoldal / Levesek" in the muted ink, the page itself in the text
 * colour. The slash is the stylesheet's, with an empty alternative text, so a screen reader
 * hears the list and not the punctuation. */
.crumbs { margin-top: 2.5rem; font: 0.875rem/1.4 var(--font-heading); color: var(--color-muted); }
.crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 0.625rem;
}
.crumbs li + li::before { content: "/"; content: "/" / ""; margin-right: 0.625rem; }
.crumbs a { color: var(--color-muted); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--color-text); }
.crumbs [aria-current] { color: var(--color-text); }

/* A listing's header (§5.2): the kicker and the title on the left, the count on the right,
 * on one baseline, a hairline under both. */
.list-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  margin: 1.75rem 0 2.5rem; padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.list-head .eyebrow, .list-head .term-kicker { margin-bottom: 0.625rem; letter-spacing: 0.16em; }
.list-count {
  margin: 0; padding-bottom: var(--space-sm);
  font: 400 1.125rem/1.4 var(--font-heading); color: var(--color-muted);
}

/* A section's head (§4): the title on the left, the "more" link on the right. */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--space-sm) var(--space-lg); margin-bottom: var(--space-lg);
}
.section-more { padding: 0.625rem 0; }
/* A section's title (§3): 36px on a wide screen, 28 on a phone. */
.section-title, .home-posts .section-label {
  margin: 0; font: 700 clamp(1.75rem, 1.53rem + 0.9vw, 2.25rem)/1.1 var(--font-heading);
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------- home: the deep band */

/* The newest recipe on the deep band (§4 "Kiemelő sáv", §5.1): the text column and a square
 * picture, side by side while both fit 460px, the picture first on a phone. Text on the band
 * is the page background, meta the soft wash, kicker and button the band's accent — the
 * three palette.py guarantees on `--color-deep`. */
.band-deep { background: var(--color-deep); color: var(--color-bg); }
.band-deep :focus-visible { outline-color: var(--color-deep-accent); }
.home-lead > .wrap-wide { padding-top: 4.5rem; padding-bottom: 4rem; }

.lead {
  display: grid; gap: 4rem; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(28.75rem, 100%), 1fr));
}
/* No picture: one column, a reading width (§8). */
.lead-solo { grid-template-columns: minmax(0, 40rem); }
.lead-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; min-width: 0;
}
.band-deep .eyebrow { margin: 0; letter-spacing: 0.16em; color: var(--color-deep-accent); }
.lead-title {
  margin: 0; font-size: clamp(2.25rem, 1.7rem + 2.25vw, 3.5rem);
  line-height: 1.04; letter-spacing: -0.03em;
}
.lead-title a { color: var(--color-bg); text-decoration: none; }
.lead-title a:hover {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em;
}
.lead-deck {
  margin: 0; max-width: 30ch; color: var(--color-primary-soft);
  font: italic 400 clamp(1.25rem, 1.14rem + 0.45vw, 1.5rem)/1.35 var(--font-body);
}
.lead-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.625rem;
}
.lead-chips li {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) 0.875rem; border: 1px solid var(--color-primary-ink);
  border-radius: var(--radius-pill);
  font: 400 0.9375rem/1.2 var(--font-heading); color: var(--color-bg);
}
.lead-chips svg { flex: none; width: 1.0625rem; height: 1.0625rem; }
.lead-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) 1.5rem;
  margin: var(--space-sm) 0 0;
}
.btn-accent svg { flex: none; width: 1.125rem; height: 1.125rem; }
.lead-course {
  font: 500 1rem/1.4 var(--font-heading); color: var(--color-bg);
  text-underline-offset: 5px;
}
.lead-course:hover { color: var(--color-deep-accent); }
.lead-image { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 1.5rem; }
.lead-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease-out;
}
.lead:hover .lead-image img { transform: scale(1.03); }

/* "Ajánljuk még" (§4): the next three, still on the band, under a hairline — a 92px picture
 * beside the kicker, the title and the time. */
.also { margin-top: 4rem; padding-top: var(--space-lg); border-top: 1px solid var(--color-primary-ink); }
.also-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  margin: 0 0 1.25rem;
}
.also-title {
  margin: 0; font: 700 0.8125rem/1.2 var(--font-heading);
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-primary-soft);
}
.also-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-lg);
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
}
.also-card {
  display: flex; align-items: center; gap: 1.125rem;
  color: var(--color-bg); text-decoration: none; border-radius: var(--radius-sm);
}
.also-image {
  position: relative; flex: none; width: 5.75rem; height: 5.75rem; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--color-primary-soft);
}
.also-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.also-body {
  display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0;
  font-family: var(--font-heading);
}
.also-kicker {
  font: 700 0.75rem/1.2 var(--font-heading); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--color-deep-accent);
}
.also-name { font: 600 1.125rem/1.25 var(--font-heading); color: var(--color-bg); }
.also-card:hover .also-name { text-decoration: underline; text-underline-offset: 0.15em; }
.also-meta { font-size: 0.875rem; line-height: 1.4; color: var(--color-primary-soft); }
/* 0.31.0, 0.32.0: the strip rolls (`data-recommend`, site.js, which adds `is-rolling`): one row
 * of as many cards as the grid above would fit (`--also-per-view`, set by the script), the
 * next card waiting past the right edge, clipped. The script slides the cards with
 * `transform`; the list keeps the tallest height it has had. A little padding inside the clip,
 * so the focus ring of a card is not cut off. The arrows are the cooking view's round
 * buttons on the same band: 44px, ringed in the primary ink. */
.also.is-rolling .also-list {
  display: flex; overflow: hidden; touch-action: pan-y pinch-zoom;
  padding: var(--space-xs); margin: calc(-1 * var(--space-xs));
}
.also.is-rolling .also-list > li {
  flex: 0 0 calc((100% - (var(--also-per-view, 3) - 1) * var(--space-lg)) / var(--also-per-view, 3));
  min-width: 0;
}
.also-nav { display: flex; flex: none; gap: var(--space-sm); }
.also-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--color-primary-ink); border-radius: var(--radius-pill);
  background: none; color: var(--color-bg); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.also-step svg { width: 1.25rem; height: 1.25rem; }
.also-step:hover { border-color: var(--color-bg); }
.also-step[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.also-step[aria-disabled="true"]:hover { border-color: var(--color-primary-ink); }

/* A phone: the picture first, edge to edge and square; the text under it; the button the
 * full width (§6). */
@media (max-width: 47.99rem) {
  .home-lead > .wrap-wide { padding: 0 0 2rem; }
  .lead { gap: 0; }
  .lead-image { order: -1; border-radius: 0; }
  .lead-body { gap: 0.875rem; padding: 1.5rem 1.25rem 0; }
  .lead-actions { width: 100%; margin-top: var(--space-xs); }
  .lead-actions .btn-accent { width: 100%; }
  .lead-chips li { padding: 0.4375rem 0.75rem; font-size: 0.875rem; }
  .also { margin: 2rem 1.25rem 0; }
}

/* ------------------------------------------------------- home: the sections */

.home-section { margin-top: var(--space-xl); }

/* The tiles (§4): the courses as squares with their name and count under them; the cuisines
 * as tall pictures with both on a deep wash at their foot. `auto-fill`, so a site with two
 * courses gets two tiles of the usual size rather than two enormous ones. */
.tile-row { list-style: none; margin: 0; padding: 0; display: grid; }
.course-tiles { gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, 100%), 1fr)); }
.course-tile {
  display: flex; flex-direction: column; gap: 0.125rem;
  color: var(--color-text); text-decoration: none; border-radius: var(--radius-md);
}
/* No cover: the soft wash with a plate drawn in the brand ink (§4, §8). */
.tile-image {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; margin-bottom: 0.625rem; overflow: hidden;
  border-radius: var(--radius-md); background: var(--color-primary-soft);
  color: var(--color-primary-ink);
}
.tile-image img, .cuisine-tile img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease-out;
}
.tile-image svg { width: 2.75rem; height: 2.75rem; }
.course-tile .tile-name { font: 650 1.125rem/1.25 var(--font-heading); }
.course-tile .tile-count { font: 400 0.875rem/1.4 var(--font-heading); color: var(--color-muted); }
.course-tile:hover img, .cuisine-tile:hover img { transform: scale(1.03); }
.course-tile:hover .tile-name, .cuisine-tile:hover .tile-name {
  text-decoration: underline; text-underline-offset: 0.15em;
}

/* The courses past the six tiles, folded: a quiet pill-shaped summary, the rest below it. */
.pill-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.55rem 0.5rem 1.1rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-text); text-decoration: none;
  font: 600 0.98rem/1.2 var(--font-heading); white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.pill:hover {
  border-color: var(--color-primary); background: var(--color-primary-soft);
  color: var(--color-primary-ink);
}
.pill-count {
  min-width: 1.75rem; padding: 0.25rem 0.5rem; border-radius: var(--radius-pill);
  background: var(--color-primary-soft); color: var(--color-text);
  font: 700 0.78rem/1.2 var(--font-heading); text-align: center;
}
.pill:hover .pill-count { background: var(--color-surface); }
.pill-more { margin-top: 1.5rem; }
.pill-more summary {
  display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; list-style: none;
  padding: 0.45rem 0.55rem 0.45rem 1.1rem; border-radius: var(--radius-pill);
  border: 1px dashed var(--color-border); color: var(--color-muted);
  font: 600 0.92rem/1.2 var(--font-heading);
}
.pill-more summary::-webkit-details-marker { display: none; }
.pill-more summary:hover { border-color: var(--color-primary); color: var(--color-primary-ink); }
.pill-more[open] summary { margin-bottom: 0.75rem; }

/* The light band (§4, §5.1): the cuisines. Its kicker is in the deep colour, which palette.py
 * holds at 4.5:1 against this wash. */
.band-soft { margin-top: var(--space-xl); background: var(--color-primary-soft); }
.band-soft > .wrap-wide { padding-top: var(--space-xl); padding-bottom: calc(var(--space-xl) + 0.5rem); }
.band-kicker { margin-bottom: 0.625rem; letter-spacing: 0.16em; color: var(--color-deep); }
.cuisine-tiles { gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(16.25rem, 100%), 1fr)); }
.cuisine-tile {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 1.375rem; background: var(--color-deep); text-decoration: none;
}
.cuisine-tile img { position: absolute; inset: 0; }
.cuisine-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: var(--space-xs);
  padding: 4.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, var(--color-deep), transparent);
}
.cuisine-tile .tile-name {
  font: 700 1.625rem/1.1 var(--font-heading); letter-spacing: -0.02em; color: var(--color-bg);
}
.cuisine-tile .tile-count { font: 400 0.9375rem/1.4 var(--font-heading); color: var(--color-primary-soft); }

/* A phone: both tile rows scroll sideways instead of stacking (§6) — 116px courses,
 * 210 × 262 cuisines. The row reaches the window's edges; its snap area keeps the frame's
 * gutter, or the first tile would be snapped flush to the edge on load. */
@media (max-width: 47.99rem) {
  .tile-row {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin: 0 -1.25rem; padding: 0 1.25rem var(--space-sm); scroll-padding-inline: 1.25rem;
  }
  .tile-row > li { flex: none; scroll-snap-align: start; }
  .course-tiles { gap: 0.75rem; }
  .course-tiles > li { width: 7.25rem; }
  .course-tile .tile-name { font-size: 1rem; }
  .cuisine-tiles { gap: 0.75rem; }
  .cuisine-tiles > li { width: 13.125rem; }
  .cuisine-tile { aspect-ratio: auto; height: 16.375rem; }
  .cuisine-label { padding: 3rem 1rem 1rem; }
  .cuisine-tile .tile-name { font-size: 1.25rem; }
}

/* The tenant's introduction: the soft wash, a round portrait, and the text filling the rest
 * of the wash in one column (G14). */
.site-intro {
  display: flex; gap: 1.75rem; align-items: center;
  margin-top: var(--space-xl); padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--color-primary-soft); border-radius: calc(var(--radius-md) + 0.5rem);
}
.site-intro img {
  width: 7rem; height: 7rem; object-fit: cover; border-radius: 50%; flex: none;
}
.site-intro .rich { flex: 1 1 auto; min-width: 0; }
@media (max-width: 35.99rem) {
  .site-intro { flex-direction: column; align-items: flex-start; }
}

.home-posts { margin-top: var(--space-xl); }
.home-posts .section-label { margin-bottom: var(--space-lg); }
.home-posts-more { margin: 1.25rem 0 0; font: 600 0.95rem/1.4 var(--font-heading); }
.home-posts-more a { text-decoration: none; }
.home-posts-more a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------- cards */

/* One card for every grid on the site — recipes, posts, archives, search (§4 "Receptkártya"):
 * no frame, a 4:3 picture with round corners, the kicker, the title's main part (its deck is
 * hidden, G8) and the meta under it. Two columns on a phone, three on a wide screen, four in
 * the home page's grid. */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem 0.875rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48rem) { .card-grid { gap: 3rem 1.75rem; } }
@media (min-width: 60rem) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) {
  .home-latest .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
}

.card { min-width: 0; }
.card a {
  display: flex; flex-direction: column; gap: var(--space-md); height: 100%;
  color: var(--color-text); text-decoration: none; border-radius: var(--radius-md);
}
.card-image {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-md); background: var(--color-primary-soft);
}
/* Hover (§7): the picture grows to 1.03, the title underlines. */
.card-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease-out;
}
.card:hover .card-image img { transform: scale(1.03); }
/* No picture (§8): the soft wash with the plate the course tiles use — drawn as a mask in
 * the brand ink, because the shared card markup has no icon of its own to colour. */
.card-image:not(:has(img))::after, .also-image:not(:has(img))::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 2.75rem; height: 2.75rem;
  background: var(--color-primary-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.also-image:not(:has(img))::after { width: 2rem; height: 2rem; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: var(--space-sm); }
.card-kicker {
  margin: 0; font: 700 0.75rem/1.2 var(--font-heading);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-secondary-ink);
}
.card-title {
  margin: 0; font-size: clamp(1rem, 0.7rem + 0.9vw, 1.3125rem); font-weight: 650;
  line-height: 1.22; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
/* An archive's three columns are wider than the home page's four: 23px titles there. */
.listing .card-title { font-size: clamp(1rem, 0.6rem + 1.1vw, 1.4375rem); line-height: 1.2; }
/* The card shows the title's main part; the deck is the recipe page's (G8, GT4). */
.card-title-deck { display: none; }
.card a:hover .card-title { text-decoration: underline; text-underline-offset: 0.15em; }
/* The meta line (§3): time · difficulty, 14px in the muted ink. */
.card-meta {
  margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem;
  font: 400 0.875rem/1.4 var(--font-heading); color: var(--color-muted);
}
.card-excerpt { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--color-muted); }

/* ------------------------------------------------------- archives and search */

.term-image { margin: 0 0 1.75rem; }
.term-image img {
  display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: calc(var(--radius-md) + 0.5rem);
}
/* The frame's width, one column (G14), like the title above it and the cards below. */
.term-description { margin: 0 0 var(--space-lg); font-size: 1.08rem; }

.search-page-form { margin: 0 0 var(--space-lg); }
.search-page-form .site-search { width: 100%; max-width: 36rem; height: 3.25rem; }
.search-page-form .site-search-input { font-size: 1.0625rem; }

/* The filter row (GT5; GT_DESIGN §4 "Szűrő-chip", §5.2, mockup 03): the cuisine chips, the
 * time and difficulty selects, the order on the right, one wrapping line 24px under the
 * header's hairline. A chip is a 40px pill, ringed in the border colour; the pressed one is
 * filled with the text colour, the colour pair the palette guarantees at 4.5:1. A select is
 * the same pill, its native arrow replaced by a chevron drawn in `currentColor`. */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem;
  margin: -1rem 0 2.5rem; font-family: var(--font-heading);
}
.filter-group, .filter-chips, .filter-selects, .filter-sort, .filter-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm);
}
.filter-label { margin-right: var(--space-xs); font: 600 0.875rem/1.2 var(--font-heading); color: var(--color-muted); }
.filter-sort { margin-left: auto; gap: 0.625rem; }
.filter-chip, .filter-select select, .filter-more summary {
  min-height: 2.5rem; padding: 0 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text);
  font: 500 0.875rem/1.2 var(--font-heading); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.filter-chip:hover, .filter-select select:hover, .filter-more summary:hover { border-color: var(--color-text); }
.filter-chip[aria-pressed="true"] {
  border-color: var(--color-text); background: var(--color-text); color: var(--color-bg); font-weight: 600;
}
.filter-select { position: relative; display: inline-flex; }
.filter-select select {
  -webkit-appearance: none; appearance: none; padding-right: 2.5rem; max-width: 100%;
}
.filter-select::after {
  content: ""; position: absolute; right: 1.05rem; top: 50%; pointer-events: none;
  width: 0.4rem; height: 0.4rem; margin-top: -0.3rem;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg); color: var(--color-text);
}
/* The cuisines past the six chips, folded like the home page's courses: a dashed pill. */
.filter-more summary {
  display: inline-flex; align-items: center; list-style: none;
  border-style: dashed; color: var(--color-muted);
}
.filter-more summary::-webkit-details-marker { display: none; }
.filter-more[open] { flex-basis: 100%; }
.filter-more[open] summary { margin-bottom: var(--space-sm); }
.filter-more-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.filter-actions { gap: var(--space-md); }
.filter-submit.btn-outline { min-height: 2.5rem; padding: 0 1.25rem; font-size: 0.875rem; }
.filter-clear { font-size: 0.9375rem; }
/* On a phone the chips in view are one row that scrolls sideways, like the home page's
 * tiles (GT_DESIGN §6); the folded rest opens under it. The row keeps 4px of air on every
 * side, so a focus ring is not cut off by the scroller's edge. */
@media (max-width: 47.99rem) {
  .filters { gap: 0.75rem; }
  .filter-group { flex: 1 1 100%; min-width: 0; }
  .filter-chips {
    flex: 1 1 0; min-width: 0; flex-wrap: nowrap; overflow-x: auto;
    margin: -0.25rem; padding: 0.25rem; scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .filter-more { flex-basis: 100%; }
  .filter-sort { margin-left: 0; }
  .filter-selects { flex: 1 1 100%; }
  .filter-selects .filter-select { flex: 1 1 9rem; }
  .filter-selects select { width: 100%; }
}

/* The pager — what a reader without script gets, and what "További receptek" replaces. */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-md); margin: 3rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font: 0.92rem/1.4 var(--font-heading);
}
.pager-link {
  display: inline-flex; padding: 0.65rem 1.15rem; border-radius: var(--radius-pill);
  border: 1px solid var(--color-primary-ink); background: var(--color-primary-ink);
  color: var(--color-bg); font-weight: 600; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.pager-link:hover { background: var(--color-secondary-ink); border-color: var(--color-secondary-ink); }
/* The status sits between the two buttons whichever of them exists. */
.pager-status { color: var(--color-muted); }
.pager-next { margin-left: auto; }

/* "További receptek" (§4, §7): the count, a 240 × 4 progress bar, the outline button under
 * them, centred. A `<progress>`, drawn flat in the border and the brand ink. */
.load-more {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  margin-top: 3.5rem; text-align: center;
}
.load-more-count { margin: 0; font: 400 0.9375rem/1.4 var(--font-heading); color: var(--color-muted); }
.load-more-bar {
  -webkit-appearance: none; appearance: none; display: block;
  width: 15rem; max-width: 100%; height: 4px; overflow: hidden;
  border: 0; border-radius: var(--radius-pill);
  background: var(--color-border); color: var(--color-primary-ink);
}
.load-more-bar::-webkit-progress-bar { background: var(--color-border); border-radius: var(--radius-pill); }
.load-more-bar::-webkit-progress-value { background: var(--color-primary-ink); border-radius: var(--radius-pill); }
.load-more-bar::-moz-progress-bar { background: var(--color-primary-ink); border-radius: var(--radius-pill); }
.load-more .btn-outline { margin-top: var(--space-sm); padding: 0 2rem; }
.load-more .btn-outline[aria-busy="true"] { cursor: progress; }

/* ------------------------------------------------------------- recipe: top */

/* The recipe page (GT4; GT_DESIGN §5.3, mockups 04, 05). */

.preview-banner {
  margin: var(--space-lg) 0 0; padding: 0.75rem var(--space-md);
  border-radius: var(--radius-sm); border: 1px solid var(--color-primary);
  background: var(--color-primary-soft); color: var(--color-primary-ink);
  font: 0.92rem/1.5 var(--font-heading);
}

.recipe .crumbs { margin-top: 1.75rem; }

/* The head beside the square picture (§5.3/2): two equal columns from 56rem, the text
 * centred against the picture; one column below that, the picture first — edge to edge
 * and square on a phone (05), 4:3 in between, where a square the frame's width would fill
 * the screen. No picture: one reading-width column (§8). */
.recipe-top { display: grid; gap: var(--space-lg); align-items: center; margin-top: 1.75rem; }
.recipe-hero { order: -1; margin: 0; }
.recipe-hero img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 1.75rem;
}
.recipe-hero figcaption {
  margin-top: var(--space-sm); font: 0.85rem/1.4 var(--font-heading); color: var(--color-muted);
}
@media (min-width: 48rem) and (max-width: 55.99rem) {
  .recipe-hero img { aspect-ratio: 4 / 3; }
}
@media (min-width: 56rem) {
  .recipe-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem); }
  .recipe-top-solo { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); }
  .recipe-hero { order: 0; }
}

.recipe-top .recipe-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.375rem; min-width: 0;
}
/* "Levesek · Orosz konyha": the course and the cuisine, each a way into its archive. */
.recipe-kicker { display: flex; flex-wrap: wrap; gap: 0 var(--space-sm); margin: 0; }
.recipe-kicker a { color: var(--color-secondary-ink); text-decoration: none; }
.recipe-kicker a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* The `<h1>` in two lines (§3): the title's main part and its deck in the italic body
 * face. The page title's size (G12): 56px on a wide screen, 36 on a phone. The separator
 * between them is in the markup for screen readers and the `<h1>`'s text, out of sight here. */
.recipe-title { margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.recipe-title-main {
  font: 700 clamp(2.25rem, 1.7rem + 2.25vw, 3.5rem)/1.04 var(--font-heading);
  letter-spacing: -0.03em;
}
.recipe-title-deck {
  font: italic 400 clamp(1.25rem, 1.14rem + 0.45vw, 1.5rem)/1.25 var(--font-body);
  letter-spacing: 0; color: var(--color-muted);
}
.recipe-lead {
  margin: 0; max-width: 34ch; font: 400 1.3125rem/1.5 var(--font-body); color: var(--color-muted);
}
.recipe-byline { margin: 0; font: 400 0.9375rem/1.4 var(--font-heading); color: var(--color-muted); }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.375rem 0 0; }
.recipe-actions .btn { padding: 0 1.625rem; }
.recipe-actions svg { flex: none; width: 1.125rem; height: 1.125rem; }

@media (max-width: 47.99rem) {
  .recipe .crumbs { display: none; }
  .recipe-top { margin-top: 0; gap: 1.375rem; }
  .recipe-top .recipe-head { gap: 0.75rem; }
  .recipe-title { gap: 0.5rem; }
  .recipe-lead { font-size: 1.125rem; }
  .recipe-byline { font-size: 0.875rem; }
  /* The jump bar below takes over "Ugrás a receptre" on a phone. */
  .recipe-actions { display: none; }
}
@media screen and (max-width: 47.99rem) {
  .recipe-top .recipe-hero { margin: 0 -1.25rem; }
  .recipe-top .recipe-hero img { border-radius: 0; }
  .recipe-top .recipe-hero figcaption { padding: 0 1.25rem; }
}

/* The fact strip (§4 "Tényszalag"): a ruled band, not a panel — the text colour above, the
 * hairline below, the labels small and spaced, the values in the heading face. The total is
 * the one in the secondary colour, and on a phone it comes first. */
.facts {
  display: grid; gap: 1.25rem 1.5rem; margin: 3.5rem 0 0; padding: 1.625rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(8.75rem, 100%), 1fr));
  border-top: 1px solid var(--color-text); border-bottom: 1px solid var(--color-border);
}
.facts .fact { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.facts dt {
  font: 700 0.75rem/1.2 var(--font-heading); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--color-muted);
}
.facts dd { margin: 0; font: 600 1.375rem/1.2 var(--font-heading); letter-spacing: -0.01em; }
.facts .fact-total dd { font-weight: 700; color: var(--color-secondary-ink); }
@media (max-width: 47.99rem) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem 0.75rem;
    margin-top: 1.375rem; padding: 1.125rem 0;
  }
  .facts dt { font-size: 0.6875rem; letter-spacing: 0.1em; }
  .facts dd { font-size: 1.0625rem; }
  .facts .fact-total { order: -1; }
}

.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich img { border-radius: var(--radius-md); }

/* GL5: a table or a rule in a post or a page (the imported posts' own blocks). The table
   scrolls on its own on a narrow screen instead of widening the page. */
.rich table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: var(--space-md) 0; }
.rich th, .rich td { border: 1px solid var(--color-border); padding: var(--space-xs) var(--space-sm); text-align: left; vertical-align: top; }
.rich th { background: var(--color-surface); }
.rich hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-lg) 0; }

/* The description, in the frame's width. On a phone it stops after four lines, until
 * "Tovább olvasom" — a `<details>` holding only its summary, whose open state releases the
 * clamp. Screen only: on paper the text is whole. Without `:has()` the button would do
 * nothing visible, so it is not shown at all.
 *
 * On a wide screen the text fills the frame in one column (G14): held to 760 px it left
 * 456 px of nothing beside it, and two columns cut a one-paragraph description mid-sentence.
 * Measured on finomlesz at 1920 px: 11 lines of about 116 characters, as tall as the two
 * columns were. */
.recipe-intro { margin: 3.5rem 0 0; }
.recipe-intro > .rich { font-size: 1.375rem; line-height: 1.65; }
/* The short description, when the head already shows the subtitle: it opens the introduction
 * in the heading voice, and the phone's four-line fold leaves it whole. */
.recipe-standfirst {
  margin: 0 0 var(--space-md); font: 600 1.375rem/1.5 var(--font-heading); color: var(--color-text);
}
.recipe-video { margin: var(--space-md) 0 0; font: 600 0.95rem/1.4 var(--font-heading); }
.intro-more { display: none; }
@media (max-width: 47.99rem) {
  .recipe-intro { margin-top: 1.375rem; }
  .recipe-intro > .rich { font-size: 1.1875rem; line-height: 1.6; }
  .recipe-standfirst { font-size: 1.1875rem; }
}
@media screen and (max-width: 47.99rem) {
  .intro-more { display: block; }
  .recipe-intro:has(> .intro-more:not([open])) > .rich {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
    overflow: hidden;
  }
  .intro-more summary {
    display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer;
    list-style: none; font: 650 0.9375rem/1.2 var(--font-heading); color: var(--color-primary-ink);
    text-decoration: underline; text-underline-offset: 4px;
  }
  .intro-more summary::-webkit-details-marker { display: none; }
  .intro-more[open] .intro-more-open, .intro-more:not([open]) .intro-more-close { display: none; }
}
@supports not selector(:has(*)) {
  .intro-more { display: none !important; }
}

/* The jump bar (§4 "Ugrósáv", phone only): a deep pill with the two halves of the recipe.
 * The ingredients are the lit one, until the steps are the address's target. */
.jump-bar { display: none; }
@media screen and (max-width: 47.99rem) {
  .jump-bar {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem;
    margin: 0.875rem 0 0; padding: 0.375rem; border-radius: var(--radius-pill);
    background: var(--color-deep);
  }
  .jump-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 2.75rem;
    border-radius: var(--radius-pill); text-decoration: none;
    font: 600 0.9375rem/1.2 var(--font-heading); color: var(--color-bg);
  }
  .jump-bar a:focus-visible { outline-color: var(--color-deep-accent); }
  .jump-bar .jump-ingredients,
  .recipe:has(#elkeszites:target) .jump-bar .jump-steps {
    background: var(--color-surface); color: var(--color-deep); font-weight: 700;
  }
  .recipe:has(#elkeszites:target) .jump-bar .jump-ingredients {
    background: none; color: var(--color-bg); font-weight: 600;
  }
}

/* --------------------------------------------------- recipe: the cooking half */

/* What you need beside what you do (§5.3/5): the ingredient box (420px) beside the steps
 * (at least 560px), side by side while both fit — from 68.75rem — and one under the other
 * below that. Flex growth 1 against 999: beside the steps the box keeps its width, on a row
 * of its own it fills the row. A half rendered alone keeps to the reading width.
 *
 * The box follows the reader down the steps only while it fits the window: `site.js` sets
 * `is-sticky` on the column when it does (`data-sticky-fit`), so a long list is never pinned
 * with its last lines out of reach. */
.recipe-cook {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3.5rem;
  margin-top: 2.5rem;
}
.recipe-side { flex: 1 1 26.25rem; min-width: 0; }
.recipe-main { flex: 999 1 35rem; min-width: 0; }
.recipe-cook > :only-child { max-width: var(--measure); margin-inline: auto; }
@media screen and (min-width: 68.75rem) {
  .recipe-side.is-sticky { position: sticky; top: var(--space-lg); }
}
@media (max-width: 47.99rem) {
  .recipe-cook { margin-top: 2rem; gap: 2.5rem; }
}

.block { margin: 0 0 2.75rem; }
.block h2 {
  margin: 0 0 var(--space-md); font-size: clamp(1.75rem, 1.6rem + 0.6vw, 2rem);
  line-height: 1.1; letter-spacing: -0.025em;
}
.block h3 { margin: 1.25rem 0 0.4rem; font-size: 1.05rem; }
.plain { list-style: none; margin: 0; padding: 0; }

/* The ingredient box (§4 "Hozzávaló-doboz"): the surface, a hairline, the big radius; the
 * equipment, when the recipe lists any, in a second one under it. On a phone neither is a
 * box (05): the list runs in the page. */
.recipe-side > .block { margin: 0; }
.recipe-side > .block + .block { margin-top: var(--space-md); }
.ingredients, .recipe-side .equipment {
  padding: 1.875rem 1.875rem 1.625rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: calc(var(--radius-md) + 0.5rem);
}
@media (max-width: 47.99rem) {
  .ingredients, .recipe-side .equipment { padding: 0; background: none; border: 0; border-radius: 0; }
}

/* The box's head: the title, "Hozzávalók másolása" as a quiet text button beside it, and the
 * servings stepper on a row of its own under both. The shared tool row is unwrapped
 * (`display: contents`) so its controls can take those places; its print button is the
 * head's, above, on this theme. */
.block-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
.block-head h2 { margin: 0; }
.ingredients .ing-tools { display: contents; }
.ingredients .ing-tools [data-print] { display: none; }
.ingredients .btn[data-copy-ingredients] {
  order: 1; min-height: 2.75rem; padding: 0 0.25rem; gap: var(--space-sm);
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-primary-ink);
  font: 600 0.9375rem/1.2 var(--font-heading); text-align: start;
}
.ingredients .btn[data-copy-ingredients]:hover { background: none; color: var(--color-text); }
.ingredients .btn[data-copy-ingredients]::before {
  content: ""; flex: none; width: 1.125rem; height: 1.125rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V5a1 1 0 0 1 1-1h10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V5a1 1 0 0 1 1-1h10'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* The servings stepper (§4 "Adag-léptető"): a soft pill, two round 44px buttons at its ends,
 * "6 adag" centred between them. */
.ingredients .servings {
  order: 2; flex: 1 1 100%; display: flex; align-items: center; gap: 0.375rem;
  margin-top: 0.375rem; padding: var(--space-sm); border-radius: var(--radius-pill);
  background: var(--color-primary-soft); font: 650 1.125rem/1 var(--font-heading);
}
.servings-value { margin-left: auto; }
.servings-unit { margin-right: auto; }
.btn-round {
  flex: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--color-surface); color: var(--color-text); cursor: pointer;
  font: 400 1.375rem/1 var(--font-heading);
  transition: color 0.15s ease;
}
.btn-round:hover { color: var(--color-primary-ink); }

/* Group titles ("A halalaphoz", "Tálaláshoz") as small spaced capitals in the brand ink. */
.ing-group { margin-top: 1.625rem; }
.ingredients h3, .step-group > h3 {
  margin: 0 0 0.375rem; font: 700 0.8125rem/1.3 var(--font-heading);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-primary-ink);
}

/* An ingredient line (§4 "Hozzávaló-sor"): the amount in a column of its own, the name and
 * its notes beside it, wrapping under the name. The shared markup is a run of spans —
 * amount, unit, name, notes — with nothing around the amount to make a column of, so the
 * column is a hanging indent: the line is indented by the column's width and its first line
 * pulled back by as much, where the amount (right-aligned) and the unit fill exactly that
 * width. The spaces between the spans are set to nothing (`font-size: 0` on the line; every
 * span sets its own size), so the widths add up to the pixel. An amount wider than its share
 * pushes its own name along, never the next line's. With the checklist (GT4) the column
 * moves right by the checkbox. */
.ingredients {
  --ing-text: 1.125rem;
  --ing-qty: 1.875rem;
  --ing-unit: 2.75rem;
  --ing-gap: 0.875rem;
  --ing-check: 0rem;
}
.js-checklist .ingredients { --ing-check: calc(1.25rem + var(--ing-gap)); }
@media (max-width: 47.99rem) {
  .ingredients { --ing-text: 1.0625rem; --ing-qty: 1.75rem; --ing-unit: 2.5rem; --ing-gap: 0.75rem; }
}
.ing {
  --ing-amount: calc(var(--ing-qty) + 0.25rem + var(--ing-unit) + var(--ing-gap));
  position: relative;
  padding: 0.6875rem 0 0.6875rem calc(var(--ing-check) + var(--ing-amount));
  text-indent: calc(-1 * var(--ing-amount));
  border-bottom: 1px solid var(--color-border);
  font-size: 0; line-height: 0;
}
.ing:last-child { border-bottom: 0; }
.ing-name, .ing .note {
  font: 400 var(--ing-text)/1.45 var(--font-body);
}
.ing .note { margin-left: 0.3em; color: var(--color-muted); }
.ing-optional .ing-name { font-style: italic; }
.ing-qty, .ing-unit {
  display: inline-block; text-indent: 0;
  font: 650 calc(var(--ing-text) - 0.125rem)/1.6 var(--font-heading); color: var(--color-text);
}
.ing-qty { min-width: var(--ing-qty); text-align: right; }
.ing-unit { min-width: var(--ing-unit); margin: 0 var(--ing-gap) 0 0.25rem; }
.ing:not(:has(.ing-unit)) .ing-qty { margin-right: calc(0.25rem + var(--ing-unit) + var(--ing-gap)); }
.ing:not(:has(.ing-qty)) .ing-unit { margin-left: calc(var(--ing-qty) + 0.25rem); }
.ing:not(:has(.ing-qty, .ing-unit)) { text-indent: 0; }
.ing-fixed {
  margin-left: var(--space-sm); padding: 0 var(--space-sm); border-radius: var(--radius-pill);
  background: var(--color-primary-soft); font: 0.75rem/1.6 var(--font-heading);
  color: var(--color-muted);
}
/* The checkbox (GT4): a real one, 20px, in the brand ink; the whole row toggles it. Ticked,
 * the amount and the name go muted and struck through. */
.ing-check {
  position: absolute; left: 0; top: 0.875rem; width: 1.25rem; height: 1.25rem; margin: 0;
  accent-color: var(--color-primary-ink); cursor: pointer;
}
.js-checklist .ing { cursor: pointer; }
.ing.is-checked .ing-qty, .ing.is-checked .ing-unit, .ing.is-checked .ing-name {
  color: var(--color-muted); text-decoration: line-through; text-decoration-thickness: 1px;
}
.checklist-count {
  margin: 1.125rem 0 0; font: 400 0.875rem/1.4 var(--font-heading); color: var(--color-muted);
}

.equipment li {
  padding: 0.6875rem 0; border-bottom: 1px solid var(--color-border);
  font-size: var(--ing-text, 1.125rem); line-height: 1.45;
}
.equipment li:last-child { border-bottom: 0; }
.equipment .qty { font: 650 1rem/1.45 var(--font-heading); }

/* The steps (§4 "Lépés"): each under a hairline, its number in a 44px ring beside the text.
 * Without the script the number is a CSS counter; with it (GT4) the ring is a button that
 * marks the step done — filled with the brand ink, a tick instead of the number, the text
 * muted. The title's rule moves under the hint the script adds. */
.steps > h2 { margin: 0; padding-bottom: 1.125rem; border-bottom: 1px solid var(--color-text); }
.js-checklist .steps > h2 { padding-bottom: 0; border-bottom: 0; }
.step-hint {
  margin: 0.25rem 0 0; padding-bottom: 1.125rem; border-bottom: 1px solid var(--color-text);
  font: 400 0.875rem/1.4 var(--font-heading); color: var(--color-muted);
}
.step-group > h3 { margin-top: 1.75rem; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  counter-increment: step; position: relative; min-height: 5.25rem;
  padding: 1.25rem 0 1.25rem 4rem; border-bottom: 1px solid var(--color-border);
}
.step::before, .step-toggle {
  position: absolute; left: 0; top: 1.25rem; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); font: 700 1.0625rem/1 var(--font-heading);
}
.step::before { content: counter(step); }
.js-checklist .step::before { content: none; }
.step-toggle {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.step-toggle:hover { border-color: var(--color-primary-ink); color: var(--color-primary-ink); }
.step-toggle svg { display: none; width: 1.25rem; height: 1.25rem; }
.step.is-done { color: var(--color-muted); }
.step.is-done .step-toggle {
  border-color: var(--color-primary-ink); background: var(--color-primary-ink); color: var(--color-bg);
}
.step.is-done .step-toggle svg { display: block; }
.step.is-done .step-num { display: none; }
.step h4 { margin: 0.5rem 0 0.25rem; font-size: 1.125rem; }
.step .rich { padding-top: 0.375rem; font-size: 1.25rem; line-height: 1.6; }
.step h4 + .rich { padding-top: 0; }
.step .note { margin: 0.5rem 0 0; }
.step-image { margin: 0.9rem 0 0; }
.step-image img { border-radius: var(--radius-md); }
@media (max-width: 47.99rem) {
  .step { padding-left: 3.625rem; }
  .step .rich { font-size: 1.125rem; line-height: 1.55; }
}

/* The steps' head with "Főzés mód" (GT6, §5.3/5, mockups 04, 05): the title and the hint in
 * one column, the highlighted button beside both. The rule under the head moves from the
 * hint to the top of the first step group, so that it runs under the button too. The button
 * is the script's (`data-js-only`); where `:has()` is missing it sits under the rule. */
.js-checklist .steps:has(> .cook-open:not([hidden])) {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: var(--space-md);
}
.steps > h2, .steps > .step-hint { grid-column: 1; }
.steps > .cook-open { grid-column: 2; grid-row: 1 / span 2; }
.steps > .step-group { grid-column: 1 / -1; }
.js-checklist .steps:has(> .cook-open:not([hidden])) > .step-hint { padding-bottom: 0; border-bottom: 0; }
.js-checklist .steps:has(> .cook-open:not([hidden])) > .step-group:first-of-type {
  margin-top: 1.125rem; border-top: 1px solid var(--color-text);
}
@media (max-width: 47.99rem) {
  .steps > .cook-open { min-height: 2.75rem; padding: 0 1.125rem; }
}

/* ---------------------------------------------------- recipe: cook mode (GT6) */

/* The cooking view (docs/redesign/gastro/GT6_cook_mode.md): a modal `<dialog>` over the
 * whole screen, the deep band's colours — `--color-bg` on `--color-deep`, which palette.py
 * holds at 7:1 — the counter, "Hozzávalók" and the close button on top, one step in the body
 * face in the middle (28px, 22px on a phone), "Előző" and "Következő" at the bottom. Hairlines
 * and rings on the band are `--color-primary-ink`, the accent is `--color-deep-accent`, as on
 * the hero. Only `[open]` is laid out: a closed dialog keeps the browser's `display: none`. */
html:has(.cook[open]) { overflow: hidden; }

.cook[open] {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0; background: var(--color-deep); color: var(--color-bg);
  overflow: hidden;
}
.cook::backdrop { background: var(--color-deep); }
.cook :focus-visible { outline-color: var(--color-deep-accent); }

.cook-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md);
  padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-primary-ink);
}
.cook-count {
  margin: 0 auto 0 0; font: 650 1.0625rem/1.2 var(--font-heading); letter-spacing: 0;
}
.cook-tab, .cook-close {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  border: 1px solid var(--color-primary-ink); border-radius: var(--radius-pill);
  background: none; color: var(--color-bg); cursor: pointer;
  font: 600 0.9375rem/1.2 var(--font-heading);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cook-tab { padding: 0 1.125rem; }
.cook-tab:hover, .cook-close:hover { border-color: var(--color-bg); }
.cook-tab[aria-pressed="true"] {
  border-color: var(--color-surface); background: var(--color-surface); color: var(--color-deep);
  font-weight: 700;
}
.cook-close { width: 2.75rem; padding: 0; }
.cook-close svg { width: 1.25rem; height: 1.25rem; }

/* The body scrolls on its own when a step or the ingredient list is longer than the screen;
 * up and down are the browser's, sideways is a swipe (`site.js`). */
.cook-body {
  display: grid; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-lg); touch-action: pan-y pinch-zoom;
}
.cook-step, .cook-ings { justify-self: center; width: 100%; }
.cook-step { align-self: center; max-width: 44rem; }
.cook-ings { align-self: start; max-width: 32rem; }

.cook-group {
  margin: 0 0 var(--space-md) 4rem; font: 700 0.8125rem/1.2 var(--font-heading);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-deep-accent);
}
.cook-step-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start;
  column-gap: 1.25rem;
}
/* The done button: the page's step ring on the band — the number, or the tick on the
 * accent once the step is done; the text goes to the band's meta colour with it. */
.cook-done {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-top: 0.125rem; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--color-primary-ink); background: none; color: var(--color-bg);
  font: 700 1.0625rem/1 var(--font-heading); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cook-done:hover { border-color: var(--color-deep-accent); }
.cook-done svg { display: none; width: 1.25rem; height: 1.25rem; }
.cook-done[aria-pressed="true"] {
  border-color: var(--color-deep-accent); background: var(--color-deep-accent); color: var(--color-deep);
}
.cook-done[aria-pressed="true"] svg { display: block; }
.cook-done[aria-pressed="true"] .step-num { display: none; }

.cook-text {
  font: 400 clamp(1.375rem, 0.5rem + 2.3vw, 1.75rem)/1.45 var(--font-body);
  text-wrap: pretty; overflow-wrap: anywhere;
}
.cook-step.is-done .cook-text { color: var(--color-primary-soft); }
.cook-text .rich p { margin: 0 0 0.6em; }
.cook-text h4 { margin: 0 0 0.4em; font-size: 1.15em; line-height: 1.2; }
.cook-text .note {
  margin: 0.75rem 0 0; font: 400 1rem/1.4 var(--font-heading); color: var(--color-primary-soft);
}
.cook-text a { color: var(--color-deep-accent); }
.cook-text .step-image { margin: 1rem 0 0; }
.cook-text .step-image img {
  display: block; width: auto; max-height: 40vh; border-radius: var(--radius-md);
}

/* "Hozzávalók": the page's own ingredient box, moved in — a light card on the band, a box
 * on a phone too, where the page shows the list without one. */
.cook .ingredients {
  margin: 0; padding: 1.5rem 1.5rem 1.25rem; background: var(--color-surface);
  color: var(--color-text); border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-md) + 0.5rem);
}
.cook .ingredients :focus-visible { outline-color: var(--color-primary-ink); }

.cook-nav {
  display: grid; grid-template-columns: repeat(2, minmax(0, 20rem)); justify-content: center;
  gap: var(--space-md); padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-primary-ink);
}
.cook-nav svg { flex: none; width: 1.125rem; height: 1.125rem; }
.cook .btn-outline { border-color: var(--color-bg); color: var(--color-bg); }
.cook .btn-outline:hover { background: var(--color-bg); color: var(--color-deep); }
.cook-nav [aria-disabled="true"] { opacity: 0.4; cursor: default; }
.cook-nav .btn-outline[aria-disabled="true"]:hover { background: none; color: var(--color-bg); }
.cook-nav .btn-accent[aria-disabled="true"]:hover {
  background: var(--color-deep-accent); color: var(--color-deep);
}
.cook-nav [aria-disabled="true"]:active { transform: none; }

@media (max-width: 47.99rem) {
  .cook-bar { padding: 0.75rem 1.25rem; }
  .cook-body { padding: 1.5rem 1.25rem; }
  .cook-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.75rem 1.25rem; }
  .cook-group { margin-left: 3.625rem; }
  .cook-step-row { column-gap: 0.875rem; }
  .cook .ingredients { padding: 1.25rem 1rem 1rem; }
}

/* ------------------------------------------------- recipe: the tail sections */

/* The tail in the frame's width (G13, G14; §5.3/6–7 had nutrition, FAQ and gallery in the
 * reading column, flush left): the nutrition tiles and the gallery's thumbnails fill the row,
 * the FAQ and the long article fill the frame in one column, as the description does, and the
 * notes box and the term chips span it. */
.recipe-tail { margin-top: 3.5rem; }

.nutrition-list {
  display: grid; gap: 0.75rem; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.nutrition .fact {
  padding: 0.75rem 0.9rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); background: var(--color-surface);
}
.nutrition dt {
  font: 700 0.7rem/1.3 var(--font-heading); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-muted);
}
.nutrition dd { margin: 0.2rem 0 0; font: 700 1rem/1.3 var(--font-heading); }

.faq-item { padding: var(--space-md) 0 0.25rem; border-top: 1px solid var(--color-border); }
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }

.gallery-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}
.gallery-item figure { margin: 0; }
.gallery-item img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-md);
}
.gallery-item figcaption {
  margin-top: var(--space-xs); font: 0.82rem/1.4 var(--font-heading); color: var(--color-muted);
}

/* The notes box (§4 "Jegyzetdoboz"): the soft wash, the big radius, a light bulb in the
 * brand ink at its left — no coloured stripe. */
.notes {
  position: relative; padding: 2rem 2.25rem 2rem 5.5rem;
  border-radius: calc(var(--radius-md) + 0.5rem); background: var(--color-primary-soft);
}
.notes::before {
  content: ""; position: absolute; left: 2.25rem; top: 2rem; width: 2rem; height: 2rem;
  background: var(--color-primary-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1.1 2V16h5v-.2c.1-.8.5-1.5 1.1-2A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1.1 2V16h5v-.2c.1-.8.5-1.5 1.1-2A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.notes h2 {
  margin: 0 0 0.5rem; font: 700 1.375rem/1.2 var(--font-heading); letter-spacing: -0.01em;
}
.notes .rich { font-size: 1.125rem; line-height: 1.6; }
@media (max-width: 47.99rem) {
  .notes { padding: 1.5rem 1.25rem; }
  .notes::before { position: static; display: block; width: 1.75rem; height: 1.75rem; margin-bottom: 0.75rem; }
}

/* The terms (§4 "Címke-chip"): one flowing row, each taxonomy's name in the muted ink before
 * its chips. The same partial lists a post's categories and tags. */
.terms { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 0; }
.term-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.term-label { font: 400 0.8125rem/1.2 var(--font-heading); color: var(--color-muted); }
.chip {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.875rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-text); text-decoration: none;
  font: 500 0.875rem/1.2 var(--font-heading);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a.chip:hover { border-color: var(--color-primary-ink); color: var(--color-primary-ink); }

/* "Még több orosz konyha" (§5.3/8): the archive's three columns of cards. */
.related { margin-top: var(--space-xl); }
.related .card-title { font-size: clamp(1rem, 0.6rem + 1.1vw, 1.4375rem); line-height: 1.2; }

/* ------------------------------------------- static pages, posts and the 404 */

.static-page { margin-top: var(--space-lg); }
.static-page .page-title { margin-bottom: 1.5rem; }

/* A post wears the recipe page's reading column (phase 34), with a title of reading size. */
.post { margin-top: var(--space-lg); }
.post .recipe-head { margin-bottom: var(--space-md); }
.post .page-title {
  margin-bottom: var(--space-sm); font-size: clamp(1.875rem, 1.49rem + 1.57vw, 2.75rem);
  line-height: 1.1;
}
.post .recipe-hero { order: 0; margin: var(--space-lg) 0; }
.post .recipe-hero img { aspect-ratio: 16 / 9; }
.post .rich { margin-top: var(--space-md); }
.post .terms { margin-top: var(--space-lg); }

.not-found { padding: 3rem 0 var(--space-md); text-align: center; }
.not-found .page-title { margin-bottom: var(--space-md); }
.not-found-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-md) var(--space-lg); margin-top: var(--space-lg);
}

/* ------------------------------------------------------------- motion, print */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .card:hover .card-image img, .lead:hover .lead-image img,
  .course-tile:hover img, .cuisine-tile:hover img { transform: none; }
  .btn:active, .btn-accent:active, .btn-outline:active { transform: none; }
}

/* The shared print.css already drops the header and the footer band. What is left of this
 * theme's chrome on paper (GT_DESIGN §8): the phone folds, the buttons that only make sense
 * on a screen, the deep band, the load-more panel, the filter row (GT5), and on a recipe the breadcrumb, the jump
 * bar, the ticking-off controls and their hints, "Tovább olvasom" and the related recipes.
 * A ticked line or a finished step prints like any other — paper is a fresh start. The step
 * number comes back as the CSS counter, drawn as a ring: a number in background-coloured
 * text on a filled disc would print as nothing. */
@media print {
  .head-drop, .btn-accent, .btn-outline, .band-deep, .load-more, .filters,
  .recipe .crumbs, .recipe-actions, .jump-bar, .ing-check, .step-toggle, .step-hint,
  .checklist-count, .intro-more, .related, .cook-open, .cook { display: none !important; }
  .js-checklist .ingredients { --ing-check: 0rem; }
  .step::before, .js-checklist .step::before {
    content: counter(step); background: none; color: var(--color-text);
    border: 1px solid var(--color-text);
  }
  .step.is-done { color: inherit; }
  .ing.is-checked .ing-qty, .ing.is-checked .ing-unit, .ing.is-checked .ing-name {
    color: inherit; text-decoration: none;
  }
  .recipe-hero img { aspect-ratio: auto; border-radius: 0; }
}

/* GL5 (D43): a listing page — the taxonomy's terms as one row, then a section per term. */
.listing-page { margin-top: var(--space-lg); }
.listing-terms { margin-bottom: var(--space-xl); }
.listing-section { margin-bottom: var(--space-xl); }
.listing-section .section-title a { color: inherit; text-decoration: none; }
.listing-section .section-title a:hover { text-decoration: underline; }

/* ----------------------------------------------- the advent calendar's bar (AC2) */

/* Under the header on every page but the calendar's own, December 1–24 (AC D11;
 * publicsite/_advent_bar.html). Here and not in the calendar's `advent.css`, which only its
 * own page loads: a shared stylesheet would be one request more on every page. The same
 * rules in all four themes. */
.advent-bar {
  background: var(--color-primary-soft); color: var(--color-deep);
  font: 400 0.9375rem/1.35 var(--font-heading);
}
.advent-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.125rem 1.25rem; min-height: 3rem; padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.advent-bar p { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.advent-bar svg { flex: none; width: 1.125rem; height: 1.125rem; }
.advent-bar strong { font-weight: 700; }
.advent-bar a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-weight: 650; color: var(--color-deep); text-underline-offset: 5px;
}
.advent-bar a:hover { color: var(--color-text); }
@media (max-width: 47.99rem) {
  .advent-bar { font-size: 0.875rem; }
  .advent-bar-inner { justify-content: flex-start; padding-top: 0.625rem; padding-bottom: 0.25rem; }
}
