@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ===== 基础变量 ===== */
:root {
  --c-primary: #99ffcc;
  --c-accent: #00ff41;
  --c-bg: #001e3c;
  --c-bg2: #002a52;
  --c-bg3: #003366;
  --c-text: #d4f5e6;
  --c-text-muted: #7bbfa0;
  --c-border: rgba(153, 255, 204, 0.18);
  --c-glass: rgba(0, 42, 82, 0.72);
  --c-glass-border: rgba(153, 255, 204, 0.22);
  --c-shadow: rgba(0, 255, 65, 0.12);
  --radius: 4px;
  --radius-lg: 12px;
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --max-w: 1200px;
  --prose-w: 72ch;
  --transition: 0.28s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 生物形态背景纹理 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(0,255,65,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(153,255,204,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 80% 30% at 50% 90%, rgba(0,42,82,0.8) 0%, transparent 100%);
}
body > * { position: relative; z-index: 1; }

/* ===== 呼吸动画 ===== */
@keyframes breathing {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes cellPulse {
  0%, 100% { filter: blur(0px); opacity: 0.6; }
  50% { filter: blur(1px); opacity: 1; }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flowIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== 链接 ===== */
a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }

/* ===== 图片 ===== */
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ===== 通用容器 ===== */
.inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ===== 眉题 small ===== */
small.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* ===== 标题 ===== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-primary);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.6rem; margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 0.4rem; }
h4 { font-size: 1rem; margin-bottom: 0.3rem; }

/* ===== HEADER ===== */
.site-header {
  background: rgba(0, 20, 44, 0.96);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--c-border);
}

.brand-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  animation: breathing 4s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-name:hover { color: var(--c-accent); }

.brand-tagline {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  display: none;
}
@media (min-width: 768px) { .brand-tagline { display: inline; } }

/* 搜索框 */
.header-search { flex-shrink: 0; }
.search-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,42,82,0.6);
}
.search-form input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: var(--c-text);
  font-family: var(--font-body);
  min-width: 0;
  width: 160px;
}
.search-form input::placeholder { color: var(--c-text-muted); }
.search-form button {
  background: var(--c-bg3);
  border: none;
  border-left: 1px solid var(--c-border);
  color: var(--c-primary);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font-body);
  min-height: 40px;
  transition: background var(--transition), color var(--transition);
}
.search-form button:hover { background: var(--c-accent); color: var(--c-bg); }

/* 主导航 */
.main-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.main-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  align-items: stretch;
}
.main-nav p a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  min-height: 44px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}
.main-nav p a:hover {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  background: rgba(153,255,204,0.05);
}

/* ===== MAIN ===== */
.page-main { min-height: 60vh; }

/* ===== content-section 通用双栏布局 ===== */
.content-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}
.content-figure { min-width: 0; }
.content-aside { position: sticky; top: 100px; }

/* ===== ASIDE 通用样式 ===== */
.aside-inner {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem;
  backdrop-filter: blur(8px);
}
.aside-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  margin-top: 1.2rem;
}
.aside-label:first-child { margin-top: 0; }
.aside-links { list-style: none; }
.aside-links li { border-bottom: 1px solid rgba(153,255,204,0.08); }
.aside-links li:last-child { border-bottom: none; }
.aside-links a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--c-text);
  transition: color var(--transition), padding-left var(--transition);
  line-height: 1.4;
}
.aside-links a:hover { color: var(--c-accent); padding-left: 0.4rem; }
.aside-parent a, .aside-desc { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.5; }
.aside-parent { margin-top: 1rem; }

/* ===== PROSE ===== */
.prose { max-width: var(--prose-w); }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--c-primary); font-weight: 700; }
.prose em { color: var(--c-primary); font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 0.8rem 1.2rem;
  margin: 1.5em 0;
  background: rgba(0,255,65,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-text-muted);
  font-style: italic;
}
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-primary); }
.prose img { margin: 1.5em 0; border-radius: var(--radius); border: 1px solid var(--c-border); }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.92em; }
.prose th { background: var(--c-bg3); color: var(--c-primary); padding: 0.5rem 0.75rem; text-align: left; }
.prose td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--c-border); }

/* 日期 */
time.pub-date, time.mod-date {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
  margin-right: 1rem;
  font-family: var(--font-body);
}

/* ===== 玻璃拟态卡片 ===== */
.cell-card {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  backdrop-filter: blur(8px);
}
.cell-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--c-shadow);
  border-color: rgba(153,255,204,0.4);
}
.cell-inner { padding: 1.4rem 1.3rem; }
.cell-inner small.eyebrow { margin-bottom: 0.3rem; }
.cell-inner h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.cell-inner h3 a { color: var(--c-primary); }
.cell-inner h3 a:hover { color: var(--c-accent); }
.cell-inner p { font-size: 0.88rem; color: var(--c-text-muted); margin-bottom: 0.8rem; line-height: 1.5; }
.card-date { display: block; font-size: 0.78rem; color: var(--c-text-muted); margin-bottom: 0.4rem; }
.card-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-accent);
  font-family: var(--font-head);
  transition: color var(--transition);
}
.card-link:hover { color: var(--c-primary); }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.6rem;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  min-height: 44px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: var(--c-primary);
  color: var(--c-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--c-shadow);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--c-primary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  min-height: 44px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  background: var(--c-primary);
  color: var(--c-bg);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: transparent;
  color: var(--c-accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid var(--c-accent);
  border-radius: var(--radius);
  min-height: 44px;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--c-accent); color: var(--c-bg); }

/* ===== HOME ===== */
/* Hero */
.hero-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2rem;
  min-height: 45vh;
  align-items: center;
}
.hero-aside {
  display: flex;
  justify-content: center;
}
.timeline-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}
.spine-year {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}
.spine-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
  animation: breathing 3s ease-in-out infinite;
}
.spine-dot:nth-child(2) { animation-delay: 0.5s; }
.spine-dot:nth-child(3) { animation-delay: 1s; }
.spine-dot:nth-child(4) { animation-delay: 1.5s; }

.hero-figure { display: flex; flex-direction: column; gap: 1.2rem; }
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-primary);
  animation: flowIn 0.8s ease both;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--c-text-muted);
  max-width: 56ch;
  line-height: 1.6;
  animation: flowIn 0.9s 0.1s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: flowIn 1s 0.2s ease both;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  animation: flowIn 1s 0.3s ease both;
}
.stat-item { display: flex; flex-direction: column; gap: 0; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--c-text-muted); }

/* home prose section */
.prose-section {
  border-top: 1px solid var(--c-border);
  padding-top: 2.5rem;
}
.full-width-figure .prose { max-width: 100%; }

/* 专题网格 */
.topics-section, .articles-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--c-border);
}
.topics-section > small.eyebrow { margin-bottom: 0; }
.topics-section > h2, .articles-section > h2 { margin-top: 0.3rem; margin-bottom: 1.5rem; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.section-more { margin-top: 1.5rem; text-align: center; }

/* ===== TOPIC ===== */
.topic-hero-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}
.topic-hero-figure h1 { margin-top: 0.3rem; }
.topic-desc { color: var(--c-text-muted); font-size: 1rem; margin-top: 0.5rem; max-width: 60ch; }
.topic-hero-aside { position: sticky; top: 100px; }

/* children 列表表格 */
.children-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.children-section > small.eyebrow { margin-bottom: 0; }
.children-section > h2 { margin-top: 0.3rem; margin-bottom: 1.2rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.children-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.92rem;
}
.children-table thead tr {
  background: var(--c-bg3);
  border-bottom: 2px solid var(--c-accent);
}
.children-table th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-primary);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.children-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  line-height: 1.5;
}
.child-row { transition: background var(--transition); }
.child-row:hover { background: rgba(153,255,204,0.04); }
.child-num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-accent);
  font-size: 0.8rem;
  width: 3rem;
  vertical-align: middle;
}
.child-title a { color: var(--c-primary); font-weight: 600; }
.child-title a:hover { color: var(--c-accent); }
.child-desc { color: var(--c-text-muted); font-size: 0.85rem; max-width: 300px; }
.child-date time { color: var(--c-text-muted); font-size: 0.82rem; white-space: nowrap; }
.th-num { width: 4rem; }
.th-date { width: 9rem; }

/* ===== ARTICLE ===== */
.article-main {}
.article-header-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}
.article-meta-figure h1 { margin-top: 0.3rem; }
.article-meta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.article-hero-img { margin-top: 1rem; border-radius: var(--radius-lg); overflow: hidden; }
.article-hero-img img { width: 100%; }
.article-aside { position: sticky; top: 100px; }
.article-body-section {}
.article-prose { max-width: var(--prose-w); }
.article-sidebar { position: sticky; top: 100px; }

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span[aria-hidden] { color: var(--c-border); }
.breadcrumb span:last-child { color: var(--c-text); }

/* ===== ABOUT ===== */
.about-intro-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}
.about-lead { font-size: 1.05rem; color: var(--c-text-muted); margin-top: 0.6rem; max-width: 60ch; }
.about-aside { position: sticky; top: 100px; }
.about-content-section {}
.about-sidebar { position: sticky; top: 100px; }

/* ===== PRIVACY ===== */
.privacy-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}
.privacy-figure small.eyebrow { margin-bottom: 0; }
.privacy-aside { position: sticky; top: 100px; }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(0, 15, 32, 0.98);
  border-top: 1px solid var(--c-border);
  margin-top: 4rem;
}

.footer-cta {
  background: linear-gradient(135deg, var(--c-bg3) 0%, rgba(0,60,80,0.8) 100%);
  border-bottom: 1px solid var(--c-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,255,65,0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: cellPulse 5s ease-in-out infinite;
}
.cta-text {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 1rem;
  position: relative;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  min-height: 48px;
  position: relative;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cta-btn:hover {
  background: var(--c-primary);
  color: var(--c-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--c-shadow);
}

.footer-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}
.footer-col p { font-size: 0.88rem; color: var(--c-text-muted); line-height: 1.6; margin-bottom: 0.3rem; }
.footer-col address { font-style: normal; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { border-bottom: 1px solid rgba(153,255,204,0.07); }
.footer-col ul li:last-child { border-bottom: none; }
.footer-col ul li a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.84rem;
  color: var(--c-text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--c-primary); }

.footer-copy-col { text-align: right; }
.footer-copy {
  display: block;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}
.footer-copy-col nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.footer-copy-col nav a {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-copy-col nav a:hover { color: var(--c-accent); }

/* ===== Scroll Reveal ===== */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-section,
  .topic-hero-section,
  .article-header-section,
  .about-intro-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }
  .content-aside,
  .topic-hero-aside,
  .article-aside,
  .article-sidebar,
  .about-aside,
  .about-sidebar,
  .privacy-aside {
    position: static;
  }
  .footer-body {
    grid-template-columns: 1fr 1fr;
  }
  .footer-copy-col {
    grid-column: 1 / -1;
    text-align: left;
  }
  .footer-copy-col nav { align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 1.5rem;
    min-height: auto;
  }
  .hero-aside { display: none; }
  .brand-bar { padding: 0.6rem 1rem; }
  .header-search { display: none; }
  .main-nav p { overflow-x: auto; flex-wrap: nowrap; }
  .main-nav p a { font-size: 0.8rem; padding: 0.55rem 0.7rem; }
  .footer-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-copy-col { text-align: left; }
  .footer-copy-col nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .topics-grid, .articles-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
  .content-section, .prose-section { padding: 1.5rem 1rem; }
  .children-section, .topics-section, .articles-section { padding: 1.5rem 1rem; }
}

@media (max-width: 375px) {
  body { font-size: 16px; }
  .brand-name { font-size: 1.1rem; }
  h1 { font-size: 1.6rem; }
}
