body.recipe-page {
  background: #1A1612;
  overflow: hidden;
  height: 100vh;
}

.site-header--recipe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

#recipe-scroll-root {
  position: fixed;
  inset: 56px 0 0 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  scroll-padding-top: var(--timer-dock-height, 0px);
  -webkit-overflow-scrolling: touch;
}

#recipe-scroll-root::-webkit-scrollbar { width: 0; }

.recipe-viewport-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(155deg, var(--recipe-bg-a, #F9EFE4) 0%, var(--recipe-bg-b, #F4DFCA) 100%);
  pointer-events: none;
  transition: background 0.4s ease;
}

#root {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

#recipe-content {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

#timer-dock {
  position: sticky;
  top: 0;
  z-index: 90;
}

/* Ingredient tiles */
.ingredient-tile {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  background: #FBF6EE;
  border: 1px solid #E8DEC9;
  border-radius: 4px;
  cursor: pointer;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}

.ingredient-tile > div:not(.check-badge) {
  padding-right: 84px;
}

.tile-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: #14110E;
  letter-spacing: -0.2px;
  line-height: 1.25;
  transition: color 200ms ease-out;
}

.tile-qty {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13.5px;
  color: #3D342B;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 200ms ease-out;
}

.check-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.25px solid #C9BDA4;
  background: transparent;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #A89B82;
  flex-shrink: 0;
  transition: all 200ms ease-out;
  white-space: nowrap;
}

.ing-glyph {
  display: block;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  transition: opacity 200ms ease-out;
}

/* Section label row */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

/* Unit toggle chips */
.unit-chip {
  all: unset;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: transparent;
  color: #8B8074;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background 180ms ease;
}

/* Ingredient inline refs */
.ing-ref strong { color: #1F1A17; font-weight: 500; }
.temp-ref, .pan-ref { color: #7A2E2E; font-weight: 500; white-space: nowrap; }

/* Timer button */
.timer-btn {
  all: unset;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 18px;
  min-height: 64px;
  background: #FBF6EE;
  color: #1F1A17;
  border: 1px solid #E2D9C8;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.timer-progress-fill {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s linear;
}

.timer-circle {
  width: 42px;
  height: 42px;
  border-radius: 21px;
  border: 1.25px solid #7A2E2E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timer-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.timer-label-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}

.timer-time { margin-top: 2px; }

.timer-action {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* CTA pulse */
@keyframes pulse {
  0%, 100% { box-shadow: 0 1px 0 rgba(122,46,46,0.4), 0 12px 32px -12px rgba(122,46,46,0.6); }
  50%       { box-shadow: 0 1px 0 rgba(122,46,46,0.4), 0 16px 40px -10px rgba(122,46,46,0.85); }
}

/* sticky ingredient progress bar */
.hero-progress-sticky {
  position: sticky;
  top: var(--timer-dock-height, 0px);
  z-index: 25;
  background: #F5F1EA;
  margin-left: -22px;
  margin-right: -22px;
  padding: 14px 22px 12px;
  border-bottom: 1px solid #E2D9C8;
}

/* step scroll internals */
.step-inner::-webkit-scrollbar { width: 0; }
.step-inner { scrollbar-width: none; -ms-overflow-style: none; }

/* Ad slot — Google AdSense responsive display ad container */
.ad-slot {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 22px 26px;
}

.ad-slot__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
  color: #8B8074;
}

.ad-slot__inner {
  position: relative;
  width: 100%;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
}

.ad-slot__inner .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 250px;
}

/* Dark variant — sits inside the outro box (#1F1A17) */
.ad-slot--dark {
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  margin-top: 18px;
}

.ad-slot--dark .ad-slot__label {
  color: rgba(245, 241, 234, 0.4);
}

.ad-slot--dark .ad-slot__inner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(245, 241, 234, 0.18);
}

/* ── Desktop two-column layout (≥ 1024px) ──────────────────── */
@media (min-width: 1024px) {
  #recipe-scroll-root {
    overflow: hidden;
  }

  #recipe-content {
    position: absolute;
    inset: 0;
    display: flex;
  }

  #recipe-hero {
    width: 400px;
    flex-shrink: 0;
    overflow-y: auto;
    scrollbar-width: none;
    border-right: 1px solid rgba(226, 217, 200, 0.5);
  }

  #recipe-hero::-webkit-scrollbar { width: 0; }

  #recipe-hero .hero-progress-sticky {
    top: 0;
  }

  #btn-start { display: none; }

  #recipe-steps {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    scrollbar-width: none;
  }

  #recipe-steps::-webkit-scrollbar { width: 0; }

  .recipe-step {
    min-height: auto !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: unset !important;
    padding-top: 20px !important;
  }

  #outro {
    min-height: auto !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: unset !important;
  }
}
