:root {
  --ink: #1f2a29;
  --ink-soft: #4a5654;
  --paper: #fbf8f2;
  --sand: #efe6d6;
  --sand-deep: #e2d5bd;
  --teal: #0f5c55;
  --teal-dark: #0a403b;
  --rust: #a8431c;
  --rule: #d9cdb6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--rust); }
img { max-width: 100%; height: auto; }

.masthead { background: var(--paper); border-bottom: 3px double var(--rule); }
.masthead__inner { max-width: 1120px; margin: 0 auto; padding: 18px 16px 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.masthead__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.masthead__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--paper); font: italic 700 18px/1 var(--serif); }
.masthead__name { font: 700 25px/1.1 var(--serif); letter-spacing: -0.01em; }
.masthead__name em { color: var(--rust); font-style: italic; }
.masthead__tag { margin: 0; color: var(--ink-soft); font: italic 15px/1.4 var(--serif); }
.sections { background: var(--teal); }
.sections__list { max-width: 1120px; margin: 0 auto; padding: 0 8px; list-style: none; display: flex; overflow-x: auto; scrollbar-width: none; }
.sections__item { flex: none; }
.sections__link { display: block; padding: 11px 12px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.sections__link:hover, .sections__link--current { color: #fff; background: var(--teal-dark); box-shadow: inset 0 -3px 0 #f0b48f; }

.layout { max-width: 820px; margin: 0 auto; padding: 0 16px 48px; }
.layout--wide { max-width: 1120px; }
.trail__list { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--ink-soft); }
.trail__step + .trail__step::before { content: "/"; margin-right: 6px; color: var(--rule); }
.article__head { padding: 18px 0 14px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.article__title { font: 700 clamp(30px, 5vw, 44px)/1.12 var(--serif); margin: 0 0 12px; letter-spacing: -0.015em; }
.article__byline { margin: 0; font-size: 14px; color: var(--ink-soft); }
.article__grid { display: block; }
.contents__box { background: var(--sand); border-left: 4px solid var(--rust); padding: 12px 16px; margin-bottom: 22px; }
.contents__title { cursor: pointer; font: 700 16px var(--serif); }
.contents__list { margin: 8px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.contents__list li { margin: 5px 0; }
@media (min-width: 980px) {
  .article__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; }
  .contents { position: relative; }
  .contents__box { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
  .layout--wide .article__head { max-width: 820px; margin-left: 294px; }
  .layout--wide .trail { margin-left: 294px; }
}

.prose { max-width: 760px; }
.prose h2 { font: 700 28px/1.2 var(--serif); margin: 40px 0 12px; padding-top: 10px; border-top: 1px solid var(--rule); scroll-margin-top: 12px; }
.prose h3 { font: 700 21px/1.3 var(--serif); margin: 28px 0 8px; color: var(--teal-dark); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; background: var(--sand); border-radius: 2px; border-left: 4px solid var(--teal); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { color: #111; }

.tablewrap { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--rule); background: #fff; }
.ledger-table, .ranking { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.ledger-table th, .ranking th { background: var(--sand-deep); text-align: left; padding: 9px 10px; font-family: var(--serif); font-size: 15px; vertical-align: bottom; }
.ledger-table td, .ranking td { padding: 9px 10px; border-top: 1px solid var(--rule); vertical-align: top; }
.ledger-table tbody tr:nth-child(even) { background: #faf6ee; }
.ranking__pos { font: 700 22px/1 var(--serif); color: var(--rust); text-align: center; width: 44px; }
.ranking__name { font-weight: 700; white-space: nowrap; }
.ranking__go { display: inline-block; margin-top: 6px; padding: 5px 10px; background: var(--rust); color: #fff; border-radius: 3px; font-size: 13px; text-decoration: none; }
.ranking__go:hover { background: var(--teal-dark); color: #fff; }
.ranking tbody tr:first-child { background: #f3eadb; }

.plate { margin: 22px 0; }
.plate img { display: block; border: 1px solid var(--rule); }
.plate__caption { font: italic 14px/1.4 var(--serif); color: var(--ink-soft); margin-top: 6px; }
.plate--frame { position: relative; aspect-ratio: 16 / 9; }
.plate--frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.draft-flag { background: #ffe94d; color: #1a1a1a; padding: 0 3px; border-radius: 2px; box-shadow: 0 0 0 1px #d6b800; font-size: 0.92em; }

.colophon { background: var(--ink); color: #e9e3d6; margin-top: 30px; }
.colophon__inner { max-width: 1120px; margin: 0 auto; padding: 32px 16px 24px; }
.colophon a { color: #f4cfb6; }
.colophon__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; padding-bottom: 22px; border-bottom: 1px solid #3c4846; }
.colophon__head { font: 700 16px var(--serif); margin: 0 0 8px; color: #fff; }
.colophon__cols ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.9; }
.colophon__age { font-size: 14px; margin: 18px 0 8px; }
.colophon__age a { margin-left: 8px; }
.colophon__badge { display: inline-block; border: 2px solid #f4cfb6; border-radius: 50%; width: 34px; height: 34px; line-height: 30px; text-align: center; font-weight: 700; margin-right: 8px; }
.colophon__copy { font-size: 13px; color: #b9b2a3; margin: 0; }

/* team photos */
.by-photo{width:32px;height:32px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:.45em}
.team{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin:1rem 0 1.5rem}
.team-card{display:flex;gap:.9rem;align-items:flex-start;margin:0}
.team-card img{width:96px;height:96px;border-radius:50%;object-fit:cover;flex:none}
.team-card figcaption{display:flex;flex-direction:column;gap:.2rem}
.team-card figcaption span:nth-child(2){font-size:.9em;opacity:.75}

.article-count{font-size:.9rem;opacity:.8;margin:1.2rem 0 .4rem}
.article-list{list-style:none;padding:0;margin:0;border-top:1px solid rgba(128,128,128,.25)}
.article-list li{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;
  padding:.55rem 0;border-bottom:1px solid rgba(128,128,128,.25)}
.article-list time{font-size:.82rem;opacity:.7;white-space:nowrap}
@media(max-width:640px){.article-list li{flex-direction:column;gap:.15rem}
  .article-list a{display:flex;align-items:center;min-height:44px}}

.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin:1.4rem 0;padding:0}
.stats div{border:1px solid rgba(128,128,128,.28);border-radius:8px;padding:.65rem .8rem;margin:0}
.stats dt{font-size:.74rem;text-transform:uppercase;letter-spacing:.04em;opacity:.68;margin:0}
.stats dd{margin:.2rem 0 0;font-weight:600;line-height:1.3}

/* Phone tap targets, added after the 2026-11-18 mobile audit. The ranked table's visit
   button measured 29px tall at 390px wide, well under the 44px floor, and it is the one
   control on the page that has to be easy to hit. Desktop layout is untouched. */
@media (max-width: 640px) {
  .ranking__go { display: inline-flex; align-items: center; justify-content: center;
                 min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .masthead__brand { display: inline-flex; align-items: center; min-height: 44px; }
  .colophon__cols ul { line-height: 1; }
  .colophon__cols li a, .contents__list a { display: flex; align-items: center; min-height: 44px; }
  .article__extra a { display: inline-flex; align-items: center; min-height: 44px; }
}
