:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --text: #1b2a41;
  --muted: #5b677d;
  --line: #d8e1ee;
  --accent: #184e9e;
  --accent-dark: #0f3877;
  --accent-soft: #dfe9fb;
  --shadow: 0 20px 50px rgba(17, 34, 68, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(180deg, #edf3fb 0%, var(--bg) 34%, #fbfcfe 100%);
  color: var(--text);
}

a {
  color: var(--accent);
}

button,
select {
  font: inherit;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fcfbf6;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #d8e1ee;
}

.banner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  background: #fcfbf6;
}

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

.brand-banner {
  width: 100%;
  padding: 10px 0;
}

.brand-wordmark {
  width: 100%;
  height: 112px;
  object-fit: contain;
}

.nav-row {
  border-top: 1px solid #d8e1ee;
  border-bottom: 1px solid #d8e1ee;
  background: #fcfbf6;
}

.nav-row-inner {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 16px 10px;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
}

.stat-card,
.sidebar-card,
.panel-card {
  background: var(--surface);
  border: 1px solid rgba(24, 78, 158, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px auto 30px;
}

.stat-card {
  padding: 24px;
  display: grid;
  gap: 8px;
}

.stat-card strong {
  font-size: 1.15rem;
}

.stat-card span:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.sidebar-card,
.stat-card,
.panel-card {
  background: var(--surface);
  border: 1px solid rgba(24, 78, 158, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow,
.stat-label,
.year-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.content-section {
  padding-bottom: 42px;
}

.content-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar-card {
  position: sticky;
  top: 110px;
  padding: 24px;
  display: grid;
  gap: 22px;
}

.sidebar-block h2,
.panel-card h2,
.panel-card h3 {
  margin: 0 0 12px;
  font-family: 'Source Serif 4', Georgia, serif;
}

.sidebar-block p,
.panel-card p,
.panel-card li {
  line-height: 1.75;
  color: var(--muted);
}

.link-list,
.people-list,
.panel-card ul,
.panel-card ol {
  margin: 0;
  padding-left: 18px;
}

.sidebar-poster img {
  width: 100%;
  border-radius: 18px;
}

.panel-stack {
  display: grid;
}

.tab-panel {
  display: none;
  gap: 18px;
}

.tab-panel.active {
  display: grid;
}

.panel-card {
  padding: 28px;
}

.intro-card,
.prose-card,
.board-section {
  display: grid;
  gap: 10px;
}

.two-column-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.two-column-card > :only-child {
  grid-column: 1 / -1;
}

.issue-header-card {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.section-summary {
  max-width: 760px;
  margin: 0;
}

.issue-actions {
  min-width: 160px;
}

#year-filter {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
}

.year-browser {
  display: grid;
  gap: 14px;
}

.year-group {
  background: var(--surface);
  border: 1px solid rgba(24, 78, 158, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.year-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.year-title {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 6px;
}

.year-title strong {
  font-size: 1.35rem;
}

.year-title span,
.issue-meta,
.article-meta,
.empty-state {
  color: var(--muted);
}

.year-chevron {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 1.2rem;
}

.year-group.open .year-chevron {
  transform: rotate(180deg);
}

.year-content {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.year-group.open .year-content {
  display: grid;
  gap: 14px;
}

.issue-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.issue-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.issue-trigger strong {
  display: block;
  margin-bottom: 4px;
  text-align: left;
}

.issue-card.open .issue-trigger {
  background: #f7faff;
}

.issue-content {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}

.issue-card.open .issue-content {
  display: grid;
  gap: 18px;
}

.issue-topline {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
}

.issue-cover {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-alt);
}

.issue-cover img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.issue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
}

.pill-link.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

button.pill-link {
  cursor: pointer;
  font: inherit;
  color: var(--text);
}

button.pill-link.primary {
  color: #fff;
}

.pdf-preview {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
  flex-basis: 100%;
}

.pdf-preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdf-preview-header strong {
  color: var(--text);
}

.pdf-frame {
  width: 100%;
  height: 500px;
  max-height: 55vh;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f6f8fc;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfdff;
}

.article-title {
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 600;
}

.article-number {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.empty-state {
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.site-footer {
  padding: 28px 0 36px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .content-grid,
  .stats-section,
  .two-column-card,
  .issue-topline {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

  .issue-header-card,
  .footer-row {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    position: absolute;
    right: 16px;
    top: calc(100% + 8px);
    width: min(320px, calc(100vw - 32px));
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav-link {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.active {
    box-shadow: none;
    background: var(--surface-alt);
  }

  .nav-row-inner {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .sidebar-card,
  .panel-card {
    padding: 22px;
  }

  .brand-wordmark {
    height: 88px;
  }

  .article-item {
    flex-direction: column;
  }

  .article-actions,
  .pdf-preview-header {
    justify-content: flex-start;
  }

  .pdf-frame {
    height: 380px;
    min-height: 260px;
  }
}
