:root {
  --ink: #17212b;
  --muted: #596775;
  --navy: #17324d;
  --blue: #285c86;
  --blue-soft: #eaf2f8;
  --gold: #a66d16;
  --gold-soft: #fff6e5;
  --line: #d9e0e6;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --max: 760px;
  --wide: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: #163f61; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--wide));
  margin: 0 auto;
  padding: 1rem 0 0;
}

.site-name {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 0.3rem;
  background: var(--navy);
  color: white;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.primary-nav {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.8rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.primary-nav a {
  flex: none;
  padding: 0.65rem 0.7rem 0.75rem;
  border-bottom: 3px solid transparent;
  color: #40505e;
  font-size: 0.77rem;
  font-weight: 690;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.primary-nav a:hover {
  border-color: var(--blue);
  color: var(--navy);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 3.25rem 0 4.5rem;
}

.review-stamp {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: #142a3e;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 18ch;
  margin: 0 0 1.4rem;
  font-size: clamp(2.35rem, 6vw, 4rem);
}

h2 {
  margin: 3.4rem 0 1rem;
  padding-top: 0.4rem;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
}

h3 {
  margin: 2.25rem 0 0.65rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

p { margin: 0 0 1.25rem; }

.article-content > .dateline + p {
  color: #344454;
  font-size: 1.12rem;
  line-height: 1.75;
}

.dateline {
  margin: -0.45rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.dateline em { font-style: normal; }

.article-content ul {
  margin: 0.4rem 0 1.7rem;
  padding-left: 1.35rem;
}

.article-content li { margin: 0.45rem 0; }

.article-content hr {
  width: 5rem;
  margin: 3.5rem auto 1.5rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.table-scroll {
  width: 100%;
  margin: 0.75rem 0 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

.article-content table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.45;
}

.article-content th,
.article-content td {
  padding: 0.8rem 0.85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th:last-child,
.article-content td:last-child { border-right: 0; }

.article-content tbody tr:last-child td { border-bottom: 0; }

.article-content th {
  background: var(--navy);
  color: white;
  font-size: 0.76rem;
  letter-spacing: 0.025em;
}

.article-content tbody tr:nth-child(even) { background: var(--wash); }

.rank-heading {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.rank-heading a {
  color: inherit;
  text-decoration-color: #a9bac7;
}

.rank-badge {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid #d8b46d;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #80500a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.related-rankings {
  margin-top: 3.5rem;
  padding: 1.35rem;
  border: 1px solid #cddbe6;
  border-radius: 0.45rem;
  background: var(--blue-soft);
}

.related-rankings .eyebrow { margin-bottom: 0.65rem; }

.related-rankings div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.2rem;
}

.related-rankings a {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #cddbe6;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--wide));
  margin: 0 auto;
  padding: 2.6rem 0;
}

.disclosure {
  margin-bottom: 1rem;
  color: #3d4a56;
  font-weight: 650;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.footer-nav a { font-size: 0.82rem; }

.copyright {
  margin: 1.5rem 0 0;
  color: #71808e;
  font-size: 0.75rem;
}

.error-page { min-height: 56vh; }

.error-page h1 { margin-bottom: 1rem; }

.button-link {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 0.25rem;
  background: var(--navy);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover { color: white; background: #244b6e; }

@media (min-width: 900px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
  }

  .primary-nav { margin-top: 0; }

  .primary-nav a { padding-bottom: 0.55rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .page-shell { padding-top: 2.2rem; }

  .review-stamp {
    flex-direction: column;
    gap: 0.1rem;
  }

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

  .footer-inner { padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
