:root {
  --bg: #f2f4f5;
  --bg-alt: #e8ebed;
  --surface: #fbfbfb;
  --surface-alt: #edf0f1;
  --border: #d7dbdf;
  --border-soft: #e8ebed;
  --text: #14181b;
  --text-muted: #6e767c;
  --accent: #1e3e8c;
  --accent-bright: #2951b1;
  --secondary: #8a682b;
  --on-accent: #ffffff;
  --danger: #b02a2a;
  --radius: 4px;
  --container: 1160px;
  --font-display: "Jost", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Karla", system-ui, -apple-system, Arial, sans-serif;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 1em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

svg {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

time {
  color: var(--text-muted);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 28px 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.15;
}

.issue-date {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.nav-toggle {
  display: none;
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
}

.site-nav {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
}

.section {
  padding-block: 64px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.longform-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}

.toc a[data-current] {
  color: var(--accent);
  font-weight: 600;
}

.longform-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

.longform-piece {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.rubric-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.longform-piece h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.longform-piece h2 a {
  color: inherit;
  text-decoration: none;
}

.longform-piece h2 a:hover {
  color: var(--accent);
}

.standfirst {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.byline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.sep-svg {
  display: block;
  width: 120px;
  height: 12px;
  margin: 8px 0 20px;
  color: var(--border);
}

.author-block {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 640px;
}

.author-block h2 {
  font-size: 1.15rem;
  margin: 0;
}

.author-role {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.author-block p {
  margin: 0;
  color: var(--text-muted);
}

.scoreboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.scoreboard-meta {
  min-width: 0;
  border-right: 1px solid var(--border);
  padding-right: 16px;
}

.scoreboard-meta p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.scoreboard-meta .comp {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.scoreboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.side-name {
  font-size: 0.95rem;
  margin: 0;
}

.score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1;
  color: var(--text);
}

.score-sep {
  color: var(--text-muted);
  margin: 0 0.15em;
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.monogram-sm {
  width: 1.35em;
  height: 1.35em;
  border-width: 1px;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  vertical-align: middle;
  margin-right: 0.35em;
}

.scoreboard-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.report-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.report-card:hover {
  border-color: var(--accent);
}

.report-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.report-mini .monogram {
  width: 48px;
  height: 48px;
  font-size: 0.72rem;
}

.report-mini .score {
  font-size: 1.8rem;
}

.report-card h2 {
  font-size: 1.25rem;
  color: var(--text);
}

.report-card .lead {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.match-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding-block: 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 6px;
}

.footer-grid a,
.footer-legal a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}

.footer-grid a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-copy p {
  margin: 0 0 6px;
}

.cookie-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
}

[data-cookie-banner] {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.cookie-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 240px;
  min-width: 0;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions button {
  min-width: 120px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
}

.page-hero {
  padding-block: 48px 24px;
}

.page-hero h1,
.prose h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-list li {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.article-list a {
  text-decoration: none;
  color: inherit;
}

.article-list h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.article-list a:hover h2 {
  color: var(--accent);
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.25rem;
}

.prose h3 {
  margin-top: 1.3em;
  font-size: 1.05rem;
}

.related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 1.1rem;
}

.related ul {
  padding-left: 1.2rem;
}

.form-stack {
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.form-stack label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
}

.form-stack button {
  justify-self: start;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: start;
}

.note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.2em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 0;
}

th {
  background: var(--surface-alt);
  font-family: var(--font-display);
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .longform-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }

  .scoreboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .scoreboard-meta {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 48px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .scoreboard-main,
  .report-mini {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .score {
    font-size: 2.2rem;
  }

  .cookie-actions button {
    flex: 1 1 120px;
  }
}
