@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=Archivo:wght@500;600;700&display=swap');
/* A McCoy in Hatfield Country — companion site (prototype)
   One shared stylesheet. Book-like: serif display, restrained palette. */

:root {
  --ink: #23201b;
  --ink-soft: #4c463c;
  --paper: #faf7f1;
  --paper-deep: #f1ebdf;
  --rule: #d8cfbc;
  --accent: #6e2a25;        /* deep barn red */
  --accent-soft: #8a4a42;
  --gold: #9a7b2d;
  --max: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.075rem;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-soft); }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 3px double var(--rule);
  background: var(--paper-deep);
  padding: 1.4rem 1rem 1rem;
  text-align: center;
}
.site-header .kicker {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.35rem;
}
.site-header h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: normal; margin: 0; line-height: 1.15;
}
.site-header h1 a { color: var(--ink); text-decoration: none; }
.site-header .sub { color: var(--ink-soft); font-style: italic; margin: 0.3rem 0 0; }

.main-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.1rem;
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--rule);
  font-size: 0.98rem; background: var(--paper);
}
.main-nav a { color: var(--ink-soft); text-decoration: none; padding: 0.15rem 0.1rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 1.6rem 1.1rem 3rem; }
main.wide { max-width: 62rem; }

h2 {
  font-size: 1.55rem; font-weight: normal; line-height: 1.25;
  margin: 2.1rem 0 0.7rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--rule);
}
h2:first-child { margin-top: 0.4rem; }
h3 { font-size: 1.18rem; font-weight: normal; margin: 1.6rem 0 0.5rem; color: var(--accent); }
p { margin: 0 0 1rem; }
.lede { font-size: 1.16rem; line-height: 1.6; }
.small { font-size: 0.92rem; color: var(--ink-soft); }
.credit { font-style: italic; color: var(--ink-soft); }

blockquote {
  margin: 1.2rem 0; padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--gold); color: var(--ink-soft); font-style: italic;
}

ul.notes { padding-left: 1.2rem; }
ul.notes li { margin-bottom: 0.85rem; }
.grade {
  font-variant: small-caps; letter-spacing: 0.04em; color: var(--accent);
  font-weight: bold; font-size: 0.92em;
}

/* ---------- search ---------- */
.search-box { margin: 1.4rem 0 0.6rem; }
.search-box label { display: block; font-variant: small-caps; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 0.35rem; }
.search-box input[type="search"] {
  width: 100%; font: inherit; padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink);
}
.search-results { margin-top: 1rem; }
.search-result { padding: 0.7rem 0; border-bottom: 1px dotted var(--rule); }
.search-result .where { font-size: 0.85rem; color: var(--gold); font-variant: small-caps; letter-spacing: 0.06em; }
.search-result a { font-size: 1.05rem; }
.search-result .snippet { color: var(--ink-soft); font-size: 0.96rem; margin-top: 0.15rem; }
.search-result mark { background: #f3e2a7; padding: 0 1px; }
.no-results { color: var(--ink-soft); font-style: italic; }

/* ---------- cards & figures ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.card {
  border: 1px solid var(--rule); border-radius: 6px; background: #fff;
  padding: 1rem 1.1rem;
}
.card h3 { margin-top: 0; }
.card p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 0.4rem; }

figure { margin: 1.6rem 0; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); background: #fff; padding: 4px;
}
figcaption { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.55rem; line-height: 1.5; }
figcaption .doc-title { color: var(--ink); font-variant: small-caps; letter-spacing: 0.03em; }

/* ---------- people index ---------- */
.person { border-bottom: 1px dotted var(--rule); padding: 0.75rem 0; }
.person .p-name { font-size: 1.08rem; }
.person .p-dates { color: var(--gold); font-size: 0.95rem; margin-left: 0.4rem; }
.person .p-line { color: var(--ink-soft); font-size: 0.97rem; }
.person .p-detail { font-size: 0.97rem; margin-top: 0.3rem; }

/* ---------- tree sample ---------- */
.tree { font-size: 1rem; line-height: 1.5; }
.tree ul { list-style: none; padding-left: 1.4rem; border-left: 1px solid var(--rule); margin: 0.3rem 0 0.3rem 0.4rem; }
.tree > ul { border-left: none; padding-left: 0; margin-left: 0; }
.tree li { margin: 0.3rem 0; position: relative; }
.tree .who { font-variant: small-caps; }
.tree .when { color: var(--gold); font-size: 0.92rem; }
.tree .note { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- chapters ---------- */
ol.chapters { padding-left: 1.6rem; }
ol.chapters li { margin-bottom: 0.55rem; }
ol.chapters .ch-title { font-size: 1.08rem; }
ol.chapters .ch-sub { color: var(--ink-soft); font-size: 0.95rem; display: block; }

/* ---------- corrections ---------- */
.correction {
  border: 1px solid var(--rule); border-left: 4px solid var(--accent);
  background: #fff; border-radius: 4px; padding: 1rem 1.2rem; margin: 1.2rem 0;
}
.correction .was { color: var(--ink-soft); }
.correction .now { margin-top: 0.4rem; }

.badge {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 3px; padding: 0.18rem 0.55rem;
  vertical-align: middle; margin-left: 0.5rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 3px double var(--rule); background: var(--paper-deep);
  padding: 1.4rem 1rem 2rem; text-align: center; color: var(--ink-soft); font-size: 0.93rem;
}
.site-footer p { margin: 0.25rem 0; }

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .main-nav { gap: 0.15rem 0.8rem; font-size: 0.92rem; }
}

.hero { margin: 0 0 1.5rem; }
.hero img { width: 100%; height: auto; display: block; border: 1px solid #d8cfc0; border-radius: 6px; }
.hero figcaption { font-size: 0.85rem; color: #6b6257; margin-top: 0.4rem; text-align: center; }

/* ---------- interactive tree ---------- */
.tree-app { margin: 1.4rem 0; }
.tree-controls {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: end;
  justify-content: space-between; margin-bottom: 0.8rem;
}
.tree-search { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: end; }
.tree-search label {
  display: block; width: 100%; font-variant: small-caps; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 0;
}
.tree-search input[type="search"] {
  font: inherit; padding: 0.5rem 0.7rem; min-width: 15rem;
  border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink);
}
.tree-app button {
  font: inherit; cursor: pointer; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-deep);
  padding: 0.5rem 0.85rem;
}
.tree-app button:hover { border-color: var(--accent-soft); color: var(--accent); }
.tree-zoom { display: flex; gap: 0.45rem; }
.tree-zoom button { min-width: 2.6rem; }

.tree-stage { display: flex; gap: 1rem; align-items: flex-start; }
.tree-viewport {
  flex: 1 1 auto; min-width: 0; height: 68vh; min-height: 26rem;
  overflow: hidden; position: relative; cursor: grab;
  border: 1px solid var(--rule); border-radius: 6px;
  background: #f4efe3; /* quiet and plain — the cards carry the color */
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.tree-viewport:active { cursor: grabbing; }
.tree-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#tree-lines { position: absolute; left: 0; top: 0; overflow: visible; }
#tree-lines path { stroke: #7a6a45; stroke-width: 2.5; fill: none; }
#tree-lines path.path-line { stroke: var(--accent); stroke-width: 5.5; }
#tree-nodes { position: absolute; left: 0; top: 0; }

.tnode {
  position: absolute; width: 172px; height: 74px; overflow: hidden;
  background: #fffefb; border: 2px solid #998a67; border-radius: 6px;
  padding: 0.45rem 0.5rem; text-align: center; line-height: 1.25;
  box-shadow: 0 3px 8px rgba(35, 32, 27, 0.20);
  display: flex; flex-direction: column; justify-content: center; gap: 0.12rem;
}
.tnode .tn-name { font-variant: small-caps; font-weight: bold; font-size: 1.07rem; color: var(--ink); }
.tnode .tn-years { color: #7a5f14; font-size: 0.92rem; }
.tnode:hover { border-color: var(--accent-soft); }
.tnode.selected {
  border-color: var(--accent); z-index: 2;
  box-shadow: 0 0 0 3px var(--accent), 0 5px 12px rgba(35, 32, 27, 0.28);
  transform: scale(1.07);
}

/* The houses — a thin strip of color down the card's left edge, nothing
   more. The card itself stays cream and readable for every house. */
.tnode.house-carey   { border-left: 7px solid #93392f; }
.tnode.house-mccoy   { border-left: 7px solid #9a7b2d; }
.tnode.house-hatfield { border-left: 7px solid #47617d; }
.tnode.house-vance   { border-left: 7px solid #5f7355; }
.tnode.on-path {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 42, 37, 0.55), 0 3px 8px rgba(35, 32, 27, 0.20);
}

/* "Show my line" row + the houses legend */
.tree-line-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: center;
  margin: 0 0 0.8rem;
}
#tree-line { font-weight: bold; border-color: var(--accent-soft); color: var(--accent); }
.tree-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.tree-legend .lg { display: inline-flex; align-items: center; gap: 0.35rem; }
.tree-legend .lg-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.lg-carey { background: #93392f; }
.lg-mccoy { background: #9a7b2d; }
.lg-hatfield { background: #47617d; }
.lg-vance { background: #5f7355; }
.lg-other { background: #c9bda3; }

/* The connection path, listed in words in the panel */
.path-list { margin: 0.4rem 0 0; padding-left: 1.3rem; }
.path-list li { margin: 0.35rem 0; }
.path-list .path-rel { color: var(--ink-soft); }

.tree-panel {
  flex: 0 0 17.5rem; max-width: 17.5rem;
  border: 1px solid var(--rule); border-radius: 6px; background: #fff;
  padding: 1rem 1.1rem;
}
.tree-panel .panel-kicker {
  font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.3rem;
}
.tree-panel h3 { margin: 0 0 0.15rem; font-size: 1.25rem; color: var(--ink); }
.tree-panel .panel-years { color: var(--gold); margin: 0 0 0.5rem; }
.tree-panel .panel-line { color: var(--ink-soft); font-size: 0.97rem; }
.tree-panel .rel h4 {
  font-variant: small-caps; letter-spacing: 0.06em; font-weight: normal;
  color: var(--accent); margin: 0.9rem 0 0.3rem; font-size: 1rem;
}
.tree-panel .rel ul { list-style: none; margin: 0; padding: 0; }
.tree-panel .rel li { margin: 0.18rem 0; }
.tree-panel .rel-link {
  border: none; background: none; padding: 0; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px; font-size: 0.98rem;
}
.tree-panel .rel-link:hover { color: var(--accent-soft); border: none; }
.tree-panel .panel-hint { margin-top: 1rem; }

@media (max-width: 56rem) {
  .tree-stage { flex-direction: column; }
  .tree-viewport { width: 100%; height: 60vh; }
  .tree-panel { flex: none; max-width: none; width: 100%; }
}

/* ---- site-wide dress: the front page's colors, everywhere (Nov. 2, 2026) ---- */
.site-header { background: #1f2733; border: 1px solid #141a21; border-bottom: 5px solid #8e2f23;
  border-radius: 6px; padding: 1.35rem 1.25rem 1.15rem; text-align: center; }
.site-header .kicker { color: #d9a441; letter-spacing: 0.22em; }
.site-header h1 a { color: #f5efe3; }
.site-header .sub { color: #c9cfd8; }
.main-nav a[aria-current="page"] { color: #8e2f23; border-bottom: 3px solid #8e2f23; }
.site-footer { background: #1f2733; border-radius: 6px; padding: 1rem 1.25rem; margin-top: 2.5rem; }
.site-footer p { color: #c9cfd8; }
.site-footer em { color: #f5efe3; }

/* ---------- DAZZLE PASS — typography & texture (Nov. 2, 2026) ---------- */
::selection { background: #8e2f23; color: #f5efe3; }
html { scroll-behavior: smooth; }
body { font-family: "Source Serif 4", Georgia, "Iowan Old Style", serif; }
h1, h2, h3, .site-header h1, .person .p-name, .tnode .tn-name {
  font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: 0.01em;
}
h2 { font-size: 1.85rem; font-weight: 900; border-bottom: none; position: relative; padding-bottom: 0.55rem; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 4.2rem; height: 4px; background: linear-gradient(90deg, #8e2f23 0 58%, #d9a441 58% 100%); border-radius: 2px; }
h3 { font-weight: 700; }
.kicker, .main-nav, .badge, .grade, .search-box label, .tree-search label, figcaption .doc-title {
  font-family: "Archivo", system-ui, sans-serif;
}
.main-nav { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.main-nav a { padding: 0.35rem 0.15rem; }
.lede::first-letter {
  font-family: "Fraunces", Georgia, serif; font-weight: 900; color: #8e2f23;
  float: left; font-size: 3.55em; line-height: 0.82; padding: 0.06em 0.12em 0 0;
}
.site-header, .site-header.hp {
  background: radial-gradient(120% 160% at 50% 0%, #2c3848 0%, #1f2733 52%, #161c24 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(217,164,65,0.35), inset 0 -1px 0 rgba(217,164,65,0.5), 0 8px 28px rgba(31,39,51,0.22);
}
.site-header h1, .site-header.hp h1 { text-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.site-header h1 a { letter-spacing: 0.01em; }
.card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; box-shadow: 0 2px 8px rgba(35,32,27,0.06); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(35,32,27,0.14); border-color: #b9ac97; }
figure img, .hero img { box-shadow: 0 8px 26px rgba(35,32,27,0.16); }
blockquote { position: relative; }
.search-box input[type="search"]:focus, .tree-search input[type="search"]:focus {
  outline: 3px solid rgba(217,164,65,0.55); outline-offset: 2px; border-color: #9a7b2d;
}
.hp-btn { transition: all .18s ease; font-family: "Archivo", system-ui, sans-serif; letter-spacing: 0.03em; }
.hp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(142,47,35,0.25); }
.hp-quote { position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(31,39,51,0.28); }
.hp-quote::before { content: "\201C"; position: absolute; top: -2.2rem; left: 0.7rem; font-family: "Fraunces", Georgia, serif; font-size: 9rem; color: rgba(217,164,65,0.22); line-height: 1; }
.hp-quote p { position: relative; font-family: "Fraunces", Georgia, serif; font-size: 1.28rem !important; }
.hp-strapline { text-align: center; margin: 1.5rem auto 0.25rem; max-width: 38rem; }
.hp-strapline .big { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: clamp(1.45rem, 4.2vw, 2.05rem); line-height: 1.18; margin: 0; color: #23201b; }
.hp-strapline .big em { color: #8e2f23; font-style: normal; }
.hp-strapline .orn { color: #d9a441; letter-spacing: 0.9em; margin: 0.7rem 0 0; font-size: 0.8rem; }
.hp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 1.8rem 0; border: 1px solid #d8cfbc; border-radius: 6px; overflow: hidden; background: #fff; }
.hp-stats div { padding: 1rem 0.7rem; text-align: center; border-left: 1px solid #eee4cf; }
.hp-stats div:first-child { border-left: none; }
.hp-stats .n { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.9rem; color: #8e2f23; line-height: 1; }
.hp-stats .l { display: block; margin-top: 0.4rem; font-family: "Archivo", system-ui, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #6b6257; line-height: 1.35; }
@media (max-width: 620px) { .hp-stats { grid-template-columns: repeat(2, 1fr); } .hp-stats div { border-top: 1px solid #eee4cf; } }
.hp-meet { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.4rem; align-items: center; background: #faf5ea; border: 1px solid #ddd3ba; border-radius: 6px; padding: 1.2rem 1.3rem; margin: 1.8rem 0; }
.hp-meet img { width: 100%; height: auto; display: block; border: 1px solid #998a67; outline: 4px solid #fff; outline-offset: -7px; box-shadow: 0 8px 20px rgba(35,32,27,0.22); }
.hp-meet h3 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.hp-meet .offices { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.hp-meet .offices span { font-family: "Archivo", system-ui, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f5efe3; background: #1f2733; border-radius: 999px; padding: 0.32rem 0.65rem; }
.hp-meet .offices span.red { background: #8e2f23; }
@media (max-width: 560px) { .hp-meet { grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem; } }
ol.chapters { list-style: none; padding-left: 0; counter-reset: ch; }
ol.chapters li { counter-increment: ch; position: relative; padding: 0.55rem 0 0.85rem 3.6rem; border-bottom: 1px dotted #d8cfbc; margin-bottom: 0.35rem; }
ol.chapters li::before { content: counter(ch, decimal-leading-zero); position: absolute; left: 0; top: 0.45rem; font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.25rem; color: #d9a441; background: #1f2733; border-radius: 50%; width: 2.45rem; height: 2.45rem; display: flex; align-items: center; justify-content: center; }
ol.chapters .ch-title { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.18rem; }
.ch-strapline { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.22rem; color: #6e2a25; margin: -0.25rem 0 1rem; }

/* ---------- TREE VIEWPORT FIX (Larry, Nov. 2, 2026) ----------
   The tree window was a narrow box beside a panel: on an iPad you could
   see three names at a readable size, or the whole family at an unreadable
   one. Now: the stage is full-width, the panel lives BELOW the tree, the
   window is most of the screen tall, and Full screen / Fit all / an
   Overview map (bottom-right) keep you oriented at any zoom. */
main.wide { max-width: 88rem; }
.tree-stage { flex-direction: column; }
.tree-viewport { width: 100%; height: 82vh; min-height: 34rem; flex: none; }
.tree-panel { flex: none; max-width: none; width: 100%; }
.tree-panel .rel { display: inline-block; vertical-align: top; margin-right: 2.2rem; min-width: 9rem; }
.tree-app:fullscreen { background: var(--paper); padding: 0.8rem; overflow: auto; }
.tree-app:fullscreen .tree-viewport { height: calc(100vh - 11.5rem); min-height: 0; }
.tree-app.expanded .tree-viewport { height: 94vh; }
.tree-minimap-wrap {
  position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 6;
  background: #fffdf8; border: 2px solid #998a67; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(35,32,27,0.30); padding: 4px 4px 2px;
  text-align: center; cursor: pointer; touch-action: manipulation;
}
.tree-minimap-wrap canvas { display: block; width: 192px; height: 128px; }
.tree-minimap-wrap span {
  display: block; font-family: "Archivo", system-ui, sans-serif; font-size: 0.62rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6257; padding: 2px 0 3px;
}
@media (max-width: 620px) {
  .tree-minimap-wrap canvas { width: 132px; height: 88px; }
  .tree-viewport { height: 76vh; min-height: 28rem; }
}
.tree-depth { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.tree-depth .lbl { font-family: "Archivo", system-ui, sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.tree-depth button.on { background: #8e2f23; border-color: #8e2f23; color: #f5efe3; font-weight: 700; }
#zoom-fit, #tree-full { font-weight: 700; border-color: #998a67; }


/* ---------- sectioning kit (2026-11-02): bands, edges, sticky jump bars ---------- */
.jumpbar { position: sticky; top: 0; z-index: 20; background: #1f2733; border-radius: 6px;
  padding: 0.55rem 0.9rem; margin: 1rem 0 1.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem;
  box-shadow: 0 8px 20px rgba(31,39,51,0.22); }
.jumpbar .jb-label { color: #d9a441; font-family: Archivo, system-ui, sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; align-self: center; }
.jumpbar a { color: #f5efe3; font-weight: 700; text-decoration: none; }
.jumpbar a:hover { text-decoration: underline; }
figure.doc-card, main figure.doc-card { background: #fff; border: 1px solid #d8cfbc; border-radius: 8px;
  padding: 1rem 1.1rem; box-shadow: 0 10px 24px rgba(35,32,27,0.09); }
.search-box { position: sticky; top: 0; z-index: 15; background: #f5efe3; padding: 0.7rem 0.2rem;
  border-bottom: 2px solid #8e2f23; }
#people-list .person { background: #fff; border: 1px solid #e4dbc6; border-radius: 8px;
  padding: 0.85rem 1.05rem; margin: 0 0 0.7rem; box-shadow: 0 5px 14px rgba(35,32,27,0.05); }
#people-list .person:nth-child(even) { background: #fbf7ec; }
ol.chapters li { background: #fff; border: 1px solid #e4dbc6; border-radius: 8px;
  padding: 0.9rem 1.05rem 0.9rem 3.6rem; box-shadow: 0 5px 14px rgba(35,32,27,0.05); }
section.plate { border: 1px solid #e4dbc6; border-radius: 8px; padding: 1.1rem 1.2rem;
  margin: 0 0 1.3rem; background: #fdfaf2; box-shadow: 0 8px 20px rgba(35,32,27,0.06); }
section.plate:nth-of-type(even) { background: #ffffff; }

/* ---------- nav rebuild (2026-11-02): sticky ink bar, tidy wrapped pill tabs ---------- */
.main-nav { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.28rem; padding: 0.5rem 0.7rem;
  background: #1f2733; border-bottom: 3px solid #8e2f23; font-size: 0.88rem; }
.main-nav a { white-space: nowrap; color: #e9e2d2; text-decoration: none;
  padding: 0.26rem 0.5rem; border-radius: 999px; border: 1px solid rgba(233,226,210,0.28);
  background: rgba(255,255,255,0.04); }
.main-nav a:hover { background: rgba(217,164,65,0.18); color: #ffffff; }
.jumpbar { top: 3.4rem; }
.search-box { top: 3.4rem; }
