.fodmap-page {
  --fodmap-green: #45644f;
  --fodmap-green-deep: #263f34;
  --ink-muted: #505952;
  --shell: 1120px;
  --section-space: clamp(2.75rem, 5vw, 4rem);
  background: #faf9f5;
  color: #303b34;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.fodmap-page .inner-site-header { border-bottom: 1px solid #dce1d8; background: #faf9f5; }
.fodmap-page h1, .fodmap-page h2, .fodmap-page h3, .fodmap-page h4 {
  color: var(--fodmap-green-deep);
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.fodmap-page h1 { max-width: 17ch; margin-bottom: 1rem; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.fodmap-page h2 { margin-bottom: 0.85rem; font-size: clamp(1.7rem, 2.8vw, 2.25rem); }
.fodmap-page h3 { font-size: 1.2rem; }
.fodmap-page .eyebrow { margin-bottom: 0.85rem; font-size: 0.8rem; letter-spacing: 0.1em; }
.fodmap-page .button { min-height: 3rem; font-size: 0.9375rem; box-shadow: none; }
.fodmap-page main a:not(.button) { text-underline-offset: 0.2em; }
.fodmap-page :focus-visible { outline-color: #a36d1b; }

.fodmap-hero { padding: 8rem 0 2.5rem; background: #eef2e9; }
.fodmap-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: center; }
.fodmap-lede { max-width: 48ch; margin-bottom: 0; color: var(--ink-muted); font-size: 1.125rem; }
.fodmap-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.fodmap-at-a-glance { border-left: 1px solid #c7d2c1; padding-left: 2rem; }
.fodmap-at-a-glance h2 { margin-bottom: 1rem; font-size: 1.1rem; }
.fodmap-quick-facts { display: grid; gap: 0.9rem; padding: 0; margin: 0; list-style: none; }
.fodmap-quick-facts strong { display: block; font-size: 1rem; }
.fodmap-quick-facts span { display: block; max-width: 35ch; color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.5; }
.fodmap-boundary { background: #e4eadf; }
.fodmap-boundary .shell { display: flex; align-items: baseline; gap: 1.5rem; padding-block: 1rem; }
.fodmap-boundary strong { flex-shrink: 0; font-size: 0.9375rem; }
.fodmap-boundary p { margin: 0; font-size: 0.9375rem; }

.fodmap-page .section-heading-split { display: block; }
.fodmap-page .section-heading-split h2 { margin-bottom: 0.85rem; }
.fodmap-page .section-heading-split > p { max-width: 76ch; margin: 0; color: var(--ink-muted); font-size: 1.0625rem; }
.fodmap-food-grid { margin-top: 1.75rem; border: 1px solid #d7dfd2; border-radius: 0.75rem; overflow: hidden; }
.food-swap { display: grid; grid-template-columns: 0.65fr 1.35fr 1.35fr; background: #fffefa; }
.food-swap + .food-swap { border-top: 1px solid #d7dfd2; }
.food-swap > h3 { margin: 0; padding: 1.25rem; font-size: 1.0625rem; }
.food-choice { padding: 1.25rem; }
.food-choice-low { background: #f0f5ed; }
.food-choice-high { background: #fbf0e7; }
.food-choice h4 { display: flex; align-items: baseline; gap: 0.4rem; margin: 0 0 0.5rem; font-size: 0.875rem; letter-spacing: 0; }
.food-choice-low h4 { color: #315c3b; }
.food-choice-high h4 { color: #81451e; }
.food-choice p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.fodmap-serving-note { display: flex; align-items: start; gap: 1rem; margin-top: 1.25rem; padding: 1.25rem 1.5rem; border-left: 3px solid #8c713f; background: #f1ecdf; }
.fodmap-serving-note > span { flex-shrink: 0; color: #6a5127; font-size: 1.7rem; line-height: 1.2; }
.fodmap-serving-note h3 { margin: 0 0 0.35rem; font-size: 1.0625rem; }
.fodmap-serving-note p { max-width: 85ch; margin: 0; font-size: 1rem; }
.fodmap-serving-note a { font-weight: 650; }

.fodmap-procedure { background: #eaf0e5; }
.fodmap-procedure-head { max-width: 76ch; }
.fodmap-procedure .eyebrow-light { color: var(--gold); }
.fodmap-procedure-head > p { margin-bottom: 0; color: var(--ink-muted); }
.fodmap-steps { display: grid; gap: 0; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.fodmap-steps > li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid #c5d1bd; }
.step-number { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: var(--fodmap-green-deep); color: #fff; font-size: 1rem; font-weight: 700; }
.step-label { margin: 0 0 0.35rem; color: #4f6348; font-size: 0.875rem; font-weight: 650; }
.fodmap-steps h3 { margin-bottom: 0.75rem; font-size: 1.3rem; }
.step-actions { display: grid; gap: 0.35rem; max-width: 76ch; padding-left: 1.2rem; list-style: disc; }
.step-actions li { padding-left: 0.15rem; }
.fodmap-steps strong { display: block; margin-top: 0.75rem; font-size: 1rem; }

.fodmap-day-grid, .fodmap-question-grid, .fodmap-sources > .shell { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
.fodmap-day-copy > p:not(.eyebrow), .fodmap-question-intro { color: var(--ink-muted); }
.fodmap-day-note { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid #8b9e7f; }
.fodmap-day-note p { margin: 0.35rem 0 0; font-size: 1rem; }
.fodmap-meals { margin: 0; padding: 0; list-style: none; border-top: 1px solid #d7dfd2; }
.fodmap-meals li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid #d7dfd2; }
.fodmap-meals li > span { color: #66512c; font-size: 0.875rem; font-weight: 650; }
.fodmap-meals h3 { margin: 0 0 0.35rem; font-size: 1.125rem; }
.fodmap-meals p { margin: 0; font-size: 1rem; }
.fodmap-labels { border-block: 1px solid #e0e2d9; background: #f3f1e9; }
.fodmap-label-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; margin-top: 1.75rem; }
.fodmap-label-grid article { position: relative; padding-left: 2.75rem; }
.fodmap-label-grid span { position: absolute; left: 0; top: 0; color: #7a6033; font-size: 1rem; font-weight: 650; }
.fodmap-label-grid h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.fodmap-label-grid p { margin: 0; font-size: 1rem; }

.fodmap-faq { border-top: 1px solid #d7dfd2; }
.fodmap-faq details { border-bottom: 1px solid #d7dfd2; }
.fodmap-faq summary { position: relative; padding: 1.25rem 2rem 1.25rem 0; cursor: pointer; font-size: 1.0625rem; font-weight: 650; line-height: 1.5; list-style: none; }
.fodmap-faq summary::-webkit-details-marker { display: none; }
.fodmap-faq summary::after { position: absolute; top: 1.25rem; right: 0; content: "+"; color: var(--fodmap-green); }
.fodmap-faq details[open] summary::after { content: "−"; }
.fodmap-faq details p { margin: -0.25rem 0 1.25rem; padding-right: 1.5rem; font-size: 1rem; }
.fodmap-sources { padding-block: 3rem; background: var(--fodmap-green-deep); color: #edf1e9; }
.fodmap-sources h2 { color: #fffefa; }
.fodmap-sources .eyebrow-light { color: #e9d9b8; }
.fodmap-sources p { margin-bottom: 1rem; font-size: 1rem; }
.fodmap-sources ul { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.fodmap-sources a { display: inline-block; padding-block: 0.25rem; color: #f0dfb9; text-decoration: underline; font-size: 1rem; }
.fodmap-sources .fodmap-reviewed { margin-bottom: 0; font-size: 0.875rem; }
.fodmap-page .compact-footer { padding-top: 1.5rem; }
.fodmap-page .compact-footer a { color: var(--white); }

@media (max-width: 900px) {
  .fodmap-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .fodmap-at-a-glance { padding: 1.25rem 0 0; border-left: 0; border-top: 1px solid #c7d2c1; }
  .fodmap-at-a-glance h2 { display: none; }
  .fodmap-quick-facts { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .fodmap-quick-facts span { font-size: 0.875rem; }
  .fodmap-quick-facts strong { font-size: 0.9375rem; }
  .fodmap-day-grid, .fodmap-question-grid, .fodmap-sources > .shell { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .fodmap-page .shell { width: calc(100% - 2rem); }
  .fodmap-hero { padding: 6.75rem 0 1.75rem; }
  .fodmap-page h1 { font-size: 2.25rem; }
  .fodmap-lede { font-size: 1.0625rem; }
  .fodmap-hero-actions { gap: 0.5rem; margin-top: 1.25rem; }
  .fodmap-hero-actions .button { flex: 1 1 auto; padding-inline: 0.9rem; font-size: 0.875rem; }
  .fodmap-quick-facts { gap: 0.75rem; }
  .fodmap-quick-facts strong { margin-bottom: 0.25rem; }
  .fodmap-boundary .shell { display: block; }
  .fodmap-boundary strong { display: block; margin-bottom: 0.3rem; }
  .fodmap-food-grid { margin-top: 1.25rem; }
  .food-swap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-swap > h3 { grid-column: 1 / -1; padding: 0.85rem 1rem; }
  .food-choice { padding: 1rem 0.85rem; }
  .food-choice h4 { min-height: 2.4em; align-items: start; font-size: 0.875rem; line-height: 1.3; }
  .food-choice p { font-size: 1rem; }
  .fodmap-serving-note { padding: 1rem; gap: 0.75rem; }
  .fodmap-serving-note > span { display: none; }
  .fodmap-steps > li { grid-template-columns: 2rem 1fr; gap: 0.75rem; }
  .step-number { width: 2rem; height: 2rem; }
  .fodmap-steps h3 { font-size: 1.2rem; }
  .step-actions { padding-left: 1rem; font-size: 1rem; }
  .fodmap-label-grid { grid-template-columns: 1fr; }
  .fodmap-meals li { grid-template-columns: 1fr; gap: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.fodmap-page) { scroll-behavior: auto; }
}

@media print {
  .fodmap-page .site-header, .fodmap-hero-actions, .fodmap-page .site-footer { display: none !important; }
  .fodmap-hero { padding: 1rem 0; }
  .fodmap-page .section { padding-block: 1.5rem; }
  .fodmap-page h1 { max-width: none; }
  .fodmap-hero-grid, .fodmap-day-grid, .fodmap-question-grid, .fodmap-sources > .shell { grid-template-columns: 1fr; gap: 1rem; }
  .food-swap, .fodmap-steps > li, .fodmap-label-grid article { break-inside: avoid; }
  .fodmap-page .fodmap-sources { background: white; color: #303b34; padding-block: 1rem; }
  .fodmap-sources h2, .fodmap-sources a, .fodmap-sources .eyebrow-light { color: #263f34; }
}
