.container {
  width: min(100% - 1.5rem, var(--max-width));
  margin-inline: auto;
}

.narrow {
  width: min(100%, 760px);
  margin-inline: auto;
}

.section {
  padding: 2.9rem 0;
}

.section-tight-top {
  padding-top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 223, 235, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
  gap: 1rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.45rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.mobile-nav.is-open { display: block; }
.desktop-nav { display: none; }

.mobile-nav-inner {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 0 1.25rem;
}

.hero {
  padding: 2.35rem 0 2.8rem;
}

.hero-home {
  padding-bottom: 2rem;
}

.hero-grid {
  display: grid;
  gap: 1.15rem;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 0.2rem;
}

.card-grid,
.factor-grid,
.footer-grid,
.mini-card-grid,
.cluster-grid,
.path-grid,
.site-index-grid,
.promise-grid {
  display: grid;
  gap: 1rem;
}

.section-intro {
  margin-bottom: 1.5rem;
}

.section-intro-split {
  display: grid;
  gap: 0.75rem;
}

.section-intro > *:last-child,
.hero-copy > *:last-child {
  margin-bottom: 0;
}

.centered-intro {
  text-align: center;
}

.editorial-note {
  display: grid;
  gap: 1rem;
}

.footer-grid { padding: 2.25rem 0; }

.footer-bottom {
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

.page-shell,
.article-page {
  padding: 2.1rem 0 3.6rem;
}

.article-layout {
  display: grid;
  gap: 1.5rem;
}

.article-main { min-width: 0; }

.article-main section {
  scroll-margin-top: 6rem;
}

.article-aside {
  display: none;
}

@media (min-width: 768px) {
  .container { width: min(100% - 2.5rem, var(--max-width)); }
  .section { padding: 4rem 0; }
  .section-tight-top { padding-top: 0.5rem; }
  .hero { padding: 3.4rem 0 4.4rem; }
  .hero-home { padding-bottom: 2.5rem; }

  .hero-grid {
    grid-template-columns: 1.4fr 0.95fr;
    gap: 1.5rem;
    align-items: start;
  }

  .section-intro-split {
    grid-template-columns: 1.2fr minmax(0, 0.95fr);
    align-items: end;
  }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-grid-wide { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
  .editorial-note { grid-template-columns: 1.6fr 1fr; align-items: center; }
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav,
  .mobile-nav.is-open { display: none !important; }

  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .factor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cluster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .article-layout {
    grid-template-columns: minmax(0, 760px) minmax(245px, 285px);
    gap: 2rem;
    align-items: start;
  }

  .article-aside {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 6rem;
  }
}


.site-header {
  backdrop-filter: saturate(140%) blur(10px);
}

.mobile-nav a,
.desktop-nav a,
.button,
.jump-links a,
.cluster-card,
.card a {
  min-height: 44px;
}

@media (max-width: 767px) {
  .button-row {
    gap: 0.75rem;
  }

  .button,
  .mobile-nav a {
    width: 100%;
    justify-content: center;
  }
}
