/* Salad Bar — Good Taste: regiones claras, título prominente, un flujo */
:root {
  --bg-deep: #0a0a1a;
  --bg-card: #111128;
  --border: #1e1e3a;

  --neon-pink: #ff2d78;
  --neon-cyan: #00f0ff;
  --neon-purple: #b24dff;

  --text-primary: #e8e8f0;
  --text-secondary: #9090b0;

  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  position: relative;
}
body.demo-layouts {
  height: auto;
  overflow: auto;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(178, 77, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.03) 0%, transparent 40%),
    radial-gradient(1.5px 1.5px at 5% 5%, rgba(255,255,255,0.03) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 95% 95%, rgba(255,255,255,0.02) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 24px 24px, 32px 32px;
}
.page { position: relative; z-index: 1; }

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: rgba(10, 10, 26, 0.95);
  border-bottom: 1px solid var(--border);
}
.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--neon-cyan); }
.cta-case {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.cta-case:hover { color: var(--neon-cyan); }
.cta-case-mobile { display: none; }
@media (max-width: 640px) {
  .cta-case-desktop { display: none; }
  .cta-case-mobile { display: inline; }
}

/* Hero: título prominente (Von Restorff — lo que destaca) */
.hero {
  flex-shrink: 0;
  text-align: center;
  padding: 1.25rem 1rem 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neon-pink);
  text-shadow: 0 0 20px rgba(255, 45, 120, 0.4), 0 0 40px rgba(255, 45, 120, 0.2);
  margin: 0 0 0.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.intro {
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
/* Ocultar <br> en mobile: el texto fluye normal */
.intro-br {
  display: none;
}
@media (min-width: 640px) {
  /* Desktop: <br> visible = exactamente 2 líneas. Ancho suficiente para que ninguna línea se parta */
  .intro-br {
    display: block;
  }
  .intro {
    max-width: 42em;
  }
}

/* Layout: dos regiones claras (Common Region, Chunking) */
.page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* Región = una zona con borde/fondo (ley de la región común) */
.region {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(17, 17, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.2rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.region-pick:hover {
  border-color: rgba(178, 77, 255, 0.35);
  box-shadow: 0 0 24px rgba(178, 77, 255, 0.06);
}
.region-result:hover {
  border-color: rgba(255, 45, 120, 0.35);
  box-shadow: 0 0 24px rgba(255, 45, 120, 0.06);
}

.region-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}
.region-title--accent {
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(255, 45, 120, 0.25);
}

.ingredient-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.more-ingredients-wrap {
  margin-bottom: 0.75rem;
  text-align: right;
}
.more-ingredients-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.more-ingredients-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}
.more-ingredients-btn:active {
  opacity: 0.85;
}

.ingredient-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ingredient-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
}
.ingredient-chip.selected {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: 0 0 14px rgba(178, 77, 255, 0.2);
}

.picker-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.summary-wrap.hidden { display: none; }
.summary-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}
.summary-card {
  flex: 1;
  min-height: 60px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.summary-card:hover {
  border-color: rgba(178, 77, 255, 0.4);
  box-shadow: 0 0 16px rgba(178, 77, 255, 0.08);
}
.summary-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.dressing-placeholder {
  flex: 1;
  min-height: 120px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 1rem;
  background: var(--bg-deep);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dressing-placeholder.hidden { display: none; }

.dressing-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  overflow: auto;
}
.dressing-card:hover {
  border-color: rgba(255, 45, 120, 0.4);
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.1);
}
.dressing-card.hidden { display: none; }

.dressing-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.65rem;
  flex-shrink: 0;
}

.recipe { flex: 1; min-height: 0; }
.recipe-heading {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
}
.recipe-ingredients,
.recipe-steps {
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.5;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}
.recipe-steps { margin-bottom: 0; }
.recipe-steps li { margin-bottom: 0.35rem; }
.recipe-steps li:last-child { margin-bottom: 0; }

/* Chef's trick — card destacada, momento memorable */
.chef-tip {
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06) 0%, rgba(178, 77, 255, 0.04) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.06);
  animation: tipIn 0.4s var(--ease) both;
}
.chef-tip.hidden { display: none; }

.chef-tip-label {
  display: block;
  padding: 0.5rem 1rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.chef-tip-body {
  padding: 1rem 1.1rem;
}

.chef-tip-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

@keyframes tipIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Vote widget (option 5: right-aligned) ─── */
.vote-widget {
  font: inherit;
  background: transparent;
  padding: 0.75rem 1.25rem;
  text-align: right;
  margin-left: auto;
  width: fit-content;
}
.vote-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}
.vote-nums {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.vote-num {
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s;
  min-width: 1.2em;
  text-align: center;
}
.vote-num:hover {
  color: #ff2d78;
}
.vote-num.vote-selected {
  color: #ff2d78;
}
.vote-num.vote-grey {
  color: #666;
}
.vote-thanks {
  font-size: 0.75rem;
  color: #666;
  margin-left: 0.5rem;
}

/* ─── Case modal: desktop = popup, mobile = bottom sheet ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.is-open {
  display: flex;
  opacity: 1;
}
@media (min-width: 640px) {
  .modal-overlay.is-open { align-items: center; padding: 2rem; }
}
.modal-panel {
  position: relative;
  width: 100%;
  max-height: 85vh;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
  overflow: hidden;
}
/* Neon bar top: shared (desktop gets it in min-width below) */
.modal-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  z-index: 1;
}
.modal-overlay.is-open .modal-panel {
  transform: translateY(0);
}
@media (min-width: 640px) {
  .modal-panel {
    max-width: 440px;
    max-height: 80vh;
    border-radius: 16px;
    transform: scale(0.95);
  }
  .modal-panel::before {
    border-radius: 16px 16px 0 0;
  }
  .modal-overlay.is-open .modal-panel {
    transform: scale(1);
  }
  /* Desktop: same neon design as mobile (bar top) */
  .modal-title {
    text-shadow: 0 0 20px rgba(255, 45, 120, 0.3);
  }
  .modal-close {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
  }
  .modal-body .label {
    color: var(--neon-cyan);
    opacity: 0.9;
  }
  .modal-cta .btn-primary {
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.25);
  }
  .modal-cta .btn-secondary {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.35);
  }
  .modal-cta .btn-secondary:hover {
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
  }
}
.modal-drag {
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0.75rem auto 0;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .modal-drag { display: none; }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.75rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.modal-header-text {
  min-width: 0;
}
.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-pink);
  margin: 0;
}
.modal-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0.25rem 0 0;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.modal-body {
  padding: 1rem 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-body .label {
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0.75rem 0 0.25rem;
}
.modal-body .label:first-child { margin-top: 0; }
.modal-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 0.35rem;
}
.modal-body p strong { color: var(--text-primary); }
.modal-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font);
  transition: box-shadow 0.2s, transform 0.2s;
}
.modal-cta .btn-primary {
  background: var(--neon-pink);
  color: #0a0a1a;
  border: none;
}
.modal-cta .btn-primary:hover {
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.4);
  transform: translateY(-1px);
}
.modal-cta .btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.modal-cta .btn-secondary:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

/* ─── Mobile: Neon bar bottom sheet design ─── */
@media (max-width: 639px) {
  .modal-panel {
    border-radius: 20px 20px 0 0;
  }
  .modal-panel::before {
    border-radius: 20px 20px 0 0;
  }
  .modal-drag {
    width: 48px;
    height: 4px;
    margin: 0.7rem auto 0;
  }
  .modal-header {
    padding: 0.85rem 1rem;
  }
  .modal-title {
    text-shadow: 0 0 20px rgba(255, 45, 120, 0.3);
  }
  .modal-close {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
  }
  .modal-body .label {
    color: var(--neon-cyan);
    opacity: 0.9;
  }
  .modal-cta .btn-primary {
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.25);
  }
  .modal-cta .btn-secondary {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.35);
  }
  .modal-cta .btn-secondary:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
  }
}

.footer {
  flex-shrink: 0;
  text-align: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer a { color: var(--text-secondary); text-decoration: none; }

.footer a:hover { color: var(--neon-pink); }

/* ─── Desktop: 5 opciones de layout sin scroll (aplica clase en .page, ej. layout-desk-2) ─── */
@media (min-width: 701px) {
  /* Opción 1: actual (por defecto) — dos columnas 50/50, hero estándar */
  /* Sin clase = layout por defecto */

  /* Opción 2: hero compacto — más espacio para las regiones */
  .page.layout-desk-2 .hero {
    padding: 0.5rem 1rem 0.5rem;
  }
  .page.layout-desk-2 .hero-title {
    font-size: 1.65rem;
    margin-bottom: 0.25rem;
  }
  .page.layout-desk-2 .intro {
    font-size: 0.85rem;
    max-width: 380px;
  }
  .page.layout-desk-2 .layout {
    gap: 1rem;
  }
  .page.layout-desk-2 .region {
    padding: 0.9rem 1rem;
  }
  .page.layout-desk-2 .vote-widget {
    padding: 0.4rem 1.25rem;
  }

  /* Opción 3: título e intro en una línea — máximo espacio vertical para contenido */
  .page.layout-desk-3 .hero {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 1rem 0.4rem;
    text-align: left;
  }
  .page.layout-desk-3 .hero-title {
    font-size: 1.5rem;
    margin: 0;
  }
  .page.layout-desk-3 .intro {
    margin: 0;
    font-size: 0.8rem;
    max-width: none;
  }
  .page.layout-desk-3 .layout {
    gap: 1rem;
  }
  .page.layout-desk-3 .region-title,
  .page.layout-desk-3 .ingredient-chip,
  .page.layout-desk-3 .picker-hint {
    font-size: 0.8rem;
  }
  .page.layout-desk-3 .region {
    padding: 0.75rem 1rem;
  }
  .page.layout-desk-3 .ingredient-chip {
    padding: 0.35rem 0.65rem;
  }
  .page.layout-desk-3 .vote-widget {
    padding: 0.35rem 1.25rem;
  }

  /* Opción 4: barra lateral estrecha — ingredientes a la izquierda (ancho fijo), resultado ocupa el resto */
  .page.layout-desk-4 .hero {
    padding: 0.4rem 1rem 0.35rem;
  }
  .page.layout-desk-4 .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }
  .page.layout-desk-4 .intro {
    font-size: 0.8rem;
  }
  .page.layout-desk-4 .layout {
    grid-template-columns: 220px 1fr;
    gap: 1rem;
  }
  .page.layout-desk-4 .region-pick {
    padding: 0.65rem 0.85rem;
  }
  .page.layout-desk-4 .region-result {
    padding: 0.85rem 1rem;
  }
  .page.layout-desk-4 .region-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  .page.layout-desk-4 .ingredient-grid {
    gap: 0.35rem;
  }
  .page.layout-desk-4 .ingredient-chip {
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
  }
  .page.layout-desk-4 .picker-hint {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }
  .page.layout-desk-4 .dressing-name {
    font-size: 0.95rem;
  }
  .page.layout-desk-4 .chef-tip-label {
    font-size: 0.65rem;
  }
  .page.layout-desk-4 .chef-tip-body {
    padding: 0.65rem 0.85rem;
  }
  .page.layout-desk-4 .chef-tip-text {
    font-size: 0.82rem;
  }
  .page.layout-desk-4 .vote-widget {
    padding: 0.35rem 1.25rem;
  }

  /* Opción 5: ultra compacto — todo más denso, vote integrado en footer */
  .page.layout-desk-5 .hero {
    padding: 0.35rem 1rem 0.25rem;
  }
  .page.layout-desk-5 .hero-title {
    font-size: 1.4rem;
    margin-bottom: 0.15rem;
  }
  .page.layout-desk-5 .intro {
    font-size: 0.78rem;
  }
  .page.layout-desk-5 {
    padding: 0 1.25rem 0.75rem;
  }
  .page.layout-desk-5 .layout {
    gap: 0.85rem;
  }
  .page.layout-desk-5 .region {
    padding: 0.6rem 0.9rem;
  }
  .page.layout-desk-5 .region-title {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
  }
  .page.layout-desk-5 .ingredient-grid {
    gap: 0.35rem;
    margin-bottom: 0.35rem;
  }
  .page.layout-desk-5 .ingredient-chip {
    padding: 0.28rem 0.55rem;
    font-size: 0.78rem;
  }
  .page.layout-desk-5 .picker-hint {
    font-size: 0.68rem;
    margin-bottom: 0.4rem;
  }
  .page.layout-desk-5 .summary-label {
    font-size: 0.7rem;
  }
  .page.layout-desk-5 .dressing-name {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  .page.layout-desk-5 .recipe-heading {
    font-size: 0.68rem;
  }
  .page.layout-desk-5 .recipe-ingredients,
  .page.layout-desk-5 .recipe-steps {
    font-size: 0.78rem;
  }
  .page.layout-desk-5 .chef-tip {
    margin-top: 0.6rem;
  }
  .page.layout-desk-5 .chef-tip-body {
    padding: 0.5rem 0.75rem;
  }
  .page.layout-desk-5 .chef-tip-text {
    font-size: 0.8rem;
  }
  .page.layout-desk-5 .vote-widget {
    padding: 0.25rem 1.25rem;
  }
  .page.layout-desk-5 .footer {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 700px) {
  body { height: auto; min-height: 100vh; overflow: auto; }
  .layout { grid-template-columns: 1fr; }
  .page.layout-desk-2 .hero,
  .page.layout-desk-3 .hero,
  .page.layout-desk-4 .hero,
  .page.layout-desk-5 .hero {
    display: block;
    text-align: center;
    padding: 1.25rem 1rem 1rem;
  }
  .page.layout-desk-3 .intro { max-width: 420px; margin-left: auto; margin-right: auto; }
  .page.layout-desk-4 .layout { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .page { padding: 0 1rem 1.25rem; }

  .intro {
    font-size: .98rem;
  }

  .ingredient-chip {
    min-height: 36px;
    padding: .5rem .95rem;
    font-size: .9rem;
  }

  .ingredient-chip:active {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.16);
  }

  .recipe-ingredients,
  .recipe-steps {
    font-size: .9rem;
    line-height: 1.6;
  }

  .summary-text {
    font-size: .9rem;
    line-height: 1.6;
  }

  .back-link {
    padding: .25rem .5rem;
    margin: -.25rem -.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ingredient-chip, .region, .summary-card, .dressing-card { transition: none; }
}
