/* Grouped top-nav menus for the shared CRHI header (markup: src/maternity/siteChromeMarkup.ts).
   Loaded after the mockup's styles.css; the expanded bar now starts at 1100px instead of 1500px. */
.nav-group { position: relative; }
.nav-group-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: none; border: 0; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink-soft); padding: 10px 6px; border-radius: 8px; cursor: pointer; text-align: left; white-space: nowrap; }
.nav-group-btn:hover { color: var(--navy); background: var(--teal-mist); }
.nav-group.is-current > .nav-group-btn { color: var(--teal); font-weight: 600; }
.nav-links > a[data-text]::after, .nav-label::after { content: attr(data-text); display: block; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; font-weight: 600; }
.nav-caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); flex: none; }
.nav-group.open .nav-caret { transform: translateY(2px) rotate(-135deg); }
.nav-menu { display: none; flex-direction: column; padding: 0 0 6px 14px; }
.nav-group.open > .nav-menu { display: flex; }
.nav-links .nav-menu a { display: block; }
.nav-account { border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 4px; }
.nav-soon { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); padding: 10px 6px; cursor: default; white-space: nowrap; }
.nav-start { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* An optional page name beside the logo (data-page-title); hidden where the full nav leaves no room for it. */
.nav-title { padding-left: 14px; border-left: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.2; color: var(--ink-soft); max-width: 8em; }
.nav-soon-tag { font-size: 14px; line-height: 1.3; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--navy-2); }
@media (min-width: 1100px) {
  .nav-bar { max-width: 1480px; }
  .nav-toggle { display: none; }
  .nav-links, .nav-links.open { display: flex; flex-direction: row; position: static; align-items: center; gap: 2px; padding: 0; box-shadow: none; border: 0; background: none; }
  .nav-links a, .nav-group-btn, .nav-soon { font-size: 14.5px; padding: 8px 8px; width: auto; }
  .nav-links a.nav-cta { margin: 0 0 0 8px; }
  .nav-account { border: 0; margin: 0 0 0 6px; padding: 0; }
  .nav-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; z-index: 60; }
  .nav-menu-end { left: auto; right: 0; }
  .nav-links .nav-menu a { padding: 8px 10px; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  .nav-title { display: none; }
}
@media (min-width: 1400px) {
  .nav-title { max-width: none; white-space: nowrap; }
}

/* Call for Change row (markup: siteSubmenuHtml in src/maternity/siteChromeMarkup.ts): under the header on the six groups' pages, and in the home page's #mah-submenu slot.
   Six equal cards in one row from 700px; three by two on phones. */
.sub-menu { --sub-1: #0b235f; --sub-2: #13317a; --sub-3: #0a46c9; --sub-4: #085cfc; --sub-5: #1a63f9; --sub-6: #2f6ef5; --sub-mark: #e9eef7; background: var(--sand-2); border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.sub-menu-home { background: none; border-bottom: 0; padding: 22px 0 6px; }
.sub-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sub-menu li:nth-child(1) a { --sub-c: var(--sub-1); }
.sub-menu li:nth-child(2) a { --sub-c: var(--sub-2); }
.sub-menu li:nth-child(3) a { --sub-c: var(--sub-3); }
.sub-menu li:nth-child(4) a { --sub-c: var(--sub-4); }
.sub-menu li:nth-child(5) a { --sub-c: var(--sub-5); }
.sub-menu li:nth-child(6) a { --sub-c: var(--sub-6); }
.sub-menu a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; border: 0; border-bottom: 4px solid transparent; border-radius: var(--radius-sm); background: var(--sub-c); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; transition: transform .12s ease, filter .12s ease; }
.sub-menu a:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(11, 35, 95, .22); }
.sub-menu a[aria-current], .sub-menu a[aria-current]:hover { border-bottom-color: var(--sub-mark); box-shadow: inset 0 0 0 2px var(--sub-mark); }
.sub-menu a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sub-menu a { transition: none; } .sub-menu a:hover { transform: none; } }
@media (min-width: 700px) {
  .sub-menu ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sub-menu a { font-size: 15px; }
}

/* Shared footer layout (markup: siteFooterHtml in src/maternity/siteChromeMarkup.ts). Overrides the
   mockup's footer rules in styles.css: one column on phones, brand above the three link columns from tablets up. */
.site-footer { padding: 28px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.footer-about { padding-bottom: 20px; }
.footer-about p { max-width: 36ch; margin: 0; font-size: 14.5px; line-height: 1.6; color: #d3dbee; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-family: var(--heading); color: #fff; }
.footer-brand .brand-logo, .footer-brand .brand-text { color: #fff; }
.footer-brand .brand-logo svg { height: 30px; }
.footer-brand .brand-rule { height: 28px; }
.footer-col { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 10px; }
.site-footer .footer-col h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 14px; font-weight: 650; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer .footer-col a { display: flex; align-items: center; min-height: 44px; color: #e6ebf7; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.site-footer .footer-col a:hover { color: #fff; }
.footer-note { display: block; margin-top: 6px; font-size: 14px; color: #b4c0dc; }
.footer-note + a { min-height: 36px; }
.site-footer .footer-fine { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; line-height: 1.6; color: #b4c0dc; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 14px; color: #b4c0dc; }
.footer-bottom .footer-powered { margin: 0; }
.footer-legal { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
  .footer-about { grid-column: 1 / -1; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .footer-col { border-top: 0; padding: 0; }
  .site-footer .footer-col h2 { margin-bottom: 10px; }
  .site-footer .footer-col a { min-height: 0; padding: 4px 0; font-size: 14.5px; }
  .footer-note { margin-top: 10px; }
  .site-footer .footer-note + a { min-height: 0; font-size: 14px; overflow-wrap: normal; }
  .site-footer .footer-fine { margin-top: 36px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
}
@media (min-width: 900px) {
  .site-footer { margin-top: 48px; padding: 16px 0 10px; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: 8px; align-items: start; }
  .footer-about { display: flex; align-items: center; gap: 28px; padding-bottom: 14px; margin-bottom: 4px; }
  .footer-brand { margin-bottom: 0; flex: none; }
  .footer-about p { max-width: none; font-size: 14px; line-height: 1.35; }
  .site-footer .footer-col a { font-size: 14px; }
  .site-footer .footer-col h2 { margin-bottom: 4px; }
  .site-footer .footer-col a, .footer-soon { padding: 1px 0; line-height: 1.35; }
  .footer-note { margin-top: 4px; line-height: 1.3; }
  .site-footer .footer-fine { margin-top: 10px; padding-top: 8px; line-height: 1.4; }
  .footer-bottom { margin-top: 6px; gap: 12px; }
  .footer-legal { flex-direction: row; gap: 10px; }
}

/* Moves between pages (static and React alike) cross-fade instead of flashing, with the header held
   in place. Same-origin navigations only; browsers without view transitions navigate as before. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: mah-site-header; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* The scrollbar's room is kept on short and long pages alike, so the header never changes width between pages. */
html { scrollbar-gutter: stable; }

/* Perspectives rows, the lock marker and the bar button (markup: siteHeaderHtml). */
.nav-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-lock { display: inline-block; width: 11px; height: 13px; margin-left: 6px; vertical-align: -1px; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M3 6V4a3 3 0 0 1 6 0v2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1.5 0h3V4a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M3 6V4a3 3 0 0 1 6 0v2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1.5 0h3V4a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu-head { display: block; padding: 12px 2px 4px; font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav-menu-head:first-child { padding-top: 4px; }
.nav-links .nav-menu-head ~ .nav-item { margin-left: 2px; padding-left: 14px; border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; }
.nav-links .nav-menu-head ~ .nav-item:hover, .nav-links .nav-menu-head ~ .nav-item[aria-current] { border-left-color: var(--teal); }
.nav-item[aria-current="true"] .nav-item-label { color: var(--teal); }
.nav-links .nav-item:hover { background: var(--teal-mist); }
.nav-group[data-group="call"] > .nav-group-btn { font-weight: 700; color: var(--navy); }
.nav-group[data-group="call"].is-current > .nav-group-btn { color: var(--teal); background: var(--teal-soft); }
.nav-group[data-group="call"].is-current > .nav-group-btn:hover, .nav-group[data-group="call"].is-current.open > .nav-group-btn { background: var(--teal-mist); }
.nav-links .nav-item[data-key="call-for-change"] { margin-bottom: 4px; padding: 10px 12px; border: 1px solid var(--teal); background: var(--teal-soft); }
.nav-item[data-key="call-for-change"] .nav-item-label { color: var(--teal); font-size: 1.05em; }
.nav-links .nav-item { display: block; white-space: normal; padding: 8px 10px; border-radius: 8px; }
.nav-item-label { display: block; font-weight: 600; color: var(--navy); line-height: 1.35; }
.nav-item-desc { display: block; margin-top: 1px; font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.nav-item[aria-current="page"] .nav-item-label { color: var(--teal); }
.nav-item-soon { cursor: default; }
.nav-item-soon .nav-item-label { color: var(--muted); }
.nav-links .nav-item-soon { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: start; }
.nav-item-soon .nav-item-label, .nav-item-soon .nav-item-desc { grid-column: 1; }
.nav-item-soon .nav-soon-tag { grid-column: 2; grid-row: 1; margin-top: 2px; }
.nav-links .nav-item-all { margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; padding-top: 12px; }
.nav-links a:focus-visible, .nav-group-btn:focus-visible, .nav-toggle:focus-visible, .nav-bar > a.nav-cta:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-links.open { max-height: calc(100vh - 60px); overflow-y: auto; }
.nav-bar > a.nav-cta { margin-left: auto; padding: 8px 16px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav-bar > a.nav-cta:hover { background: var(--navy); color: #fff; }
.nav-toggle { margin-left: auto; }
.nav-cta + .nav-toggle { margin-left: 0; }
.footer-soon { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #b4c0dc; font-size: 15px; line-height: 1.35; }
.footer-soon .nav-soon-tag { background: rgba(255, 255, 255, .12); color: #d3dbee; }
@media (max-width: 420px) {
  .nav-bar { gap: 6px; }
  .brand { gap: 8px; }
  .brand-logo svg { height: 22px; }
  .brand-rule { height: 24px; }
  .brand-text { font-size: 12px; }
  .nav-bar > a.nav-cta { padding: 7px 10px; font-size: 14px; }
  .nav-toggle { padding: 6px 11px; font-size: 14px; }
}
@media (min-width: 1100px) {
  .nav-mobile { display: none; }
  .nav-links { margin-left: auto; }
  .nav-links.open { max-height: none; overflow: visible; }
  .nav-bar > a.nav-cta { margin-left: 8px; font-size: 14px; padding: 9px 18px; }
  .nav-group[data-group="call"] .nav-menu { width: 360px; }
  .nav-group[data-group="evidence-menu"] .nav-menu { width: 280px; }
  .nav-group[data-group="perspectives"] .nav-menu { width: 360px; left: auto; right: 0; }
  .nav-group[data-group="call"] > .nav-group-btn { font-size: 15.5px; padding: 8px 14px; border-radius: 999px; }
  .nav-links > a, .nav-group-btn { white-space: nowrap; }
  .nav-links .nav-item-all { border-radius: 0 0 8px 8px; }
  .footer-soon { min-height: 0; padding: 4px 0; font-size: 14.5px; }
}

/* The plain top link (Maternity Map) shows the current section like the group buttons do. */
.nav-links > a[aria-current] { color: var(--teal); font-weight: 600; }

/* The left menu of the five area pages (markup: siteActSideHtml). A column from 900px, a toggle button on phones. */
.act-side { margin: 16px var(--gutter) 0; font-size: 15px; }
.act-side-toggle { display: none; }
.act-side-head { margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.act-side-head a { color: var(--navy); text-decoration: none; }
.act-side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.act-side li a { display: block; padding: 8px 0 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.3; }
.act-side li a:hover { color: var(--navy); border-left-color: var(--teal); }
.act-side a:focus-visible, .act-side-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.act-side.is-collapsible .act-side-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font: inherit; font-weight: 600; color: var(--navy); text-align: left; cursor: pointer; }
.act-side.is-collapsible .act-side-head, .act-side.is-collapsible ul { display: none; }
.act-side.is-collapsible.open .act-side-head { display: block; margin-top: 12px; }
.act-side.is-collapsible.open ul { display: block; }
@media (min-width: 900px) {
  main.has-act-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: start; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  main.has-act-side > .act-side { grid-column: 1; grid-row: 1 / span 12; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); margin: 40px 0 0; }
  main.has-act-side > :not(.act-side) { grid-column: 2; min-width: 0; }
  main.has-act-side > .wrap { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
}

/* Plain notice under the header while a suspension is in force (markup: siteHeaderHtml in src/maternity/siteChromeMarkup.ts). */
.suspended-notice { background: var(--warm-soft); border-bottom: 1px solid var(--line); color: var(--ink); }
.suspended-notice p { margin: 0; padding: 10px 0; font-size: 15px; line-height: 1.5; }
.suspended-notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
