* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page-background, var(--paper, white));
  color: var(--ink, black);
  font-family: var(--font-editorial);
  font-weight: var(--body-weight, 400);
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent, currentColor);
  outline-offset: 5px;
}
h1,
h2,
h3 {
  font-weight: var(--heading-weight, 800);
  line-height: 1.4;
  margin: 0;
  text-wrap: pretty;
}
p {
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
main {
  min-height: 55vh;
}
main:focus {
  outline: none;
}
.site-frame {
  width: 100%;
  margin: 0;
  background: var(--page-background, var(--paper));
}
.shell {
  width: min(var(--shell-max), calc(100% - 96px));
  margin-inline: auto;
}
.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;
}
.skip-link {
  position: fixed;
  top: 8px;
  right: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 12px 20px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  padding-bottom: 8px;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding-block: 32px 40px;
}
.brand {
  display: block;
  width: 224px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 28px;
}
.brand img {
  width: 100%;
  height: auto;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
  padding: 6px 12px;
}
.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 16px;
}
.desktop-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
.nav-label {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.mobile-nav {
  display: none;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  margin-top: 24px;
  margin-bottom: 22px;
}
.section-heading h1,
.section-heading h2 {
  font-size: 24px;
}
.section-heading > span {
  color: var(--muted);
  font-size: 14px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid);
}
.content-card {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: var(--space-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
}
.card-image {
  display: block;
  margin-bottom: 22px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: var(--radius-surface);
  background: var(--paper);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.term-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.content-card h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  margin-bottom: 12px;
}
.content-card > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.card-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 24px;
  color: var(--muted);
}
.reading-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}
.reading-meta span + span {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 14px;
}
.reading-meta span:empty {
  display: none;
}
.empty-state {
  padding-block: 0 32px;
}
.empty-frame {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--paper);
}
.page-intro {
  padding-block: 64px 44px;
}
.page-intro h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 20px;
}
.page-intro > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}
.search-form {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  min-height: 56px;
  width: min(100%, 570px);
}
.search-form input {
  min-width: 0;
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  border-radius: 0;
  padding: 12px 0;
}
.search-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-form button {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 8px 16px;
  white-space: nowrap;
  min-width: 76px;
  font-weight: 700;
}
.search-form button span {
  margin-inline-start: 12px;
}
.search-intro .search-form {
  margin-top: 36px;
}
.search-hint {
  color: var(--muted);
  margin-block: 16px 90px;
}
.pagination {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-block: 40px;
  font-size: 15px;
}
.pagination a {
  border-bottom: 1px solid var(--accent);
  padding-block: 12px;
}
.site-footer {
  margin-top: 64px;
}
.footer-inner {
  padding-block: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.copyright {
  color: var(--muted);
  font-size: 13px;
}
.article-page {
  padding-top: 32px;
}
.article-header {
  max-width: var(--reading-max);
  margin-inline: auto;
}
.article-header h1 {
  font-size: clamp(26px, 2.4vw, 34px);
  margin-block: 20px 18px;
  line-height: 1.55;
}
.standfirst {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 800px;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 32px;
  font-size: 15px;
}
.article-cover {
  width: min(100%, 360px);
  max-width: 100%;
  margin: 24px auto 28px;
}
.article-cover img {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-surface);
  background: var(--surface);
}
.article-body,
.reading-width {
  max-width: var(--reading-max);
  margin-inline: auto;
}
.article-body {
  font-size: 18px;
  line-height: 1.85;
  margin-top: 28px;
  overflow-wrap: anywhere;
}
.article-body p {
  margin-block: 0 1.4em;
}
.article-body h2 {
  font-size: 25px;
  margin-block: 1.8em 0.7em;
}
.article-body h3 {
  font-size: 21px;
  margin-block: 1.5em 0.5em;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.article-body ul,
.article-body ol {
  padding-inline-start: 1.5em;
}
.article-body blockquote {
  border-inline-start: 4px solid var(--brand);
  padding-inline-start: 24px;
  margin-inline: 0;
  font-size: 20px;
}
.article-body figure {
  margin-inline: 0;
}
.article-body figcaption {
  font-size: 14px;
  color: var(--muted);
}
.article-body table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.article-body th,
.article-body td {
  padding: 12px;
  border: 1px solid var(--line);
}
.article-body pre {
  overflow-x: auto;
  background: var(--surface);
  padding: 20px;
  direction: ltr;
  text-align: left;
  white-space: pre;
}
.article-body video {
  max-width: 100%;
  height: auto;
}
.sources {
  border-top: 2px solid var(--ink);
  margin-top: 52px;
  padding-top: 24px;
  font-size: 17px;
}
.sources h2 {
  font-size: 24px;
}
.sources ol {
  padding-inline-start: 24px;
}
.sources a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.article-end {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 15px;
}
.unavailable {
  max-width: 700px;
  margin: 80px auto;
  padding: 24px;
  font-family: Tahoma, sans-serif;
}
@media (max-width: 700px) {
  body {
    font-size: 17px;
  }
  .site-frame {
    width: 100%;
    margin: 0;
  }
  .shell {
    width: calc(100% - 32px);
  }
  .masthead {
    padding-block: 25px;
    gap: 18px;
  }
  .brand {
    width: 176px;
  }
  .search-link {
    font-size: 14px;
    gap: 10px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
    position: relative;
  }
  .mobile-nav summary {
    cursor: pointer;
    list-style: none;
    padding: 12px;
    display: flex;
    gap: 28px;
    align-items: center;
    min-height: 48px;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 20px;
  }
  .mobile-nav nav a {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
  }
  .nav-row {
    align-items: start;
  }
  .nav-label {
    padding-top: 16px;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-grid-mobile);
  }
  .content-card {
    padding: var(--space-card-mobile);
  }
  .card-image {
    margin-bottom: 18px;
  }
  .content-card h2 {
    font-size: 28px;
  }
  .section-heading {
    margin-bottom: 16px;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: 22px;
  }
  .empty-frame {
    min-height: 240px;
  }
  .page-intro {
    padding-block: 40px 32px;
  }
  .site-footer {
    margin-top: 48px;
  }
  .article-page {
    padding-top: 28px;
  }
  .article-header h1 {
    font-size: 26px;
    margin-top: 20px;
  }
  .standfirst {
    font-size: 15px;
  }
  .article-cover {
    margin: 24px auto 32px;
  }
  .article-body {
    font-size: 17px;
    line-height: 1.85;
  }
  .article-body h2 {
    font-size: 29px;
  }
  .article-body h3 {
    font-size: 24px;
  }
  .article-byline {
    margin-top: 24px;
  }
  .search-form {
    min-height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Opaque navigation/search surfaces preserve contrast in both modes. */
.nav-row,
.reading-filters,
.live-search-form,
.live-results {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
}

.nav-row {
  position: relative;
  z-index: 10;
}
.desktop-nav {
  gap: 4px;
  justify-content: center;
  flex: 1;
}
.desktop-nav a[aria-current],
.mobile-nav a[aria-current],
.reading-filters a[aria-current] {
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.reading-filters {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 6px;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 16px;
}
.reading-filters a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
.live-search {
  position: relative;
  margin-inline-start: auto;
  flex-shrink: 0;
  align-self: flex-start;
}
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: var(--ink);
}
.search-dialog {
  position: absolute;
  inset: calc(100% + 24px) auto auto 0;
  --search-width: 340px;
  width: var(--search-width);
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  overflow: visible;
  z-index: 20;
}
.search-dialog[open] {
  animation: reveal-search 240ms cubic-bezier(.16, 1, .3, 1);
}

.live-search-form {
  display: flex;
  height: 52px;
  padding-inline-start: 18px;
  overflow: hidden;
  border-radius: var(--radius-pill);
}
.live-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}
.live-search-form button {
  width: 48px;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  font-size: 28px;
  color: var(--ink);
}
.live-search-form:focus-within { border-color: var(--accent); }
.live-search-form input:focus-visible { outline: none; }
.live-search-form :focus-visible {
  outline-offset: -4px;
}
.live-results {
  position: absolute;
  inset: calc(100% + 12px) -1px auto;
  padding: 12px;
  font-size: 16px;
  max-height: min(60dvh, 480px);
  overflow-y: auto;
}
.live-results p {
  color: var(--muted);
  font-size: 14px;
}
.live-results ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.live-results a {
  display: block;
  padding: 12px 8px;
  border-radius: 8px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.live-results a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.live-results .all-search-results { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0; text-align: center; font-size: 14px; }
.live-results[hidden], .live-results [hidden] { display: none; }
.live-results a:focus-visible {
  outline-offset: -3px;
}
@keyframes reveal-search {
  from {
    width: 44px;
    opacity: 0;
  }
  to {
    width: var(--search-width);
    opacity: 1;
  }
}
.live-search-form .clear-search {
  font-size: 14px;
}
.live-search-form input::-webkit-search-cancel-button {
  display: none;
}
.pill-nav {
  position: relative;
  isolation: isolate;
}
.pill-nav a {
  position: relative;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .search-dialog[open] {
    animation: none;
  }
}

/* Editorial sequence: one contextual heading, then filters and two balanced cards. */
.collection-intro {
  padding-block: 48px 30px;
}
.collection-intro h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  max-width: 900px;
}
.collection-intro p {
  margin-top: 14px;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}
.editorial-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}
.pill-nav a,
.reading-filters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.content-card h2 {
  font-size: clamp(25px, 2.25vw, 31px);
}
.content-card > p {
  font-size: 16px;
}
.card-bottom {
  gap: 8px 18px;
  margin-top: 20px;
}
@media (max-width: 700px) {
  .collection-intro {
    padding-block: 32px 24px;
  }
  .collection-intro h1 {
    font-size: 32px;
  }
  .collection-intro p {
    font-size: 17px;
  }
  .reading-filters {
    font-size: 14px;
  }
  .reading-filters a {
    padding: 8px 10px;
    gap: 5px;
  }
  .reading-filters .editorial-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

/* One article can point to its clip on several platforms. */
.article-clips { margin-block: 36px; }
.article-clips h2 { font-size: 1.3rem; margin-block-end: 16px; }
.article-clips ul { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.article-clips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); background: var(--surface); text-decoration: none; }
.article-clips a:is(:hover, :focus-visible) { border-color: var(--brand); }
