:root {
  --bg: #f6f3ec;
  --text: #223047;
  --muted: #5e6b7c;
  --orange: #c97c4a;
  --yellow: #dcc37a;
  --mint: #b8d8cd;
  --teal: #2f7d73;
  --sky: #c7d9e5;
  --berry: #b76b78;
  --card: rgba(255, 255, 255, 0.94);
  --border: rgba(34, 48, 71, 0.1);
  --shadow: 0 10px 28px rgba(50, 68, 92, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #f7f4ee 0%, #f1ede5 100%);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  z-index: -2;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.08;
}

.sky-left {
  top: -10rem;
  left: -10rem;
  background: #ff7f50;
}

.sky-right {
  bottom: -12rem;
  right: -8rem;
  background: #74d7be;
}

.sprinkles {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 5vw;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.9);
  border-bottom: 1px solid rgba(34, 48, 71, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 3.35rem;
  height: 3.35rem;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(50, 68, 92, 0.18);
}

.brand-wording {
  display: grid;
  line-height: 0.9;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #223047;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.brand-wording strong {
  font-family: "Fredoka", sans-serif;
  font-size: 1.78rem;
  font-weight: 600;
}

.brand-wording small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, #2f7d73, #223047);
  box-shadow: 0 14px 28px rgba(34, 48, 71, 0.26);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-toggle-icon span {
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav a,
.site-nav-button,
.button,
.ingredient,
.challenge-item,
.compare-card,
.power-card,
.fact-card,
.swap-card {
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.site-nav a.is-active {
  color: var(--teal);
}

.site-nav-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-nav-button.is-active {
  color: var(--teal);
}

.site-nav a:hover,
.brand:hover,
.button:hover,
.ingredient:hover,
.compare-card:hover,
.power-card:hover,
.fact-card:hover,
.swap-card:hover {
  transform: none;
}

main,
.site-footer {
  padding-inline: 5vw;
}

.hero,
.section {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 3.75rem 0 2rem;
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.flip-card-wrapper {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
  width: 100%;
}

.flip-card {
  cursor: pointer;
  width: 305px;
  height: 305px;
  position: relative;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.18s ease-in;
  transform-origin: center;
}

.flip-card-inner.is-mid {
  transition: none;
  transform: scaleX(0);
}

.flip-card-inner.is-flipping-back {
  transition: transform 0.18s ease-out;
  transform: scaleX(1);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
}

.flip-card-front {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
}

.flip-card-back {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 1rem;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.4rem 1.6rem;
  gap: 0.6rem;
  box-sizing: border-box;
}

.flip-card.is-flipped .flip-card-front { display: none; }
.flip-card.is-flipped .flip-card-back  { display: flex; }

.flip-card-back strong,
.flip-card-text strong {
  font-size: 1rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.flip-card-back ul,
.flip-card-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.flip-card-back ul li,
.flip-card-text ul li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.flip-card-back p,
.flip-card-text p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.flip-card-text {
  padding: 0.25rem 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.8rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: rgba(47, 125, 115, 0.09);
  color: var(--teal);
  font-size: 0.88rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}

h1,
h2,
h3 {
  font-family: "Merriweather", serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 4.9vw, 4.4rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  line-height: 1.6;
}

.hero-text,
.section-heading p,
.score-feedback,
.quiz-result,
.drink-note,
.drink-detail,
.meter-copy,
.source-list,
.compare-card ul {
  color: var(--muted);
}

.hero-actions,
.hero-highlights,
.mission-columns,
.dashboard-grid,
.challenge-shell,
.lab-layout,
.quiz-layout,
.playground-grid,
.compare-grid,
.power-grid,
.parent-grid,
.swap-track {
  display: grid;
  gap: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1rem;
}

.hero-highlights {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-highlights span {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f7d73, #497f92);
  box-shadow: 0 8px 20px rgba(47, 125, 115, 0.16);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
}

.hero-stage {
  display: grid;
  gap: 1rem;
}

.hero-media-card,
.dashboard-card,
.mission-panel,
.compare-card,
.power-card,
.challenge-list,
.challenge-meter,
.score-card,
.quiz-card,
.swap-showcase,
.lab-card,
.fact-card,
.parent-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-media-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  background: #fff;
}

.dashboard-card,
.mission-panel,
.challenge-list,
.challenge-meter,
.score-card,
.quiz-card,
.swap-showcase,
.lab-card {
  padding: 1.4rem;
}

.hero-media-primary {
  width: 100%;
  min-height: 320px;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-media-caption {
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
}

.hero-media-caption strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Merriweather", serif;
  font-size: 1.05rem;
}

.hero-media-caption p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
}

.notice-card,
.summary-card,
.audience-grid article,
.doctor-grid article,
.menu-card,
.faq-list details,
.info-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.notice-card,
.summary-card,
.menu-card,
.doctor-grid article,
.audience-grid article,
.faq-list details,
.info-grid article {
  padding: 1.35rem;
}

.summary-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.summary-panel {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(244, 241, 235, 0.92);
  border: 1px solid var(--border);
}

.summary-panel strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Merriweather", serif;
}

.summary-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.audience-grid,
.doctor-grid,
.menu-grid,
.info-grid,
.building-blocks-grid,
.signs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.information-section {
  padding-top: 2.5rem;
}

.information-section .section-heading p:last-child {
  margin-bottom: 0;
}

.info-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 241, 235, 0.95));
}

.info-grid h3 {
  margin-bottom: 0.55rem;
  color: var(--teal);
}

.info-grid p {
  margin: 0;
  color: var(--muted);
}

.building-blocks-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.building-block-card,
.signs-grid article,
.myth-card,
.consult-grid article,
.picky-grid article,
.meal-card,
.diary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.building-block-card,
.signs-grid article,
.myth-card,
.consult-grid article,
.picky-grid article,
.meal-card,
.diary-card {
  padding: 1.4rem;
}

.building-block-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 241, 235, 0.98)),
    linear-gradient(135deg, rgba(184, 216, 205, 0.18), rgba(199, 217, 229, 0.16));
}

.building-block-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.8rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 125, 115, 0.1);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.building-block-card h3,
.signs-grid h3 {
  margin-bottom: 0.55rem;
}

.building-block-card p,
.signs-grid p,
.myth-card p {
  margin: 0;
  color: var(--muted);
}

.myths-list {
  display: grid;
  gap: 1rem;
}

.consult-grid,
.picky-grid,
.meal-ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.myth-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Merriweather", serif;
  font-size: 1.12rem;
  color: var(--text);
}

.consult-grid h3,
.picky-grid h3 {
  margin-bottom: 0.55rem;
}

.consult-grid p,
.picky-grid p,
.meal-card p {
  margin: 0;
  color: var(--muted);
}

.meal-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Merriweather", serif;
  font-size: 1.15rem;
  color: var(--teal);
}

.diary-card {
  overflow: hidden;
  padding: 0;
}

.diary-head,
.diary-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr 0.9fr 0.8fr 1.4fr;
}

.diary-head {
  background: rgba(244, 241, 235, 0.96);
  font-weight: 800;
  color: var(--text);
}

.diary-head span,
.diary-row span {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
}

.diary-row span {
  min-height: 3.4rem;
  color: var(--muted);
}

.diary-row:last-child span {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

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

.download-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

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

.source-card {
  display: grid;
  gap: 0.6rem;
}

.source-card a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.source-card a:hover {
  text-decoration: underline;
}

.recipe-library-grid,
.recipe-grid {
  display: grid;
  gap: 1rem;
}

.recipe-chapter-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.recipe-library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipe-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.recipe-info-card,
.recipe-tip-card,
.recipe-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.recipe-info-card,
.recipe-tip-card {
  padding: 1.25rem;
}

.recipe-info-card strong,
.recipe-tip-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-family: "Merriweather", serif;
}

.recipe-inline-list,
.recipe-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.recipe-inline-list li,
.recipe-card li,
.recipe-card p,
.recipe-info-card p,
.recipe-tip-card p {
  color: var(--muted);
}

.recipe-hero-media,
.recipe-inline-media,
.recipe-card-media {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
}

.recipe-hero-media {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.recipe-hero-media-compact {
  max-width: 460px;
}

.recipe-hero-media img,
.recipe-inline-media img,
.recipe-card-media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.recipe-hero-media img {
  max-height: 340px;
}

.recipe-inline-media img {
  height: 240px;
}

.recipe-card-media img {
  height: 220px;
}

.recipe-card {
  overflow: hidden;
}

.recipe-card summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.25rem;
  font-family: "Merriweather", serif;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--text);
}

.recipe-card summary::-webkit-details-marker {
  display: none;
}

.recipe-card summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.recipe-card[open] summary::after {
  content: "-";
}

.recipe-card-body {
  display: grid;
  gap: 0.8rem;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(34, 48, 71, 0.08);
}

.recipe-card-body p {
  margin: 0;
}

.recipe-subtitle,
.recipe-note {
  font-weight: 800;
  color: var(--text) !important;
}

.recipe-note {
  font-size: 0.92rem;
}

.recipe-chapter-section .section-heading,
.recipe-library-intro .section-heading {
  max-width: 850px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.hero-secondary-media {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hero-secondary-media img {
  width: 100%;
  height: 170px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.hero-secondary-media p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.card-kicker,
.compare-source,
.score-label,
.swap-bad,
.swap-good {
  margin: 0 0 0.65rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.dashboard-grid a,
.dashboard-grid article {
  padding: 1.1rem 1rem;
  border-radius: 22px;
  background: rgba(244, 241, 235, 0.92);
  text-align: left;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dashboard-grid a:hover,
.dashboard-grid a:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(34, 48, 71, 0.12);
}

.dashboard-grid a:focus-visible {
  outline: 2px solid rgba(47, 125, 115, 0.45);
  outline-offset: 2px;
}

.dashboard-grid strong {
  display: block;
  font-family: "Merriweather", serif;
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.dashboard-grid span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.section {
  padding: 3.5rem 0;
}

.page-index {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.page-index-shell {
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.route-choice-grid,
.guidance-grid,
.footer-grid,
.recipe-filter-row {
  display: grid;
  gap: 1rem;
}

.route-choice-grid,
.guidance-grid,
.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-image-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.feature-image-figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  line-height: 0;
}

.feature-image-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.feature-link-card {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.feature-link-card--media {
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
}

.feature-link-card--media img {
  grid-column: 2;
  grid-row: 1 / 3;
  height: 64px;
  width: auto;
  object-fit: contain;
  align-self: center;
}

.feature-link-card--media strong {
  grid-column: 1;
  grid-row: 1;
}

.feature-link-card--media p {
  grid-column: 1;
  grid-row: 2;
}

.feature-link-card strong {
  font-family: "Merriweather", serif;
  font-size: 1.15rem;
}

.feature-link-card p {
  margin: 0;
  color: var(--muted);
}

.route-choice-card,
.guidance-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.route-choice-kicker {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.route-choice-card strong,
.guidance-card strong,
.footer-column strong {
  font-family: "Merriweather", serif;
  font-size: 1.08rem;
}

.route-choice-card p,
.guidance-card p,
.footer-column p {
  margin: 0;
  color: var(--muted);
}

.recipe-tools {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.recipe-filter-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  align-items: start;
}

.recipe-filter-button {
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.recipe-filter-button.is-active {
  background: rgba(47, 125, 115, 0.12);
  border-color: rgba(47, 125, 115, 0.28);
  color: var(--teal);
}

.recipe-search-feedback {
  margin: 0;
  color: var(--muted);
}

.recipe-search-shell {
  grid-template-columns: 1fr;
}

.footer-grid {
  padding: 1.35rem 0 1rem;
  border-top: 1px solid rgba(34, 48, 71, 0.08);
}

.footer-column {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-column a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-note {
  margin: 0;
  color: var(--muted);
}

.print-sheet {
  display: none;
}

.site-map-section .section-heading {
  max-width: 760px;
}

.page-hero {
  padding-bottom: 2.5rem;
}

.start-here-grid,
.download-grid,
.sources-grid {
  display: grid;
  gap: 1rem;
}

.start-here-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.start-here-card,
.download-card,
.source-card {
  padding: 1.2rem;
  background: rgba(244, 241, 235, 0.86);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.start-here-card strong,
.download-card strong,
.source-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Merriweather", serif;
}

.start-here-card p,
.download-card p,
.source-card p {
  margin: 0;
  color: var(--muted);
}

.page-tools {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  margin-top: 1rem;
  align-items: end;
}

.search-shell {
  display: grid;
  gap: 0.45rem;
  font-weight: 800;
}

.search-shell input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
}

.search-feedback {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.page-tab {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(244, 241, 235, 0.76);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.page-tab.is-active {
  background: linear-gradient(135deg, #2f7d73, #497f92);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 125, 115, 0.18);
}

.panel-progress {
  height: 10px;
  margin-top: 1rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(34, 48, 71, 0.08);
}

.panel-progress-fill {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c7d9e5, #497f92, #2f7d73);
  transition: width 220ms ease;
}

.panel-summary-card {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
}

.panel-summary-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

[data-panel-group][hidden] {
  display: none !important;
}

.mission-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.compare-grid,
.power-grid,
.parent-grid,
.research-cards,
.research-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-card,
.power-card,
.parent-grid article,
.fact-card,
.research-card,
.result-card {
  padding: 1.35rem;
}

.ellen-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ellen-story,
.ellen-quote,
.research-card,
.result-card,
.vision-story,
.vision-quote,
.rule-card,
.vision-result-card,
.viv-story {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.ellen-story,
.ellen-quote {
  padding: 1.4rem;
}

.ellen-quote {
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 241, 235, 0.94));
}

.ellen-quote p {
  margin: 0 0 1rem;
  font-family: "Merriweather", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.35;
}

.ellen-quote span {
  color: var(--teal);
  font-weight: 800;
}

.ellen-research {
  position: relative;
}

.research-cards,
.research-results {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.vision-grid,
.rules-grid,
.vision-results {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.vision-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

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

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

.vision-story,
.vision-quote,
.rule-card,
.vision-result-card,
.viv-story {
  padding: 1.4rem;
}

.vision-quote {
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(241, 245, 247, 0.94));
}

.vision-quote p {
  margin: 0 0 1rem;
  font-family: "Merriweather", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}

.vision-quote span {
  color: var(--teal);
  font-weight: 800;
}

.rule-card span {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #497f92, #2f7d73);
  color: #fff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.vision-result-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Merriweather", serif;
  font-size: 1.2rem;
  color: var(--teal);
}

.viv-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.viv-badge {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1.2rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 241, 235, 0.94));
  text-align: center;
}

.viv-badge p {
  margin: 0.6rem 0 0;
  font-family: "Merriweather", serif;
  font-size: 1.25rem;
  line-height: 1.35;
}

.result-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Merriweather", serif;
  font-size: 1.2rem;
  color: var(--teal);
}

.compare-card ul,
.source-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.power-card {
  min-height: 200px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 226, 0.86));
}

.power-card span {
  display: inline-flex;
  font-size: 2.2rem;
  margin-bottom: 0.45rem;
}

.challenge-shell {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.challenge-list {
  display: grid;
  gap: 0.9rem;
}

.challenge-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(34, 48, 71, 0.07);
  cursor: pointer;
  font-weight: 800;
}

.interactive-intro {
  padding-bottom: 0.75rem;
}

.planner-meter,
.quiz-note {
  align-self: start;
}

.challenge-item:has(input:checked) {
  border-color: rgba(47, 125, 115, 0.28);
  background: rgba(184, 216, 205, 0.18);
}

.challenge-item input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--teal);
}

.meter-track,
.mood-meter {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(34, 48, 71, 0.08);
}

.meter-fill,
.mood-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 240ms ease;
  background: linear-gradient(90deg, #c7d9e5, #497f92, #2f7d73);
}

.meter-score {
  margin: 1rem 0 0.35rem;
  font-family: "Merriweather", serif;
  font-size: 1.6rem;
}

.playground-grid {
  grid-template-columns: 1fr 0.95fr;
  align-items: start;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.games-shell {
  position: relative;
  padding: 1.6rem;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(241, 247, 245, 0.94));
  border: 1px solid rgba(34, 48, 71, 0.07);
  box-shadow: 0 20px 44px rgba(50, 68, 92, 0.08);
  overflow: hidden;
}

.games-spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.games-spark-left {
  top: -3rem;
  left: -2rem;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, rgba(220, 195, 122, 0.3), rgba(220, 195, 122, 0));
}

.games-spark-right {
  right: -2rem;
  bottom: -3rem;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(184, 216, 205, 0.34), rgba(184, 216, 205, 0));
}

.games-heading,
.games-note,
.games-grid {
  position: relative;
  z-index: 1;
}

.games-heading {
  max-width: 780px;
}

.games-intro-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.games-intro-bar span {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(34, 48, 71, 0.07);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.games-note {
  margin: 1.2rem 0 1.4rem;
  max-width: 420px;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(34, 48, 71, 0.06);
}

.games-note strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Merriweather", serif;
  color: var(--teal);
}

.games-note p {
  margin: 0;
  color: var(--muted);
}

.mascot-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 1.25rem;
  margin: 0.2rem 0 1.6rem;
  padding: 0.8rem 0 0.2rem;
}

.food-buddy {
  position: relative;
  width: 5.4rem;
  height: 5.4rem;
  flex: 0 0 auto;
  border-radius: 30px;
  box-shadow: 0 12px 24px rgba(50, 68, 92, 0.12);
  animation: buddyBounce 3.4s ease-in-out infinite;
}

.food-buddy::before,
.food-buddy::after {
  content: "";
  position: absolute;
  background: rgba(34, 48, 71, 0.78);
}

.food-buddy::before {
  width: 0.75rem;
  height: 0.18rem;
  left: -0.45rem;
  top: 2.8rem;
  border-radius: 999px;
  transform: rotate(26deg);
  transform-origin: right center;
  animation: buddyWave 1.8s ease-in-out infinite;
}

.food-buddy::after {
  width: 0.75rem;
  height: 0.18rem;
  right: -0.45rem;
  top: 2.8rem;
  border-radius: 999px;
  transform: rotate(-26deg);
  transform-origin: left center;
  animation: buddyWaveRight 1.8s ease-in-out infinite;
}

.buddy-face {
  position: absolute;
  inset: 0;
}

.buddy-face::before,
.buddy-face::after {
  content: "";
  position: absolute;
  top: 2.15rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #223047;
}

.buddy-face::before {
  left: 1.8rem;
}

.buddy-face::after {
  right: 1.8rem;
}

.buddy-broccoli {
  width: 5.1rem;
  height: 6rem;
  border-radius: 28px 28px 22px 22px;
  background:
    radial-gradient(circle at 30% 26%, #9fe19d 0 18%, transparent 19%),
    radial-gradient(circle at 50% 18%, #78c46e 0 22%, transparent 23%),
    radial-gradient(circle at 70% 28%, #62aa57 0 19%, transparent 20%),
    linear-gradient(180deg, #82c86a 0 56%, #6d8b4f 56% 100%);
}

.buddy-broccoli .buddy-face {
  top: 0.45rem;
}

.buddy-broccoli .buddy-face::before,
.buddy-broccoli .buddy-face::after {
  top: 2.4rem;
}

.buddy-milk {
  background:
    linear-gradient(180deg, #ffffff 0 18%, #9fd1e8 18% 28%, #ffffff 28% 100%);
  border: 3px solid rgba(73, 127, 146, 0.24);
  animation-delay: 0.35s;
}

.buddy-milk .buddy-face::before,
.buddy-milk .buddy-face::after {
  top: 2.2rem;
}

.buddy-butter {
  width: 5.8rem;
  height: 4.7rem;
  margin-bottom: 0.2rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #ffe9a6 0%, #f6cf68 100%);
  animation-delay: 0.7s;
}

.buddy-butter .buddy-face::before,
.buddy-butter .buddy-face::after {
  top: 1.85rem;
}

.card-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-sparkles span {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
  animation: sparkleFloat 4.5s ease-in-out infinite;
}

.card-sparkles span:nth-child(1) {
  top: 1rem;
  right: 1.4rem;
}

.card-sparkles span:nth-child(2) {
  top: 3.8rem;
  right: 3rem;
  width: 0.45rem;
  height: 0.45rem;
  animation-delay: 1s;
}

.card-sparkles span:nth-child(3) {
  bottom: 1.4rem;
  right: 1.8rem;
  width: 0.5rem;
  height: 0.5rem;
  animation-delay: 2s;
}

.game-card {
  position: relative;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 238, 0.94));
  border: 1px solid rgba(34, 48, 71, 0.08);
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(50, 68, 92, 0.11);
  display: grid;
  gap: 1rem;
  align-content: start;
  overflow: hidden;
}

.game-card h3 {
  max-width: 11ch;
}

.game-card h3,
.game-copy,
.hero-picker,
.match-game,
.mission-display,
.game-feedback,
.game-card .button,
.game-card-top {
  position: relative;
  z-index: 1;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #dcc37a, #c97c4a, #2f7d73);
}

.game-card::after {
  content: "";
  position: absolute;
  top: -4.5rem;
  right: -3.5rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(34, 48, 71, 0.08);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.game-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(34, 48, 71, 0.08);
  font-size: 1.35rem;
}

.game-card .card-kicker {
  display: none;
}

.game-card-heroes {
  background:
    linear-gradient(180deg, rgba(255, 252, 239, 0.98), rgba(250, 246, 232, 0.94));
}

.game-card-match {
  background:
    linear-gradient(180deg, rgba(242, 248, 251, 0.98), rgba(238, 246, 249, 0.94));
}

.game-copy,
.game-feedback,
.mission-display p {
  margin: 0;
  color: var(--muted);
}

.hero-picker,
.match-column {
  display: grid;
  gap: 0.75rem;
}

.hero-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-option,
.match-option {
  position: relative;
  padding: 1rem 1rem;
  border: 1px solid rgba(34, 48, 71, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(50, 68, 92, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-option:hover,
.match-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(50, 68, 92, 0.09);
}

.hero-option.is-correct {
  background: linear-gradient(135deg, rgba(184, 216, 205, 0.36), rgba(255, 255, 255, 0.96));
  border-color: rgba(47, 125, 115, 0.32);
}

.hero-option.is-wrong {
  background: linear-gradient(135deg, rgba(183, 107, 120, 0.16), rgba(255, 255, 255, 0.94));
  border-color: rgba(183, 107, 120, 0.22);
}

.hero-option.is-found {
  box-shadow: inset 0 0 0 2px rgba(47, 125, 115, 0.12);
}

.game-feedback {
  min-height: 3.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(34, 48, 71, 0.1);
  font-weight: 700;
}

.match-game {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.match-column {
  padding: 0.85rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(34, 48, 71, 0.06);
}

.match-option.is-selected {
  border-color: rgba(47, 125, 115, 0.36);
  background: linear-gradient(135deg, rgba(199, 217, 229, 0.4), rgba(255, 255, 255, 0.92));
}

.match-option.is-matched {
  background: linear-gradient(135deg, rgba(184, 216, 205, 0.3), rgba(255, 255, 255, 0.94));
  border-color: rgba(47, 125, 115, 0.24);
  opacity: 0.65;
}

.mission-card {
  background:
    linear-gradient(180deg, rgba(242, 250, 246, 0.98), rgba(234, 245, 240, 0.94));
}

@keyframes buddyBounce {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes buddyWave {
  0%,
  100% {
    transform: rotate(26deg);
  }

  50% {
    transform: rotate(42deg);
  }
}

@keyframes buddyWaveRight {
  0%,
  100% {
    transform: rotate(-26deg);
  }

  50% {
    transform: rotate(-42deg);
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.55;
  }

  50% {
    transform: translateY(-8px) scale(1.08);
    opacity: 1;
  }
}

.mission-display {
  padding: 1.1rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 241, 235, 0.86));
  border: 1px solid rgba(34, 48, 71, 0.08);
}

.mission-display strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Merriweather", serif;
  font-size: 1.1rem;
  color: var(--teal);
}

.ingredient-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.ingredient {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ingredient span {
  font-size: 1.7rem;
}

.ingredient.selected {
  border-color: rgba(255, 95, 122, 0.45);
  background: linear-gradient(135deg, rgba(255, 216, 87, 0.42), rgba(255, 255, 255, 0.92));
}

.ingredient.less-ideal {
  background: rgba(255, 95, 122, 0.1);
}

.plate-panel {
  display: grid;
  gap: 1rem;
}

.plate {
  min-height: 320px;
  border-radius: 50%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 54%, rgba(255, 216, 87, 0.28) 55% 68%, rgba(255, 255, 255, 0.84) 69% 100%);
  box-shadow: inset 0 0 0 1px rgba(34, 48, 71, 0.06), var(--shadow);
}

.plate-item {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-weight: 800;
}

.score-number {
  margin: 0.2rem 0 0.8rem;
  font-family: "Baloo 2", cursive;
  font-size: 3.4rem;
}

.mood-meter {
  margin-bottom: 0.9rem;
}

.quiz-layout {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.quiz-options {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.quiz-option {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quiz-option.correct {
  background: rgba(184, 216, 205, 0.24);
  border-color: rgba(47, 125, 115, 0.28);
}

.quiz-option.wrong {
  background: rgba(183, 107, 120, 0.12);
  border-color: rgba(183, 107, 120, 0.22);
}

.swap-showcase {
  display: grid;
  gap: 1rem;
}

.swap-track {
  grid-template-columns: 1fr;
}

.swap-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255, 252, 242, 0.92);
  border: 1px solid rgba(34, 48, 71, 0.07);
}

.swap-arrow {
  font-size: 2rem;
  margin: 0.35rem 0;
}

.lab-layout {
  grid-template-columns: 1fr 0.75fr;
  align-items: start;
}

.lab-card {
  display: grid;
  gap: 1rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.drink-name {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 2rem;
}

.sugar-cubes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 3.2rem;
}

.cube {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(34, 48, 71, 0.08);
  background: linear-gradient(145deg, #ffffff 0%, #eef2f4 100%);
  box-shadow: inset -4px -4px 8px rgba(34, 48, 71, 0.05);
}

.fact-stack {
  display: grid;
  gap: 1rem;
}

.fact-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--teal);
  font-family: "Baloo 2", cursive;
  font-size: 1.45rem;
}

.source-list a {
  color: var(--text);
}

.site-footer {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7d73, #497f92);
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(50, 68, 92, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    padding-block: 0.9rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 0.4rem 0;
    white-space: nowrap;
  }

  .site-nav-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero,
  .challenge-shell,
  .quiz-layout,
  .summary-card,
  .ellen-grid,
  .vision-grid,
  .rules-grid,
  .vision-results,
  .viv-story,
  .audience-grid,
  .doctor-grid,
  .menu-grid,
  .parent-grid,
  .info-grid,
  .games-grid,
  .building-blocks-grid,
  .signs-grid,
  .consult-grid,
  .picky-grid,
  .meal-ideas-grid,
  .start-here-grid,
  .download-grid,
  .recipe-grid,
  .recipe-library-grid,
  .recipe-chapter-media-grid,
  .feature-link-grid,
  .route-choice-grid,
  .guidance-grid,
  .footer-grid,
  .sources-grid,
  .research-cards,
  .research-results,
  .mission-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1.5rem;
    padding-top: 2.75rem;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .dashboard-card,
  .mission-panel,
  .challenge-list,
  .challenge-meter,
  .quiz-card,
  .lab-card {
    padding: 1.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .page-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .page-tab {
    flex: 0 0 auto;
  }

  .page-tools {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    padding: 1rem;
  }

  .rules-shell {
    gap: 1rem;
  }

  .games-shell {
    padding: 1.2rem;
    border-radius: 28px;
  }

  .mascot-stage {
    gap: 0.9rem;
  }

  .hero-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.home-page {
    background:
      linear-gradient(180deg, #f6f0df 0%, #f1e9d4 16rem, #f3eee3 16rem, #f1ede5 100%);
  }

  .site-header {
    gap: 0.8rem;
    padding-inline: 1rem;
    align-items: center;
    flex-wrap: wrap;
  }

  body.home-page .site-header {
    padding: 1rem;
    background: rgba(246, 240, 223, 0.96);
    border-bottom: 1px solid rgba(34, 48, 71, 0.08);
    box-shadow: 0 10px 30px rgba(79, 67, 34, 0.08);
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
  }

  .brand-logo {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 22px rgba(55, 74, 110, 0.18);
  }

  .brand-wording {
    min-width: 0;
    line-height: 1;
  }

  .brand-wording strong {
    font-size: 1.45rem;
  }

  .brand-wording small {
    margin-top: 0.18rem;
    font-size: 0.68rem;
    line-height: 1.05;
    letter-spacing: 0.04em;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  body.home-page .brand-wording strong {
    font-size: 1.9rem;
    color: #3e5380;
  }

  body.home-page .brand-wording small {
    margin-top: 0.3rem;
    color: #4d6288;
    font-size: 0.96rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 900;
    line-height: 1.15;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.home-page .nav-toggle {
    width: 4rem;
    height: 4rem;
    padding: 0;
    background: linear-gradient(135deg, #304c78, #1b2d4a);
    box-shadow: 0 16px 32px rgba(27, 45, 74, 0.24);
  }

  body.home-page .nav-toggle-icon span {
    width: 1.45rem;
    height: 3px;
  }

  .site-nav {
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-nav-button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .site-nav .lang-switcher {
    margin-left: 0;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
  }

  .ingredient-panel {
    grid-template-columns: 1fr;
  }

  .games-intro-bar span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .mascot-stage {
    justify-content: space-between;
    gap: 0.55rem;
  }

  .food-buddy {
    transform: scale(0.88);
  }

  .match-game {
    grid-template-columns: 1fr;
  }

  .game-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .game-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 16px;
  }

  .hero {
    gap: 1.25rem;
    padding-top: 2rem;
  }

  body.home-page .hero {
    padding-top: 2.2rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  body.home-page h1 {
    font-size: clamp(2.65rem, 11vw, 4rem);
    line-height: 0.99;
    max-width: 9ch;
    color: #96a7cf;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  h3 {
    font-size: 1.15rem;
  }

  main,
  .site-footer {
    padding-inline: 1rem;
  }

  .eyebrow {
    font-size: 0.76rem;
    padding: 0.42rem 0.8rem;
  }

  body.home-page .eyebrow {
    padding: 0.72rem 1.2rem;
    background: rgba(255, 255, 255, 0.88);
    color: #3c8479;
    border: 1px solid rgba(60, 132, 121, 0.12);
    box-shadow: 0 8px 20px rgba(126, 103, 53, 0.08);
  }

  .hero-text,
  .section-heading p,
  .source-list,
  p {
    font-size: 0.98rem;
  }

  body.home-page .hero-text {
    max-width: 33ch;
    color: #695f4f;
    font-size: 1.03rem;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .page-index-shell {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .route-choice-card,
  .guidance-card {
    padding: 1.15rem;
    border-radius: 22px;
  }

  .recipe-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-filter-button {
    width: 100%;
    text-align: center;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: calc(100% - 2rem);
  }

  .hero-highlights span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-media-card {
    grid-template-rows: 240px auto;
  }

  body.home-page .hero-stage {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid article,
  .audience-grid article,
  .info-grid article,
  .building-block-card,
  .signs-grid article,
  .myth-card,
  .consult-grid article,
  .picky-grid article,
  .meal-card,
  .rule-display,
  .vision-story,
  .vision-quote,
  .rule-card,
  .vision-result-card,
  .result-card,
  .research-card,
  .ellen-story,
  .ellen-quote,
  .menu-card,
  .doctor-grid article,
  .faq-list details,
  .parent-grid article,
  .feature-link-card,
  .recipe-card,
  .recipe-info-card,
  .recipe-tip-card {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .recipe-card summary,
  .recipe-card-body {
    padding-inline: 0;
  }

  .recipe-card-body {
    padding-bottom: 0;
  }

  .recipe-inline-media img,
  .recipe-card-media img,
  .recipe-hero-media img {
    height: auto;
    max-height: none;
  }

  .challenge-item {
    align-items: flex-start;
    padding: 0.95rem 1rem;
  }

  .challenge-item span {
    line-height: 1.45;
  }

  .rule-selector {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rule-tab {
    width: 100%;
  }

  .meter-score {
    font-size: 1.4rem;
  }

  .quiz-option {
    padding: 0.85rem 0.95rem;
  }

  .diary-head,
  .diary-row {
    grid-template-columns: 1fr;
  }

  .diary-head {
    display: none;
  }

  .diary-row {
    border-bottom: 1px solid var(--border);
  }

  .diary-row span:first-child {
    font-weight: 800;
    color: var(--text);
    background: rgba(244, 241, 235, 0.86);
  }

  .diary-row span:not(:first-child)::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 0.55rem;
    background: rgba(34, 48, 71, 0.06);
  }

  .plate {
    min-height: 240px;
    border-radius: 38px;
  }
}

@media print {
  .site-header,
  .hero-stage,
  .interactive-intro,
  .planner-section,
  .quiz-section,
  .site-footer,
  .back-to-top,
  .route-choice-section,
  .quick-guidance-section,
  .site-map-section {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main,
  .section {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .summary-section {
    break-after: page;
  }

}

/* ── Research content ── */
.research-content {
  margin-bottom: 2.5rem;
}

.research-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.aanleiding-content,
.research-content {
  max-width: 780px;
}

.aanleiding-content p,
.research-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.aanleiding-content ul {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.8;
}

.aanleiding-content ul li {
  margin-bottom: 0.25rem;
}

/* ── Data tables ── */
.data-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  border: 1px solid #d4c9b7;
  padding: 0.6rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--color-surface, #f6efe4);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.025);
}

/* ── Citation block ── */
.citation-block {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface, #f6efe4);
  border-left: 3px solid var(--color-accent, #7a9e7e);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.citation-block a {
  color: var(--color-accent, #7a9e7e);
  text-decoration: underline;
  word-break: break-word;
}

.citation-block a:hover {
  text-decoration: none;
}

/* ── Infographic / image block ── */
.infographic-block {
  margin: 2rem 0;
  text-align: center;
}

.infographic-block img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.infographic-block figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-text-muted, #888);
}

/* ── Numbered list (groene groenten) ── */
.numbered-info-list {
  margin: 1.25rem 0 1.25rem 1.5rem;
  line-height: 1.75;
}

.numbered-info-list li {
  margin-bottom: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181d28;
    --text: #e6e2d8;
    --muted: #9aa5b4;
    --orange: #d4895a;
    --yellow: #e2ce88;
    --mint: #7db8ab;
    --teal: #4fa99f;
    --sky: #3a5a72;
    --berry: #c47a87;
    --card: rgba(28, 36, 50, 0.97);
    --border: rgba(230, 226, 216, 0.1);
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }

  body {
    background: linear-gradient(180deg, #181d28 0%, #121620 100%);
  }

  .sky-left {
    background: #c97c4a;
    opacity: 0.06;
  }

  .sky-right {
    background: #4fa99f;
    opacity: 0.06;
  }

  .site-header {
    background: rgba(24, 29, 40, 0.92);
    border-bottom-color: rgba(230, 226, 216, 0.08);
  }

  .hero-media-card,
  .dashboard-card,
  .recipe-card,
  .building-block-card,
  .menu-card,
  .download-card,
  .guidance-card,
  .recipe-tip-card,
  .recipe-info-card {
    background: var(--card);
    border-color: var(--border);
  }

  .cookie-banner {
    background: rgba(28, 36, 50, 0.98);
    border-top-color: rgba(230, 226, 216, 0.1);
  }

  .flip-card-back {
    background: var(--card);
    border-color: var(--border);
  }

  .challenge-item {
    background: rgba(28, 36, 50, 0.88);
    border-color: rgba(230, 226, 216, 0.07);
  }

  .challenge-item:has(input:checked) {
    background: rgba(47, 125, 115, 0.18);
    border-color: rgba(79, 169, 159, 0.28);
  }

  .recipe-filter-button {
    background: rgba(28, 36, 50, 0.88);
    border-color: rgba(230, 226, 216, 0.12);
    color: var(--text);
  }
}

@media (max-width: 980px) and (prefers-color-scheme: dark) {
  .site-nav {
    background: rgba(24, 29, 40, 0.97);
    border-color: rgba(230, 226, 216, 0.08);
  }

  body.home-page {
    background: linear-gradient(180deg, #181d28 0%, #121620 100%);
  }

  body.home-page .site-header {
    background: rgba(24, 29, 40, 0.96);
    border-bottom-color: rgba(230, 226, 216, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

  body.home-page .brand-wording strong {
    color: #8ba3d4;
  }

  body.home-page .brand-wording small {
    color: #7a9bc0;
  }

  body.home-page h1 {
    color: #8ba3d4;
  }

  body.home-page .hero-text {
    color: var(--text);
  }

  body.home-page .eyebrow {
    background: rgba(28, 36, 50, 0.88);
    border-color: rgba(79, 169, 159, 0.18);
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(50, 68, 92, 0.1);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: var(--teal);
}

.cookie-banner-close {
  flex-shrink: 0;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--teal);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.lang-btn {
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lang-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.lang-btn.is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* RTL support */
[dir="rtl"] .site-nav {
  direction: rtl;
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .hero-stage,
[dir="rtl"] .dashboard-grid,
[dir="rtl"] .feature-link-grid,
[dir="rtl"] .guidance-grid,
[dir="rtl"] .audience-grid,
[dir="rtl"] .mission-columns,
[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .summary-list {
  padding-right: 1.2rem;
  padding-left: 0;
}
