:root {
  --bg: #faf9f2;
  --bg-alt: #f0eee0;
  --surface: #fbfbfb;
  --surface-alt: #f5f3e6;
  --border: #e5e1cf;
  --border-soft: #efeddf;
  --text: #1c1b17;
  --text-muted: #9c9887;
  --accent: #15664c;
  --accent-bright: #1d8161;
  --secondary: #a26208;
  --on-accent: #ffffff;
  --danger: #b91c1c;
  --radius: 6px;
  --container: 1240px;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, Arial, sans-serif;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-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.7;
  overflow-wrap: anywhere;
  font-size: 1.0625rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

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

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

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

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

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

.site-header {
  padding-block: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.masthead-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  min-width: 0;
}

.masthead-mark {
  width: 3rem;
  height: 3rem;
  max-width: 100%;
  color: var(--accent);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}

.wordmark:hover {
  color: var(--accent);
}

.issue-date {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  width: 100%;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent);
}

.section {
  padding-block: clamp(5.5rem, 8vw, 7rem);
  min-width: 0;
}

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35em;
}

.section-lead {
  color: var(--text-muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

.rule {
  display: block;
  width: 100%;
  max-width: 12rem;
  margin: 0 auto 2rem;
  color: var(--border);
}

.digest {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 2.5rem 3rem;
  align-items: start;
  min-width: 0;
}

.headline-rail {
  min-width: 0;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}

.rail-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rail-btn {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  color: var(--text);
  min-width: 0;
}

.rail-btn:hover,
.rail-btn[data-active],
.rail-btn[aria-pressed="true"] {
  background: var(--surface-alt);
}

.rail-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.rail-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 600;
}

.summary-pane {
  min-width: 0;
}

.summary-card {
  min-width: 0;
}

.summary-card .rubric {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.summary-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-bottom: 0.75rem;
}

.summary-card h2 a {
  color: inherit;
  text-decoration: none;
}

.summary-card h2 a:hover {
  color: var(--accent);
}

.summary-card .standfirst {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.summary-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.summary-body {
  color: var(--text);
}

.summary-body p:last-child {
  margin-bottom: 0;
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
  min-width: 0;
}

.rubric-card {
  min-width: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.rubric-icon {
  width: 2.5rem;
  height: 2.5rem;
  max-width: 100%;
  color: var(--accent);
  margin-bottom: 1rem;
}

.rubric-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.rubric-card h3 a {
  color: inherit;
  text-decoration: none;
}

.rubric-card h3 a:hover {
  color: var(--accent);
}

.rubric-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.rubric-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rubric-links a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
}

.rubric-links a:hover {
  color: var(--accent);
}

.scoreboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  min-width: 0;
}

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

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

.side-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

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

.score-status {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.scoreboard-meta {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  min-width: 0;
}

.scoreboard-meta strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 2px dashed var(--border);
  background: transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  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.55em;
  letter-spacing: 0.08em;
  vertical-align: middle;
  margin-inline-end: 0.35em;
  position: relative;
  top: -0.05em;
}

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 2rem;
  min-width: 0;
  margin-bottom: 2.5rem;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a,
.footer-col button {
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--accent);
}

.footer-base {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

#cookie-notice,
[data-cookie-banner] {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--text) 8%, transparent);
}

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

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

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-actions button {
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  min-width: 7rem;
}

.cookie-actions button:hover {
  background: var(--surface-alt);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.page-hero {
  padding-block: 3.5rem 2rem;
  border-bottom: 1px solid var(--border-soft);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 40rem;
}

.page-hero .lead {
  font-size: 1.15rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.prose {
  padding-block: 3rem 5rem;
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

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

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  min-width: 0;
}

.prose th {
  background: var(--surface-alt);
  font-weight: 600;
}

.article-head {
  padding-block: 3rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.article-rubric {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.article-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  max-width: 40rem;
}

.standfirst {
  font-size: 1.15rem;
  max-width: 40rem;
  margin-top: 0.75rem;
}

.byline {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-body {
  padding-block: 2.5rem 3rem;
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.related {
  border-top: 1px solid var(--border);
  padding-block: 2rem 5rem;
  max-width: 42rem;
}

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

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.related a {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

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

.list-page {
  padding-block: 1rem 5rem;
}

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

.article-list li {
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
  min-width: 0;
}

.article-list h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2.5rem;
  padding-block: 2.5rem 5rem;
  min-width: 0;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-stack input,
.form-stack textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  width: 100%;
  min-width: 0;
}

.form-stack button[type="submit"] {
  align-self: flex-start;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
}

.form-stack button[type="submit"]:hover {
  background: var(--accent-bright);
}

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

.thank-you {
  padding: 1.5rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.scoreboard-note {
  margin-top: 2rem;
  max-width: 42rem;
}

@media (max-width: 1024px) {
  .digest {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .headline-rail {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 0.35rem;
  }

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

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: left;
  }

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

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

  .score-line {
    font-size: 3rem;
  }

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

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    flex: 1 1 auto;
  }
}
