@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400&family=Source+Sans+3:ital,wght@0,400..700;1,400..700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  /* Nature-forward palette (warm earth + deep forest). Legacy spring-* kept for compatibility. */
  --spring-mint: #9eb89a;
  --spring-leaf: #4a7c59;
  --spring-sky: #7a9aa0;
  --spring-blossom: #c9a07a;
  --bg-page: #f5f2eb;
  --bg-panel: #fdfcfa;
  --bg-panel-soft: #eef2e8;
  --bg-card: #f0ebe3;
  --border: #c4c9b8;
  --border-muted: #dfe4d6;
  --text: #1e2d24;
  --text-muted: #3d5245;
  --text-soft: #5a6b5e;
  --link: #2d5a40;
  --link-hover: #1a3d2a;
  --accent: #4a7c59;
  --accent-warm: #a67c52;
  --topbar-bg: rgba(253, 252, 250, 0.92);
  --submenu-bg: #fdfcfa;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(980px 600px at 0% -8%, rgba(158, 184, 154, 0.35) 0%, transparent 55%),
    radial-gradient(900px 520px at 100% 0%, rgba(122, 154, 160, 0.22) 0%, transparent 50%),
    radial-gradient(720px 440px at 50% 105%, rgba(198, 160, 122, 0.14) 0%, transparent 48%),
    radial-gradient(520px 380px at 85% 95%, rgba(74, 124, 89, 0.08) 0%, transparent 52%);
  background-attachment: fixed;
  line-height: 1.5;
}

h1,
h2,
h3,
.panel h1,
.panel h2,
.hero-title,
.brand-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--topbar-bg);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 16px 16px;
  overflow: visible;
  box-shadow: 0 4px 28px rgba(30, 45, 36, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 12px;
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-panel-soft);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  align-items: center;
  gap: 0.35em;
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.menu a .nav-icon {
  opacity: 0.88;
  flex-shrink: 0;
}

/* Streamline PixelÃ¢â‚¬â€œstyle chunky nav icons (inline SVG; see assets/js/site.js) */
.menu a .nav-icon-fa i,
.menu-toggle .nav-icon-toggle i {
  display: block;
  width: 1.125em;
  text-align: center;
  font-size: 1.05em;
  line-height: 1;
}

.menu-toggle .nav-icon-toggle i {
  width: 1.15em;
  font-size: 1.1em;
}

.menu-toggle .nav-icon-toggle {
  margin-right: 0.35em;
  display: inline-flex;
  opacity: 0.9;
  align-items: center;
}

.site-footer .footer-secondary-links .nav-icon-fa i {
  width: 1em;
  text-align: center;
  font-size: 0.95em;
  line-height: 1;
}

.menu a.active,
.menu a:hover {
  background: rgba(34, 163, 107, 0.18);
  color: var(--link-hover);
}

/* Dropdown groups (Herbs codex, Meals) */
.menu-group {
  position: relative;
  z-index: 0;
}

.menu-group:hover,
.menu-group:focus-within {
  /* Keep the open flyout above sibling nav links so the pointer path stays on the panel. */
  z-index: 50;
}

.menu-group > a {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.submenu {
  display: none;
  position: absolute;
  /* Touch the trigger (no pixel gap): a gap breaks :hover because the strip is not inside the group hit-box. */
  top: 100%;
  left: 0;
  margin: 0;
  min-width: min(320px, 92vw);
  max-width: min(760px, 94vw);
  padding: 14px 16px;
  background: var(--submenu-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(23, 64, 48, 0.14);
  z-index: 40;
}

.submenu--meals {
  min-width: min(420px, 94vw);
  max-width: min(520px, 96vw);
}

/* Logged-in Profile Ã¢â€ â€™ Share story (compact flyout). */
.submenu--profile {
  min-width: min(220px, 88vw);
  max-width: min(280px, 92vw);
  padding: 10px 12px;
}

.submenu--profile .submenu-block {
  margin: 0;
}

.submenu--profile .submenu-block a {
  margin: 4px 0;
}

/* Sign up Ã¢â€ â€™ Login / Register (compact flyout). */
.submenu--signup {
  min-width: min(200px, 88vw);
  max-width: min(240px, 92vw);
  padding: 10px 12px;
}

.submenu--signup > a {
  display: block;
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.submenu--signup > a:hover {
  background: rgba(74, 124, 89, 0.16);
  color: var(--link-hover);
}

.submenu--signup > a.active {
  background: rgba(74, 124, 89, 0.22);
  color: var(--link-hover);
}

.submenu--signup > button.menu-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  width: 100%;
  box-sizing: border-box;
  margin: 2px 0 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

.submenu--signup > button.menu-logout-btn:hover {
  background: rgba(139, 46, 46, 0.12);
  color: #8b2e2e;
}

.submenu--signup > button.menu-logout-btn .nav-icon-fa i {
  display: inline-block;
  width: auto;
  font-size: 0.92em;
  line-height: 1;
}

/* Herbs & Spices mega-menu: needs more width than generic .submenu (4 columns). */
.submenu--spices {
  min-width: min(880px, calc(100vw - 1.5rem));
  max-width: min(1100px, calc(100vw - 1rem));
}

.menu-group:hover .submenu,
.menu-group:focus-within .submenu {
  display: block;
}

.submenu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 22px;
}

.submenu--spices .submenu-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 28px;
}

@media (max-width: 1040px) {
  .submenu--spices {
    min-width: min(320px, 92vw);
    max-width: min(960px, 96vw);
  }

  .submenu--spices .submenu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
  }
}

.submenu-grid--meals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.submenu-block {
  min-width: 0;
}

.submenu-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spring-leaf);
  margin: 0 0 8px;
  padding: 0 2px;
}

.submenu .submenu-block a {
  display: block;
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 0.82rem;
  white-space: normal;
  line-height: 1.3;
}

.submenu .submenu-alls {
  font-weight: 600;
  color: var(--link-hover);
  margin-bottom: 6px;
}

.submenu .submenu-block a {
  color: var(--text-muted);
}

.submenu .submenu-block a:hover {
  background: rgba(74, 124, 89, 0.14);
  color: var(--link-hover);
}

.submenu .submenu-block a.active {
  background: rgba(74, 124, 89, 0.22);
  color: var(--link-hover);
  font-weight: 600;
}

main {
  padding: 28px 0 40px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #e8ebe3 0%, #dde3d6 45%, #d2d9c9 100%);
  margin-top: 26px;
}

.site-footer p {
  margin: 0;
  padding: 14px 0 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.site-footer .footer-secondary-links {
  display: inline;
}

.site-footer .footer-secondary-links a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.site-footer .footer-secondary-links a .nav-icon {
  opacity: 0.85;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(30, 45, 36, 0.07);
}

.panel h1 {
  margin-top: 0;
  color: var(--text);
  letter-spacing: 0.2px;
}

.panel p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.meals-link-list {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.meals-link-list li {
  margin: 0.35rem 0;
}

.meals-link-list a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meals-link-list a:hover {
  color: var(--link-hover);
}

.meals-hub-crosslinks-title {
  font-size: 1.25rem;
}

.meals-hub-crosslinks-lead {
  margin-bottom: 0.75rem;
}

.home-logo-panel {
  padding: 0px;
  border: none;
  background: none;
  margin: 0px;
}

.home-logo-full {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

body.home-page .home-logo-compact {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

body.home-page .home-brand-band {
  margin-bottom: 18px;
}

body.home-page .home-brand-band__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

body.home-page .home-brand-band__tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.45;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--link-hover);
  background: rgba(74, 124, 89, 0.12);
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-editorial .eyebrow--on-photo {
  color: rgba(247, 244, 238, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: var(--text);
}

.lead {
  color: var(--text-muted);
  margin: 0;
  max-width: 72ch;
  line-height: 1.55;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #3d6849;
  background: linear-gradient(90deg, #2f5d45, #4a7c59);
  color: #fdfcfa;
  font-weight: 600;
  transition: transform 0.18s var(--ease-out-soft), box-shadow 0.18s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #264d38, #3f6b4e);
}

.btn.secondary {
  background: rgba(253, 252, 250, 0.92);
  border-color: var(--border);
  color: var(--link-hover);
}

.btn.secondary:hover {
  background: rgba(238, 242, 232, 0.98);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 1rem;
}

.home-image-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.card {
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(30, 45, 36, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-list,
.step-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.feature-list li,
.step-list li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.notice {
  border: 1px solid rgba(232, 93, 4, 0.35);
  background: linear-gradient(135deg, #fff9ed, #fff3dc);
  border-radius: 12px;
  padding: 14px;
  color: #7c2d12;
}

.faq details {
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--bg-panel-soft);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq p {
  margin-top: 8px;
  color: var(--text-muted);
}

.auth-page .auth-form {
  margin-top: 10px;
}

.auth-page .auth-form label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 10px 0 6px;
}

.auth-page .auth-form input,
.auth-page .auth-form select,
.auth-page .auth-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text);
  padding: 10px;
  outline: none;
}

.auth-page .auth-form input:focus,
.auth-page .auth-form select:focus,
.auth-page .auth-form textarea:focus {
  border-color: var(--spring-leaf);
  box-shadow: 0 0 0 3px rgba(62, 185, 120, 0.2);
}

.auth-page .auth-form .actions {
  margin-top: 14px;
}

.auth-page .auth-msg {
  margin-top: 12px;
  min-height: 1.2em;
}

.auth-page .password-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.auth-page .password-field-head label {
  margin: 0;
}

.auth-page .btn-text {
  border: none;
  background: none;
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

.auth-page .btn-text:hover {
  color: var(--link-hover);
}

.auth-page .password-meter {
  margin: 8px 0 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-page .pw-hint-row {
  margin: 2px 0;
}

.auth-page .pw-hint-ok {
  color: var(--accent);
}

.auth-page .resend-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-muted);
}

.auth-page .resend-box p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-panel-soft);
  color: var(--text);
  font-size: 0.78rem;
}

.tag.high {
  border-color: #2ca77e;
  background: rgba(44, 167, 126, 0.15);
  color: #065f46;
}

.tag.moderate {
  border-color: #65a30d;
  background: rgba(101, 163, 13, 0.16);
  color: #3f6212;
}

.tag.low {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0.5rem;
}

/* Prevent huge intrinsic <img width/height> from blowing grid min-content (e.g. codex cards). */
.catalog > .card,
.cards > .card {
  min-width: 0;
}

.catalog .card p {
  margin-bottom: 8px;
}

.codex-card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  margin-bottom: 12px;
}

.article-link {
  display: inline-flex;
  margin-top: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-panel-soft);
  color: var(--link);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.article-link:hover {
  background: rgba(158, 184, 154, 0.28);
}

/* Editorial hero: spice guides (.spice-kb-page) + hub/marketing pages (.hub-page), see spices/*.html and pages/*.html */
.spice-kb-page main.spice-kb-main,
body.hub-page main.hub-main {
  padding-top: 8px;
}

.spice-kb-page #kbPlanPillarAnchor:empty {
  display: none;
}

.spice-kb-page .kb-hero,
body.hub-page .kb-hero {
  margin: 0 0 24px;
  border-radius: 0 0 22px 22px;
  overflow: clip;
  background: linear-gradient(165deg, rgba(238, 242, 232, 0.75) 0%, rgba(253, 252, 250, 0.96) 42%, rgba(245, 242, 235, 0.99) 100%);
  border: 1px solid var(--border-muted);
  box-shadow: 0 16px 48px rgba(30, 45, 36, 0.09);
}

.spice-kb-page .kb-hero__inner,
body.hub-page .kb-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 3.5vw, 36px);
  align-items: center;
  padding: clamp(22px, 4vw, 40px) 0 clamp(18px, 3vw, 28px);
}

.spice-kb-page .kb-hero__title,
body.hub-page .kb-hero__title {
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  line-height: 1.14;
  margin: 0 0 12px;
}

.spice-kb-page .kb-hero__intro,
body.hub-page .kb-hero__intro {
  margin: 0 0 12px;
  max-width: 52ch;
}

.spice-kb-page .kb-hero__actions,
body.hub-page .kb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.spice-kb-page .kb-hero__visual,
body.hub-page .kb-hero__visual {
  min-width: 0;
}

.spice-kb-page .kb-hero__figure,
body.hub-page .kb-hero__figure {
  border-radius: 16px;
  border: 1px solid var(--border-muted);
  background: #ffffff;
  padding: clamp(10px, 2vw, 16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.spice-kb-page .kb-hero-image,
body.hub-page .kb-hero-image {
  display: block;
  width: 100%;
  max-height: min(340px, 42vw);
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border: none;
  border-radius: 12px;
}

.spice-kb-page .kb-metrics-wrap {
  border-top: 1px solid var(--border-muted);
  background: rgba(253, 252, 250, 0.55);
  padding: 16px 0 20px;
}

.spice-kb-page .kb-metrics.kb-metrics--snap {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-color: rgba(74, 124, 89, 0.4) rgba(223, 228, 214, 0.5);
}

.spice-kb-page .kb-metric {
  flex: 0 0 min(210px, 78vw);
  scroll-snap-align: start;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  background: var(--bg-panel);
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(30, 45, 36, 0.05);
}

.spice-kb-page .kb-metric .k {
  color: var(--text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.38px;
}

.spice-kb-page .kb-metric .v {
  margin-top: 8px;
  font-size: 0.93rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.spice-kb-page .spice-kb-body > .panel {
  margin-bottom: 18px;
}

.spice-kb-page .spice-kb-body > .panel:last-child {
  margin-bottom: 0;
}

body.hub-page .hub-body > .panel,
body.hub-page .hub-body > section.panel {
  margin-bottom: 18px;
}

body.hub-page .hub-body > .panel:last-child,
body.hub-page .hub-body > section.panel:last-child {
  margin-bottom: 0;
}

body.hub-page .hub-body > .meals-diet-head:first-of-type,
body.hub-page .hub-body > .meals-diet-intro {
  margin-top: 0;
}

@media (max-width: 840px) {
  .spice-kb-page .kb-hero__inner,
  body.hub-page .kb-hero__inner {
    grid-template-columns: 1fr;
  }

  .spice-kb-page .kb-hero__visual,
  body.hub-page .kb-hero__visual {
    order: -1;
  }

  .spice-kb-page .kb-hero-image,
  body.hub-page .kb-hero-image {
    max-height: min(260px, 58vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spice-kb-page .kb-metrics.kb-metrics--snap {
    scroll-snap-type: none;
  }
}

.kb-plan-pillars {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.catalog .card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.catalog .card li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.jump-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.jump-link {
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-panel-soft);
  color: var(--link);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.jump-link:hover {
  background: rgba(158, 184, 154, 0.28);
}

.jump-link.jump-link--current {
  border-color: var(--spring-leaf);
  background: rgba(158, 184, 154, 0.35);
  color: var(--link-hover);
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}

/* Fruit guides (hub + pages) Ã¢â‚¬â€ breadcrumbs */
.fruit-breadcrumb-wrap {
  padding-top: 1rem;
}

.fruit-breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.fruit-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.fruit-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
}

.fruit-breadcrumb-list li + li::before {
  content: "/";
  color: var(--border);
  padding: 0 0.65rem;
  opacity: 0.75;
  font-weight: 400;
}

.fruit-breadcrumb-list a {
  color: var(--link);
  text-decoration: none;
}

.fruit-breadcrumb-list a:hover {
  text-decoration: underline;
}

.fruit-breadcrumb-list [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

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

.placeholder {
  min-height: 120px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-weight: 600;
}


@media (max-width: 900px) {
  .brand-tagline {
    display: none;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .cards,
  .two-col,
  .catalog {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    right: 4%;
    top: 64px;
    flex-direction: column;
    background: var(--submenu-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    min-width: 190px;
    box-shadow: 0 16px 40px rgba(23, 64, 48, 0.12);
  }

  .menu.open {
    display: flex;
  }

  .menu-group {
    width: 100%;
  }

  .submenu-label {
    margin-top: 8px;
  }

  .submenu-block:first-child .submenu-label {
    margin-top: 0;
  }

  .submenu {
    position: static;
    display: block;
    margin-top: 6px;
    margin-left: 0;
    padding: 10px 12px;
    max-width: none;
    box-shadow: none;
    border-radius: 10px;
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-muted);
  }

  .submenu-grid,
  .submenu-grid--meals {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

}


/* CUBE/BEM example page */
.example-page {
  --ex-bg: var(--bg-page);
  --ex-panel: var(--bg-panel);
  --ex-line: var(--border-muted);
  --ex-muted: var(--text-soft);
  --ex-accent: var(--accent);
}

.example-page .l-container {
  width: min(1100px, 92%);
  margin: 26px auto 40px;
  display: grid;
  gap: 14px;
}

.example-page .l-stack > * + * {
  margin-top: 10px;
}

.example-page .l-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.example-page .l-grid {
  display: grid;
  gap: 12px;
}

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

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

.example-page .c-hero {
  border: 1px solid var(--ex-line);
  border-radius: 14px;
  padding: 18px;
  background: var(--ex-bg);
}

.example-page .c-hero--highlight {
  box-shadow: inset 0 0 0 1px rgba(62, 185, 120, 0.35);
}

.example-page .c-hero__eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--ex-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.example-page .c-hero__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.example-page .c-hero__lead {
  margin: 0;
  color: var(--text-muted);
}

.example-page .c-card {
  border: 1px solid var(--ex-line);
  border-radius: 12px;
  background: var(--ex-panel);
  padding: 14px;
}

.example-page .c-card--soft {
  background: #eef8f2;
}

.example-page .c-card__title {
  margin: 0;
  font-size: 1rem;
}

.example-page .c-card__body {
  margin: 0;
  color: var(--text-muted);
}

.example-page .c-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.example-page .c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ex-line);
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
  color: var(--text);
  background: var(--bg-panel-soft);
}

.example-page .c-btn--primary {
  background: linear-gradient(90deg, #2f5d45, #4a7c59);
  border-color: var(--spring-leaf);
  color: #fdfcfa;
}

.example-page .c-btn--ghost {
  background: transparent;
}

.example-page .c-form__field {
  margin: 0;
}

.example-page .c-form__label {
  color: var(--ex-muted);
  font-size: 0.86rem;
}

.example-page .c-form__control {
  width: 100%;
  border: 1px solid var(--ex-line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 9px;
}

.example-page .c-form__control--textarea {
  min-height: 110px;
  resize: vertical;
}

.example-page .u-text-muted {
  color: var(--ex-muted);
}

.example-page .u-text-accent {
  color: var(--ex-accent);
}

.example-page .u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .example-page .l-grid--2,
  .example-page .l-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Calculator page styles moved from shadow_apothecary.html */
.calculator-page {
  --panel: #faf8f5f2;
  --panel-strong: #f1ede6f5;
  --line: var(--border);
  --text: #1e2d24;
  --muted: #3d5245;
  --cyan: #0d9488;
  --violet: #2f6b48;
  color: var(--text);
}

.calculator-page .app {
  max-width: 1200px;
  margin: 16px auto 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(253, 252, 250, 0.95), rgba(238, 242, 232, 0.92));
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(30, 45, 36, 0.08), 0 0 0 1px rgba(196, 201, 184, 0.55);
}

.calculator-page .layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 1.5rem;
}

.calculator-page .results {
  padding: 0px;
}

.calculator-page .plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calculator-page .plan-card {
  margin-bottom: 0;
}

.calculator-page .plan-subtitle {
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.calculator-page .plan-category-blurb {
  margin: 6px 0 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.calculator-page .derived-goal-readout {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.calculator-page .derived-goal-readout strong {
  color: var(--text);
  font-weight: 600;
}

.calculator-page .calc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.calculator-page .work-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.calculator-page .controls-side {
  display: grid;
  gap: 14px;
}

.calculator-page .controls-stack {
  display: grid;
  gap: 14px;
}

.calculator-page .control-block {
  margin-bottom: 0;
}

.calculator-page .control-actions-divider {
  margin: 12px 0 14px;
  border-top: 1px solid var(--border-muted);
}

.calculator-page .calculator-note {
  margin-bottom: 0;
}

.calculator-page .calculator-note h3 {
  margin-bottom: 8px;
}

.calculator-page .calculator-note p + p {
  margin-top: 10px;
}

.calculator-page .card {
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 14px;
  margin-bottom: 14px;
}

.calculator-page .plan-grid .card,
.calculator-page .controls-side .card,
.calculator-page .calculator-note {
  margin-bottom: 0;
}

.calculator-page .card h3 {
  margin: 0 0 12px 0;
  font-size: 0.98rem;
  color: var(--text);
  letter-spacing: 0.2px;
}

.calculator-page label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.calculator-page select,
.calculator-page input[type="text"],
.calculator-page input[type="number"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  padding: 10px;
  margin-bottom: 10px;
  outline: none;
}

.calculator-page select:focus,
.calculator-page input[type="text"]:focus,
.calculator-page input[type="number"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.calculator-page .toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.calculator-page .toggle input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: var(--violet);
}

.calculator-page .btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.calculator-page .controls button,
.calculator-page .controls-side button,
.calculator-page .results button {
  border: 1px solid #3d6849;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fdfcfa;
  background: linear-gradient(90deg, #2f5d45, #4a7c59);
  cursor: pointer;
  transition: 0.15s ease;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.calculator-page .controls button:hover,
.calculator-page .controls-side button:hover,
.calculator-page .results button:hover {
  border-color: #2f5d45;
  box-shadow: 0 4px 18px rgba(47, 93, 69, 0.35);
  transform: translateY(-1px);
}

.calculator-page .btn-accent {
  background: linear-gradient(90deg, #ea580c, #f59e0b);
  border-color: #f97316;
}

.calculator-page .results {
  background: var(--bg-panel-soft);
}

.calculator-page .meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.calculator-page .stat {
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  padding: 10px;
  background: var(--bg-panel);
}

.calculator-page .stat .k {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.calculator-page .stat .v {
  margin-top: 4px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.calculator-page .meta .stat-wide {
  grid-column: 1 / -1;
}

/*
  Calculator safety palette (also used by legend + table note dots):
  --safety-critical: hard stops, high risk score band
  --safety-caution: overlap / stacks / moderate risk
  --safety-medication: anticoagulant / glucose med reductions
  --safety-organ: liver, kidney, immune, pregnancy-style organ caution
  --safety-pathway: V2 pathway overlap, combined-recipe blend
  --safety-fungi: medicinal fungi notes
  --safety-recipe: combined recipe scaling / dry-equiv cap lines
  --safety-conversion: garlic/onion freshÃ¢â€ â€dry conversion notes
  --safety-interaction: V3 multi-spice stack reductions
  --safety-info: general / titration / evidence band / low risk
  --safety-general: catch-all low-emphasis
*/
.calculator-page {
  --safety-critical: #b91c1c;
  --safety-critical-bg: rgba(185, 28, 28, 0.1);
  --safety-caution: #c2410c;
  --safety-caution-bg: rgba(234, 88, 12, 0.12);
  --safety-medication: #7c3aed;
  --safety-medication-bg: rgba(124, 58, 237, 0.12);
  --safety-organ: #0d9488;
  --safety-organ-bg: rgba(13, 148, 136, 0.12);
  --safety-pathway: #2563eb;
  --safety-pathway-bg: rgba(37, 99, 235, 0.1);
  --safety-fungi: #15803d;
  --safety-fungi-bg: rgba(21, 128, 61, 0.12);
  --safety-recipe: #a16207;
  --safety-recipe-bg: rgba(161, 98, 7, 0.12);
  --safety-conversion: #64748b;
  --safety-conversion-bg: rgba(100, 116, 139, 0.14);
  --safety-interaction: #be185d;
  --safety-interaction-bg: rgba(190, 24, 93, 0.1);
  --safety-info: #0369a1;
  --safety-info-bg: rgba(3, 105, 161, 0.08);
  --safety-general: #57534e;
  --safety-general-bg: rgba(87, 83, 78, 0.1);
}

.calculator-page .safety-legend {
  padding: 12px;
}

.calculator-page .safety-legend-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.calculator-page .safety-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 14px;
}

.calculator-page .safety-legend-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.calculator-page .safety-legend-swatch {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.calculator-page .safety-legend-swatch--critical {
  background: var(--safety-critical);
}
.calculator-page .safety-legend-swatch--caution {
  background: var(--safety-caution);
}
.calculator-page .safety-legend-swatch--medication {
  background: var(--safety-medication);
}
.calculator-page .safety-legend-swatch--organ {
  background: var(--safety-organ);
}
.calculator-page .safety-legend-swatch--pathway {
  background: var(--safety-pathway);
}
.calculator-page .safety-legend-swatch--fungi {
  background: var(--safety-fungi);
}
.calculator-page .safety-legend-swatch--recipe {
  background: var(--safety-recipe);
}
.calculator-page .safety-legend-swatch--conversion {
  background: var(--safety-conversion);
}
.calculator-page .safety-legend-swatch--interaction {
  background: var(--safety-interaction);
}
.calculator-page .safety-legend-swatch--info {
  background: var(--safety-info);
}
.calculator-page .safety-legend-swatch--general {
  background: var(--safety-general);
}

.calculator-page .safety-note-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.calculator-page .safety-note-line:last-child {
  margin-bottom: 0;
}

.calculator-page .safety-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.calculator-page .safety-note-line--critical .safety-dot {
  background: var(--safety-critical);
}
.calculator-page .safety-note-line--caution .safety-dot {
  background: var(--safety-caution);
}
.calculator-page .safety-note-line--medication .safety-dot {
  background: var(--safety-medication);
}
.calculator-page .safety-note-line--organ .safety-dot {
  background: var(--safety-organ);
}
.calculator-page .safety-note-line--pathway .safety-dot {
  background: var(--safety-pathway);
}
.calculator-page .safety-note-line--fungi .safety-dot {
  background: var(--safety-fungi);
}
.calculator-page .safety-note-line--recipe .safety-dot {
  background: var(--safety-recipe);
}
.calculator-page .safety-note-line--conversion .safety-dot {
  background: var(--safety-conversion);
}
.calculator-page .safety-note-line--interaction .safety-dot {
  background: var(--safety-interaction);
}
.calculator-page .safety-note-line--hard_stop .safety-dot {
  background: var(--safety-critical);
}
.calculator-page .safety-note-line--safety_mode .safety-dot {
  background: var(--safety-caution);
}
.calculator-page .safety-note-line--info .safety-dot {
  background: var(--safety-info);
}
.calculator-page .safety-note-line--general .safety-dot {
  background: var(--safety-general);
}

.calculator-page .safety-note-line--safety_mode .safety-dot {
  background: var(--safety-caution);
}

.calculator-page .safety-note-text {
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.calculator-page .safety-advice-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.calculator-page .safety-advice-line:last-child {
  margin-bottom: 0;
}

.calculator-page .safety-advice-line .safety-dot {
  margin-top: 4px;
}

.calculator-page .safety-advice-line--critical .safety-dot {
  background: var(--safety-critical);
}
.calculator-page .safety-advice-line--caution .safety-dot {
  background: var(--safety-caution);
}
.calculator-page .safety-advice-line--medication .safety-dot {
  background: var(--safety-medication);
}
.calculator-page .safety-advice-line--organ .safety-dot {
  background: var(--safety-organ);
}
.calculator-page .safety-advice-line--pathway .safety-dot {
  background: var(--safety-pathway);
}
.calculator-page .safety-advice-line--fungi .safety-dot {
  background: var(--safety-fungi);
}
.calculator-page .safety-advice-line--recipe .safety-dot {
  background: var(--safety-recipe);
}
.calculator-page .safety-advice-line--conversion .safety-dot {
  background: var(--safety-conversion);
}
.calculator-page .safety-advice-line--interaction .safety-dot {
  background: var(--safety-interaction);
}
.calculator-page .safety-advice-line--info .safety-dot {
  background: var(--safety-info);
}
.calculator-page .safety-advice-line--general .safety-dot {
  background: var(--safety-general);
}

.calculator-page .safety-advice-line--hard_stop .safety-dot {
  background: var(--safety-critical);
}

.calculator-page .safety-advice-line--safety_mode .safety-dot {
  background: var(--safety-caution);
}

.calculator-page .calc-advice .feature-list {
  list-style: none;
  padding-left: 0;
}

.calculator-page .stat .v.stat--risk-low {
  color: #15803d;
}
.calculator-page .stat .v.stat--risk-mid {
  color: #c2410c;
}
.calculator-page .stat .v.stat--risk-high {
  color: #b91c1c;
}

.calculator-page .stat .v.stat--overlap-active {
  color: #c2410c;
}

.calculator-page .warn--disclaimer {
  border-color: rgba(185, 28, 28, 0.45);
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b;
}

.calculator-page .warn--v2 {
  border-color: rgba(194, 65, 12, 0.45);
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #9a3412;
}

.calculator-page .safety-v3-panel,
.calculator-page .warn--v3 {
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.calculator-page .safety-v3-panel {
  margin-top: 14px;
}

.calculator-page .warn {
  margin-top: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.calculator-page .warn:not(.warn--disclaimer):not(.warn--v2):not(.safety-v3-panel):not(.warn--v3) {
  border: 1px solid rgba(234, 88, 12, 0.45);
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #9a3412;
}

.calculator-page .safety-v3-subhead {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.calculator-page .safety-v3-intro {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.calculator-page .avoid-ingredients-fieldset {
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 10px 0 12px;
}

.calculator-page .avoid-ingredients-fieldset legend {
  padding: 0 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calculator-page .avoid-ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 10px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 8px;
}

.calculator-page .avoid-ingredient-toggle span {
  font-size: 0.8rem;
}

.calculator-page .table-wrap {
  overflow: auto;
  position: relative;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
}

.calculator-page table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: var(--bg-panel);
}

.calculator-page th,
.calculator-page td {
  border-bottom: 1px solid var(--border-muted);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
  color: var(--text);
}

.calculator-page th {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--bg-card);
  position: sticky;
  top: -1px;
  z-index: 1;
}

.calculator-page th .calc-th-range-main {
  display: block;
}

.calculator-page th .calc-th-range-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--text-muted);
  line-height: 1.25;
}

.calculator-page .calc-range-daily {
  display: block;
}

.calculator-page .calc-range-meal {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-weight: 500;
}

.calculator-page .quick-guide {
  border: 1px solid var(--border);
  background: rgba(158, 184, 154, 0.12);
}

.calculator-page .quick-guide p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.calculator-page .quick-guide ol {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.calculator-page .quick-guide li {
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 0.88rem;
}

.calculator-page .pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-panel-soft);
  white-space: nowrap;
}

.calculator-page .pill.high {
  border-color: #2ca77e;
  background: rgba(44, 167, 126, 0.18);
  color: #047857;
}

.calculator-page .pill.moderate {
  border-color: #65a30d;
  background: rgba(101, 163, 13, 0.14);
  color: #3f6212;
}

.calculator-page .pill.low {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}

.calculator-page .calc-insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.calculator-page .calc-advice,
.calculator-page .calc-kb,
.calculator-page .calc-meals {
  margin-bottom: 0;
}

.calculator-page .calc-meals-intro {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.calculator-page .calc-meals-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.calculator-page .calc-meals-group {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-muted);
  background: rgba(158, 184, 154, 0.1);
}

.calculator-page .calc-meals-group h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text);
}

.calculator-page .calc-meals-focus-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.calculator-page .calc-meals-link {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.calculator-page .calc-meals-footnote {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

@media (max-width: 560px) {
  .calculator-page .calc-meals-split {
    grid-template-columns: 1fr;
  }
}

.calculator-page .calc-insights .feature-list {
  margin-top: 0;
}

.calculator-page .footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .calculator-page .plan-grid {
    grid-template-columns: 1fr;
  }

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

  .calculator-page .calc-insights {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .calculator-page {
    padding: 12px;
  }
}

.story-editor-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-panel);
  overflow: hidden;
}

#storyForm label {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0 0 6px;
}

#storyTitle {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 12px;
  outline: none;
}

#storyTitle:focus {
  border-color: var(--spring-leaf);
  box-shadow: 0 0 0 3px rgba(62, 185, 120, 0.2);
}

#profileStoryline,
#profileBio {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 12px;
  outline: none;
  font: inherit;
}

#profileStoryline:focus,
#profileBio:focus {
  border-color: var(--spring-leaf);
  box-shadow: 0 0 0 3px rgba(62, 185, 120, 0.2);
}

.profile-editor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.profile-avatar--lg {
  width: 58px;
  height: 58px;
}

.story-author {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-author-meta a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.story-author-meta a:hover {
  text-decoration: underline;
}

.story-author-meta span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.story-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--border-muted);
  background: var(--bg-panel-soft);
}

.story-toolbar button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  color: var(--text);
  padding: 5px 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

.story-toolbar button:hover {
  background: rgba(158, 184, 154, 0.22);
}

.story-editor {
  min-height: 220px;
  padding: 12px;
  color: var(--text);
  line-height: 1.55;
  outline: none;
}

.story-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-soft);
}

.story-editor img,
.story-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 10px 0;
}

.story-content {
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- Meal recipe pages (meals/pages/*.html) --- */
.recipe-page .recipe-breadcrumb {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.recipe-page .recipe-breadcrumb a {
  color: var(--link);
  text-decoration: none;
}

.recipe-page .recipe-breadcrumb a:hover {
  text-decoration: underline;
}

.recipe-page .recipe-breadcrumb-current {
  color: var(--text);
}

.recipe-article .recipe-title {
  margin-bottom: 0.75rem;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.recipe-meta-tag {
  font-size: 0.85rem;
  color: var(--link-hover);
  background: rgba(158, 184, 154, 0.28);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.recipe-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.recipe-export-btn {
  border: 1px solid var(--spring-leaf);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  color: #fdfcfa;
  background: linear-gradient(90deg, #2f5d45, #4a7c59);
  cursor: pointer;
  transition: 0.15s ease;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.recipe-export-btn:hover {
  border-color: #3d6849;
  box-shadow: 0 4px 16px rgba(47, 93, 69, 0.28);
}

.recipe-export-btn--accent {
  background: linear-gradient(90deg, #ea580c, #f59e0b);
  border-color: #f97316;
}

.prose-recipe {
  line-height: 1.65;
  color: var(--text-muted);
}

.prose-recipe .recipe-h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}

.prose-recipe .recipe-h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.5rem;
  color: var(--link-hover);
}

.prose-recipe .recipe-h4,
.prose-recipe .recipe-h5,
.prose-recipe .recipe-h6 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.4rem;
  color: var(--text);
}

.prose-recipe .recipe-p {
  margin: 0.65rem 0;
}

.prose-recipe .recipe-ul,
.prose-recipe .recipe-ol {
  margin: 0.65rem 0 0.65rem 1.25rem;
  padding-left: 0.5rem;
}

.prose-recipe .recipe-ul li,
.prose-recipe .recipe-ol li {
  margin: 0.35rem 0;
}

.prose-recipe .recipe-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.prose-recipe .recipe-table th,
.prose-recipe .recipe-table td {
  border: 1px solid var(--border-muted);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.prose-recipe .recipe-table thead th {
  background: rgba(158, 184, 154, 0.25);
  color: var(--text);
}

.prose-recipe .recipe-table tbody tr:nth-child(even) {
  background: rgba(158, 184, 154, 0.12);
}

.prose-recipe pre {
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: var(--text);
}

.prose-recipe code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(158, 184, 154, 0.2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.prose-recipe a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-recipe .recipe-hr {
  border: none;
  border-top: 1px solid var(--border-muted);
  margin: 1.5rem 0;
}

.recipe-source {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-muted);
  font-size: 0.9rem;
}

.recipe-source a {
  color: var(--link);
}

.recipe-article .recipe-crosslinks {
  margin-top: 1.5rem;
}

.recipe-crosslinks-heading {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.recipe-crosslinks-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.recipe-crosslinks-lead a {
  color: var(--link);
}

/* --- Homepage: editorial hero, horizontal rails, scroll reveals --- */
body.home-page main {
  padding-top: 0;
}

.hero-editorial {
  position: relative;
  margin: 0 0 28px;
  border-radius: 0 0 22px 22px;
  overflow: clip;
  box-shadow: 0 20px 56px rgba(30, 45, 36, 0.12);
}

.hero-carousel {
  position: relative;
  min-height: min(76vh, 720px);
  outline: none;
}

.hero-carousel:focus-visible {
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.45), 0 0 0 5px rgba(253, 252, 250, 0.85);
}

.hero-carousel__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.05s ease;
  z-index: 0;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-editorial__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    110deg,
    rgba(26, 43, 35, 0.88) 0%,
    rgba(26, 43, 35, 0.55) 38%,
    rgba(36, 58, 48, 0.28) 100%
  );
  pointer-events: none;
}

.hero-editorial__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(76vh, 720px);
  padding: clamp(80px, 14vh, 120px) 0 clamp(72px, 10vh, 100px);
}

.hero-editorial__text {
  max-width: min(620px, 100%);
}

body.home-page .hero-editorial .hero-title {
  color: #fdfcfa;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.35);
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  line-height: 1.12;
}

body.home-page .hero-editorial .lead {
  color: rgba(247, 244, 238, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

body.home-page .hero-editorial .lead a {
  color: #e8dfc8;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.home-page .hero-editorial .lead a:hover {
  color: #fff;
}

.hero-editorial .btn.secondary {
  background: rgba(253, 252, 250, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fdfcfa;
}

.hero-editorial .btn.secondary:hover {
  background: rgba(253, 252, 250, 0.28);
}

.hero-carousel__toolbar {
  position: absolute;
  z-index: 4;
  right: max(14px, 4vw);
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.hero-carousel__dots {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin: 0;
  border-radius: 999px;
  background: rgba(20, 32, 28, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-carousel__dot[aria-current="true"] {
  background: #fdfcfa;
  transform: scale(1.08);
}

.hero-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hero-carousel__arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(20, 32, 28, 0.45);
  color: #fdfcfa;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel__arrow:hover {
  background: rgba(20, 32, 28, 0.65);
}

.hero-carousel__arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(253, 252, 250, 0.55);
}

.strip-wrap {
  position: relative;
}

.strip-strip {
  gap: 14px;
  padding: 12px 0 20px;
  margin: 0;
  scrollbar-color: rgba(74, 124, 89, 0.45) rgba(223, 228, 214, 0.6);
}

.strip-strip--dense {
  padding-top: 4px;
}

.strip--snap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  -webkit-overflow-scrolling: touch;
}

.strip-strip a {
  text-decoration: none;
  color: inherit;
}

.strip-card {
  flex: 0 0 clamp(248px, 72vw, 300px);
  scroll-snap-align: start;
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(253, 252, 250, 0.95), rgba(238, 242, 232, 0.7));
  box-shadow: 0 14px 40px rgba(30, 45, 36, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.22s var(--ease-out-soft), box-shadow 0.22s ease;
}

.strip-card.strip-card--plain {
  grid-template-rows: 1fr;
  min-height: 168px;
}

.strip-card.strip-card--plain:hover {
  transform: translateY(-3px);
}

.strip-card--plain .strip-card__body {
  padding-top: 18px;
}

.strip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(30, 45, 36, 0.12);
}

.strip-card__media {
  display: block;
  overflow: hidden;
}

.strip-card__media img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.strip-card.strip-card--ingredient .strip-card__media img.codex-card-image {
  height: 180px;
  object-fit: contain;
  padding: 8px;
  background: radial-gradient(circle at 50% 100%, rgba(238, 242, 232, 0.9), #fdfcfa);
}

.strip-card.strip-card--ingredient img:not(.codex-card-image) {
  height: 170px;
  object-fit: cover;
}

.strip-card__body {
  padding: 14px 16px 16px;
}

.strip-card__body h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  color: var(--text);
}

.strip-card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.47;
}

.strip-card__kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.strip-strip__nav {
  position: absolute;
  top: 50%;
  right: -4px;
  left: -4px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  gap: 0;
}

.strip-strip__nav button {
  pointer-events: auto;
}

.strip-nav-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(253, 252, 250, 0.95);
  box-shadow: 0 8px 24px rgba(30, 45, 36, 0.1);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.strip-nav-fab:hover {
  background: rgba(238, 242, 232, 0.98);
}

.strip-nav-fab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.35);
}

@media (max-width: 720px) {
  .strip-strip__nav {
    display: none;
  }
}

/* Mobile compatibility hardening (global safety layer) */
img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

@media (max-width: 900px) {
  .container {
    width: min(1100px, 94%);
  }

  .panel {
    padding: 14px;
  }

  .kb-hero__actions,
  .actions {
    gap: 8px;
  }

  .kb-hero__actions .btn,
  .actions .btn {
    min-height: 40px;
  }
}

@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden;
  }

  .topbar {
    border-radius: 0;
  }

  .menu {
    right: 3%;
    left: 3%;
    top: 62px;
    min-width: 0;
    width: auto;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu a {
    min-height: 40px;
    padding: 9px 11px;
    white-space: normal;
  }

  .submenu .submenu-block a {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-title {
    font-size: 1.18rem;
  }

  .hero-title,
  .panel h1 {
    font-size: clamp(1.45rem, 7.5vw, 2rem);
    line-height: 1.2;
  }

  .lead {
    font-size: 0.98rem;
  }

  .cards,
  .catalog,
  .two-col,
  .grid {
    gap: 10px;
  }

  .auth-page .auth-form input,
  .auth-page .auth-form select,
  .auth-page .auth-form textarea,
  #storyTitle {
    font-size: 16px; /* Prevents iOS zoom-on-focus */
  }

  .auth-page .auth-form .actions,
  .actions {
    flex-wrap: wrap;
  }

  .auth-page .auth-form .actions .btn,
  .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1100px, 96%);
  }

  .panel {
    padding: 12px;
    border-radius: 12px;
  }

  .kb-hero__figure {
    border-radius: 12px;
  }

  .jump-grid {
    gap: 6px;
  }

  .jump-link {
    width: 100%;
    text-align: center;
  }
}

/* Slide-out side drawer nav for tablets + phones */
body.menu-drawer-open {
  overflow: hidden;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 30, 24, 0.45);
  border: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 30;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex !important;
  }

  .topbar {
    z-index: 40;
  }

  .menu {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(88vw, 360px);
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 78px 14px 18px;
    border-radius: 0;
    border-left: 1px solid var(--border);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    background: var(--submenu-bg);
    box-shadow: -14px 0 34px rgba(20, 35, 28, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(104%);
    transition: transform 0.24s ease;
    z-index: 35;
  }

  .menu > a,
  .menu > .menu-group {
    width: 100%;
  }

  .menu.open {
    transform: translateX(0);
  }

  .submenu {
    position: static;
    display: none;
    margin-top: 8px;
    margin-left: 0;
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid var(--border-muted);
    background: var(--bg-panel-soft);
    max-width: none;
  }

  .submenu-grid,
  .submenu-grid--meals {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-group.open > .submenu {
    display: block;
  }

  .menu-group > a::after {
    content: "â–¾";
    margin-left: auto;
    font-size: 0.78em;
    opacity: 0.78;
  }

  .menu-group.open > a::after {
    content: "â–´";
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s var(--ease-out-soft), transform 0.62s var(--ease-out-soft);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide {
    transition: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .strip-card:hover {
    transform: none;
  }
}

/* Add this to the end of site.css */
@media (max-width: 980px) {
  .menu-toggle {
    display: flex; /* Show the hamburger button */
    z-index: 40;
  }

  .menu {
    display: flex;
    flex-direction: column; /* Force vertical stacking */
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 0 20px 0; /* Remove side padding for full-width links */
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-panel);
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%); /* Hide off-screen */
    transition: transform 0.3s ease;
    z-index: 30;
    overflow-y: auto;
  }

  .menu.open {
    transform: translateX(0); /* Slide in */
  }

  .menu-group {
    display: flex;
    flex-direction: column;
  }
/* Make every top-level link look like a list item */
.menu > a,
.menu > .menu-group {
  width: 100%; /* Occupy full drawer width */
  display: block;
  padding: 15px 25px; /* Vertical spacing for touch targets */
  border-bottom: 1px solid var(--border-muted); /* Visual separation */
  margin: 0;
}

/* Submenu list styling */
.submenu {
  position: static;
  display: none; 
  width: 100%;
  background: var(--bg-panel-soft);
  border: none;
  border-top: 1px solid var(--border-muted);
  padding: 0;
}

/* Submenu links as nested list items */
.submenu {
  display: block; /* Use block but control visibility with max-height */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease;
  opacity: 0;
  background: rgba(0, 0, 0, 0.03); /* Subtle background for contrast */
  border: none;
  padding: 0;
  margin: 0;
}

/* Show submenu when group is toggled */
.menu-group.open > .submenu {
  max-height: 1000px; /* High enough to fit content */
  opacity: 1;
  padding: 10px 0;
  border-top: 1px solid var(--border-muted);
}

/* Rotation for the indicator arrow */
.menu-group > a::after {
  content: "â–¾";
  margin-left: auto;
  transition: transform 0.3s ease;
  display: inline-block;
}

.menu-group.open > a::after {
  transform: rotate(180deg);
}
}