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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 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: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

ul, ol, menu {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 700;
}

hr {
  border: none;
  border-top: 2px solid #000;
  margin: 0.75rem 0 1.5rem;
}

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

.page-body {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* =====================
   Side Navigation
   ===================== */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  background: #000;
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.side-nav__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  list-style: none;
}

.side-nav__toggle::-webkit-details-marker {
  display: none;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(1);
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #000;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

.side-nav__menu {
  padding: 1rem 0;
  flex: 1;
}

.side-nav__menu li a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s, background 0.2s;
  min-height: 44px;
}

.side-nav__menu li a:hover,
.side-nav__menu li a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-icon {
  font-size: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
}

.nav-label {
  flex: 1;
}

/* details open state — always show menu on desktop */
@media (min-width: 769px) {
  .side-nav {
    overflow: visible;
  }
  .side-nav .side-nav__menu {
    display: block !important;
  }
  .hamburger {
    display: none;
  }
}

/* =====================
   Hero Stripe (shared)
   ===================== */
.hero-stripe {
  height: 6px;
  background: #000;
  width: 100%;
}

/* =====================
   HOME: Hero Section
   ===================== */
.hero-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  min-height: 45vh;
  border-bottom: 2px solid #000;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-aside {
  grid-column: 1;
  grid-row: 1;
  padding: 2.5rem 1.5rem 2rem;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-tags a {
  display: inline-block;
  border: 1px solid #000;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hero-tags a:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

.hero-content {
  grid-column: 2;
  grid-row: 1;
  padding: 2.5rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  max-width: 600px;
}

.hero-cta {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
  min-height: 44px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.hero-cta:hover {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  opacity: 1;
}

.hero-section .hero-stripe {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* =====================
   HOME: Content Section
   ===================== */
.content-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border-bottom: 2px solid #000;
}

.content-figure {
  padding: 3rem 2rem;
  border-right: 2px solid #000;
}

.section-intro h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.section-lead {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}

.content-body {
  padding: 3rem 3rem;
  font-size: 1rem;
  line-height: 1.8;
}

.content-body h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.5rem;
}

.content-body p {
  margin-bottom: 1rem;
}

/* =====================
   HOME: Topics Section
   ===================== */
.topics-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 2px solid #000;
}

.section-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
}

.aside-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #666;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aside-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: border-color 0.2s;
}

.aside-links a:hover {
  border-left-color: #000;
  opacity: 1;
}

.aside-count {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-top: 0.5rem;
}

.topics-content {
  padding: 2.5rem 3rem;
}

.topics-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* =====================
   Table Styles
   ===================== */
.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.topics-table,
.child-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.topics-table th,
.child-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #000;
}

.topics-table td,
.child-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  line-height: 1.5;
}

.topics-table tr:hover td,
.child-table tr:hover td {
  background: #f5f5f5;
}

.topics-table a,
.child-table a {
  font-weight: 600;
  text-decoration: none;
}

.topics-table a:hover,
.child-table a:hover {
  text-decoration: underline;
  opacity: 1;
}

time {
  font-size: 0.8rem;
  color: #666;
}

/* =====================
   HOME: Articles / Cards
   ===================== */
.articles-section {
  border-bottom: 2px solid #000;
}

.articles-figure {
  padding: 2.5rem 3rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.articles-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* Cards */
.card {
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.card:nth-child(3n) {
  border-right: none;
}

.card:hover {
  transform: translateY(-2px);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-body {
  padding: 1.75rem 1.5rem 1.25rem;
  flex: 1;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card-date {
  font-size: 0.75rem;
  color: #888;
  display: block;
}

.card-accent {
  height: 3px;
  background: #000;
  width: 0;
  transition: width 0.25s ease;
}

.card:hover .card-accent {
  width: 100%;
}

/* =====================
   TOPIC Layout
   ===================== */
.topic-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  min-height: 35vh;
  border-bottom: 2px solid #000;
}

.topic-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.breadcrumb-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #666;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #000;
  opacity: 1;
}

.topic-hero-content {
  grid-column: 2;
  padding: 2.5rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.topic-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
}

.topic-desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  max-width: 600px;
}

.topic-date {
  font-size: 0.8rem;
  color: #888;
}

.topic-hero .hero-stripe {
  grid-column: 1 / -1;
}

.topic-content-section {
  border-bottom: 2px solid #000;
}

.topic-figure {
  padding: 3rem;
}

.topic-content-body {
  font-size: 1rem;
  line-height: 1.8;
}

.topic-content-body h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.5rem;
}

.topic-content-body p {
  margin-bottom: 1rem;
}

.topic-children-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 2px solid #000;
}

.children-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
}

.children-content {
  padding: 2.5rem 3rem;
}

.children-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* =====================
   ARTICLE Layout
   ===================== */
.article-header-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 2px solid #000;
}

.article-meta-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

.meta-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
}

.article-header-content {
  padding: 2.5rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-title {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.article-lead {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}

.article-body-section {
  border-bottom: 2px solid #000;
}

.article-hero-figure {
  width: 100%;
  overflow: hidden;
  max-height: 400px;
  border-bottom: 2px solid #000;
}

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

.article-hero-placeholder {
  background: #f0f0f0;
  height: 8px;
}

.hero-placeholder-inner {
  height: 100%;
  background: repeating-linear-gradient(45deg, #000, #000 2px, transparent 2px, transparent 10px);
}

.article-content {
  padding: 3rem;
  font-size: 1rem;
  line-height: 1.85;
  max-width: 780px;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.5rem;
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}

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

.article-related-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 2px solid #000;
}

.related-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
}

.related-content {
  padding: 2.5rem 3rem;
}

.related-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border: 1px solid #e0e0e0;
  margin-top: 1rem;
}

.related-grid .card {
  background: #fff;
  border: none;
  border-radius: 0;
}

/* =====================
   TAG Layout
   ===================== */
.tag-hero-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  min-height: 30vh;
  border-bottom: 2px solid #000;
}

.tag-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tag-hero-content {
  grid-column: 2;
  padding: 2.5rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tag-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.tag-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}

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

.tag-hero-section .hero-stripe {
  grid-column: 1 / -1;
}

.tag-content-section {
  border-bottom: 2px solid #000;
}

.tag-figure {
  padding: 2.5rem 3rem;
}

.tag-content-body {
  font-size: 1rem;
  line-height: 1.8;
}

.tag-content-body p {
  margin-bottom: 1rem;
}

.tag-list-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 2px solid #000;
}

.tag-nav-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
}

.tag-list-content {
  padding: 2.5rem 3rem;
}

.tag-list-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* =====================
   ABOUT Layout
   ===================== */
.about-header-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  min-height: 35vh;
  border-bottom: 2px solid #000;
}

.about-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-header-content {
  grid-column: 2;
  padding: 2.5rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.about-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
}

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

.about-date {
  font-size: 0.8rem;
  color: #888;
}

.about-header-section .hero-stripe {
  grid-column: 1 / -1;
}

.about-content-section {
  display: grid;
  grid-template-columns: 1fr 240px;
  border-bottom: 2px solid #000;
}

.about-figure {
  padding: 3rem;
  border-right: 2px solid #000;
  display: flex;
  align-items: center;
}

.about-brand-display {
  display: flex;
  align-items: center;
}

.about-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-contact-aside {
  padding: 2.5rem 1.5rem;
}

.about-body-section {
  padding: 3rem;
  border-bottom: 2px solid #000;
}

.about-content-body h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* =====================
   PRIVACY Layout
   ===================== */
.privacy-header-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  min-height: 25vh;
  border-bottom: 2px solid #000;
}

.privacy-aside {
  padding: 2.5rem 1.5rem;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.privacy-header-content {
  grid-column: 2;
  padding: 2.5rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.privacy-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}

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

.privacy-date {
  font-size: 0.8rem;
  color: #888;
}

.privacy-header-section .hero-stripe {
  grid-column: 1 / -1;
}

.privacy-content-section {
  display: grid;
  grid-template-columns: 1fr 200px;
  border-bottom: 2px solid #000;
}

.privacy-figure {
  padding: 2rem 3rem;
  border-right: 2px solid #000;
}

.privacy-notice {
  border-left: 4px solid #000;
  padding: 1rem 1.5rem;
  background: #f5f5f5;
}

.privacy-notice-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
}

.privacy-nav-aside {
  padding: 2rem 1.5rem;
}

.privacy-body-section {
  padding: 3rem;
  border-bottom: 2px solid #000;
}

.privacy-content-body h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* =====================
   Prose (shared content)
   ===================== */
.prose {
  font-size: 1rem;
  line-height: 1.85;
  max-width: 780px;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.5rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* =====================
   Footer
   ===================== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 0;
  border-top: 4px solid #000;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.footer-brand {
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  min-width: 200px;
}

.footer-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
  opacity: 1;
}

.footer-copy {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
}

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

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

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-accent {
    transition: none;
  }
  .hero-cta {
    transition: none;
  }
}

/* =====================
   Responsive: Tablet (≤1024px)
   ===================== */
@media (max-width: 1024px) {
  .side-nav {
    width: 220px;
  }
  .page-body {
    margin-left: 220px;
  }

  .hero-section,
  .topic-hero,
  .article-header-section,
  .tag-hero-section,
  .about-header-section,
  .privacy-header-section {
    grid-template-columns: 160px 1fr;
  }

  .topics-section,
  .topic-children-section,
  .tag-list-section,
  .article-related-section {
    grid-template-columns: 160px 1fr;
  }

  .content-section {
    grid-template-columns: 160px 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card:nth-child(3n) {
    border-right: 1px solid #e0e0e0;
  }

  .card:nth-child(2n) {
    border-right: none;
  }
}

/* =====================
   Responsive: Mobile (≤768px)
   ===================== */
@media (max-width: 768px) {
  .side-nav {
    width: 100%;
    height: auto;
    position: static;
    border-bottom: 2px solid rgba(255,255,255,0.2);
  }

  .side-nav__menu {
    display: none;
  }

  details[open].side-nav .side-nav__menu {
    display: block;
  }

  .page-body {
    margin-left: 0;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-aside {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-content {
    grid-column: 1;
    padding: 2rem 1.5rem;
  }

  .hero-section .hero-stripe {
    grid-column: 1;
  }

  /* All two-column grids → single column */
  .content-section,
  .topics-section,
  .topic-hero,
  .topic-children-section,
  .article-header-section,
  .article-related-section,
  .tag-hero-section,
  .tag-list-section,
  .about-header-section,
  .about-content-section,
  .privacy-header-section,
  .privacy-content-section {
    grid-template-columns: 1fr;
  }

  .hero-aside,
  .section-aside,
  .topic-aside,
  .children-aside,
  .article-meta-aside,
  .related-aside,
  .tag-aside,
  .tag-nav-aside,
  .about-aside,
  .about-contact-aside,
  .privacy-aside,
  .privacy-nav-aside {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .topic-hero-content {
    grid-column: 1;
    padding: 1.5rem;
  }

  .topic-figure,
  .tag-figure,
  .about-figure {
    padding: 1.5rem;
  }

  .article-header-content {
    padding: 1.5rem;
  }

  .content-body,
  .topics-content,
  .children-content,
  .related-content,
  .tag-list-content {
    padding: 1.5rem;
  }

  .article-content {
    padding: 1.5rem;
  }

  .about-body-section,
  .privacy-body-section {
    padding: 1.5rem;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card {
    border-right: none;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
  }

  .footer-brand {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    min-width: auto;
  }

  .footer-nav {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .footer-copy p {
    white-space: normal;
  }

  /* Table scroll */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .topics-table,
  .child-table {
    min-width: 500px;
  }
}

/* =====================
   Mobile: 375px fine-tune
   ===================== */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .article-title,
  .topic-title,
  .tag-title,
  .about-title,
  .privacy-title {
    font-size: 1.3rem;
  }

  .hero-tags {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-nav__menu li a {
    padding: 0.85rem 1rem;
    min-height: 44px;
  }
}
