/* Babyforecast editorial system: presentation only; never changes model or access. */
body.bf-story-page {
  --story-paper: #fbf9f5;
  --story-ink: #302c3c;
  --story-muted: #69636f;
  --story-line: #e1dce3;
  --story-accent: #6656a0;
  --story-sage: #e9eee6;
  --public-ink: var(--story-ink);
  --public-muted: var(--story-muted);
  --public-line: var(--story-line);
  --public-lavender-dark: var(--story-accent);
  --ink: var(--story-ink);
  --muted: var(--story-muted);
  --line: var(--story-line);
  --lavender-dark: var(--story-accent);
  --shadow: none;
  background: var(--story-paper);
  color: var(--story-ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.bf-story-page *, .bf-story-page *::before, .bf-story-page *::after { box-sizing: border-box; }
.bf-story-page [hidden] { display: none !important; }
.bf-story-page :is(h1,h2,h3,p) { overflow-wrap: break-word; }
.bf-story-page :is(h1,h2,h3) { text-wrap: balance; }
.bf-story-page a { color: var(--story-accent); text-underline-offset: .22em; }
.bf-story-page :is(button,a,input,select,textarea,summary):focus-visible {
  outline: 3px solid #6656a0; outline-offset: 4px; box-shadow: none;
}
.bf-story-page :is([id],button,a,input,select,textarea,summary) { scroll-margin-block: 1.5rem; }
.bf-story-page :where(button),
.bf-story-page :is(.button-link,.hero-cta,.share-primary,.bf-price-action,.pro-teaser-cta) {
  min-height: 48px; border-radius: .85rem; font-weight: 650;
  background: var(--story-accent); color: #fff; box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.bf-story-page :where(button):hover,
.bf-story-page :is(.button-link,.hero-cta,.share-primary,.bf-price-action,.pro-teaser-cta):hover {
  transform: none; filter: none; background: #514284;
}
.bf-story-page :is(button.ghost,.button-link.ghost,.bf-price-action.is-secondary) {
  color: var(--story-ink); border: 1px solid var(--story-line); background: transparent; box-shadow: none;
}
.bf-story-page :is(button.ghost,.button-link.ghost):hover { background: #f0ecf4; }
.bf-story-page button:disabled { cursor: not-allowed; opacity: .55; }
.bf-story-page :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea) {
  max-width: 100%; min-height: 48px; border-radius: .7rem; color: var(--story-ink); border-color: #bdb4c6;
}
.bf-story-page input[type=range] { min-height: 44px; accent-color: var(--story-accent); }
.bf-story-page summary { min-height: 48px; padding-block: .8rem; cursor: pointer; }
.bf-story-page .skip-link:focus { z-index: 10000; background: #fff; color: var(--story-ink); }
.bf-story-page :is(.app,.site-shell) { width: min(1160px, calc(100% - 3rem)); }
.bf-story-page .app { padding-top: 0; margin-inline: auto; }
.bf-story-page :is(.top-bar,.site-header) {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 92px; margin-block: 0 1rem; padding-block: .9rem;
  border-bottom: 1px solid var(--story-line);
}
.bf-story-page :is(.public-brand,.brand) {
  flex-shrink: 0; color: var(--story-ink); font-size: 1.15rem; font-weight: 800;
  letter-spacing: -.045em; text-decoration: none;
}
.bf-story-page :is(.site-nav,.public-nav) { gap: .15rem; }
.bf-story-page :is(.site-nav,.public-nav) a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .8rem;
  color: var(--story-muted); border-radius: .6rem; font-size: .875rem; font-weight: 550;
}
.bf-story-page :is(.site-nav,.public-nav) a:hover,
.bf-story-page .site-nav a[aria-current=page] { color: var(--story-ink); background: #eee8f3; }
.bf-story-page .language-toggle {
  min-height: 44px; padding: 0; border: 0; border-radius: .6rem; background: transparent; box-shadow: none; backdrop-filter: none;
}
.bf-story-page .language-toggle select { min-height: 44px; background: transparent; font-size: .875rem; }
.bf-story-page .mode-toggle { border: 1px solid var(--story-line); background: transparent; padding: .2rem; }
.bf-story-page .mode-toggle button {
  min-height: 44px; padding: .45rem .8rem; color: var(--story-muted); border-radius: .55rem; background: transparent;
}
.bf-story-page .top-bar :is(.mode-toggle,.share-top) { display: none; } /* Pro and sharing remain available in navigation and the sharing disclosure. */
.bf-story-page .mode-toggle button.active { color: var(--story-ink); background: #eee8f3; box-shadow: none; }
.bf-story-page :is(.eyebrow,.wishlist-landing-badge) {
  padding: 0; color: var(--story-accent); border: 0; background: none;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.bf-story-page :is(.hero-grid,.pro-hero.bf-photo-hero,.family-hero.bf-photo-hero) {
  align-items: center; gap: clamp(2rem,5vw,5rem); padding-block: clamp(2rem,5vw,4.5rem);
}
.bf-story-page :is(.title,.pro-hero h1,.family-hero h1,.wishlist-landing-hero h1) {
  max-width: 15ch; margin: .85rem 0 1.25rem; color: var(--story-ink);
  font-family: inherit; font-size: clamp(2.6rem,4.8vw,4.6rem);
  line-height: 1.07; letter-spacing: -.045em;
}
.bf-story-page :is(.subtitle,.hero-intro,.family-hero > div > p,.wishlist-landing-intro) {
  max-width: 47ch; margin-inline: 0; color: var(--story-muted);
  font-size: clamp(1rem,1.45vw,1.125rem); line-height: 1.7; text-align: left;
}
.bf-story-page .bf-landing-photo img {
  border: 0; border-radius: 2rem 2rem 6rem 2rem; box-shadow: none; object-fit: contain;
}
.bf-story-page .bf-landing-photo figcaption { font-size: .75rem; color: var(--story-muted); margin-top: .65rem; }
.bf-story-page :is(.card,.benefit-card,.game-card,.bf-price-option) {
  border: 1px solid var(--story-line); border-radius: 1.25rem; background: #fff; box-shadow: none;
}
.bf-story-page :is(.hero-note,.family-note,.wishlist-landing-availability) {
  color: var(--story-muted); font-size: .875rem; line-height: 1.6;
}
.bf-story-page .hero-date-entry {
  max-width: 29rem; padding: 1.1rem 1.2rem; margin-top: 1.6rem;
  border: 1px solid var(--story-line); border-radius: 1rem; background: #fff;
}
.bf-story-page .hero-date-entry label { color: var(--story-ink); font-size: .875rem; }
.bf-story-page .hero-date-entry .field-help { font-size: .8rem; line-height: 1.5; }
.bf-story-page .hero-actions { margin-top: .9rem; gap: .8rem; align-items: center; }
.bf-story-page .hero-proof { font-size: .8rem; color: var(--story-muted); }
/* Keep the Free action, section links and result together. The header's old
   bottom margin must not accumulate with the hero's bottom padding. */
.bf-story-page .app > .header { margin-bottom: 0; }
.bf-story-page .app > .header .hero-grid { padding-bottom: .75rem; }
.bf-story-page .story-trail {
  display: flex; gap: 1.5rem; padding: 0; border-block: 1px solid var(--story-line);
  margin: 0 0 .75rem; list-style: none; align-items: center;
}
.story-trail a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; font-size: .9rem; }
.story-trail span[aria-hidden] { color: var(--story-accent); font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.story-section-kicker { color: var(--story-accent); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .5rem; font-weight: 650; }
.bf-story-page #todayForecast { padding: clamp(1rem,2vw,1.5rem); }
.bf-story-page #todayForecast > .card-title { margin: 0; font-size: clamp(1.35rem,2.4vw,1.65rem); line-height: 1.3; letter-spacing: -.035em; }
.bf-story-page #todayForecast .forecast-context { padding: 0; margin: .5rem 0 .875rem; border: 0; border-radius: 0; background: none; color: var(--story-muted); }
.bf-story-page #todayForecast .metric-list { gap: .75rem; margin: 0; }
.bf-story-page #calculatorSettings .source-week-story {
  margin: 0 0 1.2rem; padding: 1.2rem 1.4rem; border-left: 3px solid #7b8e74; border-radius: 0 .8rem .8rem 0;
  background: var(--story-sage); color: #344832; max-width: none; font-size: 1.1rem; font-weight: 600; line-height: 1.55;
}
.bf-story-page #todayForecast #metricItemConditional {
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 1rem; padding: 1rem;
  border: 1px solid var(--story-line); background: #f8f6fb; border-radius: 1rem;
}
.bf-story-page #todayForecast #metricItemConditional .metric-visual { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 1rem; }
.bf-story-page #todayForecast #metricValueConditional { font-size: clamp(1.8rem,3vw,2.6rem); color: #514284; white-space: nowrap; }
.bf-story-page #todayForecast #sparkConditional { width: 100%; max-width: 200px; height: 72px; min-height: 0; max-height: 72px; }
.bf-story-page #todayForecast .metric-title { font-size: 1rem; }
.bf-story-page #todayForecast .metric-subtitle { font-size: .875rem; line-height: 1.55; }
.bf-story-page #todayForecast .metric-reference-scope { margin: .5rem 0 0; color: var(--story-muted); font-size: .8rem; line-height: 1.55; }
.bf-story-page #todayForecast #metricSubtitleConditional { color: var(--story-ink); font-size: 1rem; line-height: 1.6; }
.bf-story-page #todayForecast .free-result-notes { display: grid; gap: .5rem; align-content: start; }
.bf-story-page #todayForecast .free-result-notes .chart-subtitle { max-width: none; }
.bf-story-page #todayForecast #metricListSubtitle { margin: 0; font-size: .875rem; line-height: 1.65; }
.bf-story-page #todayForecast .result-source-note { margin: 0; font-size: .8rem; line-height: 1.6; }
.bf-story-page .free-result-pro { margin-top: 0; padding-top: .75rem; border-top: 1px solid var(--story-line); }
.bf-story-page .free-result-pro p { max-width: 65ch; margin: 0 0 .4rem; font-size: .875rem; line-height: 1.65; color: var(--story-muted); }
.bf-story-page .free-result-pro a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; }
.bf-story-page #todayForecast .slider-card { margin: 0; padding: .75rem 0 0; border-top: 1px solid var(--story-line); }
.bf-story-page #todayForecast .slider-card .card-title { margin: 0 0 .35rem; font-size: 1rem; line-height: 1.4; letter-spacing: normal; }
.bf-story-page #todayForecast .birth-likely-message { margin: 0; padding: 0; font-size: .875rem; }
.bf-story-page #todayForecast .birth-likely-message p { margin: 0; }
.bf-story-page #todayForecast .calendar-fact { margin: 0; }
.bf-story-page .story-calendar-extras { padding: 1rem 1.25rem; }
.bf-story-page .story-calendar-extras > summary { cursor: pointer; font-weight: 600; color: var(--story-muted); }
.bf-story-page .story-calendar-extras .calendar-fact { margin: .75rem 0 0; }
.bf-story-page #todayForecast .additional-metrics { margin-top: 0; }
.bf-story-page .additional-metrics summary { color: var(--story-accent); font-weight: 550; }
.bf-story-page #calculatorSettings { margin-bottom: .8rem; }
.bf-story-page .story-analysis { margin-block: .8rem 2rem; padding-block: .35rem; }
.bf-story-page .story-analysis > summary { font-weight: 600; color: var(--story-accent); }
.bf-story-page .story-analysis .summary-card { border: 0; padding: .5rem 0 1rem; border-radius: 0; background: none; }
.bf-story-page .story-analysis .base-distribution { border-radius: .8rem; box-shadow: none; }
.bf-story-page .base-distribution-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; background: var(--story-sage); }
.bf-story-page .story-next-heading { padding-block: 2rem .75rem; border-top: 1px solid var(--story-line); margin-top: 2.5rem; }
.bf-story-page .story-next-heading h2 { margin: .25rem 0; font-size: clamp(1.7rem,3vw,2.4rem); letter-spacing: -.04em; }
.bf-story-page .story-next-heading p { color: var(--story-muted); max-width: 58ch; margin: .5rem 0; }
.bf-story-page .pro-teaser-section { padding: clamp(1.5rem,3vw,2rem); background: #f0ecf6; box-shadow: none; }
.bf-story-page .pro-teaser-copy { padding: 0; }
.bf-story-page .pro-teaser-copy h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.bf-story-page .pro-teaser-cta { display: inline-flex; padding: .65rem 1rem; margin-top: .5rem; text-decoration: none; }
.bf-story-page .story-preview-disclosure { min-width: 0; padding: .5rem 1rem; border: 1px solid #d8cee5; border-radius: .85rem; background: #fff; }
.bf-story-page .story-preview-disclosure > summary { font-weight: 600; color: var(--story-accent); }
.bf-story-page .story-family-link { display: flex; gap: 2rem; justify-content: space-between; align-items: center; margin: 1rem 0 2rem; padding: 1.75rem 0; border-block: 1px solid var(--story-line); }
.bf-story-page .story-family-link h2 { margin: 0 0 .4rem; font-size: 1.4rem; }
.bf-story-page .story-family-link p { color: var(--story-muted); margin: 0; max-width: 54ch; }
.bf-story-page .story-family-link a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.bf-story-page :is(.seo-card,.glossary-card,.more-info-card,.calculation-guide,.faq-card,.legal-card,.share-card,.feedback-card) { margin-block: 1rem; }
.bf-story-page .story-utilities { margin-top: 2rem; border-top: 1px solid var(--story-line); }
.bf-story-page .story-utilities > summary { color: var(--story-muted); font-size: .875rem; font-weight: 600; }
.bf-story-page .story-utilities .card { border: 0; padding-inline: 0; background: none; }
.bf-story-page .faq-card { background: none; border-inline: 0; border-radius: 0; padding-inline: 0; }
.bf-story-page .faq-card details { border-bottom: 1px solid var(--story-line); background: transparent; }
.bf-story-page .faq-card summary { padding-block: 1rem; font-weight: 550; }
.bf-story-page .faq-card p { max-width: 75ch; color: var(--story-muted); }
.bf-story-page .bf-pro-section-nav {
  position: static; flex-wrap: wrap; gap: .5rem; padding: .7rem 0; border-block: 1px solid var(--story-line); background: transparent; backdrop-filter: none;
}
.bf-story-page .bf-pro-section-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .45rem .8rem; border-radius: .5rem; }
.bf-story-page .bf-preview-section { margin-top: 3rem; }
.bf-story-page .bf-preview-tabs { flex-wrap: wrap; }
.bf-story-page .bf-preview-tabs button { white-space: normal; }
.bf-story-page .bf-hero-context { padding-top: 1.5rem; border-color: var(--story-line); }
.bf-story-page .benefit-card { border: 0; border-top: 1px solid var(--story-line); border-radius: 0; padding: 1.5rem 0; background: none; }
.bf-story-page .benefit-number { background: none; color: var(--story-accent); padding: 0; }
.bf-story-page .privacy-footer { font-size: .8rem; color: var(--story-muted); line-height: 2; }
/* Keep related secondary information together instead of stacking two tall
   full-width blocks. The DOM reading order and narrow-screen flow stay intact. */
@media (min-width: 1100px) {
  .bf-story-page #todayForecast .metric-list { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 1.5rem; align-items: start; }
  .bf-story-page #todayForecast .metric-list > * { grid-column: 1 / -1; min-width: 0; }
  .bf-story-page #todayForecast .free-result-notes { grid-column: 1; grid-row: 2; }
  .bf-story-page #todayForecast .slider-card { grid-column: 2; grid-row: 2; border-top: 0; border-left: 1px solid var(--story-line); padding: 0 0 0 1.5rem; }
}
@media (max-width: 960px) {
  .bf-story-page :is(.top-bar,.site-header) { align-items: flex-start; flex-wrap: wrap; }
  .bf-story-page :is(.top-actions,.header-actions) { gap: .5rem; flex-wrap: wrap; }
  .bf-story-page #todayForecast #metricItemConditional { grid-template-columns: 1fr; gap: .8rem; }
  .bf-story-page #todayForecast #metricItemConditional .metric-visual { grid-template-columns: auto minmax(100px,1fr); }
}
@media (max-width: 760px) {
  .bf-story-page :is(.app,.site-shell) { width: calc(100% - 2rem); }
  .bf-story-page :is(.top-bar,.site-header) { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .5rem; padding-block: .85rem; }
  .bf-story-page :is(.top-bar,.site-header) > :is(.public-brand,.brand) { grid-column: 1; grid-row: 1; }
  .bf-story-page :is(.top-actions,.header-actions) { display: contents; }
  .bf-story-page :is(.top-bar,.site-header) .language-toggle { grid-column: 2; grid-row: 1; }
  .bf-story-page :is(.top-bar,.site-header) .language-toggle select { width: 128px; }
  .bf-story-page :is(.site-nav,.public-nav) { grid-column: 1 / -1; grid-row: 2; width: 100%; flex-wrap: wrap; overflow: visible; gap: .1rem; }
  .bf-story-page :is(.site-nav,.public-nav) a { font-size: .8rem; padding: .45rem .55rem; }
  .bf-story-page .top-bar { gap: .75rem; margin-bottom: 0; }
  .bf-story-page .top-actions { width: 100%; justify-content: space-between; }
  .bf-story-page .public-nav { flex: 1 1 auto; }
  .bf-story-page .public-nav a { padding-inline: .55rem; font-size: .8rem; }
  .bf-story-page .mode-toggle { display: none; } /* Pro remains in the text navigation. */
  .bf-story-page :is(.hero-grid,.pro-hero.bf-photo-hero,.family-hero.bf-photo-hero) { padding-block: 2.25rem 2rem; gap: 1.75rem; }
  .bf-story-page :is(.title,.pro-hero h1,.family-hero h1,.wishlist-landing-hero h1) { font-size: clamp(2.5rem,9vw,3.4rem); max-width: 16ch; }
  .bf-story-page .hero-date-entry { max-width: none; margin-top: 1.4rem; padding: .9rem; }
  .bf-story-page .hero-actions > .hero-cta { width: 100%; }
  .bf-story-page .story-trail { gap: .4rem; justify-content: space-between; }
  .story-trail a { font-size: .8rem; gap: .4rem; }
  .bf-story-page .pro-teaser-section { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .bf-story-page .story-preview-disclosure { padding: 0; border: 0; background: none; }
  .bf-story-page .story-family-link { align-items: start; flex-direction: column; gap: .7rem; }
  .bf-story-page #todayForecast #sparkConditional { max-width: none; }
}
@media (max-width: 420px) {
  .bf-story-page :is(.app,.site-shell) { width: calc(100% - 1.5rem); }
  .bf-story-page :is(.site-nav,.public-nav) { flex-wrap: wrap; }
  .bf-story-page .story-trail { align-items: start; }
  .story-trail a { flex-direction: column; align-items: flex-start; gap: 0; }
  .bf-story-page #todayForecast { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.bf-story-page) { scroll-behavior: auto; }
  .bf-story-page *, .bf-story-page *::before, .bf-story-page *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .bf-story-page :is(a,button,input,select,summary):focus-visible { outline-color: Highlight; }
  .bf-story-page #calculatorSettings .source-week-story { border: 1px solid CanvasText; }
}
@media print {
  .bf-story-page :is(.top-actions,.story-trail,.story-next-heading,.pro-teaser-section,.story-family-link,.story-utilities) { display: none; }
}
