/* Fresh, local-only presentation. The font is bundled with its official license. */
@font-face {
  font-family: Quicksand;
  src: url('/assets/fonts/quicksand.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #172b40;
  --muted: #54616a;
  --peach: #dceef7;
  --peach-light: #eff7fb;
  --cream: #f8f4ec;
  --paper: #fffcf6;
  --line: #d4e3eb;
  --accent: #296783;
  --sage: #e8f3f8;
  --heading: Quicksand, ui-rounded, "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 24px; height: 24px; flex: 0 0 auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #366f87; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.22; font-weight: 700; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 4.7vw, 4.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.5rem; letter-spacing: -.015em; }
p { margin: 0 0 1.2em; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-180%); background: var(--ink); color: white; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); color: white; }
.eyebrow { font: 700 .74rem/1.4 var(--body); letter-spacing: .11em; text-transform: uppercase; }
.category-label { display: inline-block; color: var(--accent); text-decoration: none; }
.category-label:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 11px 22px; border-radius: 7px; border: 1px solid transparent; font-size: .95rem; font-weight: 650; line-height: 1.4; text-decoration: none; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #29465d; color: white; }
.button-outline { background: transparent; border-color: var(--ink); }
.button-outline:hover { background: var(--peach); color: var(--ink); }
.button svg { width: 20px; height: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: .93rem; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 20px; }

/* A centered journal masthead gives the source taxonomy a clearer hierarchy. */
.site-header { background: var(--paper); border-top: 5px solid #b6dbea; }
.brand-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 116px; padding-block: 22px; }
.header-note { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.9; color: var(--muted); }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-title { font: 700 clamp(1.5rem, 2.9vw, 2.25rem)/1.2 var(--heading); letter-spacing: -.05em; }
.brand-tagline { font-size: .9rem; margin-top: 9px; letter-spacing: .035em; line-height:1.5; color: var(--muted); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; }
.search-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: .88rem; text-decoration: none; padding: 8px 16px; border-radius: 30px; background: var(--peach-light); }
.search-trigger:hover { color: var(--accent); }
.nav-row { position:relative; border-top: 1px solid var(--line); }
.desktop-navigation { display:block; }
.nav-root,.nav-submenu { list-style:none; padding:0; margin:0; }
.desktop-navigation .nav-root { display:flex; justify-content:center; gap:clamp(14px,2vw,30px); }
.nav-item { position:relative; min-width:0; }
.nav-item-row { display:flex; align-items:center; }
.nav-item-row > a { flex:1; display:flex; align-items:center; min-height:46px; padding:10px 15px; font:600 .94rem/1.45 var(--heading); text-decoration:none; }
.desktop-navigation .nav-root > .nav-item > .nav-item-row > a { min-height:60px; padding:16px 3px; font-size:1.06rem; }
.nav-item-row > a:hover,.nav-item-row > a[aria-current] { color:var(--accent); }
.desktop-navigation .nav-home[aria-current] { box-shadow: inset 0 -2px var(--accent); }
.submenu-toggle { display:flex; align-items:center; justify-content:center; width:40px; min-height:44px; flex:0 0 40px; padding:0; color:var(--ink); background:none; border:0; cursor:pointer; border-radius:5px; }
.submenu-toggle:hover { background:var(--peach-light); }
.chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: 0 0 auto; }
.submenu-toggle[aria-expanded="true"] .chevron { transform:rotate(225deg); }
.nav-submenu[hidden] { display:none; }
.nav-submenu { z-index:30; width:280px; padding:9px; background:var(--paper); border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 30px #172b4020; }
.nav-submenu .nav-item-row:hover { background:var(--peach-light); border-radius:5px; }
/* One column per level; only direct children appear in each flyout. */
@media (min-width:1280px) {
  .desktop-navigation .nav-submenu { position:absolute; top:100%; left:-12px; width:240px; }
  .desktop-navigation .nav-submenu .nav-submenu { top:-9px; left:calc(100% + 9px); }
  .desktop-navigation .nav-submenu .has-submenu > .nav-item-row .chevron { transform:rotate(-45deg); }
}
.mobile-menu { display: none; }
.about-welcome { max-width:820px; }
.about-welcome h2 { font-size:clamp(1.8rem,3vw,2.6rem); }
.about-welcome > p:not(.eyebrow) { font-size:1.08rem; line-height:1.9; }
.about-pillars { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:24px; }
.about-pillars article { display:flex; flex-direction:column; padding:30px; background:var(--peach-light); border:1px solid var(--line); border-radius:18px; }
.about-pillars h2 { font-size:1.3rem; line-height:1.35; }
.about-pillars p { line-height:1.8; }
.about-pillars .text-link { margin-top:auto; }
.topic-hub-return { margin-top:24px; }

/* The hero aligns with the reading grid and gives the photograph more space. */
.family-hero { display:grid; grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr); width:min(var(--wrap),calc(100% - 80px)); margin:24px auto 0; background:var(--peach); overflow:hidden; border-radius:30px; }
.family-hero-copy { padding:clamp(28px,3.2vw,48px); position:relative; align-self:center; }
.family-hero-copy .eyebrow { color:var(--accent); margin:0 0 23px; font-size:.66rem; line-height:1.7; }
.family-hero h1 { font-size:clamp(2.65rem,4.3vw,4.15rem); font-weight:600; line-height:1.08; letter-spacing:-.055em; margin:0 0 24px; }
.family-hero-copy > p:not(.eyebrow) { max-width:370px; font-size:1rem; line-height:1.8; color:#38556b; margin-bottom:26px; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px 24px; }
.hero-actions .button { padding:14px 20px; border-radius:4px; font-size:.84rem; }
.hero-actions .text-link { font-size:.82rem; }
.hero-footnote { display:block; font-family:var(--heading); font-size:.76rem; margin-top:28px; color:#38556b; }
.family-hero-photo { margin:0; position:relative; min-height:550px; }
.family-hero-photo .family-photo { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; object-position:62% 48%; }
.family-hero-photo figcaption { position:absolute; bottom:21px; right:28px; color:white; font:500 .75rem/1.5 var(--body); letter-spacing:.025em; text-shadow:0 1px 10px #000; }
.home-reading-heading { margin-top:65px; }

/* Magazine home, with real source stories carrying the visual hierarchy. */
.home-intro { padding: 52px 0 38px; text-align: center; }
.home-intro .eyebrow { margin-bottom: 12px; color: var(--accent); }
.home-intro h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 4.6vw, 3.75rem); }
.home-intro > .wrap > p:last-child { color: var(--muted); margin: 0; font-size: 1.1rem; }
.home-feature { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:28px; margin-bottom:64px; align-items:stretch; }
.feature-main { position:relative; min-height:800px; overflow:hidden; border-radius:18px; background:var(--ink); color:white; }
.feature-visual { position:absolute; inset:0; display:block; }
.feature-main .feature-image { width:100%; max-width:100%; height:100%; object-fit:cover; object-position:50% 40%; margin:0; }
.feature-main::before,.feature-side .story-card::before { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(0deg,rgba(10,30,43,.96),rgba(10,30,43,.66) 27%,transparent 65%); pointer-events:none; }
.feature-main::before { background:linear-gradient(0deg,rgba(10,30,43,.96),rgba(10,30,43,.8) 20%,rgba(10,30,43,.22) 34%,transparent 52%); }
.feature-copy { position:absolute; inset:auto 0 0; padding:30px; z-index:2; }
.feature-main h3 { font-size:clamp(2rem,2.7vw,2.75rem); line-height:1.15; margin:10px 0 16px; }
.feature-main h3 a { text-decoration: none; }
.feature-copy > p { color:#eff5f8; font-size:.94rem; margin-bottom:14px; }
.feature-main .article-meta { color:#d9e7ee; margin-top:14px; font-size:.72rem; }
.feature-read-link { font-size:.86rem; min-height:32px; }
.feature-side { display:grid; grid-template-rows:repeat(3,minmax(0,1fr)); gap:22px; }
.feature-side .story-card { position:relative; display:block; overflow:hidden; border-radius:16px; padding:0; border:0; margin:0; min-height:0; background:var(--ink); color:white; }
.feature-side .story-card:first-child { padding-top:0; }
.feature-side .story-card:last-child { border-bottom:0; padding-bottom:0; }
.feature-side .story-card > .story-image { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; border-radius:0; }
.feature-side .story-image img { object-position:50% 28%; }
.feature-side .story-card:first-child .story-image img { object-position:50% 0%; }
.feature-side .story-card:nth-child(2) .story-image img { object-position:50% 45%; }
.feature-side .story-body { position:absolute; inset:auto 0 0; z-index:2; padding:20px; }
.feature-side h3 { font-size:clamp(1.35rem,1.8vw,1.65rem); line-height:1.22; margin:7px 0 9px; }
.feature-side .story-body > p { display:none; }
.feature-side .article-meta { color:#dfebf1; font-size:.72rem; }
.home-feature .category-label { color:#d2edf9; }
.home-feature a:hover { color:white; }
.home-feature a:focus-visible { outline-color:white; outline-offset:5px; }
.popular-thumbnails { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:22px; margin:0 0 35px; padding-bottom:30px; border-bottom:1px solid #d8dfdc; }
.popular-thumbnail { display:block; text-decoration:none; min-width:0; }
.popular-thumbnail-image { width:100%; aspect-ratio:1.5; object-fit:cover; border-radius:14px; margin-bottom:14px; }
.popular-thumbnail > span { display:block; font:700 1rem/1.5 var(--heading); }
.popular-thumbnail:hover > span { text-decoration:underline; }
.topics-band { background: var(--sage); padding: 32px 0 36px; }
.topics-band h2 { text-align: center; font-size: 1.55rem; margin: 0 0 22px; }
.topic-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.topics-band .topic-chips { justify-content: center; }
.home-topic-groups { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 15px; margin-bottom: 23px; }
.home-topic-groups a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 23px; border: 1px solid var(--ink); border-radius: 7px; background: var(--cream); font: 700 1rem/1.4 var(--heading); text-decoration: none; }
.home-topic-groups a:hover { background: var(--ink); color: white; }
.home-topic-links .text-link { margin-inline: 9px; min-height: 43px; }
.topic-chip { display: inline-flex; align-items: center; min-height: 43px; padding: 8px 17px; border: 1px solid #aeb7a4; border-radius: 100px; background: #fff9; text-decoration: none; font-size: .87rem; font-weight: 550; line-height: 1.45; max-width: 100%; overflow-wrap: anywhere; }
.topic-chip:hover { background: var(--ink); border-color: var(--ink); color: white; }
.section-space { padding-block: 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading .eyebrow { color: var(--accent); margin: 0 0 9px; }
.section-heading h2 { margin: 0; }
.section-heading .text-link { flex: 0 0 auto; margin-bottom: 5px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.story-card { min-width: 0; }
.story-image { display: block; aspect-ratio: 1.55; overflow: hidden; border-radius: 12px; background: var(--peach-light); }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.story-image:hover img { transform: scale(1.025); }
.story-body { padding-top: 20px; }
.story-body h3 { margin: 8px 0 12px; font-size: 1.42rem; }
.story-body h3 a { text-decoration: none; }
.story-body > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: .94rem; margin-bottom: 15px; }
.story-card-text { border-top: 3px solid #b8d5e3; }
.story-card-text .story-body { padding-top: 20px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.meta-dot { color: #7b827e; }
.topic-section { padding-block: 55px; }
.topic-section-tinted { background: var(--peach-light); }
.topic-section .story-image { background: var(--peach); }

/* Reading pages use a quiet measure and semantic content supplied by the pipeline. */
.breadcrumbs { padding-top: 25px; color: var(--muted); font-size: .78rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 11px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { overflow-wrap: anywhere; max-width: 100%; }
.breadcrumbs li + li::before { content: '/'; color: #7f888d; margin-right: 11px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-shell { padding-block: 45px 16px; }
.article-heading { max-width: 1000px; margin: 0 auto 36px; }
.article-heading h1 { margin: 12px 0 23px; }
.article-heading .article-meta { font-size: .88rem; gap: 8px 12px; }
.article-featured-wrap { max-width: 1400px; margin: 0 auto 48px; }
.article-featured-wrap:has(.article-featured-portrait) { max-width:640px; }
.article-featured { width:100%; height:auto; max-height:min(88vh,900px); object-fit:contain; object-position:center; border-radius:22px; background:linear-gradient(135deg,#e5f1f7,#f7f2e9); }
.article-shell:has(.article-featured) { width:min(1400px,calc(100% - 64px)); }
.article-featured-wrap figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.article-layout { max-width: 760px; margin-inline: auto; }
.article-layout.has-outline { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 54px; max-width: 1100px; }
.article-toc { align-self: start; position: sticky; top: 24px; font-size: .88rem; border-top: 2px solid #b8d5e3; padding-top: 13px; }
.article-toc summary { font-family: var(--heading); font-weight: 750; padding: 6px 0 8px; }
.article-toc ol { list-style: none; margin: 8px 0 0; padding: 0; max-height: 65vh; overflow-y: auto; }
.article-toc a { display: block; padding: 7px 0; text-decoration: none; line-height: 1.5; }
.article-toc a:hover { text-decoration: underline; }
.article-toc .toc-level-3 { padding-left: 15px; color: var(--muted); font-size: .82rem; }
.prose { min-width: 0; font-size: 1.08rem; line-height: 1.88; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 1.8em 0 .65em; scroll-margin-top: 28px; }
.prose h3 { font-size: 1.5rem; margin: 1.7em 0 .6em; scroll-margin-top: 28px; }
.prose h4 { font-size: 1.22rem; margin: 1.5em 0 .6em; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--ink); }
.prose p, .prose ul, .prose ol, .prose figure { margin-top: 0; margin-bottom: 1.4em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li > ul, .prose li > ol { margin-top: .6em; margin-bottom: .6em; }
.prose blockquote { margin: 2em 0; padding: 20px 26px; background: var(--peach-light); border-left: 4px solid #75adc6; border-radius: 0 8px 8px 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img { height: auto; max-width: 100%; margin: 25px auto; border-radius: 8px; }
.prose figure { max-width: 100%; margin-inline: 0; }
.prose figure img { margin-bottom: 10px; }
.prose figcaption { font-size: .85rem; line-height: 1.6; color: var(--muted); text-align: center; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 1.5em; font-size: .9rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border: 1px solid var(--line); min-width: 140px; }
.prose th { background: var(--peach-light); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose pre { overflow-x: auto; background: #f0f0eb; padding: 20px; border-radius: 8px; font-size: .85rem; }
.prose iframe, .prose video { max-width: 100%; }
.article-topics { padding-top: 30px; margin-top: 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article-topics > span { font-size: .83rem; margin-right: 3px; }
.article-topics .topic-chip { font-size: .78rem; padding: 7px 13px; }
.related-section { border-top: 1px solid var(--line); margin-top: 50px; }
.page-shell { padding-block: 45px 70px; }
.page-content { max-width: 760px; margin-inline: auto; }
.page-shell .article-heading { max-width: 760px; }
.archive-intro { padding-block: 48px 35px; }
.archive-intro > .eyebrow { color: var(--accent); }
.archive-intro h1 { margin: 0 0 20px; }
.archive-intro > p:not(.eyebrow) { color: var(--muted); max-width: 750px; font-size: 1.1rem; }
.archive-intro .topic-chips { margin-top: 28px; }
.archive-stories { padding-bottom: 70px; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 55px; border-top: 1px solid var(--line); padding-top: 35px; font-size: .9rem; }
.pagination ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; gap: 6px; }
.pagination li a, .pagination li span { display: grid; min-height: 43px; min-width: 43px; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; }
.pagination [aria-current] { background: var(--ink); color: white; border-color: var(--ink); }
.pagination-gap { padding: 0 5px; }
.page-direction { padding: 10px 12px; text-decoration: none; }
.empty-state { background: var(--peach-light); border-radius: 12px; padding: 35px; }
.empty-state p { margin-bottom: 18px; }
.topic-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.topic-directory-group { padding: 27px; background: var(--peach-light); border-radius: 12px; scroll-margin-top: 30px; }
.topic-directory-group h2 { margin: 0 0 15px; font-size: 1.65rem; }
.topic-directory-group h2 a { text-decoration: none; }
.topic-directory-group > p { font-size: .95rem; color: var(--muted); }
.topic-directory-group ul { list-style: none; padding: 0; margin: 0; }
.topic-directory-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; border-top: 1px solid var(--line); padding-block: 10px; font-size: .94rem; }
.topic-directory-group li a { text-decoration: none; }
.topic-directory-group li a:hover { text-decoration: underline; }
.topic-directory-group li > span { flex: 0 0 auto; color: var(--muted); font-size: .75rem; }

/* Topic context stays available on parent and leaf pages alike. */
.topic-explorer { margin-top:30px; padding:26px 28px; border:1px solid #c8dfe9; border-radius:20px; background:var(--peach-light); text-align:left; }
.topic-explorer-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.topic-explorer-heading .eyebrow { font-size:.66rem; margin-bottom:7px; color:var(--accent); }
.topic-explorer h2 { font-size:1.55rem; margin:0; }
.topic-back-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px 22px; }
.topic-explorer .topic-chip { background:var(--paper); min-height:44px; display:inline-flex; align-items:center; }
.topic-explorer .topic-chip[aria-current="page"] { background:var(--ink); border-color:var(--ink); color:white; }
.topic-children:not(:first-child) { margin-top:20px; }
.topic-children > .eyebrow { margin-bottom:12px; }
.section-hub-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); overflow:hidden; border-radius:28px; margin-top:28px; background:var(--peach); }
.section-hub-copy { padding:clamp(30px,4vw,58px); align-self:center; }
.section-hub-copy .eyebrow { color:var(--accent); font-size:.68rem; }
.section-hub-copy h1 { margin:16px 0 20px; }
.section-hub-copy > p:not(.eyebrow) { max-width:420px; font-size:1.12rem; color:#36556a; }
.section-hub-count { display:block; margin-top:20px; font-size:.83rem; color:var(--muted); }
.section-hub-hero figure { position:relative; margin:0; min-height:420px; background:#e5eef1; }
.section-hub-image { position:absolute; width:100%; height:100%; inset:0; object-fit:contain; }
.section-hub-hero figcaption { position:absolute; inset:auto 18px 18px; background:#fffcf6f2; padding:13px 17px; border-radius:10px; font:650 .85rem/1.5 var(--heading); }
.section-hub-hero figcaption a { display:flex; justify-content:space-between; gap:12px; text-decoration:none; }
.section-topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; padding:0; margin:0; list-style:none; }
.section-topic-card { display:grid; grid-template-columns:1fr auto; gap:5px 15px; align-items:center; height:100%; min-height:108px; padding:23px; border:1px solid var(--line); border-radius:14px; background:var(--paper); text-decoration:none; }
.section-topic-card:hover { background:var(--peach-light); border-color:#82b3c9; }
.section-topic-card > span { font:700 1.1rem/1.5 var(--heading); }
.section-topic-card > small { grid-column:1; font-size:.77rem; color:var(--muted); }
.section-topic-card > svg { grid-column:2; grid-row:1/3; }
:is(.archive-stories,.section-hub-stories,.related-section) .story-image img { object-fit:contain; }
:is(.archive-stories,.section-hub-stories,.related-section) .story-image:hover img { transform:none; }
.archive-stories .story-grid:has(> .story-card:only-child) { grid-template-columns:minmax(0,1fr); }
.archive-stories .story-card:only-child:has(.story-image) { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:32px; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--paper); }
.archive-stories .story-card:only-child:has(.story-image) .story-image { aspect-ratio:1; }
.archive-stories .story-card:only-child:has(.story-image) .story-body { align-self:center; padding:16px 20px 16px 0; }
@media (max-width:900px) {
  .section-hub-hero { grid-template-columns:1fr; }
  .section-hub-hero figure { min-height:380px; }
  .section-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .archive-stories .story-card:only-child:has(.story-image) { display:block; padding:18px; }
  .archive-stories .story-card:only-child:has(.story-image) .story-body { padding:22px 0 8px; }
  .topic-explorer { padding:22px 18px; }
  .topic-explorer-heading { align-items:flex-start; flex-direction:column; }
  .topic-back-links { justify-content:flex-start; }
  .section-hub-hero { border-radius:20px; }
  .section-hub-copy { padding:30px 24px; }
  .section-hub-hero figure { min-height:310px; }
  .section-topic-grid { grid-template-columns:1fr; }
  .section-topic-card { min-height:92px; }
}
.review-notice { padding: 18px 22px; margin-bottom: 30px; background: var(--peach-light); border-left: 4px solid #75adc6; border-radius: 0 8px 8px 0; font-size: .95rem; }
.review-notice strong { display: block; margin-bottom: 7px; }
.review-notice p { margin-bottom: 0; }
.catalog-section { padding-top: 36px; margin-top: 40px; border-top: 1px solid var(--line); }
.catalog-section > h2 { margin: 0 0 30px; }
.not-found { padding-block: 85px 100px; max-width: 950px; }
.not-found h1 { margin: 12px 0 20px; }
.not-found > p { max-width: 650px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 40px; }

/* Search is local. Native dialog provides focus containment and Escape support. */
.search-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: 24px auto; padding: 30px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 90px #172b4040; }
.search-dialog::backdrop { background: #172b4099; }
.search-dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.search-dialog-top h2 { margin: 0; font-size: 1.9rem; }
.icon-button { flex: 0 0 auto; display: grid; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.8rem; line-height: 1; }
.icon-button:hover { background: var(--peach); }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 17px; }
.search-form label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 650; }
.query-row { display: flex; align-items: stretch; gap: 9px; }
.search-form input, .search-form select { width: 100%; min-width: 0; min-height: 49px; border: 1px solid #aab0b1; padding: 11px 13px; border-radius: 6px; color: var(--ink); background: white; font-size: 1rem; line-height: 1.4; }
.search-form input::placeholder { color: #626c73; opacity: 1; }
.search-filter { max-width: 360px; }
.search-status { margin: 22px 0 18px; color: var(--muted); font-size: .87rem; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { border-top: 1px solid var(--line); padding-block: 18px; }
.search-results h3 { font-size: 1.2rem; margin: 0 0 8px; }
.search-results h3 a { text-decoration: none; }
.search-results h3 a:hover { text-decoration: underline; }
.search-results p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0 0 8px; }
.search-results .result-meta { font-size: .75rem; color: var(--accent); }
.search-browse { border-top: 1px solid var(--line); padding-top: 20px; margin: 20px 0 0; }
.search-browse a { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; }
.search-page { padding-top: 20px; max-width: 850px; }
.search-page .search-form { grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); align-items: end; }
.search-page .search-results { margin-top: 25px; }
.search-page .search-results h3 { font-size: 1.45rem; }

/* Footer contains content routes only, without the retired shopping controls. */
.site-footer { margin-top: 30px; background: var(--peach); }
.footer-layout { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 65px; padding-block: 55px 45px; }
.footer-brand { font: 700 1.7rem/1.2 var(--heading); letter-spacing: -.035em; }
.footer-layout > div p { margin: 15px 0 0; font-size: .86rem; }
.footer-layout .footer-note { color: #4b5155; max-width: 280px; margin-top: 25px; }
.footer-layout nav h2 { font: 700 .85rem/1.4 var(--body); margin: 0 0 16px; }
.footer-layout nav a { display: block; width: fit-content; padding-block: 6px; font-size: .86rem; text-decoration: none; }
.footer-layout nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid #b8d5e3; padding-block: 20px; font-size: .75rem; }

@media (min-width: 1440px) {
  :root { --wrap: 1240px; }
}

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .family-hero { width:calc(100% - 48px); }
  .home-feature { gap:26px; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); }
  .feature-side h3 { font-size:1.35rem; }
  .story-grid { gap: 35px 22px; }
  .story-body h3 { font-size: 1.27rem; }
  .desktop-navigation .nav-root > .nav-item > .nav-item-row > a { font-size:1rem; }
  .article-layout.has-outline { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .footer-layout { gap: 35px; }
}

@media (max-width: 900px) {
  .header-note { display:none; }
  .brand-row { grid-template-columns:1fr auto; }
  .brand-row .brand { align-items:flex-start; }
  .brand-row { min-height:105px; }
  .family-hero { width:calc(100% - 48px); grid-template-columns:1fr; }
  .family-hero-copy { padding:40px; }
  .family-hero h1 { font-size:3.1rem; }
  .family-hero h1 br { display:none; }
  .family-hero-photo { min-height:0; height:440px; grid-row:1; }
  .popular-thumbnails { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:20px; gap:20px; }
  .popular-thumbnail { flex:0 0 170px; scroll-snap-align:start; }
  .home-feature { display:block; }
  .feature-main { min-height:760px; }
  .feature-side { margin-top:24px; grid-template-rows:none; gap:22px; }
  .feature-side .story-card { min-height:270px; }
  .article-layout.has-outline { display: block; max-width: 760px; }
  .article-toc { position: static; padding: 15px 20px; margin-bottom: 30px; background: var(--peach-light); border-top: 0; border-radius: 8px; }
  .article-toc ol { max-height: none; }
  .home-intro { padding-top: 38px; }
}

/* Three right-opening levels need laptop-width space. Below that, keep the
   same source hierarchy in full-width disclosures rather than reverse it. */
@media (max-width:1279px) {
  .desktop-navigation { display:none; }
  .mobile-menu { display:block; }
  .mobile-menu > summary { list-style:none; display:flex; align-items:center; gap:11px; min-height:54px; font-size:1.05rem; font-weight:650; }
  .mobile-menu > summary::-webkit-details-marker { display:none; }
  .menu-bars, .menu-bars::before, .menu-bars::after { width:18px; height:1.5px; background:currentColor; display:block; position:relative; }
  .menu-bars::before, .menu-bars::after { content:''; position:absolute; left:0; }
  .menu-bars::before { top:-5px; }
  .menu-bars::after { top:5px; }
  .mobile-navigation { padding:0 0 18px; }
  .mobile-navigation .nav-root > .nav-item { border-top:1px solid #b8d5e3; }
  .mobile-navigation .nav-item-row > a { min-height:51px; padding:12px 4px; font-size:.96rem; }
  .mobile-navigation .nav-submenu { position:static; width:100%; padding:0 0 8px 14px; background:var(--peach-light); border:0; border-left:2px solid #b8d5e3; box-shadow:none; border-radius:0; }
}

@media (max-width: 700px) {
  .family-hero { width:calc(100% - 28px); margin-top:14px; grid-template-columns:1fr; border-radius:24px; }
  .family-hero-photo { min-height:0; height:340px; grid-row:1; }
  .family-hero-photo .family-photo { object-position:60% 45%; }
  .family-hero-photo figcaption { bottom:15px; right:18px; font-size:.67rem; }
  .family-hero-copy { padding:32px 26px 35px; }
  .family-hero h1 { font-size:2.8rem; line-height:1.14; max-width:460px; }
  .family-hero h1 br { display:none; }
  .family-hero h1 br::after { content:' '; }
  .family-hero-copy > p:not(.eyebrow) { font-size:.94rem; max-width:470px; }
  .family-hero-copy .eyebrow { margin-bottom:15px; font-size:.61rem; }
  .hero-footnote { margin-top:25px; font-size:.7rem; }
  .home-reading-heading { margin-top:42px; }
  .article-shell:has(.article-featured) { width:calc(100% - 36px); }
  .wrap { width: calc(100% - 36px); }
  .brand-row { min-height: 100px; padding-block: 23px; gap: 12px; }
  .brand-title { font-size: 1.6rem; }
  .brand-tagline { font-size: .83rem; max-width: 280px; }
  .desktop-search-label { display: none; }
  .search-trigger { gap: 5px; font-size: .8rem; }
  .search-trigger svg { width: 22px; }
  .home-intro { padding-block: 36px 29px; }
  .home-intro h1 { font-size: 2.6rem; }
  .home-intro > .wrap > p:last-child { font-size: .97rem; }
  .home-intro .eyebrow { font-size: .65rem; }
  .home-feature { display: block; margin-bottom: 40px; }
  .feature-main { min-height:620px; }
  .feature-copy { padding:24px; }
  .feature-main h3 { font-size:2rem; }
  .feature-copy > p { font-size:.92rem; }
  .feature-side { display:grid; grid-template-columns:1fr; grid-template-rows:auto; gap:22px; padding-top:0; }
  .feature-side .story-card { margin:0; padding:0; min-height:270px; }
  .feature-side .story-card:first-child { padding-top:0; }
  .feature-side h3 { font-size:1.4rem; }
  .feature-side .story-body > p { display: none; }
  .feature-side .article-meta { gap: 4px; font-size: .68rem; }
  .feature-side .meta-dot, .feature-side .article-meta > span:last-child { display: none; }
  .topics-band { padding-block: 28px; }
  .topics-band h2 { font-size: 1.35rem; }
  .home-topic-groups { gap: 9px; }
  .home-topic-groups a { flex: 1 1 130px; padding-inline: 15px; }
  .topic-chip { padding: 8px 13px; font-size: .8rem; }
  .section-space { padding-block: 40px; }
  .section-heading { align-items: flex-start; margin-bottom: 25px; gap: 14px; }
  .section-heading h2 { font-size: 1.8rem; }
  .section-heading .text-link { font-size: .8rem; max-width: 130px; margin-top: 5px; }
  .section-heading .text-link svg { display: none; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .story-body { padding-top: 15px; }
  .story-body h3 { font-size: 1.2rem; }
  .story-body > p { font-size: .87rem; -webkit-line-clamp: 3; }
  .story-body .eyebrow { font-size: .62rem; }
  .article-meta { font-size: .7rem; gap: 4px 6px; }
  .topic-section { padding-block: 36px; }
  .article-shell { padding-top: 29px; }
  .article-heading { margin-bottom: 26px; }
  .article-heading h1 { font-size: 2.45rem; }
  .article-heading .article-meta { font-size: .78rem; }
  .article-featured-wrap { margin-bottom: 28px; }
  .article-featured { border-radius:18px; height:auto; max-height:none; }
  .prose { font-size: 1.02rem; line-height: 1.85; }
  .prose h2 { font-size: 1.8rem; }
  .prose h3 { font-size: 1.4rem; }
  .prose blockquote { padding: 18px; }
  .related-section { margin-top: 28px; }
  .page-shell { padding-block: 28px 45px; }
  .archive-intro { padding-block: 32px 27px; }
  .archive-intro h1 { font-size: 2.5rem; }
  .archive-intro > p:not(.eyebrow) { font-size: 1rem; }
  .archive-stories { padding-bottom: 45px; }
  .topic-directory { grid-template-columns: 1fr; }
  .topic-directory-group { padding: 22px; }
  .footer-layout { grid-template-columns: 1fr 1fr; gap: 32px 25px; padding-block: 40px 30px; }
  .footer-layout > div { grid-column: 1 / -1; }
  .footer-layout .footer-note { max-width: none; margin-top: 12px; }
  .search-page .search-form { grid-template-columns: 1fr; }
  .search-dialog { padding: 22px; max-height: calc(100dvh - 32px); margin-block: 16px; }
  .search-dialog-top { gap: 12px; }
  .search-dialog-top h2 { font-size: 1.55rem; }
  .query-row .button { padding-inline: 14px; }
  .search-dialog .search-form input::placeholder { font-size: .85rem; }
}

@media (max-width: 430px) {
  .brand-title { font-size: 1.39rem; letter-spacing: -.05em; }
  .brand-tagline { font-size: .76rem; }
  .search-trigger { padding-left: 0; }
  .search-trigger span { display: none; }
  .home-intro h1 { font-size: 2.35rem; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .story-image { aspect-ratio: 1.55; }
  .story-body h3 { font-size: 1.5rem; }
  .story-body > p { font-size: .95rem; }
  .story-body .eyebrow { font-size: .7rem; }
  .story-body .article-meta { font-size: .76rem; }
  .feature-side .story-body h3 { font-size: 1.07rem; }
  .feature-side .story-body .eyebrow { font-size: .59rem; }
  .feature-main h3 { font-size:1.85rem; }
  .article-heading h1 { font-size: 2.15rem; }
  .breadcrumbs { font-size: .73rem; }
  .section-heading h2 { font-size: 1.65rem; }
  .section-heading .text-link { max-width: 105px; }
  .query-row { flex-wrap: wrap; }
  .query-row .button { width: 100%; }
  .search-dialog-top h2 { padding-top: 7px; }
  .not-found { padding-block: 50px 60px; }
  .not-found h1 { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .breadcrumbs, .article-toc, .related-section, .search-dialog, .article-topics { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .wrap, .article-layout, .article-layout.has-outline, .page-content { width: 100%; max-width: none; display: block; }
  .article-shell, .page-shell { padding: 0; }
  h1 { font-size: 26pt !important; }
  h2 { font-size: 19pt !important; }
  h3 { font-size: 15pt !important; }
  .article-featured { max-height: 300px; object-fit: contain; }
  a { color: inherit; }
}
