/* The one header and footer every page shares (site/header.html, site/footer.html).
   Own class names (sh-, sf-) and no <header>/<nav>/<footer> tags, so no page's own CSS reaches them. */
.sh, .sf { --c-ink: #0b1f24; --c-mute: #6b7280; --c-line: #e5e7eb; --c-teal: #0f5876; --c-bg: rgba(255,255,255,.9);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.sh *, .sf * { box-sizing: border-box; margin: 0; padding: 0; }

.sh { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(11,31,36,.06); }
.sh-fixed .sh { position: fixed; left: 0; right: 0; }
.sh-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.025em; white-space: nowrap; margin-right: auto; }
.sh-brand img { height: 28px; width: auto; display: block; }
.sh-brand span { color: var(--c-mute); font-weight: 500; }

.sh-links { display: flex; align-items: center; gap: 2px; }
.sh-links > a, .sh-more summary { font-size: .9rem; font-weight: 500; color: #3f4a54; text-decoration: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.sh-links > a:hover, .sh-more summary:hover { color: var(--c-ink); background: rgba(11,31,36,.05); }
.sh-links a[aria-current="page"] { color: var(--c-ink); background: rgba(11,31,36,.05); }
.sh .sh-cta { background: var(--c-ink); color: #fff !important; padding: 10px 18px; border-radius: 999px; margin-left: 10px; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px rgba(11,31,36,.18); transition: background .15s, transform .1s; }
.sh .sh-cta:hover { background: #1c3940; }
.sh .sh-cta:active { transform: scale(.97); }
.sh .sh-cta[aria-current="page"] { background: var(--c-teal); }
.sh-cta-m { display: none; }

.sh details > summary { list-style: none; }
.sh details > summary::-webkit-details-marker { display: none; }
.sh-more { position: relative; }
.sh-more summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sh-drop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(11,31,36,.08); border-radius: 18px; box-shadow: 0 24px 48px rgba(11,31,36,.14); padding: 8px; display: grid; }
.sh-drop a { font-size: .92rem; color: #334155; text-decoration: none; padding: 10px 14px; border-radius: 10px; }
.sh-drop a:hover { background: rgba(11,31,36,.05); color: var(--c-ink); }

.sh-menu { display: none; }
.sh-menu summary { width: 44px; height: 44px; cursor: pointer; color: var(--c-ink); display: grid; place-items: center; border-radius: 999px; }
.sh-menu[open] summary { background: rgba(11,31,36,.06); }
.sh-panel { position: fixed; left: 0; right: 0; top: 64px; height: calc(100dvh - 64px); overflow-y: auto; background: #fff; padding: 20px 24px 40px; display: grid; align-content: start; gap: 2px; }
.sh-panel a { color: #334155; text-decoration: none; font-size: 1rem; padding: 10px 0; display: flex; align-items: center; min-height: 44px; }
.sh-panel .sh-big { font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; color: var(--c-ink); padding: 8px 0; }
.sh-panel a.sh-big:first-of-type { color: var(--c-teal); }
.sh-group { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-mute); margin: 24px 0 6px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.sh-panel .sh-help { margin-top: 24px; display: grid; gap: 8px; }
.sh-panel .sh-help a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; background: rgba(11,31,36,.05); color: var(--c-ink); font-weight: 650; }
.sh-panel .sh-help a:first-child { background: var(--c-ink); color: #fff; }
.sh-links > a.sh-helpnav { display: inline-flex; align-items: center; gap: 6px; color: var(--c-teal); font-weight: 600; }
.sh-helpnav svg { flex: none; }
.sh-help-m { display: none; }
.sh-links > a.sh-search { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.sh-find { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; margin-bottom: 12px; border-radius: 14px; background: rgba(11,31,36,.05); color: var(--c-mute); }
.sh-find input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--c-ink); padding: 14px 0; outline: none; }
.sh-find:focus-within { box-shadow: 0 0 0 3px var(--c-teal); }

@media (max-width: 1060px) {
  .sh-links { display: none; }
  .sh-menu { display: block; }
  .sh-cta-m { display: inline-flex; align-items: center; min-height: 44px; margin-left: 0; padding: 0 16px; font-size: .88rem; }
  .sh-brand { min-height: 44px; }
  .sh-help-m { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 999px; color: var(--c-teal); background: rgba(11,31,36,.05); }
}
@media (max-width: 480px) { .sh-brand span { display: none; } .sh-brand { gap: 8px; font-size: .95rem; } .sh-in { padding: 0 8px 0 14px; gap: 4px; } .sh .sh-cta-m { padding: 0 13px; } }
@media (max-width: 374px) { .sh-brand { font-size: .86rem; gap: 6px; } .sh-brand img { height: 24px; } }
@media (max-width: 349px) { .sh-in { padding-left: 10px; } .sh .sh-cta-m { padding: 0 9px; font-size: .76rem; } .sh-brand { font-size: .82rem; gap: 4px; } .sh-brand img { height: 20px; } }

.sf { background: #f9fafb; border-top: 1px solid var(--c-line); color: var(--c-mute); font-size: .88rem; }
.sf-in { max-width: 1240px; margin: 0 auto; padding: 56px 20px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.sf-about p { margin-top: 14px; line-height: 1.6; max-width: 340px; }
.sf-help a { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.sf-col { display: grid; align-content: start; gap: 9px; }
.sf h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ink); margin-bottom: 4px; }
.sf a { color: var(--c-mute); text-decoration: none; }
.sf a:hover { color: var(--c-ink); }
.sf-ack { background: #0f485f; color: rgba(255,255,255,.92); margin: 0 0 24px; padding: 22px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.sf-ack a { display: inline-flex; gap: 6px; flex: none; }
.sf-ack img { display: block; width: auto; height: 28px; }
.sf .sf-ack p { color: rgba(255,255,255,.95); flex: 0 1 780px; margin: 0; text-align: center; font-size: .9rem; line-height: 1.6; }
.sf-note { max-width: 1200px; margin: 0 auto 18px; padding: 16px 20px; border-radius: 14px; background: rgba(15,23,42,.035); font-size: .84rem; line-height: 1.6; color: var(--c-mute); }
.sf-note strong { color: var(--c-ink); font-weight: 600; }
.sf .sf-note a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.sf-bottom { max-width: 1240px; margin: 0 auto; padding: 20px; border-top: 1px solid var(--c-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.sf-bottom a { margin-left: 14px; }
@media (max-width: 760px) { .sf-in { grid-template-columns: 1fr 1fr; } .sf-about { grid-column: 1 / -1; } }
/* Phone: every footer link is a 44 px thumb target. */
@media (max-width: 760px) {
  .sf-in { padding-top: 40px; gap: 24px 16px; }
  .sf-col { gap: 0; }
  .sf-col a, .sf-about .sh-brand { display: flex; align-items: center; min-height: 44px; }
  .sf-help { line-height: 2.75; }
  .sf-help a { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; min-height: 44px; min-width: 44px; padding: 0 4px; }
  .sf-bottom > span:last-child { display: flex; flex-wrap: wrap; margin-left: -12px; }
  .sf-bottom a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 0; padding: 0 12px; }
}

/* Keyboard focus, every page: a clear teal ring when tabbing (mouse clicks do not show it).
   :where() keeps it weakest, so a page's own focus style still wins. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #0f5876; outline-offset: 2px; }
.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; }

/* Age and topic bar under the header (every page): one tap to a stage, the Raising Children way */
.sh-stages { background: #0f485f; }
.sh-stages-in { max-width: 1180px; margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sh-stages-in::-webkit-scrollbar { display: none; }
.sh .sh-stages a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: rgba(255,255,255,.92); font-size: .92rem; font-weight: 600; text-decoration: none; letter-spacing: -0.005em; white-space: nowrap; }
.sh .sh-stages a:hover { color: #fff; background: rgba(255,255,255,.08); }
.sh .sh-stages a[aria-current="page"] { color: #0f485f; background: #fff; }
body:has(#canvas3d) .sh-stages { display: none; }
@media (max-width: 760px) { .sh-stages-in { -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); } .sh .sh-stages a { font-size: .88rem; padding: 0 10px; } }
