/*
  Airfry.now — "Crispy Editorial" design system (production CSS).
  Translated verbatim from design/DESIGN-SYSTEM.md (token spec, source of truth) and
  design/proposals/02-crispy-editorial.html (full-page reference). Token NAMES are the normalized
  semantic scheme from DESIGN-SYSTEM.md §2 — the mockup's ad-hoc names (--paper, --s5, bare hex on
  dark bands) are mapped here so the mockup stays traceable but never reappears in component rules.

  Structure: (1) tokens, (2) reset + base typography, (3) layout + editorial atoms, (4) chrome
  (marquee, header, footer, buttons, search), (5) home/content components, (6) prose, (7) responsive,
  (8) accessibility (focus, reduced-motion). Chrome components (§4) set their own spacing; the base
  heading/paragraph margin logic (§2) is a single system that long-form prose (.article-body) opts
  into, so every H1-H6/P follows the same rules unless a component deliberately overrides them.
*/

/* ============================================================================
   1. Design tokens (DESIGN-SYSTEM.md §2). Light theme only — no dark mode.
   ============================================================================ */
:root {
  /* -- Color (§2.1). Dark-band tones are tokenized; never reintroduce raw hex on dark surfaces. -- */
  --color-bg: #f7f4ee;                /* was --paper */
  --color-surface: #fffdf8;           /* was --paper-2 */
  --color-ink: #1c1815;               /* was --ink */
  --color-ink-soft: #4a433c;          /* was --ink-soft */
  --color-ink-faint: #877e72;         /* was --ink-faint */
  --color-rule: #d9d2c5;              /* was --rule */
  --color-rule-strong: #b8ad9b;       /* was --rule-strong */
  --color-accent: #d6402a;            /* paprika; was --paprika */
  --color-accent-deep: #a82b1b;       /* was --paprika-deep */
  --color-accent-tint: #f6e3dd;       /* was --paprika-tint */
  --color-accent-soft: #e7b3a8;       /* salmon — accent used ON dark; was inline #e7b3a8 */
  --color-gold: #c98a2b;              /* star fill, affiliate note; was --gold */
  --color-on-dark: #f7f4ee;           /* text on ink/accent bands (paper reused) */
  --color-on-dark-soft: #c9c1b6;      /* secondary text on dark; collapses #d8d0c4 too */
  --color-on-dark-faint: #8f867a;     /* muted labels on dark; collapses #b3aa9d too */
  --color-on-dark-rule: rgba(255, 255, 255, 0.14);
  --color-media-placeholder: #c9b8a0; /* background behind <img> while photos load */

  /* -- Typography families & weights (§2.2) -- */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;

  /* -- Type scale (§2.2). Fluid where the spec used clamp(); fixed otherwise. -- */
  /* Reduced 2026-07-13 (Paulo): the original clamp maxed out at 92px on any screen ≥1440px CSS
     width (basically every laptop/desktop), which read as oversized for a headline. 40-64px keeps
     mobile close to before (46->40px) and scales gently through desktop widths instead of pinning
     near-immediately at the old max. */
  --fs-hero: clamp(40px, 4vw, 64px);
  --fs-h2: clamp(30px, 4vw, 46px);
  --fs-h2-band: clamp(28px, 4vw, 44px);        /* H2 inside dark/accent bands */
  --fs-display-value: clamp(38px, 6vw, 60px);  /* converter output numerals */
  --fs-h3: 21px;
  --fs-h4: 18px;
  --fs-lede: 19px;
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-meta: 13px;
  --fs-caption: 12px;
  --fs-kicker: 12px;
  --fs-micro: 11px;

  /* -- Spacing (§2.3): 8-point-ish step scale (was --s1..--s10) -- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* -- Radii (§2.4): image frames use sm; container cards/bands use md -- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 999px;

  /* -- Shadows (§2.5): five near-identical mockup shadows collapsed to four -- */
  --shadow-badge: 0 6px 16px rgba(28, 24, 21, 0.15);
  --shadow-card-hover: 0 18px 40px -22px rgba(28, 24, 21, 0.4);
  --shadow-hero: 0 30px 60px -30px rgba(28, 24, 21, 0.45);
  --shadow-accent: 0 8px 20px rgba(214, 64, 42, 0.25);

  /* -- Motion (§2.6) -- */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.2s;
  --dur-slow: 0.6s;
  --dur-hero: 1.2s;

  /* -- Layout (§2.7) -- */
  --max-width: 1240px;
  --gutter: var(--space-6);
}

/* ============================================================================
   2. Reset + base typography (DESIGN-SYSTEM.md §3). One margin system for all
      headings and paragraphs: zeroed here so chrome components control their own
      rhythm; long-form content re-establishes vertical rhythm via .article-body (§6).
   ============================================================================ */
* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  /* Faint paper grain — the "paper, not white" principle (§1.6), via two low-alpha radial tints. */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(214, 64, 42, 0.015), transparent 40%),
    radial-gradient(circle at 85% 40%, rgba(201, 138, 43, 0.02), transparent 45%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================================================
   3. Layout container + shared editorial atoms (§3, §4)
   ============================================================================ */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Eyebrow/kicker: uppercase paprika label (§3). --ink variant + on-dark variant below. */
.kicker {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-kicker);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.kicker--ink {
  color: var(--color-ink-faint);
}

/* Section number: italic serif "No. 0X" (§3). */
.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-semibold);
  font-size: 15px;
  color: var(--color-accent);
}

/* Section header device: No.0X + H2 left, "see all" link right, joined by a 2px ink rule (§4). */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-ink);
  margin-bottom: var(--space-7);
}
.section-head__left {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: var(--fs-h2);
}
.section-head__link {
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur-base), gap var(--dur-base), color var(--dur-base);
}
.section-head__link:hover {
  border-color: var(--color-accent);
  gap: 11px;
  color: var(--color-accent);
}
.section-head__link svg {
  transition: transform var(--dur-base);
}
.section-head__link:hover svg {
  transform: translateX(3px);
}

/* Shared inline SVG icon: inherits text color + size. Stroke-based; star icons override to filled. */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  stroke: currentColor;
  fill: none;
}

/* ============================================================================
   4. Chrome: marquee, header/nav, search, buttons, footer (§5.1, §5.2, §5.3, §5.12)
   ============================================================================ */

/* -- Announcement marquee: ink band, paper text, paprika dots (§5.1). Static (never auto-scrolls). -- */
.marquee {
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}
.marquee .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding-top: 9px;
  padding-bottom: 9px;
}
.marquee .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* -- Sticky header over the marquee: translucent paper + blur + hairline bottom rule (§5.1). -- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 238, 0.9); /* --color-bg at 90% so blurred content shows through */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-rule);
}
/* position:relative anchors the mobile nav panel + hamburger (absolute) added in production (§7). */
.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* Brand wordmark: Airfry (ink) . (faint) now (italic paprika) — Playfair 800 (§5.1). */
.brand {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: 26px;
  letter-spacing: -0.02em;
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
}
.brand .now {
  color: var(--color-accent);
  font-style: italic;
}
.brand .dot-sep {
  color: var(--color-ink-faint);
  font-weight: var(--fw-regular);
}

/* Collapsible wrapper: transparent on desktop so nav-links + nav-actions sit directly in the 3-col
   grid; on mobile (§7) it becomes the single dropdown panel, so the two groups stack, not overlap. */
.nav-collapse {
  display: contents;
}

/* Center nav links with a paprika underline that grows 0→100% on hover (§5.1). */
.nav-links {
  display: flex;
  gap: var(--space-6);
  justify-self: center;
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  color: var(--color-ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.22s ease;
}
.nav-links a:hover {
  color: var(--color-ink);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}
.nav-links a[aria-current="page"] {
  color: var(--color-ink);
}

/* Right-side actions: search + account menu. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: end;
}

/* Pill search input; border darkens on focus (§5.3). Submits on enter (no visible button). */
.search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  background: var(--color-surface);
  color: var(--color-ink-faint);
  font-size: var(--fs-meta);
  min-width: 190px;
  transition: border-color var(--dur-base);
}
.search:focus-within {
  border-color: var(--color-ink);
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  color: var(--color-ink);
  width: 100%;
}
.search .icon {
  color: var(--color-ink-faint);
  width: 15px;
  height: 15px;
}

/* Account menu: signed-out is a ghost "Sign in" button; signed-in shows avatar + recipe-book link. */
.account {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.account__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-deep);
  border: 1px solid var(--color-rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  overflow: hidden;
}
.account__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.account__link:hover {
  color: var(--color-ink);
}
.account__link .icon {
  width: 16px;
  height: 16px;
}

/* -- Buttons (§5.2). Exactly one paprika (primary) per view; pair paprika with ghost. -- */
.btn {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  cursor: pointer;
  border: 1.5px solid var(--color-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--dur-fast), background var(--dur-base), color var(--dur-base),
    box-shadow var(--dur-base), border-color var(--dur-base);
  background: transparent;
  color: var(--color-ink);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--solid {
  background: var(--color-ink);
  color: var(--color-on-dark);
}
.btn--solid:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}
.btn--paprika {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff; /* white on paprika = 4.5:1 (§8); keep text >=14px bold, do not lighten the accent */
}
.btn--paprika:hover {
  background: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
  box-shadow: var(--shadow-accent);
}
.btn--ghost:hover {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

/* -- Footer: ink band, three link columns + brand mission, bottom copyright/legal bar (§5.12). -- */
footer.site {
  background: var(--color-ink);
  color: var(--color-on-dark);
  padding-top: var(--space-9);
  padding-bottom: var(--space-6);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-on-dark-rule);
}
.foot-brand .brand {
  color: var(--color-on-dark);
  font-size: 30px;
}
.foot-brand p {
  color: var(--color-on-dark-faint);
  margin-top: var(--space-4);
  max-width: 26em;
  line-height: 1.6;
  font-size: var(--fs-sm);
}
.foot-col h2 {
  /* Column headings are label-style sans, not display serif — override the base heading font (§5.12). */
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-on-dark-faint);
  margin-bottom: var(--space-4);
  font-weight: var(--fw-bold);
}
.foot-col a {
  display: block;
  color: var(--color-on-dark-soft);
  font-size: var(--fs-sm);
  padding: 5px 0;
  transition: color var(--dur-base), padding-left var(--dur-base);
}
.foot-col a:hover {
  color: #fff;
  padding-left: 4px;
}
/* Affiliate disclosure line inside the footer — always visible, no interaction (§5.9). */
.foot-disclosure {
  grid-column: 1 / -1;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-on-dark-rule);
  font-size: var(--fs-meta);
  color: var(--color-on-dark-faint);
  max-width: 60em;
  line-height: 1.6;
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-5);
  flex-wrap: wrap;
}
.foot-bottom p {
  font-size: var(--fs-meta);
  color: var(--color-on-dark-faint);
}
.foot-legal {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.foot-legal a {
  font-size: var(--fs-meta);
  color: var(--color-on-dark-faint);
}
.foot-legal a:hover {
  color: #fff;
}

/* Mobile nav toggle (production addition, §5.1/§5.3 "use a toggle"): hidden on desktop. */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.nav-toggle-label {
  display: none;
}

/* ============================================================================
   5. Home / content components (§5.4–§5.11). Present in the shared stylesheet so the
      home, category, recipe, and guide tasks inherit their skin without new CSS.
   ============================================================================ */

/* -- Hero (§ proposal .hero): asymmetric copy/media split -- */
.hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: var(--space-8);
  align-items: center;
}
.hero-copy .kicker {
  display: block;
  margin-bottom: var(--space-5);
}
.hero-copy h1 {
  font-size: var(--fs-hero);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--color-accent);
}
.hero-lede {
  font-size: var(--fs-lede);
  color: var(--color-ink-soft);
  max-width: 30em;
  margin-bottom: var(--space-6);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}
.hero-actions .btn {
  padding: 14px 26px;
  font-size: 15px;
}
.hero-meta {
  display: flex;
  gap: var(--space-7);
  border-top: 1px solid var(--color-rule);
  padding-top: var(--space-5);
}
.hero-meta .stat .n {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: var(--fw-heavy);
  line-height: 1;
}
.hero-meta .stat .l {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-faint);
  margin-top: 6px;
}
.hero-media {
  position: relative;
}
.hero-figure {
  /* display:block so an <a class="hero-figure"> honors aspect-ratio (an inline anchor collapses,
     letting its absolutely-positioned caption/badge overflow onto the sticky header). */
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-media-placeholder);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-hero);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-hero) var(--ease-out);
}
.hero-figure:hover img {
  transform: scale(1.04);
}
.hero-badge {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-badge);
}
.hero-badge .icon {
  color: var(--color-accent);
  width: 14px;
  height: 14px;
}
.hero-caption {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  background: rgba(28, 24, 21, 0.82);
  color: var(--color-on-dark);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.hero-caption .rt {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  font-weight: var(--fw-bold);
}
.hero-caption h3 {
  font-size: 22px;
  margin: 6px 0 4px;
  color: var(--color-on-dark);
}
.hero-caption .cap-meta {
  font-size: var(--fs-meta);
  color: var(--color-on-dark-soft);
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.hero-caption .cap-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--color-accent-soft);
}
.hero-tag-vert {
  position: absolute;
  top: 40%;
  right: calc(-1 * var(--space-6));
  transform: rotate(90deg);
  transform-origin: right center;
  font-size: var(--fs-micro);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  font-weight: var(--fw-bold);
}

/* -- Converter card (§5.8): dark ink card, pinstripe overlay, input/output panels -- */
.converter {
  padding-top: var(--space-7);
  padding-bottom: var(--space-9);
}
.converter-card {
  background: var(--color-ink);
  color: var(--color-on-dark);
  border-radius: var(--radius-md);
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.converter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 48px);
  pointer-events: none;
}
.converter-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.converter-head .kicker {
  color: var(--color-accent-soft);
}
.converter-head h2 {
  color: var(--color-on-dark);
  font-size: var(--fs-h2-band);
}
.converter-head h2 em {
  font-style: italic;
  color: var(--color-accent);
}
.converter-sub {
  color: var(--color-on-dark-soft);
  max-width: 40em;
  margin-top: var(--space-3);
  line-height: 1.55;
}
.conv-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: stretch;
  margin-top: var(--space-6);
  position: relative;
  z-index: 1;
}
.conv-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.conv-panel.is-out {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.conv-panel .lbl {
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-on-dark-faint);
}
.conv-panel.is-out .lbl {
  color: rgba(255, 255, 255, 0.85);
}
.conv-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.conv-field {
  flex: 1;
}
.conv-field .fld-lbl {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-on-dark-faint);
  margin-bottom: 6px;
}
.conv-panel.is-out .conv-field .fld-lbl {
  color: rgba(255, 255, 255, 0.75);
}
.conv-value {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  line-height: 1;
  font-size: var(--fs-display-value);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.conv-value .u {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  color: var(--color-on-dark-faint);
}
.conv-panel.is-out .conv-value {
  color: #fff;
}
.conv-panel.is-out .conv-value .u {
  color: rgba(255, 255, 255, 0.85);
}
.conv-input-look {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: clamp(32px, 5vw, 52px);
}
.conv-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-accent-soft);
}
.conv-arrow .ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(231, 179, 168, 0.5);
  display: grid;
  place-items: center;
  color: var(--color-accent-soft);
  animation: pulse 2.6s ease-in-out infinite;
}
.conv-arrow .ring .icon {
  width: 24px;
  height: 24px;
}
.conv-arrow .lab {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-on-dark-faint);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(231, 179, 168, 0.28);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(231, 179, 168, 0);
  }
}
.conv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.conv-note {
  font-size: var(--fs-meta);
  color: var(--color-on-dark-faint);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.conv-note .icon {
  color: var(--color-accent-soft);
  width: 16px;
  height: 16px;
}
.conv-chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.conv-chip {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-on-dark-soft);
}
.conv-chip:hover {
  border-color: var(--color-accent-soft);
  color: #fff;
  cursor: pointer;
}

/* -- Interactive converter tool (F-011, /converter) ------------------------------------------------
   The dedicated tool reuses the showcase Converter Card visuals (.converter-card / .conv-panel /
   .conv-arrow / .conv-foot, §5.8) and adds the working form controls, result numerals, reasoning, and
   share row below. New class names only; the one shared selector this overrides (.conv-grid stacking)
   is scoped to .converter--tool so the homepage showcase is untouched. */

.converter--tool .converter-head h1 {
  color: var(--color-on-dark);
  font-size: var(--fs-h2-band);
  line-height: 1.05;
}
.converter--tool .converter-head h1 em {
  font-style: italic;
  color: var(--color-accent);
}

/* Input controls live on the translucent input panel; keep them legible on the dark card. */
.conv-input-wrap {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  margin-top: 6px;
}
.conv-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}
.conv-input:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 2px;
  border-color: var(--color-accent-soft);
}
.conv-suffix {
  align-self: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-on-dark-faint);
}

/* °F/°C segmented toggle: two radios drawn as pills; the checked one fills accent-soft. */
.conv-unit {
  display: inline-flex;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.conv-unit-opt {
  display: inline-flex;
}
.conv-unit-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.conv-unit-opt span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: var(--color-on-dark-soft);
  cursor: pointer;
}
.conv-unit-opt input:checked + span {
  background: var(--color-accent-soft);
  color: var(--color-ink);
}
.conv-unit-opt input:focus-visible + span {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 2px;
}

.conv-select {
  width: 100%;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.conv-select option {
  color: var(--color-ink);
}

/* Inline validation: salmon text on the dark card, visible without color alone (icon-free, prefixed). */
.conv-error {
  margin-top: 6px;
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-soft);
}
.conv-input[aria-invalid="true"] {
  border-color: var(--color-accent-soft);
  border-style: solid;
}

.conv-field + .conv-field {
  margin-top: var(--space-4);
}

/* Submit row: the single paprika CTA plus the in-flight indicator. */
.conv-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  position: relative;
  z-index: 1;
}
.conv-indicator {
  font-size: var(--fs-sm);
  color: var(--color-on-dark-faint);
}
/* htmx-indicator: hidden until htmx marks the form .htmx-request during a call. */
.htmx-indicator {
  opacity: 0;
  transition: opacity var(--dur-base) ease;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Output panel result numerals (on the solid paprika panel). */
.conv-out {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-4);
}
.conv-out-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.conv-out-cap {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.conv-out-alt {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.85);
}
.conv-out-tip {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
}
.conv-await {
  margin-top: var(--space-4);
  color: var(--color-on-dark-soft);
  line-height: 1.5;
}

/* "Why these numbers" — the trust content, on a faint inset panel under the grid. */
.conv-why {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}
.conv-why-kicker {
  font-size: var(--fs-kicker);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-accent-soft);
  margin-bottom: var(--space-3);
}
.conv-why ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.conv-why li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-on-dark-soft);
  line-height: 1.55;
}
.conv-why li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-soft);
}

/* Shareable-result row: a readonly URL field (no-JS copy) + a JS clipboard button. */
.conv-share {
  min-width: 260px;
}
.conv-share-row {
  display: flex;
  gap: var(--space-2);
  margin-top: 6px;
}
.conv-share-url {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--color-on-dark-soft);
  font-size: var(--fs-meta);
}
.conv-copy {
  flex: none;
  color: var(--color-on-dark);
  border-color: rgba(255, 255, 255, 0.35);
}
.conv-copy:hover {
  background: var(--color-on-dark);
  color: var(--color-ink);
}

/* Stack the input → arrow → output grid on narrow screens; rotate the arrow to point down. */
@media (max-width: 720px) {
  .converter--tool .conv-grid {
    grid-template-columns: 1fr;
  }
  .converter--tool .conv-arrow .ring {
    transform: rotate(90deg);
  }
}

/* -- Category grid (§5.7): typographic tiles drawn with hairline borders, no images -- */
.cats {
  padding-bottom: var(--space-9);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-rule);
  border-left: 1px solid var(--color-rule);
}
.cat-cell {
  border-right: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  padding: var(--space-6) var(--space-5);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-base), color var(--dur-base);
  cursor: pointer;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cat-cell:hover {
  background: var(--color-ink);
  color: var(--color-on-dark);
}
.cat-cell .cat-idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--color-accent);
}
.cat-cell:hover .cat-idx {
  color: var(--color-accent-soft);
}
/* cat-ic needs explicit fill:none — the mockup's icons lacked it and rendered as solid blobs (§6). */
.cat-cell .cat-ic {
  width: 30px;
  height: 30px;
  color: var(--color-ink);
  fill: none;
  stroke: currentColor;
  margin-bottom: var(--space-4);
  transition: color var(--dur-base), transform 0.35s;
}
.cat-cell:hover .cat-ic {
  color: var(--color-accent);
  transform: translateY(-2px);
}
.cat-cell h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}
.cat-cell .cat-n {
  font-size: var(--fs-caption);
  color: var(--color-ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: var(--fw-semibold);
}
.cat-cell:hover .cat-n {
  color: var(--color-on-dark-faint);
}
.cat-cell .cat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* -- Recipe card (§5.4) + star rating (§5.5) + tag pills (§5.6) -- */
.recipes {
  padding-bottom: var(--space-9);
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6) var(--space-5);
}
.rcard {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.rcard__media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-media-placeholder);
  margin-bottom: var(--space-4);
}
.rcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.rcard:hover .rcard__media img {
  transform: scale(1.06);
}
.rcard__time {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-badge);
}
.rcard__time .icon {
  width: 13px;
  height: 13px;
  color: var(--color-accent);
}
.rcard__cat {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  margin-bottom: 8px;
}
.rcard__title {
  font-size: var(--fs-h3);
  line-height: 1.12;
  margin-bottom: var(--space-3);
  transition: color var(--dur-base);
}
.rcard:hover .rcard__title {
  color: var(--color-accent);
}
.rcard__foot {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
}
.rating .stars {
  display: inline-flex;
  color: var(--color-gold);
}
.rating .stars .icon {
  width: 14px;
  height: 14px;
  fill: var(--color-gold);
  stroke: var(--color-gold);
}
.rating .stars .icon.half {
  fill: url(#half);
}
.rating .cnt {
  color: var(--color-ink-faint);
  font-weight: var(--fw-medium);
  font-size: var(--fs-caption);
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: var(--fs-micro);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  color: var(--color-ink-soft);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}
.tag--accent {
  color: var(--color-accent-deep);
  border-color: var(--color-accent);
  background: var(--color-accent-tint);
}

/* -- Top-rated editorial strip (§5.10) -- */
.toprated {
  padding-bottom: var(--space-9);
}
.strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.strip-feature {
  position: relative;
  min-height: 420px;
  background-color: var(--color-media-placeholder);
}
.strip-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.strip-feature .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 21, 0) 30%, rgba(28, 24, 21, 0.85) 100%);
}
.strip-feature .cont {
  position: absolute;
  left: var(--space-6);
  right: var(--space-6);
  bottom: var(--space-6);
  color: var(--color-on-dark);
}
.strip-feature .rank {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--color-accent-soft);
  font-weight: var(--fw-semibold);
}
.strip-feature h3 {
  color: var(--color-on-dark);
  font-size: clamp(26px, 3vw, 38px);
  margin: 6px 0 var(--space-3);
  max-width: 14em;
}
.strip-feature .cap-meta {
  display: flex;
  gap: var(--space-5);
  font-size: var(--fs-meta);
  color: var(--color-on-dark-soft);
}
.strip-feature .cap-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.strip-feature .cap-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--color-accent-soft);
}
.strip-list {
  padding: var(--space-6) var(--space-6) var(--space-6) 0;
  display: flex;
  flex-direction: column;
}
.strip-list .kicker {
  margin-bottom: var(--space-4);
}
.strip-item {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-rule);
}
.strip-item:last-child {
  border-bottom: 0;
}
.strip-item .si-rank {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: 26px;
  color: var(--color-rule-strong);
  width: 34px;
  flex: none;
}
.strip-item:hover .si-rank {
  color: var(--color-accent);
}
.strip-item .si-body h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  margin-bottom: 3px;
}
.strip-item:hover .si-body h4 {
  color: var(--color-accent);
}
.strip-item .si-meta {
  font-size: var(--fs-caption);
  color: var(--color-ink-faint);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.strip-item .si-meta .rating {
  font-size: var(--fs-caption);
}
.strip-item .si-meta .icon {
  width: 12px;
  height: 12px;
}

/* -- Gear / affiliate card (§5.9) + disclosure note -- */
.gear {
  padding-bottom: var(--space-9);
}
.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.gcard {
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base), box-shadow var(--dur-base);
}
.gcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.gcard__media {
  aspect-ratio: 3 / 2;
  background-color: var(--color-media-placeholder);
  position: relative;
}
.gcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gcard__pick {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.gcard__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.gcard__eyebrow {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-ink-faint);
}
.gcard__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1.1;
}
.gcard__desc {
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.gcard__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
}
.gcard__price {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: 22px;
}
.gcard__price .approx {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-faint);
}
.gcard .btn {
  padding: 9px 16px;
  font-size: var(--fs-meta);
}
.affiliate-note {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-meta);
  color: var(--color-ink-faint);
  background: rgba(201, 138, 43, 0.05);
}
.affiliate-note .icon {
  color: var(--color-gold);
  width: 18px;
  height: 18px;
  flex: none;
}

/* -- Newsletter band (§5.11): solid paprika -- */
.nl {
  padding-bottom: var(--space-9);
}
.nl-band {
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.nl-band h2 {
  color: #fff;
  font-size: var(--fs-h2-band);
}
.nl-band h2 em {
  font-style: italic;
}
.nl-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--space-3);
  max-width: 32em;
}
.nl-form {
  display: flex;
  gap: var(--space-2);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px;
}
.nl-form input {
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  color: var(--color-ink);
}
.nl-form .btn {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}
.nl-form .btn:hover {
  background: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
}
.nl-fine {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-3);
}

/* Shell home placeholder (task-011): a restrained, on-brand intro until the full home lands (task-012). */
.shell-intro {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  max-width: 34em;
}
.shell-intro .kicker {
  display: block;
  margin-bottom: var(--space-5);
}
.shell-intro h1 {
  font-size: var(--fs-hero);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}
.shell-intro h1 em {
  font-style: italic;
  color: var(--color-accent);
}
.shell-intro p {
  font-size: var(--fs-lede);
  color: var(--color-ink-soft);
  line-height: 1.55;
  margin-bottom: var(--space-6);
}

/* Error pages (404/500) reuse the intro layout so they sit on the shell, not a bare page (§ acceptance). */
.error-page {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  max-width: 34em;
}
.error-page .code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-semibold);
  font-size: 15px;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-4);
}
.error-page h1 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-4);
}
.error-page p {
  font-size: var(--fs-lede);
  color: var(--color-ink-soft);
  line-height: 1.55;
  margin-bottom: var(--space-6);
}

/* ============================================================================
   6. Long-form prose (.article-body): the single margin system all headings/paragraphs
      follow for recipe/guide content (rendered from markdown by the engine renderer).
   ============================================================================ */
.article-body {
  max-width: 42em;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-ink);
}
.article-body > * + * {
  margin-top: var(--space-5); /* consistent block rhythm — the "similar margin logic" rule */
}
.article-body h2 {
  font-size: var(--fs-h2);
  margin-top: var(--space-8);
}
.article-body h3 {
  font-size: 24px;
  margin-top: var(--space-7);
}
.article-body h4 {
  font-size: var(--fs-h4);
  margin-top: var(--space-6);
}
.article-body a {
  color: var(--color-accent-deep); /* 6.3:1 — readable accent for body links (§8.2) */
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}
.article-body li + li {
  margin-top: var(--space-2);
}

/* Engine markdown callouts (`> [!safety]` / `> [!region]` → <aside class="callout callout-*">). A soft
   bordered box with a small uppercase title; the safety variant carries the paprika accent. */
.article-body .callout {
  border: 1px solid var(--color-rule-strong);
  border-left: 3px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
}
.article-body .callout > * + * {
  margin-top: var(--space-3);
}
.article-body .callout-title {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}
.article-body .callout-safety {
  border-color: var(--color-accent);
  border-left-color: var(--color-accent);
  background: var(--color-accent-tint);
}
.article-body .callout-safety .callout-title {
  color: var(--color-accent-deep);
}

/* ============================================================================
   7. Responsive (DESIGN-SYSTEM.md §4 breakpoints). Mobile-first intent, desktop-down here to
      mirror the reference exactly, plus the production mobile-nav toggle the mockup deferred.
   ============================================================================ */
@media (max-width: 1080px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gear-grid {
    grid-template-columns: 1fr;
  }
  .strip {
    grid-template-columns: 1fr;
  }
  .strip-feature {
    min-height: 320px;
  }
  .strip-list {
    padding: 0 var(--space-6) var(--space-6);
  }
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  /* Header collapses to brand + hamburger; nav-links, search, and account move into a dropdown
     panel toggled by the CSS-only checkbox (no JS). Desktop layout is untouched above 860px. */
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: var(--color-ink);
  }
  .nav-toggle-label .hamburger,
  .nav-toggle-label .hamburger::before,
  .nav-toggle-label .hamburger::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform var(--dur-base), opacity var(--dur-base);
  }
  .nav-toggle-label .hamburger::before {
    position: absolute;
    top: -7px;
  }
  .nav-toggle-label .hamburger::after {
    position: absolute;
    top: 7px;
  }
  /* The whole nav collapses into one absolute dropdown panel below the header, toggled by the
     checkbox. nav-links and nav-actions stack vertically inside it. */
  .nav-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 39;
    flex-direction: column;
    gap: var(--space-5);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-rule);
    padding: var(--space-5) var(--gutter);
  }
  .nav-toggle:checked ~ .nav-collapse {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    gap: var(--space-4);
    justify-self: stretch;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    justify-self: stretch;
  }
  .search {
    width: 100%;
  }
  .account {
    justify-content: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .hero-media {
    order: -1;
  }
  .conv-grid {
    grid-template-columns: 1fr;
  }
  .conv-arrow {
    flex-direction: row;
  }
  .conv-arrow .ring {
    transform: rotate(90deg);
  }
  .nl-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 var(--space-5); /* 24px gutter under 560px (§2.7) */
  }
  .recipe-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    gap: var(--space-5);
    flex-wrap: wrap;
  }
  .foot-top {
    grid-template-columns: 1fr;
  }
  .marquee .wrap .hide-sm {
    display: none; /* drop secondary marquee phrases on the smallest screens */
  }
}

/* ============================================================================
   8. Accessibility (DESIGN-SYSTEM.md §7 motion, §8 focus). The mockup styled hover only;
      production adds keyboard focus + reduced-motion, both required.
   ============================================================================ */

/* Visible keyboard focus on every interactive element (§8). Never removed without replacement. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Respect prefers-reduced-motion: stop the converter pulse and all zoom/lift transitions (§7). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   9. Editorial & legal/trust pages (epic-010, F-032/F-033). Scoped, merge-friendly addition —
      the About + legal prose column, the shared lede paragraph, and the reusable food-safety
      disclaimer block rendered on safety-flagged recipes (legal/FoodSafetyDisclaimer.kt). No
      existing selectors are touched; prose rhythm is inherited from .article-body (§6).
   ============================================================================ */

/* Legal/About prose column: breathing room around the shared .article-body margin system. */
.legal-page {
  padding-top: var(--space-8);
  padding-bottom: var(--space-9);
}

/* Page H1 on a legal/About page reads at section scale, not hero scale (there is no hero here). */
.legal-page h1 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-5);
}

/* Lede: the intro paragraph on About/legal pages (§3 lede: 19px, ink-soft, generous line-height). */
.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--color-ink-soft);
}

/* "Last updated …" fine print, hairline-separated at the foot of the legal copy. */
.legal-meta {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-rule);
  font-size: var(--fs-meta);
  color: var(--color-ink-faint);
}

/* Food-safety disclaimer block (§9 honesty, F-033). Editorial, not a browser-alert red box: a warm
   accent-tint card with a paprika edge so it reads as an important note that still belongs to the
   design. Icon + body sit in a row; the body stacks with consistent rhythm. */
.safety-note {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--color-accent-tint);
  border: 1px solid var(--color-rule-strong);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
}
.safety-note > .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--color-accent-deep); /* 6.3:1 on the tint — readable, not decorative-only */
}
.safety-note__body > * + * {
  margin-top: var(--space-3);
}
.safety-note h2 {
  font-size: var(--fs-h3);
  color: var(--color-ink);
}
.safety-note p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-ink);
}

/* ============================================================================
   10. Content pages (epic-003): the recipe, category, guide, search, and index page
      patterns the design system's §5 components are dropped into. New patterns only —
      all built from the §2 tokens; the §5 card/rating/tag/gear atoms are reused as-is.
   ============================================================================ */

/* Empty rating star: outline only (base .rating star fills gold; this clears the fill). */
.rating .stars .icon.empty {
  fill: transparent;
}
.rating .avg {
  color: var(--color-ink);
}

/* -- Breadcrumbs: hairline trail above a listing/content header. -- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  font-size: var(--fs-meta);
  color: var(--color-ink-faint);
}
.breadcrumbs a {
  color: var(--color-ink-soft);
}
.breadcrumbs a:hover {
  color: var(--color-accent-deep);
}
.breadcrumbs .crumb-sep {
  color: var(--color-rule-strong);
}
.breadcrumbs .crumb-current {
  color: var(--color-ink);
}

/* Standard vertical rhythm for a content page's top block (below the breadcrumbs). */
.page-head {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.page-head .kicker {
  display: block;
  margin-bottom: var(--space-4);
}
.page-head h1 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  margin-bottom: var(--space-4);
  max-width: 18em;
}
.page-head .lede {
  font-size: var(--fs-lede);
  color: var(--color-ink-soft);
  line-height: 1.55;
  max-width: 40em;
}

/* Bottom padding for any section that closes a page. */
.section-pad {
  padding-bottom: var(--space-9);
}

/* -- Category listing: subcategory chips, tag filters, active chips, pagination, empty. -- */
.subcats {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.subcats a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-soft);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: border-color var(--dur-base), color var(--dur-base);
}
.subcats a:hover,
.subcats a[aria-current="page"] {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

/* Filter form: facet groups of checkboxes over a hairline rule. */
.filters {
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  padding: var(--space-5) 0;
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
  align-items: flex-start;
}
.filter-group {
  min-width: 150px;
}
.filter-group__label {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-ink-faint);
  margin-bottom: var(--space-3);
}
.filter-opt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  padding: 3px 0;
  cursor: pointer;
}
.filter-opt input {
  accent-color: var(--color-accent);
  width: 15px;
  height: 15px;
}

/* Results header: match count + removable active-filter chips. */
.results-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.results-count {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-soft);
}
.active-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-deep);
  border: 1px solid var(--color-accent);
  background: var(--color-accent-tint);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}
.chip .icon {
  width: 12px;
  height: 12px;
}
.chip:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Pagination: prev/next + numbered links, centered under the grid. */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-soft);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.pagination a:hover {
  color: var(--color-ink);
  background: var(--color-surface);
}
.pagination .is-current {
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-accent);
}
.pagination .is-disabled {
  color: var(--color-rule-strong);
}
.pagination .icon {
  width: 14px;
  height: 14px;
}

/* Empty / coming-soon state for a filtered grid or empty category. */
.empty-state {
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  color: var(--color-ink-soft);
}
.empty-state p {
  font-size: var(--fs-lede);
  margin-bottom: var(--space-5);
}

/* -- Recipe page. -- */
.recipe {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: var(--space-9);
}
.recipe-hero {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: var(--color-media-placeholder);
  margin: var(--space-5) 0 var(--space-6);
  box-shadow: var(--shadow-hero);
}
.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.recipe-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-3);
}
.recipe-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-rule-strong);
}
.recipe-meta .icon {
  width: 15px;
  height: 15px;
  color: var(--color-accent);
  vertical-align: -0.15em;
}
.recipe-byline {
  font-size: var(--fs-meta);
  color: var(--color-ink-faint);
  margin-bottom: var(--space-5);
}
.recipe-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-6);
}
.recipe-actions .btn {
  padding: 9px 18px;
  font-size: var(--fs-meta);
}
.headnote {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--color-ink-soft);
  max-width: 42em;
  margin-bottom: var(--space-6);
}

/* Hairline section title inside a recipe ("Ingredients", "Steps", "Rate this recipe"). */
.recipe-sec {
  border-top: 2px solid var(--color-ink);
  padding-top: var(--space-4);
  margin: var(--space-8) 0 var(--space-5);
}
.recipe-sec h2 {
  font-size: 28px;
}
.ingredients-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--color-ink-faint);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
}
.ingredients {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  max-width: 42em;
}
.ingredients li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-rule);
  font-size: var(--fs-body);
}
.ingredients li .note {
  color: var(--color-ink-faint);
}
.approx-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-meta);
  color: var(--color-ink-faint);
  margin-bottom: var(--space-4);
}
.approx-note .icon {
  width: 15px;
  height: 15px;
  color: var(--color-gold);
}

/* Air-fryer settings callout: the temp/time set apart from step prose (§ acceptance). */
.airfryer-callout {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-ink);
  color: var(--color-on-dark);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0 var(--space-6);
  max-width: 42em;
}
.airfryer-callout .icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent-soft);
  flex: none;
}
.airfryer-callout .label {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-on-dark-faint);
  font-weight: var(--fw-bold);
}
.airfryer-callout .value {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: 22px;
}
.airfryer-callout .value .u {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-on-dark-soft);
  font-weight: var(--fw-semibold);
}

/* Numbered steps (rendered from steps markdown via the engine renderer). */
.steps {
  max-width: 42em;
}

/* Member-feature seams (epic-008): sign-in prompts standing in for the live rate/comment widgets. */
.member-seam {
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  color: var(--color-ink-soft);
  font-size: var(--fs-sm);
  max-width: 42em;
}
.member-seam a {
  color: var(--color-accent-deep);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Related recipes reuse .recipe-grid; the gear block reuses .gear/.gcard. */
.gear__heading {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-5);
}

/* -- Article page. -- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: var(--space-9);
}
.article-hero {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--color-media-placeholder);
  margin: var(--space-5) 0 var(--space-3);
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-attribution {
  font-size: var(--fs-caption);
  color: var(--color-ink-faint);
  margin-bottom: var(--space-6);
}
.article-attribution a {
  color: var(--color-ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.article-byline {
  font-size: var(--fs-meta);
  color: var(--color-ink-faint);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-6);
}

/* Related-content rows (article "Related", search article/tool hits): titled link rows over hairlines. */
.result-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 46em;
}
.result-row {
  border-bottom: 1px solid var(--color-rule);
}
.result-row a {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  transition: color var(--dur-base), padding-left var(--dur-base);
}
.result-row a:hover {
  color: var(--color-accent);
  padding-left: var(--space-2);
}
.result-row .r-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
}
.result-row .r-meta {
  font-size: var(--fs-caption);
  color: var(--color-ink-faint);
}

/* -- Search results page. -- */
.search-page {
  padding-top: var(--space-6);
  padding-bottom: var(--space-9);
}
.search-page h1 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-6);
}
.search-group {
  margin-bottom: var(--space-8);
}
.search-group > .kicker {
  display: block;
  margin-bottom: var(--space-5);
}

/* ---- Content-page responsive: single-column recipe/guide + wrapping meta on small screens. ---- */
@media (max-width: 860px) {
  .filters {
    gap: var(--space-5);
  }
}

/* ============================================================================
   11. Print (epic-003, task-014 acceptance): a recipe prints as title + meta +
       ingredients + steps only — no site chrome, no comments/affiliate/related.
   ============================================================================ */
@media print {
  .marquee,
  header.site,
  footer.site,
  .breadcrumbs,
  .recipe-actions,
  .member-seam,
  .gear,
  .recipe-related,
  .scaler-controls,
  .recipe-sec--rate,
  #rating-widget,
  .recipe-sec--comments,
  .safety-note .icon {
    display: none !important;
  }
  body {
    background: #fff;
    background-image: none;
    color: #000;
  }
  .recipe {
    max-width: none;
  }
  .airfryer-callout {
    background: #fff;
    color: #000;
    border: 1.5px solid #000;
  }
  .airfryer-callout .label,
  .airfryer-callout .value .u {
    color: #000;
  }
  a {
    color: #000;
  }

}

/* Member-submitted recipe photos (F-035): an unframed editorial contact sheet with a compact upload
   control below. The grid has stable image boxes so loading an approved photo never shifts the page. */
.recipe-made {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-rule);
}
.recipe-made h2 {
  margin-bottom: var(--space-4);
}
.recipe-made__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.recipe-made__item {
  margin: 0;
}
.recipe-made__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-media-placeholder);
}
.recipe-made__item figcaption {
  padding-top: var(--space-2);
  color: var(--color-ink-faint);
  font-size: var(--fs-meta);
}
.recipe-made__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  max-width: 36rem;
}
.recipe-made__form label {
  display: grid;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
}
.recipe-made__form input[type="file"] {
  max-width: 100%;
}
.recipe-made__hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-ink-faint);
  font-size: var(--fs-meta);
}
@media (max-width: 520px) {
  .recipe-made__form {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Member auth + account (F-016/F-017, tasks 032/037). Scoped section: the
   sign-in/up/reset "auth card" and the account-settings page. Uses the shared
   tokens, buttons (.btn*), and .kicker; only layout/spacing unique to these
   screens lives here. Light theme only, like the rest of the system.
   ========================================================================== */

/* Centered editorial auth card (sign in / register / reset / verify). */
.auth {
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--gutter) var(--space-9);
}
.auth-card {
  width: 100%;
  max-width: 27rem;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-6) var(--space-6);
}
.auth-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: 1.05;
  margin: var(--space-2) 0 0;
}
.auth-lede {
  color: var(--color-ink-soft);
  font-size: var(--fs-sm);
  margin: var(--space-3) 0 var(--space-5);
  max-width: 34em;
}

/* Inline alert banners: meaning is carried by text + role, not colour alone (§8). */
.auth-alert {
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  line-height: 1.45;
  margin-bottom: var(--space-4);
}
.auth-alert--error {
  border-color: var(--color-accent);
  background: var(--color-accent-tint);
  color: var(--color-accent-deep);
}
.auth-alert--notice {
  border-color: var(--color-rule-strong);
  background: var(--color-bg);
  color: var(--color-ink-soft);
}
.auth-alert--success {
  border-color: var(--color-gold);
  background: #f7efdd; /* soft gold wash; a success tint the token set doesn't otherwise provide */
  color: #6d4d12; /* darkened gold for AA body text on the wash */
}

/* Form fields (block-level counterparts to the header .search input). */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.auth-form--inline {
  margin-bottom: var(--space-5);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-ink);
}
.field__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color var(--dur-base);
}
.field__input:focus {
  outline: none;
  border-color: var(--color-ink);
}
.field__input[aria-invalid="true"] {
  border-color: var(--color-accent);
}
.field__help {
  font-size: var(--fs-meta);
  color: var(--color-ink-soft);
  margin: 0;
}

/* Full-width primary submit + Google button on the auth card. */
.auth-submit,
.auth-google {
  width: 100%;
  justify-content: center;
}
.auth-google {
  margin-bottom: 0;
}
.auth-google .icon {
  width: 18px;
  height: 18px;
}

/* "or" divider between the Google button and the email/password form. */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--color-ink-faint);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-rule);
}

/* Switch + forgot-password links under the form. */
.auth-switch {
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  margin: var(--space-5) 0 0;
  text-align: center;
}
.auth-switch a {
  color: var(--color-accent-deep);
  font-weight: var(--fw-semibold);
}
.auth-forgot {
  margin: 0;
  font-size: var(--fs-sm);
}
.auth-forgot a {
  color: var(--color-ink-soft);
}
.auth-forgot a:hover {
  color: var(--color-ink);
}

/* ---- Account settings page (F-017). `.account-page` (not `.account`, which is the header account
   menu in §5.1) so the settings sections stack in a column instead of inheriting the header's flex. ---- */
.account-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-8) var(--gutter) var(--space-9);
}
.account-page .auth-title {
  margin-bottom: var(--space-6);
}
.account-section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-rule);
}
.account-section:first-of-type {
  border-top: 0;
}
.account-section__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  margin: 0 0 var(--space-4);
}
.account-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.account-row__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-faint);
  min-width: 8rem;
}
.account-row__value {
  font-size: var(--fs-body);
  color: var(--color-ink);
}
.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule-strong);
}
.account-badge .icon {
  width: 13px;
  height: 13px;
}
.account-badge--ok {
  color: #2f6b3a; /* verified green: decorative badge, paired with the text label for non-colour meaning */
  border-color: #b7d3ba;
  background: #eaf3ea;
}
.account-badge--warn {
  color: var(--color-accent-deep);
  border-color: var(--color-accent);
  background: var(--color-accent-tint);
}
.account-note {
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  line-height: 1.5;
  margin: 0 0 var(--space-4);
  max-width: 40em;
}
.account-section--danger .account-section__title {
  color: var(--color-accent-deep);
}

/* Destructive button: the design system has no danger variant, so this is a deliberate, scoped
   override for the single delete-account action — outlined paprika, filling on hover/focus. */
.btn--danger {
  border-color: var(--color-accent);
  color: var(--color-accent-deep);
  background: transparent;
}
.btn--danger:hover,
.btn--danger:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.account-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.account-topbar .account-note {
  margin: 0;
}
.account-signout {
  margin: 0;
}

/* ==========================================================================
   Member engagement + serving scaler + recipe book + shopping list
   (epic-008 F-007/F-008/F-009/F-010, epic-004 F-005). Light theme only, like
   the rest of the system; built on the shared tokens and .btn* buttons.
   ========================================================================== */

/* -- Serving scaler + unit toggle (F-005, task-020). The controls sit above the
   scaled ingredient list, which reuses .ingredients. -- */
.scaler-controls {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.scaler-label {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-ink-faint);
  margin-right: var(--space-2);
}
.serving-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
/* No gap: .unit-opt borders are designed to join into one segmented pill. */
.unit-toggle {
  display: inline-flex;
  align-items: center;
}
.serving-count {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: 22px;
  min-width: 1.6em;
  text-align: center;
}
.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  font-weight: var(--fw-bold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-base), color var(--dur-base);
}
.step-btn:hover {
  background: var(--color-ink);
  color: var(--color-on-dark);
}
.step-btn--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
/* Unit toggle: a paired segmented control; the active option reads as pressed. */
.unit-opt {
  padding: 6px 14px;
  border: 1.5px solid var(--color-rule-strong);
  background: transparent;
  color: var(--color-ink-soft);
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.unit-opt:first-of-type {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}
.unit-opt:last-of-type {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  border-left: none;
}
.unit-opt:hover {
  color: var(--color-ink);
}
.unit-opt--active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-on-dark);
}

/* -- Save / unsave toggle (F-009, task-035). A heart that fills once saved. -- */
.save-toggle {
  display: inline-flex;
}
.save-btn .icon {
  width: 17px;
  height: 17px;
}
.save-btn.is-saved {
  background: var(--color-accent-tint);
  border-color: var(--color-accent-deep);
  color: var(--color-accent-deep);
}
.save-btn.is-saved .icon {
  fill: var(--color-accent-deep);
}
.save-btn--compact {
  padding: 8px;
  border-radius: var(--radius-pill);
}

/* -- Rating widget (F-007, task-033). The member's own 1-5 control; the read-only
   community aggregate below reuses .rating .stars. -- */
.rating-widget {
  max-width: 42em;
}
.rating-widget__label {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-ink-faint);
  margin-bottom: var(--space-2);
}
.star-input {
  display: inline-flex;
  gap: 2px;
  margin-bottom: var(--space-3);
}
.star-input__star {
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--color-rule-strong);
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.star-input__star .icon {
  width: 30px;
  height: 30px;
}
.star-input__star:hover {
  transform: scale(1.08);
}
.star-input__star.is-on {
  color: var(--color-gold);
}
.star-input__star.is-on .icon {
  fill: var(--color-gold);
}
.star-input__star:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* -- Comment thread (F-008, task-034). -- */
.comments {
  max-width: 42em;
}
.comments__head {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-4);
}
.comments__error {
  color: var(--color-accent-deep);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
}
.comments__empty {
  color: var(--color-ink-faint);
  font-size: var(--fs-sm);
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.comment-form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1.5px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  resize: vertical;
}
.comment-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.comment-form__submit {
  align-self: flex-start;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-rule);
}
.comment--pending {
  opacity: 0.85;
}
.comment__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-meta);
  color: var(--color-ink-faint);
  margin-bottom: var(--space-2);
}
.comment__author {
  font-weight: var(--fw-bold);
  color: var(--color-ink);
}
.comment__pending-flag {
  color: var(--color-gold);
  font-style: italic;
}
.comment__body {
  font-size: var(--fs-body);
  line-height: 1.55;
  margin: 0;
}

/* -- Recipe book "My Recipes" (F-009, task-035). Cards reuse .recipe-grid/.recipe-card. -- */
.recipe-book-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.recipe-book-toolbar__lead {
  font-size: var(--fs-sm);
  color: var(--color-ink-faint);
  margin: 0;
}
.saved-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.saved-card__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.saved-select {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-meta);
  color: var(--color-ink-soft);
  cursor: pointer;
}
.recipe-book-empty {
  text-align: center;
}
.recipe-book-empty__lead {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
}

/* -- Shopping list (F-010, task-036). Print-friendly; the checkbox is an in-store tick. -- */
.shopping-form {
  display: contents;
}
.shopping-submit {
  margin-top: var(--space-4);
}
.shopping-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-soft);
  text-decoration: none;
  margin-bottom: var(--space-5);
}
.shopping-back .icon {
  width: 16px;
  height: 16px;
}
.shopping-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.shopping-recipes {
  font-size: var(--fs-sm);
  color: var(--color-ink-faint);
  margin: var(--space-2) 0 0;
}
.shopping-aisle {
  margin-bottom: var(--space-6);
  max-width: 42em;
}
.shopping-aisle__name {
  font-size: var(--fs-h4);
  border-bottom: 2px solid var(--color-ink);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
}
.shopping-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-rule);
  cursor: pointer;
}
.shopping-item__check {
  width: 18px;
  height: 18px;
  flex: none;
}
.shopping-item__qty {
  font-weight: var(--fw-bold);
  min-width: 5em;
}
.shopping-item__name {
  flex: 1;
}
.shopping-item__from {
  font-size: var(--fs-meta);
  color: var(--color-ink-faint);
}
.shopping-item__note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-meta);
  color: var(--color-gold);
}
.shopping-item__note .icon {
  width: 14px;
  height: 14px;
}

@media print {
  header.site,
  footer.site,
  .shopping-back,
  .shopping-print,
  .shopping-item__check {
    display: none !important;
  }
  .shopping-item {
    cursor: default;
  }
}
