/* ── Crumb V1 — Warm editorial aesthetic ───────────────────────────────── */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --green:        #1A5C42;
  --green-mid:    #2D8A63;
  --green-light:  #E8F5EE;
  --green-pale:   #F4FAF6;
  --amber:        #C17F24;
  --amber-light:  #FDF3E3;
  --cream:        #FAF8F3;
  --cream-dark:   #F0EDE4;
  --ink:          #1C1A16;
  --ink-mid:      #4A4640;
  --ink-light:    #8A857C;
  --border:       #E2DDD4;
  --white:        #FFFFFF;

  --font-serif:   'Lora', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  --shadow-sm:    0 1px 3px rgba(28,26,22,0.08);
  --shadow-md:    0 4px 16px rgba(28,26,22,0.10);
  --shadow-lg:    0 12px 40px rgba(28,26,22,0.12);

  --max-w:        1100px;
  --max-w-narrow: 680px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.hidden { display: none !important; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-size: 14px;
  color: var(--ink-mid);
  font-weight: 400;
}
.header-nav a:hover { color: var(--green); text-decoration: none; }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 13px !important;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--green-mid) !important; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--green);
  padding: 100px 24px 90px;
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9FD4B8;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: #9FD4B8;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btn {
  display: inline-block;
  background: var(--white);
  color: var(--green);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  transition: all 0.15s;
  box-shadow: var(--shadow-md);
}
.hero-btn:hover {
  background: var(--green-light);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ── Section ────────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--cream-dark); }
.section-cta { background: var(--green); }
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}
.section-cta .section-label { color: #9FD4B8; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-cta .section-title { color: var(--white); }
.section-sub {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}
.section-cta .section-sub { color: rgba(255,255,255,0.75); }

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ── Calculator layout ──────────────────────────────────────────────────── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Form fields ────────────────────────────────────────────────────────── */
.field-group { margin-bottom: 28px; }
.field-group:last-of-type { margin-bottom: 0; }
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.field-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-light);
  margin-top: 2px;
}

/* ── Sliders ────────────────────────────────────────────────────────────── */
.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 1px 4px rgba(26,92,66,0.3);
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
}
.slider-readout {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 54px;
  justify-content: flex-end;
}
.slider-readout span:first-child {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-serif);
}
.unit {
  font-size: 13px;
  color: var(--ink-light);
}
.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 0;
}
.slider-ticks span {
  font-size: 11px;
  color: var(--ink-light);
}

/* ── Chips ──────────────────────────────────────────────────────────────── */
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink-mid);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--green-mid); color: var(--green); }
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  font-weight: 500;
}

/* ── Calculate button ───────────────────────────────────────────────────── */
.calc-btn {
  width: 100%;
  padding: 14px;
  margin-top: 28px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.calc-btn:hover {
  background: #154D37;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.calc-btn:active { transform: translateY(0); }

/* ── Result panel ───────────────────────────────────────────────────────── */
.result-top {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.result-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.result-big {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.result-context {
  font-size: 13px;
  color: var(--ink-light);
}

/* ── Warning bar ────────────────────────────────────────────────────────── */
.warn-bar {
  background: var(--amber-light);
  border: 1px solid #E8C87A;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #6B4811;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ── Schedule ───────────────────────────────────────────────────────────── */
.schedule-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.schedule-list { display: flex; flex-direction: column; gap: 0; }
.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.schedule-step { flex: 1; font-size: 13px; color: var(--ink); }
.schedule-step.active-step { font-weight: 500; color: var(--green); }
.schedule-time {
  font-size: 13px;
  color: var(--ink-light);
  font-family: var(--font-serif);
  white-space: nowrap;
}

/* ── Tip box ────────────────────────────────────────────────────────────── */
.tip-box {
  margin-top: 20px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
  border-left: 3px solid var(--green-mid);
}
.tip-box strong { color: var(--green); font-weight: 500; }

/* ── Back button ────────────────────────────────────────────────────────── */
.back-btn {
  display: block;
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--ink-light);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0;
}
.back-btn:hover { color: var(--green); }

/* ── Starter section ────────────────────────────────────────────────────── */
.starter-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.starter-card { }
.time-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--cream);
  outline: none;
}
.time-input:focus { border-color: var(--green-mid); }
.result-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.starter-answer { text-align: center; margin-bottom: 20px; }
.starter-answer-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.starter-answer-time {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.starter-answer-sub { font-size: 13px; color: var(--ink-light); }
.starter-tips {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
  background: var(--green-pale);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green-mid);
}
.starter-science h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
}
.starter-science p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── Science grid ───────────────────────────────────────────────────────── */
.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.science-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.science-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--green-mid);
  margin-bottom: 12px;
  line-height: 1;
}
.science-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}
.science-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ── Email capture ──────────────────────────────────────────────────────── */
.email-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.email-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-sans);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  outline: none;
}
.email-input::placeholder { color: rgba(255,255,255,0.45); }
.email-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); }
.email-btn {
  padding: 12px 24px;
  background: var(--white);
  color: var(--green);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.email-btn:hover { background: var(--green-light); }
.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.email-success {
  text-align: center;
  color: #9FD4B8;
  font-size: 15px;
  padding: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  margin-top: 12px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 40px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-legal {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-legal a { color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Layout */
  .header-nav a:not(.nav-cta) { display: none; }
  .calc-layout   { grid-template-columns: 1fr; }
  .starter-layout{ grid-template-columns: 1fr; }
  .science-grid  { grid-template-columns: 1fr; gap: 16px; }
  .hero          { padding: 48px 20px 44px; }
  .section       { padding: 48px 0; }
  .container     { padding: 0 16px; }

  /* Hero */
  .hero-sub      { font-size: 15px; }
  .hero-btn      { padding: 12px 24px; font-size: 14px; }

  /* Cards */
  .card          { padding: 20px; }

  /* Result big number — smaller on phones */
  .result-big    { font-size: 42px; }

  /* Sliders — taller touch target */
  input[type=range] { height: 6px; }
  input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; }
  input[type=range]::-moz-range-thumb     { width: 26px; height: 26px; }

  /* Slider readout — keep it from cramping */
  .slider-row    { gap: 10px; }
  .slider-readout span:first-child { font-size: 18px; }

  /* Chips — wrap naturally, bigger touch targets */
  .chip-group    { gap: 6px; }
  .chip          { padding: 9px 14px; font-size: 13px; }

  /* Schedule rows — allow time to wrap below step name */
  .schedule-item {
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 0;
  }
  .schedule-step { flex: 1 1 100%; order: 2; padding-left: 18px; }
  .schedule-dot  { order: 1; margin-top: 2px; }
  .schedule-time {
    order: 3;
    padding-left: 18px;
    font-size: 12px;
    color: var(--ink-light);
    width: 100%;
  }

  /* Science cards */
  .science-card  { padding: 20px; }
  .science-num   { font-size: 28px; }

  /* Footer */
  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-links  { flex-wrap: wrap; justify-content: center; }
  .footer-legal  { flex-wrap: wrap; justify-content: center; text-align: center; }

  /* Email form */
  .email-form    { flex-direction: column; }
  .email-btn     { width: 100%; }

  /* Starter section */
  .starter-science { margin-top: 24px; }
  .starter-science h3 { font-size: 18px; }

  /* Hydration ingredient rows — same wrap fix as schedule */
  #hyd-ingredients .schedule-item {
    flex-wrap: wrap;
    gap: 4px;
  }
  #hyd-ingredients .schedule-step { flex: 1 1 100%; order: 2; padding-left: 18px; }
  #hyd-ingredients .schedule-time { order: 3; padding-left: 18px; width: 100%; font-size: 12px; }

  /* Tip box */
  .tip-box       { font-size: 13px; padding: 10px 12px; }

  /* Warn bar */
  .warn-bar      { font-size: 13px; }

}

/* ── Extra small phones (375px and below) ────────────────────────────────── */
@media (max-width: 375px) {
  .hero-title    { font-size: 28px; }
  .section-title { font-size: 22px; }
  .result-big    { font-size: 36px; }
  .chip          { font-size: 12px; padding: 8px 10px; }
  .wordmark      { font-size: 18px; }
  .nav-cta       { font-size: 12px; padding: 6px 12px; }
}

/* ── Animation ──────────────────────────────────────────────────────────── */
.card { animation: none; }
.calc-result.visible {
  animation: slideIn 0.25s ease forwards;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Desktop persist layout ────────────────────────────────────────────── */
/* On desktop both panels are always visible side by side */
.calc-layout-persist .calc-result,
.calc-layout-persist #hyd-right-col {
  display: block !important;
}

/* Placeholder shown before first calculation */
.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-light);
  height: 100%;
  min-height: 240px;
}
.placeholder-icon { font-size: 36px; margin-bottom: 16px; }
.result-placeholder p { font-size: 14px; line-height: 1.6; max-width: 220px; }
.result-placeholder strong { color: var(--ink-mid); font-weight: 500; }

/* ── Suggested recipe card ─────────────────────────────────────────────── */
.suggested-recipe { display: flex; flex-direction: column; gap: 12px; }
.recipe-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
}
.recipe-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.recipe-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.6; }
.recipe-rows { display: flex; flex-direction: column; gap: 0; }
.recipe-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.recipe-row:last-child { border-bottom: none; }
.recipe-row-total { font-weight: 500; }
.recipe-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.recipe-ing { flex: 1; font-size: 13px; color: var(--ink); }
.recipe-amt { font-size: 13px; font-weight: 500; color: var(--ink); font-family: var(--font-serif); }
.recipe-note {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.6;
  background: var(--cream-dark);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
}

/* ── Email consent checkbox ────────────────────────────────────────────── */
.consent-row {
  margin: 12px auto 8px;
  max-width: 480px;
  text-align: left;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--white);
  cursor: pointer;
}
.consent-label span {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ── Mobile overrides for new elements ─────────────────────────────────── */
@media (max-width: 768px) {
  /* On mobile, calc panels use show/hide — override the persist rule */
  .calc-layout-persist .calc-result {
    display: none !important;
  }
  .calc-layout-persist #hyd-right-col {
    display: block !important;
  }
  .result-placeholder { min-height: 160px; padding: 24px 16px; }
  .suggested-recipe { gap: 10px; }
  .recipe-title { font-size: 18px; }
}

/* ── Starter mode toggle ────────────────────────────────────────────────── */
.mode-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.mode-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink-mid);
  border: none;
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: all 0.15s;
  line-height: 1.3;
  text-align: center;
}
.mode-btn:last-child { border-right: none; }
.mode-btn.active {
  background: var(--green);
  color: var(--white);
  font-weight: 500;
}
.mode-btn:hover:not(.active) { background: var(--cream-dark); }

/* ── Baker's process notes ──────────────────────────────────────────────── */
.notes-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--ink-mid);
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-top: 4px;
  transition: all 0.15s;
}
.notes-toggle:hover { background: var(--cream-dark); border-color: var(--green-mid); color: var(--green); }
.baker-notes {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.baker-notes h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.baker-notes p {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 10px;
}
.baker-notes p:last-child { margin-bottom: 0; }

/* ── Mobile adjustments for new elements ──────────────────────────────── */
@media (max-width: 768px) {
  .mode-btn { font-size: 12px; padding: 8px 8px; }
}
