/* =====================================================================
   recipe.css — recipe-page styles. Recipe header, vignette, heritage
   note, meta strip, ingredients, method/stages, three-tips cards,
   scaling/economics, pull-quote. Verbatim from V4 prototype lines
   717–1594. The largest stylesheet — most page real estate is recipes.
   ===================================================================== */

/* =====================================================================
   RECIPE PAGE
   ===================================================================== */

.recipe {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
}

.recipe:last-of-type { border-bottom: none; }

.recipe-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}

.recipe-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.recipe-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.recipe-han {
  font-family: var(--font-han);
  font-size: 1.5rem;
  color: var(--terracotta);
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.recipe-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Heritage vignette — full-bleed-ish opening illustration */
.recipe-vignette {
  margin: 3rem auto;
  max-width: 1080px;
  padding: 0 var(--gutter);
}

.recipe-vignette img,
.recipe-vignette .placeholder {
  width: 100%;
  display: block;
  box-shadow:
    0 1px 0 var(--rule-soft),
    0 28px 60px -20px rgba(43,31,20,0.30),
    0 14px 28px -14px rgba(43,31,20,0.18);
}

/* Heritage Note from Hock Ko */
.heritage-note {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0;
  margin: 3rem 0;
}

.heritage-note-inner {
  max-width: var(--column-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.heritage-note-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

.heritage-note-eyebrow::before {
  content: '🏛 ';
  font-style: normal;
  margin-right: 0.4rem;
}

.heritage-note .voice-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.625rem;
  line-height: 1.35;
  color: var(--terracotta-dark);
  margin-bottom: 1.875rem;
  font-weight: 400;
}

.heritage-note p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1em;
}

.heritage-note p:last-child { margin-bottom: 0; }

/* Recipe meta strip — yield, time, difficulty */
.recipe-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  margin: 3rem auto;
  max-width: var(--wide-width);
  padding: 0 var(--gutter);
  /* margin and padding need care — actually wrap meta in container */
}

.recipe-meta-wrap {
  max-width: var(--wide-width);
  margin: 3rem auto;
  padding: 0 var(--gutter);
}

.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

.meta-cell {
  background: var(--paper);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.meta-cell-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.meta-cell-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}

.meta-cell-value.stars {
  color: var(--terracotta);
  letter-spacing: 0.1em;
}

/* Ingredients — heritage table style */
.section-block {
  max-width: var(--wide-width);
  margin: 3.5rem auto;
  padding: 0 var(--gutter);
}

.section-block-narrow {
  max-width: var(--column-width);
  margin: 3.5rem auto;
  padding: 0 var(--gutter);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

.section-heading-emoji {
  display: inline-block;
  margin-right: 0.5rem;
  font-style: normal;
  filter: saturate(0.85);
}

.section-subheading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--ink-faint);
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.ingredients-group {
  margin-bottom: 2.25rem;
}

.ingredients-group h4 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.ingredients-group h4 .qual {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 0.5rem;
}

table.ing {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

table.ing tr {
  border-bottom: 1px solid var(--rule-soft);
}

table.ing tr:last-child { border-bottom: none; }

table.ing td {
  padding: 0.75rem 0.875rem;
  vertical-align: top;
}

table.ing td.ing-name {
  width: 38%;
  color: var(--ink);
  font-weight: 500;
}

table.ing td.ing-amount {
  width: 22%;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta-dark);
  font-weight: 500;
  white-space: nowrap;
}

table.ing td.ing-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
}

table.ing td.ing-note em { font-style: normal; }

@media (max-width: 700px) {
  table.ing td { padding: 0.6rem 0.4rem; font-size: 0.9375rem; }
  table.ing td.ing-name { width: 45%; }
  table.ing td.ing-amount { width: 30%; font-size: 0.9rem; }
  table.ing td.ing-note { display: block; width: 100%; padding-top: 0; padding-bottom: 1rem; }
}

.ingredient-list {
  list-style: none;
  padding: 0;
}

.ingredient-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.ingredient-list li:last-child { border-bottom: none; }

.ingredient-list li em { font-style: italic; color: var(--ink-soft); }

/* Shifu's Lift — special heritage box */
.shifu-lift {
  margin: 2.5rem 0;
  background: linear-gradient(180deg, rgba(200,150,90,0.10) 0%, rgba(200,150,90,0.05) 100%);
  border: 1px solid var(--gold-pale);
  border-left: 4px solid var(--terracotta);
  padding: 1.875rem 2rem;
  position: relative;
}

.shifu-lift h4 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--terracotta-dark);
}

.shifu-lift h4 .chilli { font-style: normal; margin-right: 0.4rem; }

.shifu-lift .shifu-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
  display: block;
}

.shifu-lift ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shifu-lift ul li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink);
  font-size: 1.0625rem;
}

.shifu-lift ul li:last-child { border-bottom: none; }

.shifu-lift ul li strong {
  color: var(--terracotta-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  margin-right: 0.5rem;
}

/* Method section */
.method-section {
  max-width: 76rem;
  margin: 3.5rem auto;
  padding: 0 var(--gutter);
}

.stage {
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
}

.stage-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--terracotta);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: right;
  padding-top: 0.2rem;
}

.stage-num small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-style: normal;
  color: var(--ink-faint);
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
}

.stage-content h4 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.875rem;
  color: var(--ink);
  line-height: 1.15;
  padding-top: 0.4rem;
  border-top: 2px solid var(--terracotta);
  padding-top: 0.6rem;
  display: inline-block;
  border-top: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  letter-spacing: -0.005em;
}

.stage-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1em;
}

.stage-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.stage-content ol li {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.stage-content ol li::marker {
  color: var(--terracotta);
  font-family: var(--font-display);
  font-weight: 600;
}

.stage-content blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5em 0;
}

.stage-illustration {
  margin: 2rem 0 0.5rem;
  max-width: 720px;
}

.stage-illustration img,
.stage-illustration .placeholder {
  width: 100%;
  display: block;
  box-shadow: 0 1px 0 var(--rule-soft), 0 16px 36px -16px rgba(43,31,20,0.22);
}

.stage-illustration .caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-faint);
  margin-top: 0.6rem;
  padding-left: 0.25rem;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .stage { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .stage-num { font-size: 2.5rem; }
  .stage-content h4 { font-size: 1.375rem; }
}

/* The Three Tips */
.three-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  max-width: 76rem;
  margin: 3.5rem auto;
  padding: 0 var(--gutter);
}

.tip-card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: 1.875rem 1.75rem;
  position: relative;
}

.tip-card.heritage { border-top: 4px solid var(--gold); }
.tip-card.master { border-top: 4px solid var(--terracotta); }
.tip-card.mistake { border-top: 4px solid var(--jade); }

.tip-card h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 0.875rem;
  text-transform: uppercase;
}

.tip-card.heritage h5 { color: var(--gold); }
.tip-card.master h5 { color: var(--terracotta); }
.tip-card.mistake h5 { color: var(--jade); }

.tip-card h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--ink);
  line-height: 1.2;
}

.tip-card p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.875em;
}

.tip-card p:last-child { margin-bottom: 0; }

.tip-card ol, .tip-card ul {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0.75em 0;
  padding-left: 1.25em;
}

.tip-card li {
  margin-bottom: 0.4em;
}

/* Scaling section */
.scaling {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0;
  margin: 3.5rem 0;
}

.scaling-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.scaling h5 {
  color: var(--terracotta);
  letter-spacing: 0.18em;
  margin-bottom: 0.625rem;
}

.scaling h3 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
}

.scaling p { font-size: 1rem; line-height: 1.7; }

.scaling ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.scaling ul li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.scaling ul li:last-child { border-bottom: none; }

.scaling ul li strong {
  color: var(--terracotta-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  margin-right: 0.4rem;
}

/* Closing pull-quote */
.pull-quote {
  text-align: center;
  max-width: 50rem;
  margin: 4rem auto 0;
  padding: 0 var(--gutter);
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  position: relative;
  padding: 0 1rem;
}

.pull-quote blockquote::before,
.pull-quote blockquote::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--terracotta);
  margin: 0 auto 1.5rem;
}

.pull-quote blockquote::after {
  margin: 1.5rem auto 0;
}

.pull-quote .attribution {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

/* Placeholder card (for illustrations not yet uploaded) */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper-deep) 0px,
      var(--paper-deep) 12px,
      var(--paper-shadow) 12px,
      var(--paper-shadow) 24px
    );
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--rule);
}

.placeholder.square { aspect-ratio: 1 / 1; }
.placeholder.tall { aspect-ratio: 4 / 5; }

.placeholder-content {
  background: var(--paper);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--rule);
  max-width: 26rem;
  box-shadow: 0 8px 18px -8px rgba(43,31,20,0.15);
}

.placeholder-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.placeholder-content h5 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}

.placeholder-content p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-style: italic;
  font-family: var(--font-display);
}

/* Coming soon section */
.coming-soon {
  background: var(--paper-deep);
  text-align: center;
  padding: 5rem var(--gutter);
}

.coming-soon h3 {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--ink);
}

.coming-soon p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.55;
}

/* Footer / colophon */
.colophon {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem var(--gutter) 3rem;
  text-align: center;
}

.colophon h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 1.25rem;
}

.colophon p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(245, 239, 227, 0.75);
  max-width: 38rem;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.colophon .han {
  font-family: var(--font-han);
  font-size: 1.25rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin: 1.5rem 0;
}

.colophon-rule {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0.6;
}

/* Anchor offset for sticky nav */
section[id] { scroll-margin-top: 4rem; }

/* TOC dropdown panel */
.toc-panel {
  position: fixed;
  top: 4rem;
  right: var(--gutter);
  width: 22rem;
  max-width: calc(100vw - 2*var(--gutter));
  max-height: calc(100vh - 6rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px -16px rgba(43,31,20,0.4);
  padding: 1.5rem 1.625rem 1.75rem;
  z-index: 99;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toc-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toc-panel h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.toc-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-panel-list li {
  border-bottom: 1px solid var(--rule-soft);
}

.toc-panel-list li:last-child { border-bottom: none; }

.toc-panel-list a {
  display: block;
  padding: 0.625rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
  transition: color 0.15s, padding-left 0.2s;
}

.toc-panel-list a:hover {
  color: var(--terracotta);
  padding-left: 0.5rem;
}

.toc-panel-list .num {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  margin-right: 0.6rem;
  font-weight: 500;
}

/* =====================================================================
   TOC dropdown — collapsible chapter groups
   - Each chapter is a <button> + nested <ul>
   - Click button toggles aria-expanded; CSS responds.
   - .toc-flat-row keeps the old "single row" style for Foreword/Glossary/etc.
   ===================================================================== */

/* Flat single-link rows (Foreword, Full Contents, Glossary, Colophon) keep
   the original look. */
.toc-panel-list .toc-flat-row {
  border-bottom: 1px solid var(--rule-soft);
}

.toc-panel-list .toc-utility {
  margin-top: 0.4rem;
}

/* Chapter group container — strips the default <li> border because the
   button has its own border treatment. */
.toc-panel-list .toc-chapter-group {
  border-bottom: none;
  margin: 0.3rem 0;
}

/* The chapter button (collapsible header). Replaces the flat chapter-row. */
.toc-panel-list .toc-chapter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 1.2rem);
  margin: 0 -0.6rem;
  padding: 0.55rem 0.6rem;
  background: var(--paper-deep);
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--terracotta-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  transition: background 0.15s ease;
}

.toc-panel-list .toc-chapter-row:hover {
  background: var(--paper-shadow);
}

.toc-panel-list .toc-chapter-row .toc-chevron {
  font-size: 0.75rem;
  color: var(--ink-faint);
  transition: transform 0.25s ease;
  margin-left: 0.5rem;
}

/* When expanded — chevron rotates */
.toc-panel-list .toc-chapter-row[aria-expanded="true"] .toc-chevron {
  transform: rotate(180deg);
}

/* Coming chapters: not a button, just a label. No hover, no chevron. */
.toc-panel-list .toc-chapter-coming-label {
  display: block;
  width: calc(100% + 1.2rem);
  margin: 0 -0.6rem;
  padding: 0.55rem 0.6rem;
  background: var(--paper-deep);
  cursor: default;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.92rem;
  font-weight: 400;
  opacity: 0.75;
}

/* The collapsible recipe list — closed by default, opens with class. */
.toc-panel-list .toc-chapter-recipes {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.toc-panel-list .toc-chapter-row[aria-expanded="true"] + .toc-chapter-recipes {
  /* Generous max-height — won't visually cap normal chapters but allows
     transition to animate. */
  max-height: 60rem;
  padding: 0.25rem 0 0.5rem;
}

.toc-panel-list .toc-chapter-recipes li {
  border-bottom: 1px solid var(--rule-soft);
  padding-left: 0.6rem;
}

.toc-panel-list .toc-chapter-recipes li:last-child {
  border-bottom: none;
}

.toc-panel-list .toc-chapter-recipes a {
  padding: 0.55rem 0;
}

/* "Chapter overview" link — slightly more emphasised than recipe rows */
.toc-panel-list .toc-chapter-link a {
  font-style: normal;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.45rem 0;
}

.toc-panel-list .toc-chapter-link a:hover {
  color: var(--terracotta);
}

/* Smooth fade-in on load */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cover-content {
  animation: fade-up 1.2s ease-out 0.3s backwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* =====================================================================
   recipe jump-tabs — under the meta strip, above ingredients
   Sticky horizontal nav. Smooth-scrolls to sections; current section
   gets a terracotta underline (set by JS scroll-spy).
   ===================================================================== */

.recipe-jump-tabs {
  position: sticky;
  top: 60px;                          /* sit just under the main nav */
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
  padding: 0 var(--gutter);
  margin: 0 auto var(--space-xl);
  max-width: var(--wide-width);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(245, 239, 227, 0.92);
}

.recipe-jump-tabs .jump-tab {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.recipe-jump-tabs .jump-tab:hover {
  color: var(--terracotta);
}

.recipe-jump-tabs .jump-tab.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

@media (max-width: 720px) {
  .recipe-jump-tabs {
    top: 56px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0 var(--space-sm);
  }
  .recipe-jump-tabs::-webkit-scrollbar { display: none; }
  .recipe-jump-tabs .jump-tab {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    padding: 0.75rem 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}
