
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --white: #ffffff;
  --accent: #ffffff;
  --ink: #000000;
  --gray-90: #111111;
  --gray-80: #222222;
  --gray-60: #444444;
  --gray-30: #bbbbbb;
  --gray-10: #eeeeee;
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1280px;
  --content-w: 720px;
  --header-h: 72px;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; }
a:hover { opacity: 0.75; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== ANNOUNCEMENT STRIP ===== */
.announcement-strip {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--black);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  gap: 12px;
}

.header-brand {
  display: flex;
  justify-content: center;
}

.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--black);
}

.header-nav-left,
.header-nav-right {
  display: flex;
  align-items: center;
}

.header-nav-left { justify-content: flex-start; }
.header-nav-right { justify-content: flex-end; }

/* Desktop nav — hidden on mobile */
.nav-aside--left,
.nav-aside--right {
  display: none;
}

.header-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--black);
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== CTA BUTTONS ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cta-signup {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}

.cta-signup:hover {
  background: var(--gray-80);
  border-color: var(--gray-80);
  opacity: 1;
}

.cta-login {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.cta-login:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

.cta-hero {
  min-height: 52px;
  padding: 12px 28px;
  font-size: 0.9rem;
}

.cta-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ===== FULLSCREEN MENU ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-menu.is-open {
  transform: translateX(0);
}

.fullscreen-menu[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.fullscreen-menu[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-aside--overlay nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-aside--overlay nav ul li a {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  padding: 10px 24px;
  min-height: 52px;
}

.nav-aside--overlay nav ul li a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.overlay-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.overlay-ctas .cta-signup {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.overlay-ctas .cta-login {
  border-color: var(--white);
  color: var(--white);
}

/* ===== CONTENT LAYOUT ===== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

.content-body {
  min-width: 0;
}

/* ===== SIDEBAR ===== */
.content-sidebar {
  border-left: 3px solid var(--black);
  padding-left: 24px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sidebar-heading span { display: inline; }

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.sidebar-links li a {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
  border-bottom: 1px solid var(--gray-10);
  color: var(--black);
}

.sidebar-links li a:hover {
  text-decoration: underline;
}

.sidebar-count {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.big-num {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.count-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-60);
}

.sidebar-cta-block {
  margin-top: 24px;
}

.sidebar-trust {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-heading--sm {
  font-size: 0.65rem;
}

.trust-link-item {
  font-size: 0.875rem;
  color: var(--black);
  text-decoration: underline;
  display: block;
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ===== HOME LAYOUTS ===== */
.home-main { }

.hero-section {
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.hero-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-text {
  font-size: clamp(3rem, 10vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--gray-10);
  line-height: 1;
  user-select: none;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.hero-icon, .hero-icon-placeholder {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-h1 {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-60);
  max-width: 440px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.content-section {
  padding: 64px 0;
  border-top: 2px solid var(--black);
}

.child-cards-section {
  padding: 64px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 2px solid var(--black);
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

.section-heading span { display: inline; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  border: 2px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--black);
  border-radius: 0 0 var(--radius) var(--radius);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 20px 20px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-title span { display: inline; }

.card-desc {
  font-size: 0.875rem;
  color: var(--gray-60);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  border-bottom: 2px solid var(--black);
  align-self: flex-start;
  padding-bottom: 2px;
}

.card-link:hover { opacity: 0.6; }

.categories-section {
  padding: 64px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 2px solid var(--black);
}

/* ===== TABLE ===== */
.category-table,
.child-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.category-table td,
.child-table th,
.child-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-10);
  vertical-align: top;
  font-size: 0.9rem;
}

.child-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--black);
}

.child-num {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gray-30);
  width: 60px;
}

.child-title a {
  font-weight: 600;
  font-size: 0.95rem;
}

.child-desc {
  color: var(--gray-60);
  font-size: 0.85rem;
}

.child-date {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--gray-60);
  width: 130px;
}

.table-desc {
  color: var(--gray-60);
  font-size: 0.85rem;
}

.child-table-wrap {
  margin-top: 48px;
}

.child-row {
  transition: background 0.15s;
}

.child-row:hover {
  background: var(--gray-10);
}

/* ===== CATEGORY ===== */
.category-main { }

.category-hero {
  border-bottom: 2px solid var(--black);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
  gap: 32px;
  overflow: hidden;
}

.category-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-60);
  margin-bottom: 12px;
}

.category-h1 {
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.category-desc {
  font-size: 1rem;
  color: var(--gray-60);
  line-height: 1.6;
  max-width: 560px;
}

.category-hero-fig {
  flex-shrink: 0;
}

.cat-bg-num {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--gray-10);
  line-height: 1;
  user-select: none;
}

.category-content-section {
  padding: 64px 0;
}

/* ===== ENTRY ===== */
.entry-main { }

.entry-header-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 45vh;
  border-bottom: 2px solid var(--black);
  overflow: hidden;
}

.entry-hero-figure {
  overflow: hidden;
  position: relative;
  background: var(--gray-10);
}

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

.entry-hero-blank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-bg-word {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--gray-30);
  user-select: none;
}

.entry-header-meta {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--black);
  border-radius: 2px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.stage-awareness { background: var(--gray-10); }
.stage-consideration { background: var(--gray-90); color: var(--white); border-color: var(--gray-90); }
.stage-decision { background: var(--black); color: var(--white); }

.entry-h1 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.entry-lead {
  font-size: 1rem;
  color: var(--gray-60);
  line-height: 1.6;
  margin-bottom: 24px;
}

.entry-cta-row {
  display: flex;
  gap: 12px;
}

.entry-content-section {
  padding: 64px 0;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about-main { }

.about-hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 40vh;
  border-bottom: 2px solid var(--black);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
  gap: 32px;
  overflow: hidden;
}

.about-hero-fig {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-bg-word {
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--gray-10);
  user-select: none;
}

.about-hero-copy { }

.about-h1 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1rem;
  color: var(--gray-60);
  line-height: 1.6;
}

.author-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
  border-bottom: 2px solid var(--black);
}

.author-figure {
  flex-shrink: 0;
}

.author-monogram {
  width: 96px;
  height: 96px;
  background: var(--black);
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.03em;
  border-radius: var(--radius);
}

.author-name {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.author-name span { display: inline; }

.author-credentials {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-60);
  margin-bottom: 16px;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-80);
}

.about-content-section {
  padding: 64px 0;
}

/* ===== PRIVACY / INNER ===== */
.privacy-main,
.data-main { }

.inner-hero-section,
.data-hero-section {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
  border-bottom: 2px solid var(--black);
  overflow: hidden;
}

.inner-hero-fig,
.data-hero-fig {
  flex-shrink: 0;
}

.inner-bg-word,
.data-bg-word {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--gray-10);
  user-select: none;
  line-height: 1;
}

.inner-h1,
.data-h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.inner-lead,
.data-lead {
  font-size: 1rem;
  color: var(--gray-60);
  line-height: 1.6;
}

.inner-content-section,
.data-content-section {
  padding: 64px 0;
}

/* ===== BYLINE ===== */
.byline {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-60);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.byline time {
  color: var(--gray-60);
}

/* ===== CONTENT BODY STYLES ===== */
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.content-body h2 { font-size: 1.5rem; }
.content-body h3 { font-size: 1.2rem; }
.content-body h4 { font-size: 1rem; }

.content-body h2 > span,
.content-body h3 > span { display: inline; }

.content-body p {
  margin-bottom: 1.2em;
  font-size: 1rem;
  line-height: 1.7;
}

.content-body ul,
.content-body ol {
  margin: 1em 0 1.2em 1.5em;
  list-style: disc;
}

.content-body ol { list-style: decimal; }

.content-body li {
  margin-bottom: 0.4em;
  font-size: 1rem;
  line-height: 1.6;
}

.content-body a {
  color: var(--black);
  text-decoration: underline;
  font-weight: 500;
}

.content-body a:hover { opacity: 0.65; }

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.content-body th,
.content-body td {
  padding: 12px;
  border: 1px solid var(--gray-30);
  text-align: left;
  vertical-align: top;
}

.content-body th {
  font-weight: 700;
  background: var(--gray-10);
}

.content-body blockquote {
  border-left: 4px solid var(--black);
  margin: 1.5em 0;
  padding: 12px 20px;
  font-style: italic;
  color: var(--gray-60);
}

.content-body strong { font-weight: 700; }
.content-body em { font-style: italic; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: 4px solid var(--black);
  margin-top: 64px;
}

.site-footer > div {
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-footer {
  display: block;
}

.site-footer > div:not(.footer-legal) {
  padding: 48px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-heading span { display: inline; }

.nav-aside--footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-aside--footer nav ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  padding: 6px 0;
  min-height: 44px;
  transition: color 0.15s;
}

.nav-aside--footer nav ul li a:hover {
  color: var(--white);
  opacity: 1;
}

.trust-links {
  font-size: 0.875rem;
  line-height: 1;
}

/* Trust links in footer — must meet 44px tap target */
.trust-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  transition: color 0.15s;
  font-size: 0.875rem;
}

.trust-footer-link:hover {
  color: var(--white);
  opacity: 1;
}

.footer-trust .trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-contact {
  margin-top: 12px;
  font-size: 0.875rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-legal {
  padding: 24px !important;
  border-bottom: none !important;
}

.rg-notice {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin-bottom: 8px;
  max-width: 760px;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.legal-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
  line-height: 1.5;
}

/* ===== STAGGER ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.4s forwards;
    animation-delay: calc(var(--stagger-i, 0) * 0.05s);
  }

  @keyframes fadeUp {
    to { opacity: 1; transform: none; }
  }

  .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
}

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

/* ===== DESKTOP NAV ===== */
@media (min-width: 769px) {
  .nav-aside--left,
  .nav-aside--right {
    display: block;
  }

  .nav-aside--left nav ul,
  .nav-aside--right nav ul {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
  }

  .nav-aside--left nav ul li a,
  .nav-aside--right nav ul li a {
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--black);
    padding: 8px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 3px;
    transition: background 0.15s;
  }

  .nav-aside--left nav ul li a:hover,
  .nav-aside--right nav ul li a:hover {
    background: var(--gray-10);
    opacity: 1;
  }

  .header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
  }

  .header-ctas {
    position: static;
    transform: none;
    flex-shrink: 0;
  }

  .header-nav-left,
  .header-nav-right {
    flex: 1;
  }

  .header-brand {
    flex-shrink: 0;
    padding: 0 16px;
  }

  .menu-toggle {
    display: none;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 16px;
  }

  .header-nav-left,
  .header-nav-right {
    display: none;
  }

  .header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-ctas {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 56px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 40px 16px;
    min-height: auto;
  }

  .hero-figure { display: none; }

  .hero-aside {
    align-items: flex-start;
    text-align: left;
  }

  .entry-header-section {
    grid-template-columns: 1fr;
  }

  .entry-hero-figure {
    min-height: 200px;
  }

  .entry-header-meta {
    padding: 32px 16px;
  }

  .about-hero-section {
    grid-template-columns: 1fr;
    padding: 40px 16px;
  }

  .about-hero-fig { display: none; }

  .author-section {
    grid-template-columns: 1fr;
    padding: 40px 16px;
    gap: 24px;
  }

  .category-hero {
    grid-template-columns: 1fr;
    padding: 40px 16px;
  }

  .category-hero-fig { display: none; }

  .inner-hero-section,
  .data-hero-section {
    grid-template-columns: 1fr;
    padding: 40px 16px;
  }

  .inner-hero-fig,
  .data-hero-fig { display: none; }

  .content-with-sidebar {
    padding: 0 16px;
  }

  .content-sidebar {
    border-left: none;
    border-top: 2px solid var(--black);
    padding-left: 0;
    padding-top: 24px;
    position: static;
  }

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

  .child-table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
  }

  .categories-section,
  .child-cards-section {
    padding: 40px 16px;
  }

  .site-footer > div:not(.footer-legal) {
    padding: 32px 16px;
  }

  .footer-legal { padding: 20px 16px !important; }

  .hero-h1 { font-size: 2rem; }
  .category-h1 { font-size: 1.8rem; }
  .entry-h1 { font-size: 1.6rem; }
  .about-h1 { font-size: 1.6rem; }
  .inner-h1, .data-h1 { font-size: 1.6rem; }

  .cta { padding: 10px 14px; font-size: 0.75rem; }

  /* Ensure trust footer links have full tap target on mobile */
  .trust-footer-link {
    padding: 10px 0;
    min-height: 44px;
  }

  .footer-trust .trust-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .header-ctas { gap: 6px; }
  .cta { padding: 8px 10px; font-size: 0.7rem; }
  .brand-text { font-size: 0.75rem; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}