/* Baba's Recipe Book — Shared Styles */
:root {
  --bg: #fdf8f0;
  --card-bg: #fff9f0;
  --text: #2c1810;
  --accent: #8b4513;
  --accent-light: #c4763a;
  --border: #e8d5b7;
  --shadow: 0 2px 8px rgba(44, 24, 16, 0.12);
  --shadow-hover: 0 4px 16px rgba(44, 24, 16, 0.2);
  --font: Georgia, "Times New Roman", serif;
  --radius: 8px;
  --max-w: 1100px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { line-height: 1.3; font-weight: normal; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ─── Header ─── */
.site-header {
  background: var(--card-bg);
  border-bottom: 2px solid var(--border);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  flex: 1;
  white-space: nowrap;
}

.site-title .flourish { color: var(--accent-light); font-size: 1.2em; }

.back-link {
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.75;
  white-space: nowrap;
}
.back-link:hover { opacity: 1; text-decoration: none; }

.header-nav { display: flex; gap: 1rem; align-items: center; }
.nav-link {
  font-size: 0.9rem;
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav-link:hover { background: var(--border); text-decoration: none; }

/* ─── Search ─── */
.search-section { padding: 2rem 0 1rem; }

.search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,69,19,0.12); }
.search-input::placeholder { color: #a08060; }

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
  font-size: 1rem;
}

/* ─── Tag Cloud ─── */
.tag-section { padding: 0.5rem 0 1.5rem; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.tag-chip:hover, .tag-chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ─── Recipe Grid ─── */
.grid-section { padding: 1rem 0 3rem; }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.recipe-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-image-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--border); }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.recipe-card:hover .card-image-wrap img { transform: scale(1.04); }

.card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.card-title { font-size: 1.15rem; color: var(--text); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-meta { font-size: 0.8rem; color: #7a5c3a; display: flex; gap: 0.8rem; }

.card-desc { font-size: 0.88rem; color: #5a3e28; flex: 1; }

.card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; padding-top: 0.5rem; }
.card-tag {
  padding: 0.15rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ─── Category Sections ─── */
.category-section { padding: 1.5rem 0 1rem; }
.category-section + .category-section { border-top: 1px solid var(--border); margin-top: 1rem; }

.category-header { margin-bottom: 1.25rem; }
.category-title {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}
.category-desc {
  font-size: 0.92rem;
  color: #7a5c3a;
  font-style: italic;
}

/* ─── Desserts modern grid ─── */
.desserts-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.desserts-grid .recipe-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(44,24,16,0.08);
  background: #fff;
}
.desserts-grid .recipe-card:hover {
  box-shadow: 0 6px 24px rgba(44,24,16,0.14);
}
.desserts-grid .card-image-wrap {
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, #fbe8d5 0%, #f5d5c0 100%);
}
.desserts-grid .card-image-wrap img { border-radius: 12px 12px 0 0; }
.desserts-grid .card-body { padding: 1rem 1.2rem 1.3rem; }
.desserts-grid .card-title { font-size: 1.1rem; font-weight: 600; }
.desserts-grid .card-meta { font-size: 0.78rem; }
.desserts-grid .card-desc { font-size: 0.85rem; color: #6b4e36; line-height: 1.5; }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: #7a5c3a;
  grid-column: 1 / -1;
}
.empty-state p { font-size: 1.1rem; margin-bottom: 1rem; }
.empty-state a { color: var(--accent); font-weight: bold; }

/* ─── Recipe Page ─── */
.recipe-hero {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--border);
}

.recipe-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

@media (max-width: 700px) {
  .recipe-layout { grid-template-columns: 1fr; }
}

.recipe-header { margin-bottom: 0.75rem; }
.recipe-title { font-size: 2rem; margin-bottom: 0.25rem; }
.recipe-source { font-size: 0.85rem; color: #7a5c3a; font-style: italic; }
.recipe-time-summary {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #7a5c3a;
  margin: 0.5rem 0 1.2rem;
  flex-wrap: wrap;
}

/* Scaler */
.scaler {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.scaler button {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--accent);
  font-size: 1.1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scaler button:hover { background: var(--accent); color: white; }
.scaler .serving-count { font-weight: bold; min-width: 1.5rem; text-align: center; }

/* Sidebar */
.recipe-sidebar h2 { font-size: 1.1rem; color: var(--accent); margin-bottom: 0.6rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }

.ingredients-list { list-style: none; }
.ingredients-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.ingredients-list li:last-child { border-bottom: none; }
.ingredients-list li.checked { opacity: 0.45; text-decoration: line-through; }
.ingredients-list li::before { content: "○"; color: var(--accent); flex-shrink: 0; font-size: 0.75rem; margin-top: 0.15rem; }
.ingredients-list li.checked::before { content: "●"; }

/* Instructions */
.instructions-list { list-style: none; counter-reset: steps; }
.instructions-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.instructions-list li:last-child { border-bottom: none; }
.instructions-list li::before {
  content: counter(steps);
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-content { display: flex; flex-direction: column; gap: 0.4rem; }
.step-text { font-size: 0.95rem; line-height: 1.6; }

.timer-btn {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
}
.timer-btn:hover, .timer-btn.running { background: var(--accent); color: white; }

.timer-display {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: bold;
  display: none;
}
.timer-display.visible { display: block; }

/* Cook Mode */
.cook-mode-btn {
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 1.5rem;
}
.cook-mode-btn:hover { background: var(--accent-light); }

.cook-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.cook-overlay.active { display: flex; }

.cook-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  gap: 2rem;
  position: relative;
}
.cook-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.cook-ingredients-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  background: #fff9f0;
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  z-index: 210;
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.cook-ingredients-panel.open {
  transform: translateX(0);
}
.cook-ingredients-panel h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cook-ingredients-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cook-ingredients-panel li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}
.cook-ingredients-panel li strong {
  color: var(--accent);
}
.cook-ing-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 205;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 99px;
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.cook-ing-toggle:hover { opacity: 0.9; }

.cook-step-text {
  font-size: 2rem;
  text-align: center;
  max-width: 700px;
  line-height: 1.5;
  margin: 1.5rem 0;
}

.cook-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}
.cook-nav button {
  padding: 0.6rem 1.6rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
}
.cook-nav button:disabled { opacity: 0.35; cursor: default; }
.cook-progress { font-size: 0.95rem; color: var(--accent); min-width: 6rem; text-align: center; }

.cook-timer {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: bold;
  min-height: 3rem;
  margin-top: 0.5rem;
}

.cook-timer-btn {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 99px;
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
}
.cook-timer-btn.running { background: var(--accent); color: white; }

.cook-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

/* Hero image upload */
.hero-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.hero-upload-label {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.45rem 1rem;
  background: rgba(44, 24, 16, 0.72);
  color: #fdf8f0;
  border-radius: 99px;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s;
  user-select: none;
}
.hero-wrap:hover .hero-upload-label { opacity: 1; }

/* Edit recipe button */
.edit-recipe-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.edit-recipe-btn:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

/* Recipe notes */
.recipe-notes {
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  font-style: italic;
  margin-top: 1.5rem;
}

/* Gallery */
.recipe-gallery { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.recipe-gallery img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

/* Recipe tags inline */
.recipe-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

/* ─── Editor ─── */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .editor-layout { grid-template-columns: 1fr; }
  .preview-col { display: none; }
}

.editor-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.82rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.55rem 0.8rem;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Tag input */
.tag-input-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); min-height: 2.5rem; align-items: center; cursor: text; }
.tag-input-wrap input { border: none; outline: none; background: transparent; font-family: var(--font); font-size: 0.9rem; flex: 1; min-width: 80px; color: var(--text); }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  background: var(--accent);
  color: white;
  border-radius: 99px;
  font-size: 0.78rem;
}
.tag-pill button { background: none; border: none; color: white; cursor: pointer; padding: 0; font-size: 0.9rem; line-height: 1; }

/* Dynamic lists */
.dynamic-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dynamic-item { display: flex; gap: 0.4rem; align-items: flex-start; }
.dynamic-item .form-input { flex: 1; }
.remove-btn { background: none; border: 1px solid var(--border); border-radius: var(--radius); width: 2rem; height: 2rem; color: #a08060; cursor: pointer; font-size: 1rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.remove-btn:hover { border-color: #c44; color: #c44; }
.add-btn {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px dashed var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}
.add-btn:hover { background: rgba(139,69,19,0.08); }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--card-bg);
  color: #7a5c3a;
  font-size: 0.88rem;
}
.drop-zone.drag-over { border-color: var(--accent); background: rgba(139,69,19,0.05); }
.drop-zone img { max-height: 140px; max-width: 100%; border-radius: var(--radius); margin-top: 0.5rem; }

/* Export area */
.export-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 0.5rem;
}
.export-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.export-btn:hover { background: var(--accent-light); }

.index-snippet {
  margin-top: 1rem;
  display: none;
}
.index-snippet.visible { display: block; }
.index-snippet pre {
  background: #2c1810;
  color: #fdf8f0;
  padding: 0.8rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.instructions-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  color: #5a3e28;
  margin-top: 0.75rem;
}
.instructions-panel ol { padding-left: 1.2rem; }
.instructions-panel li { margin-bottom: 0.25rem; }

/* Preview panel */
.preview-col {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 1.5rem;
}
.preview-title { font-size: 1.4rem; margin-bottom: 0.25rem; }
.preview-section-label { font-size: 0.75rem; text-transform: uppercase; color: var(--accent); letter-spacing: 0.05em; margin: 1rem 0 0.3rem; border-bottom: 1px solid var(--border); padding-bottom: 0.2rem; }
.preview-ingredient { font-size: 0.88rem; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.preview-step { font-size: 0.88rem; padding: 0.4rem 0; display: flex; gap: 0.5rem; }
.preview-step-num { background: var(--accent); color: white; border-radius: 50%; width: 1.4rem; height: 1.4rem; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }

/* ─── Utility ─── */
.section-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.page-main { padding: 1.5rem 0; }

.loading { text-align: center; padding: 3rem; color: #7a5c3a; font-style: italic; }
.error { text-align: center; padding: 2rem; color: #c44; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(44,24,16,0.3);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}
.toast a { color: white; }
.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-error { background: #c44; }

/* ─── iPad Optimized — Recipe Detail (cooking view) ─── */
@media (min-width: 700px) and (max-width: 1100px) {
  /* Keep sidebar + main but give sidebar more room */
  .recipe-layout {
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem;
  }

  /* Bigger recipe title */
  .recipe-title { font-size: 2.2rem; }
  .recipe-source { font-size: 0.95rem; }
  .recipe-time-summary { font-size: 0.95rem; gap: 2rem; }

  /* Ingredients — bigger text, bigger tap targets */
  .recipe-sidebar h2 { font-size: 1.25rem; }
  .ingredients-list li {
    font-size: 1.05rem;
    padding: 0.65rem 0;
    min-height: 44px;
    align-items: center;
  }

  /* Scaler buttons bigger */
  .scaler { font-size: 1rem; }
  .scaler button {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.3rem;
  }
  .scaler .serving-count { font-size: 1.1rem; min-width: 2rem; }

  /* Instructions — bigger step text */
  .instructions-list li {
    grid-template-columns: 2.5rem 1fr;
    padding: 1.2rem 0;
  }
  .instructions-list li::before {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  .step-text { font-size: 1.1rem; line-height: 1.7; }

  /* Timer buttons — bigger for touch */
  .timer-btn {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .timer-display { font-size: 1.1rem; }

  /* Cook mode button */
  .cook-mode-btn {
    font-size: 1.15rem;
    padding: 0.75rem 1.8rem;
    min-height: 48px;
  }

  /* Recipe notes */
  .recipe-notes { font-size: 1.05rem; padding: 1.2rem 1.4rem; }

  /* Tags */
  .card-tag { font-size: 0.85rem; padding: 0.25rem 0.7rem; }

  /* Edit button */
  .edit-recipe-btn { font-size: 1rem; padding: 0.6rem 1.4rem; min-height: 44px; }
}

/* ─── iPad Cook Mode ─── */
@media (min-width: 700px) and (max-width: 1100px) {
  .cook-step-text { font-size: 2.2rem; line-height: 1.5; }
  .cook-timer { font-size: 3rem; }
  .cook-timer-btn { font-size: 1.1rem; padding: 0.65rem 1.5rem; min-height: 48px; }
  .cook-nav button {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    min-height: 48px;
  }
  .cook-progress { font-size: 1.05rem; }
  .cook-close { font-size: 2rem; top: 1.5rem; right: 2rem; padding: 0.5rem; }
}

/* ─── iPad — Header sticky bar ─── */
@media (min-width: 700px) and (max-width: 1100px) {
  .site-header { padding: 1rem 0; }
  .site-title { font-size: 1.4rem; }
  .nav-link { font-size: 1rem; padding: 0.45rem 0.9rem; min-height: 44px; display: inline-flex; align-items: center; }
  .back-link { font-size: 0.95rem; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  .recipe-title { font-size: 1.5rem; }
  .cook-step-text { font-size: 1.4rem; }
  .cook-timer { font-size: 2rem; }
  .cook-ingredients-panel { width: 85vw; }
}
