@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

/* ===========================
   CSS Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Public Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 {
  font-family: 'Lexend Mega', 'Public Sans', sans-serif;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.6rem); }

p { margin-bottom: 1rem; }

/* ===========================
   Layout Utilities
   =========================== */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================
   Top Navigation (header > nav > p > a)
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 3px solid #000;
}

.top-nav {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar { display: none; }

.top-nav p {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1rem;
  white-space: nowrap;
  min-height: 56px;
}

.top-nav p a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s;
}

.top-nav p a:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

.nav-brand {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.2rem !important;
  margin-right: 0.5rem;
  border-right: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* ===========================
   Main + Sidebar Layout
   =========================== */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas: "content sidebar";
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 100px;
}

main .wrap {
  grid-area: content;
  min-width: 0;
}

main aside {
  grid-area: sidebar;
  padding: 2rem 1.5rem;
  border-left: 3px solid #000;
  background: #f8f8f8;
  position: sticky;
  top: 56px;
  height: fit-content;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

/* ===========================
   Eyebrow / Small Labels
   =========================== */
.eyebrow,
small.eyebrow {
  display: block;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  border-top: 2px solid #000;
  padding-top: 0.4rem;
  margin-bottom: 0.3rem;
}

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e0e0e0;
  text-transform: uppercase;
}

.breadcrumb a { color: #000; text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: #888; }

/* ===========================
   Hero Section (home)
   =========================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 45vh;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  padding: 4rem 2rem 3rem;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-mask,
.hero-mask-plain {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-mask-plain {
  background: #000;
}

.hero-bg-text {
  position: absolute;
  font-family: 'Lexend Mega', sans-serif;
  font-size: clamp(8rem, 25vw, 20rem);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.hero-h1 {
  color: #fff;
  font-size: clamp(2.2rem, 8vw, 5rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-pill-hero {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: #fff;
  color: #000;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 3px solid #fff;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.btn-pill-hero:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* ===========================
   Section Base
   =========================== */
.content-section,
.topics-section,
.articles-section,
.topic-content-section,
.topic-children-section,
.article-header-section,
.article-body-section,
.related-section,
.tag-header-section,
.tag-content-section,
.tag-items-section,
.about-header-section,
.about-content-section,
.about-links-section,
.privacy-header-section,
.privacy-content-section,
.privacy-nav-section,
.default-section {
  padding: 3rem 2rem;
  border-bottom: 2px solid #000;
}

.section-h2 {
  margin-bottom: 1.5rem;
  color: #000;
}

/* ===========================
   Drop Caps
   =========================== */
.drop-cap .page-content > p:first-of-type::first-letter {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 4.5em;
  font-weight: 900;
  float: left;
  line-height: 0.75;
  margin: 0.05em 0.12em 0 0;
  color: #000;
  border: 4px solid #000;
  padding: 0.08em 0.12em;
}

/* ===========================
   Page Content
   =========================== */
.page-content {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
}

.page-content h2,
.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content blockquote {
  border-left: 5px solid #000;
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: #f0f0f0;
}

.page-content figure {
  margin: 1.5rem 0;
}

.page-content figcaption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.4rem;
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.page-content th,
.page-content td {
  border: 2px solid #000;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.page-content th {
  background: #000;
  color: #fff;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===========================
   Topic Grid (home)
   =========================== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.topic-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.2rem;
  background: #000;
  color: #fff;
  border-radius: 18px;
  border: 3px solid #000;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.topic-block:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

.topic-block strong {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.2;
}

.topic-block span {
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* ===========================
   Article Grid (home)
   =========================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.article-card {
  border: 3px solid #000;
  border-radius: 18px;
  background: #fff;
  transition: background 0.15s, color 0.15s;
  overflow: hidden;
}

.article-card a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.2rem;
  height: 100%;
  color: #000;
}

.article-card:hover {
  background: #000;
}

.article-card:hover a {
  color: #fff;
}

.article-card a:hover {
  text-decoration: none;
}

.card-num {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.12;
}

.card-title {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  flex: 1;
}

.card-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.65;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: #000;
  color: #fff;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 3px solid #000;
  min-height: 44px;
  transition: background 0.15s, color 0.15s;
}

.btn-more:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

/* ===========================
   Topic Page Hero
   =========================== */
.topic-hero-section {
  padding: 3rem 2rem 2rem;
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #000;
}

.topic-hero-article {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.topic-hero-bg {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  font-family: 'Lexend Mega', sans-serif;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.topic-h1 {
  color: #fff;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.topic-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 560px;
}

.breadcrumb.breadcrumb--white,
.topic-hero-section .breadcrumb {
  background: none;
  border: none;
  padding: 0 0 1rem;
  color: rgba(255,255,255,0.6);
}

.topic-hero-section .breadcrumb a { color: rgba(255,255,255,0.8); }

/* ===========================
   Child Cards (topic page)
   =========================== */
.child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.2rem;
  border: 3px solid #000;
  border-radius: 18px;
  background: #fff;
  color: #000;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.child-card:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.child-card strong {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.3;
}

.child-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  flex: 1;
}

.child-card time {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ===========================
   Article Page
   =========================== */
.article-hero-figure {
  margin: 0 0 1.5rem;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 3px solid #000;
  border-radius: 8px;
}

.article-h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0;
}

.meta-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #000;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.meta-topic {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 2px solid #000;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.article-content {
  column-count: 1;
}

/* ===========================
   Related Cards
   =========================== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1rem;
  border: 3px solid #000;
  border-radius: 18px;
  background: #fff;
  color: #000;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.related-card:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.related-card strong {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.3;
}

.related-card span {
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.75;
}

/* ===========================
   Tag Page
   =========================== */
.tag-badge,
.privacy-badge {
  display: inline-block;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.privacy-badge {
  border-color: #000;
  color: #000;
}

.tag-h1, .privacy-h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag-header-section {
  background: #000;
  color: #fff;
}

.tag-h1 { color: #fff; }
.tag-desc { color: rgba(255,255,255,0.75); font-size: 1rem; }

.tag-header-section .breadcrumb {
  border: none;
  padding: 0 0 1rem;
  background: none;
  color: rgba(255,255,255,0.6);
}

.tag-header-section .breadcrumb a { color: rgba(255,255,255,0.8); }

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.tag-item-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.2rem;
  border: 3px solid #000;
  border-radius: 18px;
  background: #fff;
  color: #000;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.tag-item-card:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.tag-item-card strong {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.3;
}

.tag-item-card span {
  font-size: 0.8rem;
  line-height: 1.5;
}

.tag-item-card time {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.6;
}

.empty-tip {
  color: #888;
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

/* ===========================
   About Page
   =========================== */
.about-logo-wrap {
  margin-bottom: 1.5rem;
}

.about-logo { max-width: 200px; }

.about-logo-text {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.about-h1 { margin-bottom: 0.75rem; }

.about-desc {
  font-size: 1rem;
  color: #444;
  max-width: 600px;
}

.about-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.about-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.2rem;
  border: 3px solid #000;
  border-radius: 18px;
  background: #fff;
  color: #000;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.about-nav-card:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.about-nav-card strong {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
}

.about-nav-card span {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ===========================
   Privacy Page
   =========================== */
.privacy-h1 { margin-bottom: 0.75rem; }
.privacy-desc { font-size: 1rem; color: #444; max-width: 600px; }
.privacy-updated { font-size: 0.82rem; color: #666; margin-top: 0.5rem; }

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.privacy-back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.4rem;
  border: 3px solid #000;
  border-radius: 18px;
  background: #fff;
  color: #000;
  min-height: 44px;
  transition: background 0.15s, color 0.15s;
}

.privacy-back-link:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.privacy-back-link strong {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.privacy-content {
  max-width: 720px;
}

/* ===========================
   Aside / Sidebar
   =========================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-title {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.2rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #000;
}

.aside-link {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  min-height: 40px;
  line-height: 1.4;
  align-content: center;
}

.aside-link:hover {
  border-left-color: #000;
  background: rgba(0,0,0,0.05);
  text-decoration: none;
}

.aside-link--sm {
  font-size: 0.78rem;
}

.aside-nav {
  display: flex;
  flex-direction: column;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: #000;
  color: #fff;
  border-top: 4px solid #000;
  margin-bottom: 72px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
}

.footer-logo {}

.footer-brand {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: center;
}

.footer-nav a {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.7rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* ===========================
   Bottom Nav Bar (Fixed Pills)
   =========================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
  border-top: 2px solid rgba(255,255,255,0.15);
  height: 68px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.2);
  min-height: 40px;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.pill-btn:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
  border-color: rgba(255,255,255,0.5);
}

.pill-cta {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 900;
}

.pill-cta:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
}

.pill-brand {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===========================
   Stagger Animation
   =========================== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.08s);
  }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ===========================
   Responsive: Tablet
   =========================== */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";
  }

  main aside {
    position: static;
    max-height: none;
    border-left: none;
    border-top: 3px solid #000;
    padding: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .footer-nav { justify-content: center; }
  .footer-copy { text-align: center; }
}

/* ===========================
   Responsive: Mobile 375px
   =========================== */
@media (max-width: 600px) {
  html { font-size: 17px; }

  .top-nav p {
    padding: 0 0.5rem;
  }

  .top-nav p a {
    font-size: 0.58rem;
    padding: 0.5rem 0.6rem;
  }

  .nav-brand {
    font-size: 0.72rem !important;
    padding: 0.5rem 0.8rem !important;
  }

  .hero-inner {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .content-section,
  .topics-section,
  .articles-section,
  .topic-hero-section,
  .topic-content-section,
  .topic-children-section,
  .article-header-section,
  .article-body-section,
  .related-section,
  .tag-header-section,
  .tag-content-section,
  .tag-items-section,
  .about-header-section,
  .about-content-section,
  .about-links-section,
  .privacy-header-section,
  .privacy-content-section,
  .privacy-nav-section,
  .default-section {
    padding: 2rem 1.25rem;
  }

  .topic-grid,
  .article-grid,
  .child-grid,
  .related-grid,
  .tag-grid,
  .about-nav-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav-bar {
    padding: 0.5rem 0.75rem;
    gap: 0.3rem;
  }

  .pill-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.55rem;
    min-height: 40px;
  }

  .pill-brand {
    font-size: 0.55rem;
  }

  .footer-inner {
    padding: 1.2rem 1.25rem;
  }

  .breadcrumb {
    padding: 0.75rem 1.25rem;
    font-size: 0.7rem;
  }

  .drop-cap .page-content > p:first-of-type::first-letter {
    font-size: 3.5em;
  }

  .privacy-links {
    flex-direction: column;
  }
}

/* ===========================
   Utility
   =========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
