/* ============================================================
   Control Architecture Institute — Research Publication Theme
   Brand tokens ported verbatim from controlarch.org
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy:        #1a3a5c;
  --navy-deep:   #122844;
  --navy-soft:   #6b7f94;
  --gold:        #c8932f;
  --ink:         #14202E;
  --ink-soft:    #3a4654;
  --paper:       #F4EFE6;
  --paper-2:     #ECE5D6;
  --paper-card:  #FBF8F1;
  --rule:        #C9BFA8;
  --rule-soft:   #DED6C4;
  --muted:       #7a7568;

  --serif: var(--gh-font-heading, 'Fraunces', Georgia, 'Times New Roman', serif);
  --sans: var(--gh-font-body, 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);

  --wrap: 1180px;
  --read: 720px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; position: relative; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,230,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; color: var(--navy); }
.brand-sub { font-size: 9px; font-weight: 400; letter-spacing: 0.5em; color: var(--navy-soft); margin-top: 5px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.site-nav-links li { display: block; }
.site-nav-links a {
  color: var(--ink-soft); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s ease;
}
.site-nav-links a:hover, .site-nav-links a.active { color: var(--gold); }

.nav-member { display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.nav-signin:hover { color: var(--gold); }
.btn {
  display: inline-block; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; border: 1px solid var(--navy);
  padding: 9px 18px; transition: all 0.2s ease; background: transparent; color: var(--navy);
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-gold { border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: none; color: var(--navy);
  width: 40px; height: 40px; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   LIBRARY HERO (navy band) — index / archive intros
   ============================================================ */
.lib-hero {
  background: var(--navy-deep);
  background-image:
    radial-gradient(ellipse at 72% 40%, rgba(255,255,255,0.045) 0, transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(200,147,47,0.07) 0, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.lib-hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 55%; height: 100%;
  background-image:
    linear-gradient(105deg, transparent 49.8%, rgba(200,147,47,0.09) 50%, transparent 50.2%),
    linear-gradient(115deg, transparent 49.8%, rgba(255,255,255,0.035) 50%, transparent 50.2%);
  background-size: 780px 780px, 1080px 1080px; background-repeat: no-repeat;
  background-position: 100% 0; pointer-events: none;
}
.lib-hero-inner { padding: 84px 0 76px; position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 22px;
}
.lib-hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.1; letter-spacing: -0.015em; color: #fff; margin-bottom: 24px;
}
.lib-hero h1 em { font-style: italic; color: var(--gold); }
.lib-hero .lede {
  font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.78);
  max-width: 560px; font-weight: 300;
}
.lib-hero-rule { width: 60px; height: 1px; background: var(--gold); margin-top: 32px; opacity: 0.75; }

/* ============================================================
   SHARED SECTION LABEL / DISPLAY HEADINGS
   ============================================================ */
.section-label {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--gold); margin-bottom: 14px;
}
.section-label::before { content: "\2014\2014  "; color: var(--gold); }

/* ============================================================
   REPORT LIST (Library index + topic archives)
   ============================================================ */
.lib-body { padding: 64px 0 40px; }

.topic-filter {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding-bottom: 34px; margin-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.topic-filter-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-right: 6px;
}
.topic-chip {
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft);
  border: 1px solid var(--rule); padding: 6px 14px; border-radius: 2px;
  transition: all 0.18s ease; background: transparent;
}
.topic-chip:hover, .topic-chip.active { border-color: var(--navy); color: var(--navy); }

.report-list { list-style: none; }
.report-item { border-bottom: 1px solid var(--rule); }
.report-link {
  display: grid; grid-template-columns: 168px 1fr; gap: 40px;
  padding: 34px 0; align-items: baseline; color: inherit;
}
.report-link:hover { color: inherit; }
.report-link:hover .report-title { color: var(--gold); }
.report-meta-col { padding-top: 4px; }
.report-type {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; display: block; margin-bottom: 8px;
}
.report-date { font-size: 13px; color: var(--muted); display: block; }
.report-main {}
.report-title {
  font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.22;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; transition: color 0.2s ease;
}
.report-excerpt { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; max-width: 620px; }
.report-flags { margin-top: 12px; display: flex; gap: 14px; align-items: center; }
.access-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); font-weight: 500;
}
.access-tag svg { width: 11px; height: 11px; }
.read-len { font-size: 12.5px; color: var(--muted); }

.lib-empty { padding: 60px 0; color: var(--muted); font-size: 16px; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 44px 0 20px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.pagination a { color: var(--navy); }
.pagination a:hover { color: var(--gold); }
.pagination .page-number { color: var(--muted); letter-spacing: 0.1em; }

/* ============================================================
   REPORT (single post) — research note layout
   ============================================================ */
.report-wrap { padding: 56px 0 40px; }
.report-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  max-width: var(--read); margin: 0 auto;
}

.report-head { margin-bottom: 40px; }
.report-kicker {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.report-kicker .k-type { color: var(--gold); font-weight: 500; }
.report-kicker .k-sep { color: var(--rule); }
h1.report-title-full {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.14; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 22px;
}
h1.report-title-full em { font-style: italic; color: var(--gold); }
.report-standfirst {
  font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.5;
  color: var(--ink-soft); margin-bottom: 28px;
}
.report-byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 22px; border-top: 1px solid var(--rule);
}
.byline-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.byline-text { line-height: 1.35; }
.byline-name { font-size: 15px; font-weight: 500; color: var(--ink); }
.byline-role { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--gold); }

.report-feature { margin: 0 0 40px; }
.report-feature img { width: 100%; }

/* ---------- In-page TOC ---------- */
.report-toc {
  position: sticky; top: 96px; align-self: start;
  font-size: 13px; line-height: 1.5;
}
.report-toc-title {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.report-toc ul { list-style: none; }
.report-toc li { margin-bottom: 9px; }
.report-toc li.toc-h3 { padding-left: 14px; }
.report-toc a { color: var(--ink-soft); display: block; transition: color 0.18s ease; }
.report-toc a:hover, .report-toc a.toc-active { color: var(--gold); }

@media (min-width: 1120px) {
  .report-grid {
    grid-template-columns: 220px minmax(0, var(--read));
    column-gap: 56px; row-gap: 0;
    max-width: calc(var(--read) + 220px + 56px); align-items: start;
  }
  .report-head, .report-feature { grid-column: 1 / -1; }
  .report-toc { grid-column: 1; }
  .report-body, .upgrade-cta, .report-foot { grid-column: 2; }
}
@media (max-width: 1119px) { .report-toc { display: none; } }

/* ============================================================
   PROSE (content) — used by reports and pages
   ============================================================ */
.prose { font-size: 18px; line-height: 1.72; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose > * + * { margin-top: 24px; }
.prose p { color: var(--ink); }
.prose h2 {
  font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.24;
  letter-spacing: -0.01em; color: var(--ink); margin-top: 52px; scroll-margin-top: 90px;
}
.prose h3 {
  font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3;
  color: var(--ink); margin-top: 38px; scroll-margin-top: 90px;
}
.prose h2 + p, .prose h3 + p { margin-top: 16px; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  border-left: 2px solid var(--gold); padding: 4px 0 4px 26px; margin-left: 0;
  font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink-soft);
}
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 44px 0; }
.prose img { margin: 12px 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.prose code {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.86em;
  background: var(--paper-2); padding: 2px 6px; border-radius: 2px;
}
.prose pre {
  background: var(--navy-deep); color: #e8eef4; padding: 22px 24px; border-radius: 3px;
  overflow-x: auto; font-size: 14px; line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; color: var(--navy); border-bottom: 1.5px solid var(--navy); }

/* ---------- Koenig cards ---------- */
.kg-width-wide { margin-left: -60px; margin-right: -60px; max-width: none; width: auto; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.kg-card { margin-top: 32px; margin-bottom: 32px; }

/* Callout card styled as a research "Key Findings" note */
.kg-callout-card {
  background: var(--paper-card); border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--gold); padding: 24px 28px; display: flex; gap: 16px; border-radius: 2px;
}
.kg-callout-emoji { font-size: 20px; line-height: 1.5; }
.kg-callout-text { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.kg-callout-text strong { color: var(--navy); }

.kg-bookmark-card a { text-decoration: none; }
.kg-bookmark-container {
  display: flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: var(--paper-card);
}
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-weight: 600; color: var(--navy); }
.kg-bookmark-description { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.kg-bookmark-thumbnail img { width: 180px; height: 100%; object-fit: cover; }

/* ---------- File card (download) ----------
   Ghost's default file-card CSS is excluded in package.json (card_assets),
   so this is the complete implementation. Based on Ghost's reference CSS,
   restyled to CAI: transparent background, thin CAI rule, navy download arrow. */
.kg-file-card, .kg-file-card * { box-sizing: border-box; }
.kg-file-card { display: flex; }
.kg-file-card a.kg-file-card-container {
  display: flex; align-items: stretch; justify-content: space-between;
  color: inherit; text-decoration: none; width: 100%;
  padding: 8px; min-height: 92px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: border-color 0.25s ease;
}
.kg-file-card a.kg-file-card-container:hover { border-color: var(--navy); color: inherit; }
.kg-file-card-contents { display: flex; flex-direction: column; justify-content: space-between; margin: 4px 12px; width: 100%; }
.kg-file-card-title { font-size: 1.1em; font-weight: 600; line-height: 1.3em; color: var(--navy); }
.kg-file-card-caption { font-size: 0.95em; line-height: 1.3em; color: var(--ink-soft); }
.kg-file-card-title + .kg-file-card-caption { margin-top: 2px; }
.kg-file-card-metadata { display: inline; font-size: 0.825em; line-height: 1.3em; margin-top: 6px; color: var(--muted); }
.kg-file-card-filename { display: inline; font-weight: 500; color: var(--ink-soft); }
.kg-file-card-filesize { display: inline-block; font-size: 0.925em; color: var(--muted); }
.kg-file-card-filesize:before { display: inline-block; content: "\2022"; margin-right: 4px; }
.kg-file-card-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 72px; min-width: 72px; height: 100%; }
.kg-file-card-icon svg { width: 26px; height: 26px; color: var(--navy); }
.kg-file-card-medium a.kg-file-card-container { min-height: 72px; }
.kg-file-card-small a.kg-file-card-container { align-items: center; min-height: 52px; }
.kg-file-card-small .kg-file-card-metadata { font-size: 1.0em; margin-top: 0; }
.kg-file-card-small .kg-file-card-icon svg { width: 20px; height: 20px; }
.kg-file-card + .kg-file-card { margin-top: 1em; }

/* ============================================================
   GATED CONTENT CTA
   ============================================================ */
.upgrade-cta {
  margin: 8px auto 0; max-width: var(--read); position: relative;
}
.upgrade-fade {
  height: 140px; margin-top: -140px; position: relative; pointer-events: none;
  background: linear-gradient(180deg, rgba(244,239,230,0) 0%, var(--paper) 88%);
}
.upgrade-box {
  background: var(--navy-deep);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(200,147,47,0.10) 0, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 48px 44px; text-align: center; border-radius: 3px; overflow: hidden;
}
.upgrade-box .eyebrow { color: var(--gold); }
.upgrade-box h3 {
  font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.2;
  color: #fff; margin-bottom: 14px;
}
.upgrade-box h3 em { font-style: italic; color: var(--gold); }
.upgrade-box p { color: rgba(255,255,255,0.75); font-size: 15.5px; max-width: 460px; margin: 0 auto 26px; font-weight: 300; }
.upgrade-box .btn-cta {
  display: inline-block; background: var(--gold); color: #fff; border: 1px solid var(--gold);
  padding: 13px 30px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.2s ease;
}
.upgrade-box .btn-cta:hover { background: transparent; color: var(--gold); }
.upgrade-box .cta-sub { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.6); }
.upgrade-box .cta-sub a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.upgrade-box .cta-sub a:hover { color: var(--gold); }

/* ---------- Report footer / author card ---------- */
.report-foot { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.author-card { display: flex; gap: 20px; align-items: flex-start; }
.author-card-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--paper-2); }
.author-card-name { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 4px; }
.author-card-role { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--gold); margin-bottom: 10px; }
.author-card-bio { font-size: 15px; color: var(--ink-soft); line-height: 1.6; max-width: 560px; }

.report-topics { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   AUTHOR (Principal) PROFILE
   ============================================================ */
.principal { padding: 72px 0 40px; }
.principal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.principal-portrait { width: 240px; height: 240px; display: block; }
.principal-name { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.2; color: var(--ink); margin-bottom: 8px; }
.principal-title { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0.02em; color: var(--gold); margin-bottom: 22px; }
.principal-bio { font-size: 17px; color: var(--ink-soft); line-height: 1.7; max-width: 640px; }
.principal-bio p + p { margin-top: 18px; }
.principal-reports { margin-top: 72px; }
.principal-reports-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--navy); margin-bottom: 4px;
}

/* ============================================================
   STATIC PAGE
   ============================================================ */
.page-wrap { padding: 64px 0 40px; }
.page-inner { max-width: var(--read); margin: 0 auto; }
.page-label { }
.page-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.14; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 36px;
}
.page-title em { font-style: italic; color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0; margin-top: 40px; }
.site-foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; font-size: 13px; color: var(--muted);
}
.foot-links { display: flex; gap: 24px; list-style: none; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--gold); }

/* ============================================================
   ERROR
   ============================================================ */
.error-wrap { text-align: center; padding: 120px 0; }
.error-code { font-family: var(--serif); font-size: 72px; color: var(--navy); line-height: 1; }
.error-msg { font-size: 18px; color: var(--ink-soft); margin: 16px 0 30px; }

/* ============================================================
   MOTION
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(14px); animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) forwards; }
.fade-in.d1 { animation-delay: 0.12s; }
.fade-in.d2 { animation-delay: 0.24s; }
.fade-in.d3 { animation-delay: 0.36s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .wrap { padding: 0 22px; }
  .site-nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav.open .site-nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 22px 18px;
  }
  .site-nav.open .site-nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--rule-soft); }
  .lib-hero-inner { padding: 60px 0 56px; }
  .lib-body { padding: 44px 0 30px; }
  .report-link { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .report-meta-col { padding-top: 0; }
  .report-type { display: inline; margin-right: 14px; }
  .report-date { display: inline; }
  .principal-grid { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
  .principal-portrait { width: 200px; height: 200px; }
  .kg-width-wide { margin-left: 0; margin-right: 0; }
  .site-foot-inner { flex-direction: column; gap: 14px; text-align: center; }
  .kg-callout-card { flex-direction: column; gap: 10px; }
}
@media (max-width: 520px) {
  .brand-text { display: none; }
  .prose { font-size: 17px; }
}
