.beta-notice {
  margin: 0;
  padding: 7px 16px;
  background: #203439;
  color: var(--mint);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.masthead-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 76px;
  gap: clamp(18px, 3vw, 46px);
}
.masthead .brand { font-size: 1.37rem; }
.masthead .brand-mark { box-shadow: inset 0 0 0 1px #eefff7a0; }
.desktop-navigation { justify-content: center; gap: clamp(12px, 2vw, 25px); }
.desktop-navigation a, .footer nav a { color: #d0d9d5; }
.desktop-navigation a:hover, .desktop-navigation a[aria-current], .desktop-navigation a.current-section,
.footer nav a:hover, .footer nav a[aria-current] { color: var(--mint); }
.desktop-navigation a[aria-current], .desktop-navigation a.current-section {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.header-action, .light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 13px;
  border-radius: 7px;
  font-size: .86rem;
  font-weight: 750;
}
.header-action { color: var(--mint); border: 1px solid #65817a; }
.header-action:hover { background: #263f49; }
.mobile-navigation { display: none; }
.footer-inner { gap: 15px 40px; }
.footer nav { gap: 4px 22px; }
.footer nav .footer-feedback { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.footer .brand { margin-bottom: 3px; }

.home-hero { color: #f9f7ef; background: var(--deep); }
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(35px, 6vw, 94px);
  align-items: center;
  padding-block: clamp(56px, 7.5vw, 112px);
}
.home-hero .eyebrow, .guide-band .eyebrow, .page-intro .eyebrow { color: var(--mint); }
.home-hero-copy h1 {
  font-size: clamp(2.55rem, 4.8vw, 4.65rem);
  margin-block: 17px 21px;
  line-height: 1.03;
}
.home-hero-copy h1 em { display: block; }
.home-hero-copy > p:last-of-type {
  max-width: 37ch;
  color: #d0d9d5;
  font-size: clamp(1rem, 1.6vw, 1.19rem);
  line-height: 1.65;
}
.hero-actions, .reading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 24px;
}
.hero-actions .primary-button { margin: 0; }
.dark-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--mint);
  font-size: .88rem;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: #82aa99;
  text-underline-offset: 5px;
}
.dark-text-link:hover { color: #f6fcf7; }
.home-hero :focus-visible, .guide-band :focus-visible, .page-intro :focus-visible { outline-color: var(--mint); }
.sample-sheet {
  min-width: 0;
  margin: 0;
  padding: clamp(17px, 3vw, 32px);
  border: 1px solid #e9e8dc;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 26px 54px #080f157d, 0 0 0 7px #c4e5d50f;
  font-variant-numeric: tabular-nums;
}
.sample-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #cbd4ca;
  font-weight: 750;
}
.sample-caption span:last-child { color: var(--muted); font-size: .75rem; font-weight: 650; }
.sample-total { display: grid; margin-top: 19px; }
.sample-total span, .sample-outcome dt { color: var(--muted); font-size: .8rem; font-weight: 650; }
.sample-total strong { color: var(--emerald); font: 400 clamp(2.9rem, 5vw, 4.45rem)/1.05 var(--serif); letter-spacing: -.065em; }
.sample-sheet .cost-bar { height: 8px; margin-block: 16px; }
.sample-sheet .cost-bar .mat { flex: 64.8; }
.sample-sheet .cost-bar .pack { flex: 37.4; }
.sample-sheet .cost-bar .lab { flex: 42; }
.sample-sheet .cost-bar .over { flex: 12; }
.sample-sheet .mat { background: #78ad97; }
.sample-sheet .pack { background: #d6b787; }
.sample-sheet .lab { background: #8ba3ce; }
.sample-sheet .over { background: #ae99c5; }
.sample-breakdown, .sample-outcome { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; }
.sample-breakdown div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: .81rem; }
.sample-breakdown dt { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.sample-breakdown dd { font-weight: 700; }
.sample-breakdown i { width: 8px; height: 8px; border-radius: 2px; }
.sample-outcome { margin-top: 17px; padding: 13px; border-radius: 8px; background: #e6eee4; }
.sample-outcome dd { color: var(--ink); font: 400 clamp(1.5rem, 3vw, 2.4rem)/1.16 var(--serif); letter-spacing: -.04em; }

.site-section, .reading-layout { padding-block: clamp(47px, 6.6vw, 95px); }
.site-section, .reading-layout { background: var(--paper); }
body:not(.page-home):not(.page-calculator) main { background: var(--paper); }
.site-section .eyebrow, .guide-card .eyebrow { margin-bottom: 10px; color: var(--emerald); }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.section-copy { display: grid; gap: 13px; align-self: center; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.14rem); }
.step-list, .maker-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-list { list-style: none; margin-block: clamp(29px, 5vw, 63px) 0; }
.step-list li { padding-top: 17px; border-top: 1px solid #aebdb1; }
.step-list span { display: block; margin-bottom: 8px; color: var(--emerald); font-size: .78rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.step-list h3, .maker-list h3, .guide-aside h2, .guide-aside h3 { margin-bottom: 6px; font: 400 1.54rem/1.17 var(--serif); letter-spacing: -.025em; }
.step-list p, .maker-list p, .maker-scope, .example-panel p:not(.eyebrow), .guide-card p:not(.eyebrow), .guide-aside p { color: var(--muted); }
.maker-section { border-block: 1px solid #d9e1d6; background: #ebf0e7; }
.section-title { max-width: 670px; margin-bottom: clamp(20px, 3.4vw, 37px); }
.maker-list article { padding: clamp(17px, 2.5vw, 28px); border: 1px solid #cbd6ca; border-radius: 10px; background: #f6f8f0; }
.maker-scope { max-width: 64ch; margin-top: 22px; font-size: .89rem; }
.example-panel { align-items: center; }
.example-panel p:not(.eyebrow) { max-width: 44ch; margin-top: 12px; }
.light-button { width: fit-content; max-width: 100%; border: 1px solid #265d48; background: var(--emerald); color: #fffefa; }
.light-button:hover { background: #173c31; }
.calculator-feedback { padding-bottom: clamp(28px, 5vw, 64px); }
.calculator-feedback-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #d2dfd5;
  border-radius: 12px;
  background: #f4f7f1;
  color: #172a28;
}
.calculator-feedback h2 { margin: 0; font-size: clamp(1.125rem, 2vw, 1.4rem); }
.calculator-feedback p { margin: 4px 0 0; color: #3e5a54; }
.example-panel .light-button, .guide-card .light-button { margin-top: 19px; }
.worked-steps { padding: 9px clamp(14px, 3vw, 26px); border: 1px solid #cbd6ca; border-radius: 11px; background: var(--white); }
.worked-steps div { padding-block: 13px; }
.worked-steps div + div { border-top: 1px solid #dbe1d8; }
.worked-steps dt { font-weight: 750; }
.worked-steps dd { margin-top: 4px; color: var(--muted); font-size: .91rem; }
.worked-steps strong { color: var(--emerald); }
.guide-band { background: #1d3640; color: #f9f7ef; }
.guide-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px 30px; padding-block: clamp(25px, 4.5vw, 57px); }
.guide-band h2 { max-width: 22ch; margin-top: 9px; font-size: clamp(1.9rem, 3.7vw, 3.15rem); }

.page-intro { padding-block: clamp(40px, 6.5vw, 88px); background: #1d3640; color: #f9f7ef; }
.page-intro h1 { max-width: 21ch; font-size: clamp(2.75rem, 5.4vw, 5.15rem); line-height: 1.04; text-wrap: balance; }
.page-intro .wrap > p:last-child { max-width: 54ch; color: #d7e1db; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.intro-back { display: inline-flex; min-height: 44px; align-items: center; color: var(--mint); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.reading-layout { display: grid; grid-template-columns: minmax(155px, .7fr) minmax(0, 2fr); gap: clamp(25px, 6vw, 85px); align-items: start; }
.contents-nav { display: grid; align-content: start; gap: 2px; padding: 8px 14px; border-left: 2px solid #89a797; }
.contents-nav a { color: var(--emerald); min-height: 44px; }
.contents-nav a:hover { color: var(--ink); text-decoration: underline; }
.reading-body { max-width: 71ch; min-width: 0; font-size: clamp(1rem, 1.25vw, 1.09rem); }
.reading-body section + section { margin-top: 33px; padding-top: 29px; border-top: 1px solid #cbd6ca; }
.reading-body section { scroll-margin-top: 18px; }
.reading-body h2 { font-size: clamp(2rem, 3.25vw, 3.25rem); text-wrap: balance; }
.reading-body p, .reading-body ul { margin-block: 12px 0; color: #3f5149; }
.reading-body ul { padding-left: 22px; }
.reading-body li + li { margin-top: 7px; }
.reading-body .formula { padding: 12px 15px; border-left: 3px solid #739882; background: #e7eee3; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.reading-body .article-lead { margin: 0 0 26px; font-size: 1.12em; }
.reading-actions > a:not(.light-button), .guide-aside a, .inline-link {
  color: var(--emerald);
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reading-actions > a:not(.light-button), .guide-aside a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.guide-index { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.guide-card, .guide-aside { padding: clamp(17px, 3vw, 30px); border: 1px solid #cbd6ca; border-radius: 11px; background: var(--white); }
.guide-aside { background: #ebf0e7; }
.guide-card h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.guide-card p:not(.eyebrow) { max-width: 57ch; margin-top: 12px; }
.guide-aside a { margin-top: 8px; }
.cost-table { width: 100%; margin-top: 15px; border-collapse: collapse; color: var(--ink); font-size: .88em; font-variant-numeric: tabular-nums; }
.cost-table caption { margin-bottom: 5px; color: var(--muted); text-align: left; font-weight: 680; }
.cost-table th, .cost-table td { padding: 7px 5px; border-bottom: 1px solid #cbd6ca; text-align: left; overflow-wrap: anywhere; }
.cost-table :is(tbody, tfoot) td:last-child, .cost-table thead th:last-child { text-align: right; }
.cost-table thead, .cost-table tfoot { background: #e7eee3; }

.page-calculator .section-head h1 { margin: 0; font-size: clamp(2.55rem, 5vw, 4.25rem); }

@media (max-width: 900px) {
  .masthead-inner { display: flex; min-height: 66px; justify-content: space-between; }
  .desktop-navigation, .header-action { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation summary {
    min-height: 44px;
    padding: 0 11px;
    border: 1px solid #65817a;
    border-radius: 7px;
    color: var(--mint);
    font-size: .86rem;
    font-weight: 720;
  }
  .mobile-navigation nav {
    position: absolute;
    inset: calc(100% + 5px) 24px auto auto;
    z-index: 4;
    display: grid;
    width: min(325px, calc(100% - 48px));
    gap: 0;
    padding: 8px;
    border: 1px solid #536d70;
    border-radius: 9px;
    background: #1d3640;
    box-shadow: 0 13px 28px #0a171b70;
  }
  .mobile-navigation nav a { padding-inline: 11px; border-radius: 5px; font-size: .94rem; }
  .mobile-navigation nav a:hover, .mobile-navigation nav a[aria-current], .mobile-navigation nav a.current-section { color: var(--mint); background: #2b4a52; }
  .mobile-navigation .mobile-nav-action { margin-top: 4px; color: var(--mint); }
}
@media (max-width: 740px) {
  .home-hero-grid, .editorial-grid, .reading-layout, .guide-index { grid-template-columns: minmax(0, 1fr); }
  .home-hero-grid { gap: 30px; }
  .home-hero-copy h1 { font-size: clamp(2.65rem, 8.6vw, 4.4rem); }
  .sample-sheet { max-width: 510px; }
  .contents-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .step-list, .maker-list { gap: 13px; }
}
@media (max-width: 520px) {
  .mobile-navigation nav { right: 12px; width: calc(100% - 24px); }
  .home-hero-grid { padding-block: 39px 43px; }
  .home-hero-copy h1 { font-size: clamp(2.16rem, 9.6vw, 3.35rem); }
  .step-list, .maker-list { grid-template-columns: minmax(0, 1fr); }
  .step-list { gap: 18px; }
  .step-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; }
  .step-list span { margin-top: 3px; }
  .step-list p { grid-column: 2; }
  .footer nav { gap: 0 13px; }
}
