.detail-page {
  background:
    radial-gradient(circle at top left, rgba(237, 207, 171, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f2ea 0%, var(--warm-white) 100%);
}

.page-shell--detail {
  max-width: calc(var(--page-width) + 48px);
  padding-top: 12px;
}

.site-header--detail {
  position: sticky;
  top: 12px;
  z-index: 10;
  border-radius: 24px;
  border-bottom: 1px solid rgba(127, 123, 117, 0.16);
  background: rgba(250, 246, 240, 0.92);
  box-shadow: var(--shadow-soft);
}

.site-header--detail .site-nav a[aria-current="page"] {
  color: var(--rose);
}

.detail-main {
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.detail-hero {
  position: relative;
  margin-top: 18px;
  min-height: 410px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--rose);
  box-shadow: var(--shadow-card);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(197, 152, 163, 0.88) 0%, rgba(197, 152, 163, 0.82) 38%, rgba(197, 152, 163, 0.24) 72%, rgba(197, 152, 163, 0.04) 100%);
  pointer-events: none;
}

.detail-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% center;
}

.detail-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: 30px 28px 36px;
}

.detail-hero__kicker,
.detail-panel__eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-hero__kicker {
  color: rgba(245, 240, 232, 0.9);
}

.detail-hero h1,
.detail-panel h2,
.guidance-block__head h3,
.psych-highlight h3,
.overview-card h3,
.question-box--detail h2,
.editorial-signoff p {
  margin: 0;
  font-family: "Crimson Text", "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.detail-hero h1 {
  font-size: clamp(3.25rem, 11vw, 5rem);
  line-height: 0.92;
  color: var(--warm-white-strong);
}

.detail-hero__text {
  max-width: 22ch;
  margin: 18px 0 0;
  font-size: clamp(1.18rem, 4vw, 1.6rem);
  line-height: 1.18;
  color: rgba(245, 240, 232, 0.96);
  text-wrap: balance;
}

.detail-tabs {
  padding-top: 16px;
}

.detail-tabs__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 24px 16px;
  border-bottom: 1px solid rgba(125, 122, 117, 0.28);
  scrollbar-width: none;
}

.detail-tabs__list::-webkit-scrollbar {
  display: none;
}

.detail-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(127, 123, 117, 0.22);
  border-radius: 14px;
  background: rgba(250, 246, 240, 0.64);
  color: rgba(74, 74, 72, 0.58);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(74, 74, 72, 0.06);
}

.detail-tab:hover {
  border-color: rgba(197, 152, 163, 0.5);
  background: rgba(250, 246, 240, 0.88);
  color: var(--rose);
  box-shadow: 0 4px 12px rgba(74, 74, 72, 0.1);
}

.detail-tab.is-active,
.detail-tab[aria-selected="true"] {
  border-color: rgba(197, 152, 163, 0.86);
  background: rgba(197, 152, 163, 0.18);
  color: var(--rose);
}

.detail-tab-panels {
  padding: 28px 24px 0;
}

.detail-panel {
  max-width: 980px;
  margin: 0 auto;
}

.detail-panel__intro {
  padding-bottom: 14px;
}

.detail-panel__eyebrow {
  color: rgba(197, 152, 163, 0.88);
}

.detail-panel h2 {
  font-size: clamp(2.45rem, 8vw, 3.55rem);
  line-height: 0.95;
  color: rgba(74, 74, 72, 0.96);
}

.detail-panel__lede,
.guidance-block__text,
.psych-copy p {
  margin: 16px 0 0;
  font-size: 1.02rem;
  line-height: 1.62;
  color: rgba(74, 74, 72, 0.84);
}

.overview-highlight {
  margin-top: 18px;
  padding: 28px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #d8dfcf 0%, #d4dbc9 100%);
}

.overview-highlight p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.76;
  text-align: center;
  color: rgba(74, 74, 72, 0.9);
}

.overview-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-bottom: 4px;
}

.overview-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 22px 20px;
  border-radius: 18px;
  text-align: center;
}

.overview-card--sage {
  background: rgba(213, 223, 211, 0.82);
}

.overview-card--rose {
  background: rgba(228, 214, 218, 0.94);
}

.overview-card h3 {
  font-size: 1.9rem;
  line-height: 0.96;
}

.overview-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.28;
  color: rgba(74, 74, 72, 0.86);
}

.nutrition-quote {
  margin: 18px 0 0;
  padding: 10px 0 14px;
  font-family: "Crimson Text", "Times New Roman", serif;
  font-size: clamp(1.62rem, 5vw, 2.1rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.38;
  text-align: center;
  color: rgba(197, 152, 163, 0.98);
}

.guidance-block {
  margin-top: 18px;
}

.guidance-block--spaced {
  margin-top: 28px;
}

.guidance-block--remission {
  margin-top: 30px;
  padding-bottom: 8px;
}

.guidance-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.guidance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-white-strong);
}

.guidance-badge--gold {
  background: #d7a95a;
}

.guidance-badge--rose {
  background: #d58a88;
}

.guidance-badge--sage {
  background: #8eab83;
}

.guidance-block__head h3 {
  font-size: clamp(1.72rem, 5vw, 2.2rem);
  line-height: 1;
}

.guidance-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.guidance-list__item {
  position: relative;
  padding: 14px 16px 14px 48px;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.42;
}

.guidance-list__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.guidance-list--warm .guidance-list__item {
  background: rgba(237, 207, 171, 0.28);
  color: rgba(126, 94, 54, 0.96);
}

.guidance-list__item--suggested::before {
  background-image: url("assets/bell.png");
}

.guidance-list--rose .guidance-list__item {
  background: rgba(228, 214, 218, 0.84);
  color: rgba(160, 86, 90, 0.96);
}

.guidance-list__item--avoid::before {
  background-image: url("assets/x.png");
}

.guidance-list--sage .guidance-list__item {
  background: rgba(213, 223, 211, 0.92);
  color: rgba(71, 96, 67, 0.96);
}

.guidance-list__item--reintroduce::before {
  background-image: url("assets/white_check_mark.png");
}

.guidance-note {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 3px solid rgba(213, 138, 136, 0.78);
  background: rgba(228, 214, 218, 0.7);
  font-size: 0.98rem;
  line-height: 1.56;
  color: rgba(126, 84, 80, 0.96);
}

.psych-highlight {
  margin-top: 16px;
  padding: 24px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(237, 207, 171, 0.34) 0%, rgba(237, 207, 171, 0.24) 100%);
}

.psych-highlight h3 {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  line-height: 0.98;
}

.psych-highlight p {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.62;
  color: rgba(74, 74, 72, 0.84);
}

.psych-copy {
  padding-top: 18px;
  padding-bottom: 10px;
}

.editorial-signoff {
  padding-top: 34px;
  text-align: center;
}

.editorial-signoff p {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.24;
  color: rgba(197, 152, 163, 0.92);
}

.question-box--detail {
  padding-top: 20px;
}

.question-box__content--detail {
  max-width: 980px;
  margin: 0 auto;
  padding: 38px 20px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #d7abb6 0%, var(--rose) 100%);
  box-shadow: none;
  text-align: center;
}

.question-box--detail h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(2.2rem, 7vw, 3.35rem);
  line-height: 0.94;
  text-align: center;
  color: rgba(74, 74, 72, 0.95);
}

.question-box--detail p {
  text-align: center;
  color: rgba(74, 74, 72, 0.84);
}

.question-box--detail small {
  text-align: center;
}

.site-footer--detail {
  gap: 14px;
  margin-top: 12px;
  padding: 18px 8px 0;
}

.footer-brand--detail p {
  max-width: 34rem;
}

.footer-meta {
  display: grid;
  gap: 12px;
  width: 100%;
}

.footer-partner--detail {
  align-self: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(127, 123, 117, 0.94);
}

@media (min-width: 720px) {
  .page-shell--detail {
    padding-top: 18px;
  }

  .detail-main {
    border-radius: 0;
  }

  .detail-hero {
    min-height: 520px;
  }

  .detail-hero__copy {
    padding: 38px 36px 44px;
  }

  .detail-tabs__list {
    justify-content: flex-start;
    gap: 28px;
    padding-inline: 30px;
  }

  .detail-tab-panels {
    padding-inline: 30px;
  }

  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .question-box__content--detail {
    padding: 44px 28px 26px;
  }
}

@media (min-width: 980px) {
  .page-shell--detail {
    padding-inline: 24px;
  }

  .site-header--detail {
    padding-inline: 26px;
  }

  .detail-main {
    border-radius: 0;
  }

  .detail-hero {
    min-height: 560px;
  }

  .detail-hero__copy {
    max-width: 38rem;
    padding: 52px 36px 54px;
  }

  .detail-tab-panels {
    padding-top: 34px;
    padding-bottom: 8px;
  }

  .detail-panel h2 {
    max-width: none;
  }

  .question-box__content--detail {
    padding: 48px 36px 24px;
  }

  .footer-meta {
    justify-items: end;
    align-content: end;
    width: auto;
  }
}
