
/* ═══════════════════════════════════════
    TOKENS — identical to homepage
    ═══════════════════════════════════════ */
:root {
  --header:     #FFFFFF;
  --header-button: #EAF4EE;
  --hero:       #cff4df;
  --green:      #26864b;
  --green-pale: #EAF4EE;
  --green-paler:#f1fef1;
  --altgreen:   #42b06a;
  --light-gray: #7b927efe;
  --bg:         #F7F9F7;
  --card:       #FFFFFF;
  --text:       #182220;
  --muted:      #4e635c;
  --border:     #26864b;
  --radius:     10px;
  --tagbg:      #e3ffee;
  --dietarytag:     #349457;
  --efforttag:      #0051b4;
  --ingredientstag: #c37b00;
  --categorytag:    #ff0000;
  --equipmenttag:   #9900ff;
}
[data-theme="dark"] {
  --header:     #192319;
  --header-button: #263e30;
  --hero:       #1a2c22;
  --green:      #2fb05f;
  --green-pale: #192A20;
  --green-paler:#2c4838;
  --altgreen:   #45bb70;
  --light-gray: #7b927efe;
  --bg:         #0c1712;
  --card:       #192319;
  --text:       #DCF0E3;
  --muted:      #aed9c9;
  --border:     #314e3c;
  --tagbg:      #192A20;
  --dietarytag:     #4ADE80;
  --efforttag:      #60A5FA;
  --ingredientstag: #F59E0B;
  --categorytag:    #ff4545;
  --equipmenttag:   #c064fd;
}


/* ═══════════════════════════════════════
    RESET
    ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg); color: var(--text);
  scroll-behavior: smooth;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body  { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-content {flex: 1;}
a     { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════
    HEADER
    ═══════════════════════════════════════ */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px);
  background: var(--header); border-bottom: 1px solid var(--border);
  z-index: 100; padding: 0 24px;
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 96px; gap: 20px;
}
.logo {
  display: flex; align-items: flex-end;
  background: var(--header-button); border-radius: 20px; border: 2px solid var(--border); padding: 4px;
}
.desktop-nav { margin-left: auto; }

nav { display: flex; gap: 24px; }
nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.15s; }
nav a:hover { color: var(--text); }
.theme-btn {
  background: var(--header-button); border: 1px solid var(--border); min-width: 135px;
  border-radius: 20px; padding: 6px 14px; margin-left: 40px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--muted); transition: color 0.15s;
}
.theme-btn:hover { color: var(--text); }

/* ── Mobile controls — hidden on desktop ── */
.mobile-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

/* Mini theme icon button */
.theme-icon-btn {
  background: var(--header-button);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

/* The three lines */
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Animate into X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.mobile-nav {
  position: absolute;  /* takes it out of normal flow */
  top: 96px;           /* height of your header */
  right: 0;            /* hugs the right edge */
  width: 200px;        /* fixed width — adjust to taste */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 99;
  flex-direction: column;
  gap: 0;
  display: none;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  margin: 0;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--green-pale); }

/* ── Responsive breakpoint ─────────────── */
@media (max-width: 700px) {
  .desktop-nav   { display: none; }
  .desktop-theme { display: none; }
  .mobile-controls { display: flex; }
}

/* Force mobile nav hidden on desktop regardless of open state */
@media (min-width: 701px) {
  .mobile-nav { display: none !important; }
}

/* ═══════════════════════════════════════
    RECIPE LAYOUT
    ═══════════════════════════════════════ */
.recipe-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }

.breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { text-decoration: underline; }

.recipe-title { font-size: clamp(28px,5vw,44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.recipe-desc  { font-family: 'Source Serif 4', serif; font-size: 17px; color: var(--muted); line-height: 1.65; margin-bottom: 28px; max-width: 60ch; }


/* ═══════════════════════════════════════
    TAGS
    ═══════════════════════════════════════ */

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--green-pale);
}


.tag.dietary  { border-color: var(--dietarytag); color: var(--dietarytag); }
.tag.effort   { border-color: var(--efforttag); color: var(--efforttag); }
.tag.ingredients   { border-color: var(--ingredientstag); color: var(--ingredientstag); }
.tag.category { border-color: var(--categorytag); color: var(--categorytag); }
.tag.equipment { border-color: var(--equipmenttag); color: var(--equipmenttag); }

.tag.has-tooltip {
  position: relative;
  cursor: pointer;
}

/* Tooltip box */
.tag.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: 'Source Serif 4', serif;
  font-size: 13px;
  line-height: 1.5;
  width: max-content;
  max-width: 220px;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}

/* Arrow pointing down toward the tag */
.tag.has-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 11;
}

/* Show when active class is toggled by click */
.tag.has-tooltip.active::after,
.tag.has-tooltip.active::before {
  opacity: 1;
}



/* ═══════════════════════════════════════
    META BAR
    ═══════════════════════════════════════ */

.meta-bar { display: flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; margin-bottom: 28px; }
.meta-item { flex: 1 1 110px; padding: 14px 18px; border-right: 1px solid var(--border); }
.meta-item:last-child { border-right: none; }
.meta-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.meta-value  { font-size: 15px; font-weight: 700; }

.recipe-img img { width: 100%; height: 100%; border-radius: var(--radius); margin-bottom: 44px; object-fit: cover; display: block; align-items: center; justify-content: center; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════
    SCALER
    ═══════════════════════════════════════ */
.scaler-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.section-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.scaler { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); max-width: 180px; }
.scaler-btn { background: none; border: none; padding: 8px 14px; font-size: 18px; font-weight: 700; color: var(--green); transition: background 0.15s; }
.scaler-btn:hover { background: var(--green-pale); }
.scaler-display { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; padding: 8px 10px; min-width: 100px; text-align: center; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* ═══════════════════════════════════════
    INFO BUTTON & CARD
    — works on both ingredients and steps
    ═══════════════════════════════════════ */

/* The ℹ button — hidden by default.
    Only shows when parent li has data-info attribute */
.info-btn {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--light-gray);
  background: var(--green-paler);
  color: var(--muted);
  font-style: italic;
  font-family: Georgia, serif;
  font-size: 13px;
  display: none;            /* hidden unless li has data-info */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;        /* pushes to far right of flex row */
  transition: all 0.15s;
}
/* Show button only when parent has info */
li[data-info] .info-btn { display: flex; }

.info-btn:hover, .info-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-pale);
}

/* The info card — sits on its own flex row below the content */
.info-card {
  flex: 0 0 100%;           /* spans full width on its own row */
  display: none;
  margin-top: 10px;
  padding: 13px 15px;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.info-card.open { display: block; }

/* Equipment note inside the info card */
.info-equip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  line-height: 1.55;
}
.info-equip::before { content: '⚙ '; }


/* ═══════════════════════════════════════
    Pre-Recipe Section
  ═══════════════════════════════════════ */

.pre-recipe {
  border: var(--border) 2px solid;
  padding: 24px;
  margin: 0 0 32px;
  width: fit-content;
  min-width: 356p;
}

/* ═══════════════════════════════════════
    NO SLEEP BUTTON
  ═══════════════════════════════════════ */

.no-sleep-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 24px;
}

.no-sleep-label input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}




/* ═══════════════════════════════════════
    INGREDIENTS
    ═══════════════════════════════════════ */
.ingredients-list { list-style: none; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; margin-bottom: 48px; }

.ingredient {
  display: flex;
  flex-wrap: wrap;            /* lets info-card drop to its own row */
  align-items: center;
  gap: 0;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
  column-gap: 14px;
}
.ingredient:last-child { border-bottom: none; }
.ingredient:hover { background: var(--green-pale); }

/* Circular checkbox */
.ing-check { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.ingredient.checked .ing-check { background: var(--green); border-color: var(--green); }
.ingredient.checked .ing-check::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }

.ing-text { flex: 1; font-size: 15px; line-height: 1.4; transition: opacity 0.15s; }
.ing-text .amount { font-weight: 700; }
.ingredient.checked .ing-text { opacity: 0.38; text-decoration: line-through; }

/* Ingredient info card indented past checkbox */
.ingredient .info-card { padding-left: 34px; /* 20px check + 14px gap */ }

/* ═══════════════════════════════════════
    RECIPE OPTION SELECTOR
    ═══════════════════════════════════════ */
.option-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-bottom: 24px;
}
.option-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); }
.option-chip {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  transition: all 0.15s;
}
.option-chip:hover { border-color: var(--green); color: var(--green); }
.option-chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.option-chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ═══════════════════════════════════════
    INSTRUCTIONS
    ═══════════════════════════════════════ */
.steps-hint { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-bottom: 8px; }

.steps-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.steps-list > .step {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.steps-list > .step + .step {
  border-top: 1px solid var(--border);
}
.step {
  display: flex;
  flex-wrap: wrap;            /* lets info-card drop to its own row */
  align-items: flex-start;
  column-gap: 18px;
  padding: 15px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
}
.step:hover { background: var(--green-pale); }

.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-pale); border: 2px solid var(--green); color: var(--green);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
}
.step.done .step-num { background: var(--green); color: #fff; }

.step-text { flex: 1; font-family: 'Source Serif 4', serif; font-size: 16px; line-height: 1.65; padding-top: 4px; transition: opacity 0.15s; }
.step.done .step-text { opacity: 0.38; text-decoration: line-through; }

/* Step info button sits on the same row, pushed right */
.step .info-btn { margin-top: 4px; }

/* Step info card indented past step number */
.step .info-card { padding-left: 50px; /* 32px num + 18px gap */ margin-top: 10px; }


/* ═══════════════════════════════════════
    NOTES + PRINT
    ═══════════════════════════════════════ */
.notes { background: var(--green-pale); border: 1px solid var(--border); border-radius: 0px; padding: 24px; margin-bottom: 32px; margin-top: 64px; }
.notes-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.notes p { font-family: 'Source Serif 4', serif; font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.notes p:last-child { margin-bottom: 0; }

.print-btn { background: none; margin-bottom: 0px; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all 0.15s; }
.print-btn:hover { border-color: var(--green); color: var(--green); }

/* ── PRINT MODAL ─────────────────────────── */
.print-overlay {
  position: fixed;
  inset: 0;                        /* covers entire screen */
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.print-overlay[hidden] { display: none; }

.print-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.print-modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.print-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.print-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
}

/* Chip style for text size */
.print-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.print-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s;
}
.print-chip:hover { border-color: var(--green); color: var(--green); }
.print-chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* Checkboxes */
.print-toggles { display: flex; flex-direction: column; gap: 10px; }
.print-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.print-toggle input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Action buttons */
.print-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.print-cancel {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s;
}
.print-cancel:hover { border-color: var(--green); color: var(--green); }
.print-confirm {
  background: var(--green);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.15s;
}
.print-confirm:hover { opacity: 0.86; }

/* ════════════════════════════════════════════════
   PRINT STYLES — add to the bottom of your stylesheet.
   Delete your old @media print rules first (the ones
   using body.print-show-info, .print-only, etc.).
   Your existing .print-overlay / .print-card / .print-chip
   modal styles stay as they are.
   ════════════════════════════════════════════════ */

/* Without this, .print-group's display:flex overrides the hidden attribute
   and the equipment section would show even for single-variant recipes */
.print-group[hidden] { display: none; }

/* The generated print copy never shows on screen */
#print-content { display: none; }

@media print {

  @page { margin: 18mm; }

  /* Plain white paper, regardless of dark mode */
  html, body { background: #fff !important; }

  /* Hide the entire normal page — only the generated copy prints */
  body > *:not(#print-content) { display: none !important; }

  /* Everything inside uses em units, so the Small/Medium/Large
     choice (set on this one element) scales the whole page */
  #print-content {
    display: block !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  #print-content[data-text-size="small"]  { font-size: 9.5pt; }
  #print-content[data-text-size="medium"] { font-size: 11pt; }
  #print-content[data-text-size="large"]  { font-size: 13pt; }

  /* Header: optional photo + title/description */
  .pc-header { display: flex; gap: 1.2em; align-items: flex-start; margin-bottom: 0.8em; }
  .pc-img    { width: 9em; height: 6.7em; object-fit: cover; flex-shrink: 0; }
  .pc-title  { font-size: 1.8em; line-height: 1.15; margin: 0 0 0.2em; }
  .pc-desc   { font-size: 0.95em; margin: 0; color: #333; }

  .pc-tags { font-size: 0.85em; color: #444; margin: 0.4em 0; }
  .pc-meta { font-size: 0.85em; color: #222; margin: 0.4em 0; }

  #print-content hr { border: 0; border-top: 1px solid #999; margin: 0.6em 0; }

  #print-content h2 {
    font-size: 1.2em;
    margin: 1em 0 0.4em;
    padding-bottom: 0.15em;
    border-bottom: 1px solid #999;
    break-after: avoid;
  }

  /* Ingredients (bullets) and steps (numbers) */
  .pc-ingredients, .pc-steps { margin: 0 0 0.5em 1.4em; padding: 0; }
  .pc-ingredients li, .pc-steps li { margin-bottom: 0em; break-inside: avoid; }

  /* Optional info notes under an ingredient or step */
  .pc-info {
    font-style: italic;
    font-size: 0.88em;
    color: #444;
    margin: 0.2em 0 0 0.6em;
    padding-left: 0.6em;
    border-left: 2px solid #bbb;
  }

  .pc-note { margin: 0 0 0.4em; }

  .pc-nutrition-table,
.pc-nutrition-table tbody {
  display: grid;
  grid-template-columns: repeat(3, max-content max-content);
  column-gap: 1em;
}

.pc-nutrition-table tr {
  display: contents;
}

.pc-nutrition-table td {
  padding: 0.15em 0;
}

  .pc-footer { font-size: 0.75em; color: #666; text-align: center; margin-top: 1em; }
}

/* ═══════════════════════════════════════
    Nutrition Information
    ═══════════════════════════════════════ */
.nutrition { background: var(--green-pale); border: 1px solid var(--border); border-radius: 0px; padding: 24px; margin-bottom: 32px; min-width: 356px; max-width: 712px; width: fit-content;}
.nutrition-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.nutrition p { font-family: 'Source Serif 4', serif; font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.nutrition p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════
    Last Updated
    ═══════════════════════════════════════ */

.date-last-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 8px;
}

/* ═══════════════════════════════════════
    FOOTER
    ═══════════════════════════════════════ */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 36px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--green); }

/* ═══════════════════════════════════════
    RESPONSIVE + PRINT
    ═══════════════════════════════════════ */
@media (max-width: 640px) {
  nav { display: none; }
  .meta-item { flex: 1 1 50%; }
  .recipe-img { height: 210px; }
  .step .info-card { padding-left: 0; }
  .ingredient .info-card { padding-left: 0; }
}
@media print {
  .site-header, .print-btn, footer, .info-btn, .info-card, .option-row { display: none !important; }
  .step, .ingredient { break-inside: avoid; }
}










/*!!!!!!!!!!! HOMEPAGE STYLES !!!!!!!!!!!*/


/* ══════════════════════════════════════════
    HERO
    ══════════════════════════════════════════ */
.hero {
  background: var(--hero);
  /*border-bottom: 1px solid var(--border);*/
  padding: 92px 24px 48px;
  text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  color: var(--green);
  margin-bottom: 0px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero p em { font-style: normal; font-size: 20px; }

.hero-sub {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 56px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Search bar */
.search-wrap {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  margin-bottom: 32px;
  text-align: left;
}
.search {
  display: flex;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: var(--card);
  overflow: hidden;
}
.search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 16px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  outline: none;
}
.search input::placeholder { color: var(--muted); }
.search button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.15s;
}
.search button:hover { opacity: 0.86; }
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.search-results[hidden] { display: none; }
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text);
  transition: background 0.15s;
}
.search-result + .search-result { border-top: 1px solid var(--border); }
.search-result:hover,
.search-result:focus-visible {
  background: var(--green-pale);
  outline: none;
}
.search-result-image {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--green-pale);
}
.search-result-placeholder {
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
}
.search-result-title { font-weight: 600; }
.search-empty {
  margin: 0;
  padding: 14px 12px;
  color: var(--muted);
}
.search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-transition {
  height: 56px;
  background: linear-gradient(to bottom, var(--hero), var(--bg));
}

/* ══════════════════════════════════════════
    CATEGORY CHIPS
    ══════════════════════════════════════════ */
.categories {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.cat-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s;
}
.chip:hover, .chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ══════════════════════════════════════════
    SECTIONS WRAPPER
    ══════════════════════════════════════════ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}
.section + .section { padding-top: 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.section-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

/* ══════════════════════════════════════════
    RECIPE CARDS
    ══════════════════════════════════════════ */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.card {
  flex: 1 1 290px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}
.home-recipe-link { display: block; height: 100%; color: inherit; }

.thumb {
  height: 176px;
  position: relative;
  overflow: hidden;
  background: var(--green-pale);
}
.thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.pasta    { background: linear-gradient(140deg,#B84E18 0%,#E07C38 55%,#F4AD6A 100%); }
.thumb.soup     { background: linear-gradient(140deg,#9A6918 0%,#C89A38 55%,#E8CC78 100%); }
.thumb.chicken  { background: linear-gradient(140deg,#7A4A18 0%,#B87A38 55%,#DEAD70 100%); }
.thumb.salad    { background: linear-gradient(140deg,#2A6030 0%,#48904E 55%,#78BE78 100%); }
.thumb.steak    { background: linear-gradient(140deg,#601818 0%,#9A3830 55%,#C87060 100%); }
.thumb.bread    { background: linear-gradient(140deg,#886020 0%,#B89040 55%,#E0C07A 100%); }

/* Category tag overlaid on the image */
.thumb-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.52);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.card-body { padding: 16px; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  padding-bottom: 16px;
}
.card-desc {
  font-family: 'Source Serif 4', serif;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.recipe-directory .section-head { margin-bottom: 16px; }
.recipe-directory-list { display: flex; flex-direction: column; gap: 10px; }
.directory-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.directory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}
.directory-card-link {
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-height: 104px;
  color: inherit;
}
.directory-card-thumb {
  flex: 0 0 128px;
  height: auto;
  overflow: hidden;
  background: var(--green-pale);
}
.directory-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.directory-card-copy { min-width: 0; padding: 10px 16px 10px 0; }
.directory-card-category {
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}
.recipe-directory .card-title { margin: 3px 0 5px; padding: 0; }
.recipe-directory .card-desc { margin: 0; -webkit-line-clamp: 2; }

@media (max-width: 520px) {
  .directory-card-link { gap: 12px; min-height: 66px; }
  .directory-card-thumb { flex-basis: 88px; }
  .directory-card-copy { padding: 8px 12px 8px 0; }
  .recipe-directory .card-title { font-size: 14px; }
}

/* ══════════════════════════════════════════
    FEEDBACK
    ══════════════════════════════════════════ */
.fbsection {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 24px;
}

.feedback { background: var(--green-pale); border: 1px solid var(--border); border-radius: 2px; padding: 24px; margin-bottom: 32px; max-width:700px; }
.feedback-label { font-family: 'JetBrains Mono', monospace; font-size: 16px; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.feedback p { font-family: 'Source Serif 4', serif; font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.feedback p:last-child { margin-bottom: 0; }











/* ══════════════════════════════════════════
    TEMP PAGES
    ══════════════════════════════════════════ */

.oopsie {
  background: var(--green-pale);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px 72px;
  
  text-align: center;
}