body.uni-reading {
  /* Parchment publications are authored for light; avoid OS dark-mode palette flip. */
  color-scheme: light only;

  --uni-parchment: #f3ede1;
  --uni-parchment-muted: #e8e0d2;
  --uni-ink: #1a1610;
  --uni-ink-secondary: #3a3228;
  --uni-ink-caption: #5e5344;
  --uni-blue: #1c3a66;
  --uni-blue-soft: #d8e3f0;
  --uni-gold: #8a6910;
  --uni-border: #c4b08a;
  --uni-measure: min(42rem, 100%);
  --uni-body-size: clamp(1.0625rem, 0.28vw + 1rem, 1.1875rem);
  --uni-body-lh: 1.72;
  --uni-heading-lh: 1.2;

  /* Bridge legacy inline tokens → adaptive palette */
  --parchment: var(--uni-parchment);
  --parchment-dark: color-mix(in srgb, var(--uni-parchment) 90%, var(--uni-ink));
  --parchment-mid: color-mix(in srgb, var(--uni-parchment) 82%, var(--uni-border));
  --text-primary: var(--uni-ink);
  --text-secondary: var(--uni-ink-secondary);
  --text-tertiary: var(--uni-ink-caption);
  --text-caption: var(--uni-ink-caption);
  --blue-primary: var(--uni-blue);
  --blue-pale: var(--uni-blue-soft);
  --gold-primary: var(--uni-gold);
  --border-warm: var(--uni-border);

  background: var(--uni-parchment) !important;
  color: var(--uni-ink) !important;
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif !important;
  font-size: var(--uni-body-size);
  line-height: var(--uni-body-lh);
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-contrast: more) {
  body.uni-reading {
    color-scheme: light;
    --uni-parchment: #fffdf8;
    --uni-ink: #0c0a08;
    --uni-ink-secondary: #1a1610;
    --uni-ink-caption: #2e2720;
    --uni-blue: #0f2848;
    --uni-blue-soft: #c5d4e8;
    --uni-gold: #6b5208;
    --uni-border: #8a7350;
  }
}

@media (prefers-contrast: less) {
  body.uni-reading {
    --uni-parchment: #ece6da;
    --uni-ink: #2a241c;
    --uni-ink-secondary: #4a4034;
    --uni-ink-caption: #6b5f4f;
    --uni-blue: #2a5080;
  }
}

/* ── Position paper: full editorial grid (no essay column measure) ── */

body.uni-gc-paper main.gc-paper-shell,
body.uni-gc-paper article.gc-paper-shell {
  display: contents;
}

body.uni-gc-paper .masthead,
body.uni-gc-paper .page-wrapper {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

body.uni-gc-paper .page-wrapper {
  max-width: var(--content-max, 1140px);
  margin-inline: auto;
}

body.uni-gc-paper .article-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  width: 100%;
}

body.uni-gc-paper .article-body {
  min-width: 0;
  max-width: 740px;
}

body.uni-gc-paper .masthead-inner {
  max-width: var(--content-max, 1140px);
  margin-inline: auto;
}

/* ── Essay foothills: centered reading column ── */

body.uni-gc-essay .wrap {
  max-width: var(--uni-measure);
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 4vw, 1.75rem) !important;
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem) !important;
}

body.uni-gc-essay .eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--uni-gold) !important;
}

body.uni-gc-essay h1 {
  font-family: 'Gloock', Georgia, serif !important;
  font-size: clamp(1.65rem, 2.2vw + 1rem, 2.25rem) !important;
  line-height: var(--uni-heading-lh) !important;
  color: var(--uni-blue) !important;
  text-wrap: balance;
  margin: 0.65em 0 0.35em;
  max-width: 34ch;
}

body.uni-gc-essay h2 {
  font-family: 'Gloock', Georgia, serif !important;
  font-size: clamp(1.2rem, 0.75vw + 1rem, 1.45rem) !important;
  line-height: var(--uni-heading-lh) !important;
  color: var(--uni-blue) !important;
  margin: 2.25em 0 0.65em;
  padding-top: 0.1em;
  scroll-margin-top: 4.75rem;
  text-wrap: balance;
}

body.uni-gc-essay h2::before {
  content: '';
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-bottom: 0.55em;
  background: color-mix(in srgb, var(--uni-gold) 85%, transparent);
}

body.uni-gc-essay .lead {
  font-size: clamp(1.05rem, 0.35vw + 1rem, 1.15rem) !important;
  line-height: 1.62 !important;
  color: var(--uni-ink-secondary) !important;
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

body.uni-gc-essay p {
  max-width: 68ch;
  margin-bottom: 1.1em;
}

body.uni-gc-essay ul,
body.uni-gc-essay ol {
  max-width: 62ch;
  margin: 0 0 1.15em 1.35rem;
}

body.uni-gc-essay li {
  margin-bottom: 0.5em;
  padding-left: 0.2em;
}

body.uni-gc-essay li::marker {
  color: var(--uni-gold);
}

body.uni-gc-essay strong {
  font-weight: 600;
  color: var(--uni-ink);
}

/* ── Shared uni-lane chrome ── */

body.uni-reading a {
  color: var(--uni-blue);
}

body.uni-reading a:hover {
  color: var(--uni-gold);
}

body.uni-gc-essay .canonical-box,
body.uni-gc-essay .callout,
body.uni-gc-essay .diagram {
  background: var(--uni-blue-soft) !important;
  border-color: var(--uni-border) !important;
  color: var(--uni-ink-secondary) !important;
}

body.uni-gc-essay .canonical-box a,
body.uni-gc-essay .cta a,
body.uni-gc-essay .related a,
body.uni-gc-essay footer a {
  color: var(--uni-blue) !important;
}

body.uni-gc-essay .callout {
  border-left: 4px solid var(--uni-gold) !important;
  background: color-mix(in srgb, var(--uni-parchment-muted) 70%, var(--uni-gold) 8%) !important;
}

body.uni-gc-essay .cta {
  border-color: var(--uni-border) !important;
  background: color-mix(in srgb, var(--uni-parchment) 88%, var(--uni-blue) 6%) !important;
}

body.uni-gc-essay footer {
  color: var(--uni-ink-caption) !important;
  font-size: 0.875rem;
  border-top-color: var(--uni-border) !important;
}

body.uni-gc-essay .related {
  background: color-mix(in srgb, var(--uni-blue-soft) 55%, var(--uni-parchment)) !important;
  border-color: var(--uni-border) !important;
}

body.uni-reading .gc-series-note {
  color: var(--uni-ink-caption) !important;
  background: color-mix(in srgb, var(--uni-parchment) 92%, var(--uni-blue-soft)) !important;
  border-bottom-color: var(--uni-border) !important;
}

body.uni-reading .gc-series-note a {
  color: var(--uni-blue) !important;
}

body.uni-reading .site-logo {
  color: var(--uni-blue) !important;
}

body.uni-reading .site-nav a {
  color: var(--uni-ink-caption) !important;
}

body.uni-reading .site-nav a:hover,
body.uni-reading .site-nav a[aria-current='page'] {
  color: var(--uni-blue) !important;
}

body.uni-reading .pub-evidence-link {
  color: var(--uni-ink-caption) !important;
}

@media (prefers-contrast: more) {
  body.uni-reading a {
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
  }
}

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

@media (max-width: 900px) {
  body.uni-gc-paper .article-grid {
    grid-template-columns: 1fr;
  }

  body.uni-gc-paper .article-body {
    max-width: none;
    padding-left: 0 !important;
  }

  body.uni-gc-paper .masthead-inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 540px) {
  body.uni-gc-essay h1 {
    font-size: clamp(1.5rem, 5vw + 0.85rem, 1.85rem) !important;
    max-width: none;
  }

  body.uni-gc-essay h2 {
    margin-top: 1.85em;
  }
}

/* Safari Reader: hidden aux blocks stay visible in styled page, omitted in Reader */
.reader-exclude[hidden] {
  display: block !important;
}

#sticky-header.reader-exclude[hidden] {
  display: flex !important;
}

.side-nav.reader-exclude[hidden] {
  display: block !important;
}

@media (max-width: 900px) {
  .side-nav.reader-exclude[hidden] {
    display: none !important;
  }
}

body.uni-gc-essay .article-header {
  margin-bottom: 0.5rem;
}

body.uni-gc-essay .article-byline,
body.uni-gc-essay .article-date {
  font-family: var(--label-font, Georgia, serif);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--uni-ink-caption, var(--text-caption, #5e5344));
  margin: 0 0 0.35rem;
}

body.uni-gc-essay .article-date {
  display: block;
  margin-bottom: 1.25rem;
}
