@charset "utf-8";
/* ==========================================================================
   KingOfAEO.org — "The Compendium"
   A reference-work stylesheet: serif prose, sans chrome, infobox, contents box.
   Single stylesheet, no @import, no external assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Surfaces & ink */
  --paper:        #FFFFFF;
  --surface:      #F4F6F9;
  --surface-2:    #EAEEF5;
  --surface-3:    #DFE5EE;
  --ink:          #1A1D21;
  --ink-2:        #3A424C;
  --ink-3:        #616B78;
  --ink-4:        #7E8894;

  /* Rules */
  --rule:         #DBE0E8;
  --rule-2:       #C3CBD6;
  --rule-strong:  #9AA5B3;

  /* Links */
  --link:         #2E5AA8;
  --link-visited: #6A4A94;
  --link-hover:   #17356B;
  --link-active:  #B03A2E;

  /* Accents */
  --teal:         #0E6B60;
  --teal-2:       #0A544B;
  --teal-soft:    #E4F1EF;
  --teal-rule:    #A9CFC9;
  --gold:         #8A6A1F;
  --gold-soft:    #FAF4E4;

  /* Type families */
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', Times, serif;
  --sans:  'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono:  ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-ui:   0.875rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 0.98rem + 0.55vw, 1.3125rem);
  --fs-h3:   clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
  --fs-h2:   clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --fs-h1:   clamp(1.875rem, 1.45rem + 1.9vw, 2.75rem);
  --fs-display: clamp(2.125rem, 1.5rem + 2.7vw, 3.25rem);

  /* Rhythm */
  --lh-prose: 1.75;
  --lh-tight: 1.3;
  --measure:  70ch;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;
  --sp-9: 5rem;

  /* Radii & shadow — deliberately restrained */
  --r-1: 2px;
  --r-2: 3px;
  --r-3: 5px;
  --shadow-1: 0 1px 2px rgba(26, 29, 33, .05);
  --shadow-2: 0 2px 10px rgba(26, 29, 33, .07);

  /* Layout */
  --shell:    1360px;
  --rail-w:   12.75rem;
  --infobox-w: 20.5rem;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #10141A;
    --surface:      #171D25;
    --surface-2:    #1E252F;
    --surface-3:    #262E3A;
    --ink:          #E7EBF1;
    --ink-2:        #C3CBD6;
    --ink-3:        #98A2B0;
    --ink-4:        #7C8695;

    --rule:         #29313C;
    --rule-2:       #38414F;
    --rule-strong:  #4C5768;

    --link:         #8FB4EE;
    --link-visited: #C0A5E6;
    --link-hover:   #B6CEF6;
    --link-active:  #F0928A;

    --teal:         #58C9BA;
    --teal-2:       #7FD9CD;
    --teal-soft:    #14282A;
    --teal-rule:    #2C5B57;
    --gold:         #D9BA72;
    --gold-soft:    #241F13;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 12px rgba(0, 0, 0, .45);
  }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: var(--lh-prose);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection { background: #C9DBF6; color: #10233F; }
@media (prefers-color-scheme: dark) {
  ::selection { background: #2C4674; color: #EAF1FC; }
}

img, svg { max-width: 100%; height: auto; }
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--sp-6) 0;
}

/* --------------------------------------------------------------------------
   3. Links
   -------------------------------------------------------------------------- */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:visited { color: var(--link-visited); text-decoration-color: color-mix(in srgb, var(--link-visited) 40%, transparent); }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
a:active { color: var(--link-active); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--paper);
  color: var(--link);
  font-family: var(--sans);
  font-size: var(--fs-ui);
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--link);
  border-radius: 0 0 var(--r-3) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Masthead & category nav
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-2);
  box-shadow: var(--shadow-1);
}

.masthead__top {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.wordmark:visited { color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark__mark { flex: 0 0 auto; display: block; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}
.wordmark__name .tld { color: var(--teal); font-weight: 600; }
.wordmark__tag {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.masthead__meta {
  margin-left: auto;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.masthead__meta b { color: var(--ink-2); font-weight: 600; }

.catbar {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.catbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.catbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.catbar a {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-ui);
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  min-height: 44px;
  line-height: 1.7;
  border-bottom: 3px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.catbar a:visited { color: var(--ink-2); }
.catbar a:hover { background: var(--surface-2); color: var(--ink); }
.catbar a[aria-current="page"],
.catbar a[aria-current="true"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
  background: var(--paper);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Shell / grid
   -------------------------------------------------------------------------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--sp-4) var(--sp-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 62rem) {
  .shell {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: var(--sp-6);
    padding-top: var(--sp-6);
  }
}
@media (min-width: 85rem) {
  .shell { gap: var(--sp-7); }
}

/* --------------------------------------------------------------------------
   6. Category rail
   -------------------------------------------------------------------------- */
.rail {
  font-family: var(--sans);
  font-size: var(--fs-ui);
  order: 2;
}
@media (min-width: 62rem) {
  .rail {
    order: 0;
    position: sticky;
    top: 7.5rem;
    align-self: start;
    max-height: calc(100vh - 9rem);
    overflow-y: auto;
    padding-right: var(--sp-2);
    border-right: 1px solid var(--rule);
  }
}

.rail__title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-3);
  font-weight: 700;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--ink);
}

.rail__group { margin-bottom: var(--sp-4); }
.rail__group > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
  padding: 0.45rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.rail__group > summary::-webkit-details-marker { display: none; }
.rail__group > summary::before {
  content: "";
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-left: 5px solid var(--ink-4);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform var(--dur) var(--ease);
}
.rail__group[open] > summary::before { transform: rotate(90deg); }
.rail__group > summary:hover { color: var(--teal); }

.rail__list {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0 0 0 0.7rem;
  border-left: 1px solid var(--rule);
}
.rail__list li { margin: 0; }
.rail__list a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.5rem;
  min-height: 44px;
  line-height: 1.45;
  color: var(--link);
  text-decoration: none;
  border-left: 3px solid transparent;
  margin-left: -0.7rem;
  padding-left: 0.85rem;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rail__list a:visited { color: var(--link-visited); }
.rail__list a:hover { background: var(--surface); text-decoration: underline; }
.rail__list a[aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border-left-color: var(--teal);
}

.rail__note {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.6;
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-3);
  margin-top: var(--sp-5);
}
.rail__note a { color: var(--link); }

/* --------------------------------------------------------------------------
   7. Article shell
   -------------------------------------------------------------------------- */
.main { min-width: 0; }

.breadcrumb {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  padding: var(--sp-4) 0 var(--sp-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--sp-5);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb li + li::before {
  content: "›";
  color: var(--ink-4);
}
.breadcrumb a { color: var(--link); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

.entry__head { margin-bottom: var(--sp-5); }
.entry__kicker {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 var(--sp-2);
}
h1 {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--rule-2);
  color: var(--ink);
}
.entry__from {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin: 0;
  font-style: normal;
}
/* Publication dateline. Shares the chrome voice with the folio rule on the
   front page, so the same stamp reads the same way wherever it appears. */
.entry__pubdate {
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 600;
}
.entry__pubdate time { font-variant-numeric: tabular-nums; }
.frontispiece__rule .entry__pubdate { color: inherit; }

/* Foot-of-entry revision line, set against the notes apparatus. */
.revision {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: var(--measure);
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule);
}
.revision time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }

/* Two-column body: prose + infobox column */
.entry__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
/* Only split into prose + infobox columns once there is genuinely room for
   both alongside the rail; below this the infobox reflows to the top. */
@media (min-width: 76rem) {
  .entry__body {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: var(--sp-6);
  }
  /* Not sticky: the infobox is taller than most viewports, and sticking it
     would put its foot permanently out of reach. */
  .entry__aside {
    flex: 0 0 var(--infobox-w);
    width: var(--infobox-w);
  }
  .entry__prose { flex: 1 1 auto; min-width: 0; }
}

.entry__prose > * { max-width: var(--measure); }
.entry__prose > .table-scroll,
.entry__prose > .contents,
.entry__prose > .capsule { max-width: var(--measure); }

/* --------------------------------------------------------------------------
   8. Prose
   -------------------------------------------------------------------------- */
p { margin: 0 0 var(--sp-4); }

h2 {
  font-family: var(--sans);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: var(--sp-7) 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--rule-2);
  scroll-margin-top: 7rem;
}
h3 {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: var(--sp-5) 0 var(--sp-2);
  scroll-margin-top: 7rem;
}
h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  margin: var(--sp-4) 0 var(--sp-2);
}

.secno {
  color: var(--ink-4);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-right: 0.55em;
  font-size: 0.92em;
}

.sect { margin: 0; }
.sect + .sect { margin-top: 0; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.5rem; }
li { margin-bottom: var(--sp-2); }
li > ul, li > ol { margin-top: var(--sp-2); }
ul li::marker { color: var(--ink-4); }
ol li::marker { color: var(--ink-3); font-family: var(--sans); font-size: 0.9em; }

strong, b { font-weight: 700; color: var(--ink); }
em, i { font-style: italic; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.18em; cursor: help; }

code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  padding: 0.08em 0.35em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}
.lead strong { font-weight: 700; }

/* Definition lists */
dl.deflist { margin: 0 0 var(--sp-5); }
dl.deflist dt {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--sp-4);
}
dl.deflist dt:first-child { margin-top: 0; }
dl.deflist dd {
  margin: var(--sp-1) 0 0;
  padding-left: var(--sp-4);
  border-left: 2px solid var(--rule-2);
  color: var(--ink-2);
}

/* Blockquote — reference-work style */
blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-5);
  border-left: 3px solid var(--teal);
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink-2);
  background: linear-gradient(90deg, var(--teal-soft), transparent 65%);
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-style: normal;
  color: var(--ink-3);
  margin-top: var(--sp-2);
}

/* --------------------------------------------------------------------------
   9. Signature component: the INFOBOX
   -------------------------------------------------------------------------- */
.infobox {
  font-family: var(--sans);
  font-size: var(--fs-ui);
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.infobox__bar {
  background: var(--ink);
  color: #FFFFFF;
  text-align: center;
  padding: 0.6rem var(--sp-3);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}
@media (prefers-color-scheme: dark) {
  .infobox__bar { background: var(--surface-3); color: var(--ink); border-bottom: 1px solid var(--rule-2); }
}

.infobox__sub {
  text-align: center;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-3);
  background: var(--surface-2);
  padding: 0.4rem var(--sp-3);
  border-bottom: 1px solid var(--rule);
}

.infobox__crest {
  display: flex;
  justify-content: center;
  padding: var(--sp-5) var(--sp-3);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.crest {
  display: block;
  color: var(--rule-strong);
  width: 8rem;
  height: 8rem;
}
@media (prefers-color-scheme: dark) {
  .crest text[fill="#1A1D21"] { fill: var(--ink); }
}
.infobox__rows {
  width: 100%;
  min-width: 0;          /* override the global comparison-table min-width */
  border-collapse: collapse;
  table-layout: fixed;
}
.infobox__rows th,
.infobox__rows td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-ui);
}
.infobox__rows tr:last-child th,
.infobox__rows tr:last-child td { border-bottom: 0; }
.infobox__rows th {
  width: 38%;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface-2);
  border-right: 1px solid var(--rule);
}
.infobox__rows td { color: var(--ink); background: var(--paper); }
.infobox__rows .infobox__section th {
  width: auto;
  background: var(--surface-3);
  color: var(--ink);
  text-align: center;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-right: 0;
}
.infobox__rows .is-answer td {
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
}

.infobox__foot {
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  padding: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.55;
}
.infobox__foot p { margin: 0 0 0.4rem; }
.infobox__foot p:last-child { margin: 0; }

/* Small secondary aside card under the infobox */
.sidecard {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: var(--r-2);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
  line-height: 1.6;
  color: var(--ink-2);
}
.sidecard h2 {
  font-size: var(--fs-ui);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 var(--sp-2);
  padding: 0;
  border: 0;
  color: var(--ink);
}
.sidecard ul { margin: 0; padding-left: 1.1rem; }
.sidecard li { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   10. Signature component: the CONTENTS box
   -------------------------------------------------------------------------- */
.contents {
  font-family: var(--sans);
  font-size: var(--fs-ui);
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-2);
  padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-4);
  margin: 0 0 var(--sp-6);
  display: inline-block;
  min-width: min(100%, 20rem);
}
.contents__title {
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--rule-2);
  color: var(--ink);
}
.contents ol {
  list-style: none;
  counter-reset: c1;
  margin: 0;
  padding: 0;
}
.contents ol li {
  counter-increment: c1;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.contents ol li::before {
  content: counters(c1, ".") "  ";
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-right: 0.15em;
}
.contents ol ol {
  counter-reset: c2;
  margin: 0.3rem 0 0.45rem 1.15rem;
  padding: 0;
}
.contents ol ol li { counter-increment: c2; }
.contents ol ol li::before { content: counter(c1) "." counter(c2) "  "; }
.contents a {
  color: var(--link);
  text-decoration: none;
  padding: 2px 0;
  display: inline-block;
}
.contents a:hover { text-decoration: underline; }
.contents a:visited { color: var(--link); }

/* --------------------------------------------------------------------------
   11. Signature component: answer capsule
   -------------------------------------------------------------------------- */
.capsule {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-left: 4px solid var(--teal);
  border-radius: var(--r-2);
  padding: var(--sp-4) var(--sp-5);
  margin: 0 0 var(--sp-5);
  box-shadow: var(--shadow-1);
}
.capsule__label {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 var(--sp-2);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.capsule__label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--teal-rule);
}
.capsule p { margin: 0 0 var(--sp-3); font-size: 1.0625rem; line-height: 1.7; }
.capsule p:last-child { margin-bottom: 0; }
.capsule .capsule__answer {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   12. Signature component: NOTE / SEE-ALSO hatnotes
   -------------------------------------------------------------------------- */
.hatnote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin: var(--sp-4) 0;
  padding: 0.15rem 0 0.15rem var(--sp-4);
  border-left: 2px solid var(--rule-2);
  text-indent: -1.05rem;
  padding-left: calc(var(--sp-4) + 1.05rem);
  line-height: 1.65;
}
.hatnote a { font-style: normal; }
.hatnote--see { border-left-color: var(--teal); }
.hatnote--note { border-left-color: var(--gold); }

/* Note markers and the notes list */
sup.noteref {
  font-family: var(--sans);
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
}
sup.noteref a {
  text-decoration: none;
  padding: 0 1px;
}
sup.noteref a:hover { text-decoration: underline; }

.notes {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-2);
  counter-reset: note;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
}
.notes li {
  counter-increment: note;
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: var(--sp-3);
}
.notes li::before {
  content: counter(note) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6rem;
  text-align: right;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.notes li:target { background: var(--gold-soft); border-radius: var(--r-2); }

/* --------------------------------------------------------------------------
   13. Signature component: reference tables
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 var(--sp-5);
  border-bottom: 1px solid var(--rule);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--fs-ui);
  line-height: 1.55;
  min-width: 30rem;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  padding: 0 0 var(--sp-2);
  border-bottom: 0;
}
caption b, caption strong { color: var(--ink-2); font-weight: 700; }
thead th {
  text-align: left;
  vertical-align: bottom;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}
tbody th {
  text-align: left;
  vertical-align: top;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
tbody td {
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
tbody tr:nth-child(even) td,
tbody tr:nth-child(even) th { background: color-mix(in srgb, var(--surface) 45%, transparent); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td strong { color: var(--ink); }
.t-answer { color: var(--teal); font-weight: 700; }

/* --------------------------------------------------------------------------
   14. Glossary
   -------------------------------------------------------------------------- */
.azbar {
  font-family: var(--sans);
  font-size: var(--fs-ui);
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-2);
}
.azbar a, .azbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.35rem;
  border-radius: var(--r-2);
  text-decoration: none;
  font-weight: 600;
}
.azbar a { color: var(--link); background: var(--paper); border: 1px solid var(--rule); }
.azbar a:hover { background: var(--link); color: #fff; border-color: var(--link); }
.azbar span { color: var(--ink-4); }

.glossletter {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin: var(--sp-6) 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--teal-rule);
  scroll-margin-top: 7rem;
}
.gloss { margin: 0 0 var(--sp-5); }
.gloss dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-top: var(--sp-4);
  scroll-margin-top: 7rem;
}
.gloss dt:first-of-type { margin-top: 0; }
.gloss dt .gloss__abbr {
  font-weight: 400;
  color: var(--ink-3);
  font-size: var(--fs-ui);
}
.gloss dd {
  margin: var(--sp-2) 0 0;
  padding-left: var(--sp-4);
  border-left: 2px solid var(--rule-2);
}
.gloss dd p { margin: 0 0 var(--sp-2); }
.gloss dd p:last-child { margin: 0; }
.gloss__meta {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   15. Cards, key-value blocks, FAQ
   -------------------------------------------------------------------------- */
.cardgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-5);
  max-width: none !important;
}
@media (min-width: 34rem) { .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--sp-4);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-2); }
.card h3 {
  margin: 0 0 var(--sp-2);
  font-size: 1.0625rem;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 var(--sp-2); font-size: 1rem; color: var(--ink-2); line-height: 1.6; }
.card p:last-child { margin: 0; }
.card__more {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.qa {
  border-top: 1px solid var(--rule);
  padding: var(--sp-4) 0;
  margin: 0;
}
.qa:last-of-type { border-bottom: 1px solid var(--rule); }
.qa h3 {
  margin: 0 0 var(--sp-2);
  font-size: 1.0625rem;
}
.qa p { margin: 0 0 var(--sp-2); }
.qa p:last-child { margin: 0; }

/* Key/value quick facts strip */
.kv {
  font-family: var(--sans);
  font-size: var(--fs-ui);
  margin: 0 0 var(--sp-5);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-2);
  overflow: hidden;
}
.kv__row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--rule);
}
.kv__row:last-child { border-bottom: 0; }
@media (min-width: 30rem) { .kv__row { grid-template-columns: 12rem minmax(0, 1fr); } }
.kv__k {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--ink-2);
  padding: 0.55rem 0.8rem;
}
.kv__v { padding: 0.55rem 0.8rem; color: var(--ink); background: var(--paper); }

/* Cite-this block */
.cite-this {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px dashed var(--rule-2);
  border-radius: var(--r-2);
  padding: var(--sp-4);
  margin: var(--sp-6) 0 var(--sp-5);
  color: var(--ink-2);
  line-height: 1.65;
}
.cite-this h2 {
  font-size: var(--fs-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--sp-2);
  padding: 0;
  border: 0;
}
.cite-this q, .cite-this .cite-line {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  margin-top: var(--sp-2);
}

/* --------------------------------------------------------------------------
   16. Homepage-specific
   -------------------------------------------------------------------------- */
.frontispiece {
  border-bottom: 1px solid var(--rule-2);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}
.frontispiece__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-4) var(--sp-6);
}
.frontispiece h1 {
  font-size: var(--fs-display);
  border: 0;
  padding: 0;
  margin: 0 0 var(--sp-3);
  max-width: 20ch;
}
.frontispiece .lead { max-width: 62ch; }
.frontispiece__rule {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 0;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.frontispiece__rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule-2);
}
/* The folio text is one flex item so that it wraps as a single block on
   narrow screens instead of being squeezed beside the dateline. */
.frontispiece__folio {
  flex: 0 1 auto;
  min-width: 0;
}

.deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-6);
  max-width: none !important;
}
@media (min-width: 40rem) { .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .deck--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.entrylink {
  display: block;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule-2);
  border-radius: var(--r-2);
  padding: var(--sp-4);
  text-decoration: none;
  color: var(--ink);
  transition: border-top-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.entrylink:visited { color: var(--ink); }
.entrylink:hover {
  border-top-color: var(--teal);
  box-shadow: var(--shadow-2);
  background: var(--paper);
  color: var(--ink);
}
.entrylink__cat {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  display: block;
  margin-bottom: var(--sp-1);
}
.entrylink__t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  display: block;
  margin-bottom: var(--sp-2);
}
.entrylink__d {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   17. Pager / related
   -------------------------------------------------------------------------- */
.pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin: var(--sp-7) 0 0;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule-2);
  font-family: var(--sans);
}
@media (min-width: 40rem) { .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pager a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  text-decoration: none;
  min-height: 44px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pager a:hover { border-color: var(--teal); background: var(--surface); }
.pager__dir {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.pager__t { display: block; font-weight: 600; color: var(--link); font-size: var(--fs-ui); }
.pager__prev { text-align: left; }
.pager__next { text-align: left; }
@media (min-width: 40rem) { .pager__next { text-align: right; } }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 3px double var(--rule-2);
  background: var(--surface);
  margin-top: var(--sp-8);
  font-family: var(--sans);
  font-size: var(--fs-ui);
  color: var(--ink-2);
}
.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-4) var(--sp-5);
}
.site-footer__statement {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  color: var(--ink);
  margin: 0 0 var(--sp-2);
  max-width: 46ch;
}
.site-footer__sub {
  margin: 0 0 var(--sp-6);
  color: var(--ink-3);
  max-width: 70ch;
  line-height: 1.65;
}
.footcols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  border-top: 1px solid var(--rule-2);
  padding-top: var(--sp-5);
}
@media (min-width: 34rem) { .footcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .footcols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footcols--second { margin-top: var(--sp-5); }
.footcols h2 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-3);
  margin: 0 0 var(--sp-3);
  padding: 0 0 var(--sp-2);
  border-bottom: 1px solid var(--rule-2);
  font-weight: 700;
}
.footcols ul { list-style: none; margin: 0; padding: 0; }
.footcols li { margin-bottom: 0; }
.footcols a {
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  min-height: 44px;
  line-height: 1.5;
  color: var(--link);
}
.footcols a:visited { color: var(--link-visited); }

.site-footer__legal {
  border-top: 1px solid var(--rule-2);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: baseline;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal nav { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
}

/* --------------------------------------------------------------------------
   19. 404
   -------------------------------------------------------------------------- */
.notfound {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--sp-9) var(--sp-4);
  text-align: left;
}
.notfound__code {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 var(--sp-3);
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.wide { max-width: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.sans { font-family: var(--sans); }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   21. Print — this should print like an encyclopedia page
   -------------------------------------------------------------------------- */
@media print {
  :root {
    --paper: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #fff;
    --ink: #000; --ink-2: #1a1a1a; --ink-3: #444; --ink-4: #666;
    --rule: #bbb; --rule-2: #888; --rule-strong: #555;
    --link: #000; --link-visited: #000; --teal: #000; --teal-soft: #fff; --teal-rule: #999;
  }
  @page { margin: 18mm 16mm; }

  html { font-size: 11pt; scroll-behavior: auto; }
  body { background: #fff; color: #000; font-family: var(--serif); line-height: 1.5; }

  .masthead, .catbar, .rail, .pager, .site-footer__legal nav,
  .skip-link, .footcols, .azbar { display: none !important; }

  .shell { display: block; max-width: none; padding: 0; }
  .entry__body { display: block; }
  .entry__prose > * { max-width: none; }

  .breadcrumb { border: 0; padding: 0 0 6pt; color: #444; font-size: 9pt; }

  h1 {
    font-size: 22pt; border-bottom: 1.5pt solid #000; padding-bottom: 6pt;
    margin-bottom: 4pt;
  }
  h2 { font-size: 13pt; border-bottom: .5pt solid #999; page-break-after: avoid; margin-top: 16pt; }
  h3 { font-size: 11.5pt; page-break-after: avoid; }
  p, li, dd { orphans: 3; widows: 3; }

  .infobox {
    float: right;
    width: 62mm;
    margin: 0 0 6pt 8pt;
    border: .75pt solid #333;
    box-shadow: none;
    page-break-inside: avoid;
    font-size: 8.5pt;
  }
  .infobox__bar { background: #eee !important; color: #000; border-bottom: .75pt solid #333; }
  .infobox__rows th { background: #f4f4f4 !important; }
  .infobox__rows .is-answer td { background: #fff !important; color: #000; }
  .sidecard { display: none; }

  .contents {
    display: block; page-break-inside: avoid;
    border: .5pt solid #999; background: #fafafa !important;
  }
  .capsule { border: .75pt solid #333; border-left-width: 3pt; box-shadow: none; page-break-inside: avoid; }
  blockquote { background: none !important; border-left: 2pt solid #666; }
  .card, .entrylink { border: .5pt solid #bbb; box-shadow: none; page-break-inside: avoid; }
  .table-scroll { overflow: visible; }
  table { page-break-inside: avoid; font-size: 9pt; min-width: 0; }
  thead th { background: #eee !important; border-bottom: 1pt solid #000; }

  a { color: #000; text-decoration: underline; }
  .entry__prose a[href^="/"]::after { content: " [kingofaeo.org" attr(href) "]"; font-size: 8pt; color: #444; }
  .entry__prose a[href^="http"]::after { content: " [" attr(href) "]"; font-size: 8pt; color: #444; word-break: break-all; }
  .contents a::after, .entrylink a::after { content: none !important; }
  .entry__prose .contents a::after { content: none !important; }

  .site-footer { border-top: .75pt solid #000; background: #fff; margin-top: 14pt; }
  .site-footer__inner { padding: 8pt 0 0; }
  .site-footer__statement { font-size: 11pt; }
  .notes { font-size: 8.5pt; }
  .revision { font-size: 8pt; border-top: .5pt solid #999; page-break-inside: avoid; }
  .revision a::after { content: none !important; }
}
