/* Track Trans Hate: site styles. Tokens match the graphics ("tracker" dark theme, "editorial" light theme). */
@font-face { font-family: "Anton"; src: url("../fonts/Anton-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 400; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: italic; src: url("../fonts/Inter-Italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 500; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 600; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 700; src: url("../fonts/Inter-Bold.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --paper: #0b0b0d; --paper2: #1a0508; --sheet: #17171b; --sheet2: #232329; --ink: #f4f4f6; --muted: #b9b9c0; --rule: #34343c;
  --accent: #e3182d; --accent-ink: #ffffff; --link: #7fc1ee; --hover: #202026; --focus: #f2b134;
  --post: #4aa3df; --reply: #c77dff; --quote: #ff6b81; --repost: #6f7480; --event: #f2b134;
  --sev0: #5d6068; --sev1: #f2b134; --sev2: #ff7a45; --sev3: #e3182d; --sev4: #e0559a; --sev5: #c77dff;
  --person: #4aa3df; --org: #c77dff;
  --c-blue: #4aa3df; --c-rose: #ff5a6e; --c-purple: #c77dff; --c-gold: #f2b134; --c-amber: #d9c26a; --c-green: #7bd389;
  --c-orange: #ff7a45; --c-slate: #8a8f9c; --c-grey: #8a8f9c; --c-brick: #e3182d; --c-fam: #5b86c4; --c-famink: #cfe0f7;
  --good: #7bd389; --shadow: 0 6px 22px rgba(0,0,0,.5);
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f4f6f9; --paper2: #e6ebf2; --sheet: #ffffff; --sheet2: #e9edf3; --ink: #0f2440; --muted: #4a5d78; --rule: #cfd7e2;
  --accent: #c8261c; --accent-ink: #ffffff; --link: #0b5cab; --hover: #eef2f7; --focus: #0b5cab;
  --post: #0b5cab; --reply: #7461a8; --quote: #c2547a; --repost: #a9b3bd; --event: #8a5a12;
  --sev0: #b8c2cc; --sev1: #e0a24e; --sev2: #d9764a; --sev3: #c8261c; --sev4: #9e3b6e; --sev5: #6b2c5a;
  --person: #0b5cab; --org: #7461a8;
  --c-blue: #0b5cab; --c-rose: #c2547a; --c-purple: #7461a8; --c-gold: #a9741c; --c-amber: #b8941f; --c-green: #2f8f6b;
  --c-orange: #d9764a; --c-slate: #5e6b78; --c-grey: #8a94a0; --c-brick: #b24a3a; --c-fam: #3d5a80; --c-famink: #1f3552;
  --good: #2f8f6b; --shadow: 0 6px 22px rgba(15,36,64,.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
button, input, select { font: inherit; color: inherit; }

.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; }
.rail { border-right: 1px solid var(--rule); padding: 22px 0 18px; position: sticky; top: 0;
        height: 100vh; display: flex; flex-direction: column; }
.brand { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; padding: 0 20px 18px; }
.rail a { display: block; padding: 7px 20px 7px 17px; border-left: 3px solid transparent;
          color: var(--muted); text-decoration: none; }
.rail a:hover { color: var(--ink); background: var(--hover); }
.rail a[aria-current="page"] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.rail-group { font-size: 12px; color: var(--muted); padding: 14px 20px 4px; font-weight: 600; }
.filters[hidden] { display: none; }
.badge { font-size: 11.5px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; white-space: nowrap;
         border: 1px solid var(--rule); color: var(--muted); }
.badge.good { border-color: var(--good); color: var(--good); }
.badge.warn { border-color: var(--event); color: var(--event); }
.support { border-left: 3px solid var(--accent); background: var(--sheet); padding: 10px 14px; margin: 18px 0;
           max-width: 70ch; font-size: 14px; }
.support ul { margin: 6px 0 0; padding-left: 20px; }
.md { max-width: 80ch; }
.md > :first-child { margin-top: 0; }
.md h2 { font-size: 19px; } .md h3 { font-size: 16px; margin: 22px 0 6px; } .md h4 { font-size: 15px; margin: 16px 0 4px; }
.md table { margin: 10px 0; } .md code { font-size: 13px; background: var(--hover); padding: 0 4px; border-radius: 3px; }
.md ul, .md ol { padding-left: 22px; } .md li { margin: 3px 0; }
.scroll-x { overflow-x: auto; }
.profile-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-list button { display: block; width: 100%; text-align: left; background: none; border: 0;
                       border-left: 3px solid transparent; padding: 6px 10px; cursor: pointer; color: var(--muted); }
.profile-list button[aria-current="true"] { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }
.profile-list button:hover { background: var(--hover); color: var(--ink); }
.post .codes { display: inline-flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.post .protected { font-size: 13px; color: var(--event); }
.rail-foot { margin-top: auto; padding: 0 20px; font-size: 12px; color: var(--muted); line-height: 1.45; }

main { padding: 0 32px 48px; min-width: 0; }
.filters { position: sticky; top: 0; z-index: 5; background: var(--paper);
           display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: end;
           padding: 16px 0 14px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.filters label { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.filters input[type=date], .filters input[type=text], .ctl input, .ctl select {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 5px; padding: 5px 8px; }
.filters input[type=text] { width: 230px; }
.types { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters .type-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
               border: 1px solid var(--rule); border-radius: 5px; background: var(--sheet);
               font-size: 13px; color: var(--ink); cursor: pointer; }
.type-toggle input { margin: 0; accent-color: var(--accent); }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.btn { border: 1px solid var(--rule); background: var(--sheet); border-radius: 5px;
       padding: 6px 14px; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn:hover { filter: brightness(0.97); }
.chip { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; padding: 5px 10px;
        border-radius: 5px; background: var(--sheet); border: 1px dashed var(--accent); }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; }

h1 { font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -0.02em;
     margin: 0 0 6px; max-width: 40ch; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin: 34px 0 10px; }
.lede { color: var(--muted); margin: 0 0 20px; max-width: 75ch; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; }
.chart { width: 100%; min-height: 120px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted);
          margin: 0 0 8px; align-items: center; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.ctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin: 0 0 16px; }
.ctl label { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.ctl .inline { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.note { font-size: 13px; color: var(--muted); max-width: 80ch; }
.error { border-left: 3px solid var(--quote); padding: 10px 14px; background: var(--sheet); max-width: 80ch; }
.loading { color: var(--muted); padding: 30px 0; }

table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--rule);
     padding: 7px 10px; white-space: nowrap; position: sticky; top: 0; background: var(--sheet); }
th[data-sort] { cursor: pointer; }
th[data-sort]:hover { color: var(--ink); }
td { padding: 6px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num, th.num { text-align: right; }
tr:hover td { background: var(--hover); }
.table-wrap { overflow: auto; max-height: 640px; border: 1px solid var(--rule); border-radius: 6px;
              background: var(--sheet); }
.excerpt { max-width: 60ch; }
.tag { font-size: 12px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--rule); white-space: nowrap; }
.tag.flag { border-color: var(--event); color: var(--event); }

.post { padding: 14px 0; border-bottom: 1px solid var(--rule); max-width: 78ch; }
.post header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13.5px; }
.post .who { font-weight: 600; }
.post time, .post .eng { color: var(--muted); }
.post .eng { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.post p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post .ctx { font-size: 13.5px; color: var(--muted); }
.post blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid var(--quote);
                   color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumbs img { height: 120px; border-radius: 4px; border: 1px solid var(--rule); background: var(--hover); }
.pager { display: flex; gap: 12px; align-items: center; margin: 16px 0; }

.graph-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.graph { height: 600px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }
.panel { font-size: 13.5px; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; }
.panel .btn { text-decoration: none; display: inline-block; }
.tielist { list-style: none; margin: 0; padding: 0; }
.tielist li { padding: 7px 0; border-top: 1px solid var(--rule); }
.tielist li.dim { opacity: 0.55; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; text-align: left; }
.legend label.inline { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }

details.cluster { border-bottom: 1px solid var(--rule); padding: 12px 0; max-width: 90ch; }
details.cluster summary { cursor: pointer; }
details.cluster .first { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 4px; }
details.cluster ol { margin: 8px 0 0; padding-left: 22px; font-size: 13.5px; }

.events-table input { width: 100%; background: transparent; border: 1px solid transparent;
                      border-radius: 4px; padding: 4px 6px; }
.events-table input:hover { border-color: var(--rule); }
.events-table input:focus { border-color: var(--accent); background: var(--sheet); outline: none; }

.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--paper);
       font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-radius: 5px; max-width: 320px; }
svg text { fill: var(--muted); font-size: 11.5px; font-family: inherit; }
svg .axis path, svg .axis line { stroke: var(--rule); }
svg .grid line { stroke: var(--rule); stroke-opacity: 0.6; }
svg .hit { fill: transparent; cursor: pointer; }
svg .hit:hover { fill: var(--ink); fill-opacity: 0.06; }

.ta { position: relative; display: inline-block; }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; max-height: 280px; overflow: auto;
           background: var(--sheet); border: 1px solid var(--rule); border-radius: 5px; box-shadow: 0 4px 14px rgba(0,0,0,0.18); min-width: 280px; }
.suggest li { padding: 5px 9px; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.suggest li .note { display: block; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--hover); }
.seggrp { display: inline-flex; gap: 0; align-items: center; flex-wrap: wrap; }
.seggrp .note { margin-right: 8px; }
.btn.seg { border-radius: 0; margin-left: -1px; padding: 5px 11px; }
.btn.seg:first-of-type { border-radius: 5px 0 0 5px; margin-left: 0; }
.btn.seg:last-of-type { border-radius: 0 5px 5px 0; }
.btn.seg[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ent-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
tr.sel td { background: var(--hover); }
.pathlist { padding-left: 22px; } .pathlist li { margin: 8px 0; }
.ctl output { color: var(--ink); font-weight: 600; margin-left: 2px; }

/* ---------- profile pages */
.prof { max-width: 90ch; }
.prof-head { display: flex; gap: 20px; align-items: flex-start; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 8px; padding: 18px 20px; margin-bottom: 14px; }
.prof-fig { margin: 0; flex: 0 0 170px; max-width: 170px; }
.prof-fig img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--hover); }
.prof-fig figcaption { font-size: 11px; line-height: 1.35; color: var(--muted); margin-top: 5px; }
.prof-id { min-width: 0; flex: 1; }
.prof-id h1 { margin: 0 0 4px; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.prof-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.prof-handle { font-weight: 600; color: var(--ink); }
.prof-type { font-size: 12px; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 10px; text-transform: capitalize; }
.prof-revised { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.prof-intro { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.prof-intro p { margin: 6px 0; }
.prof-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px;
  padding: 4px 20px 12px; margin-bottom: 12px; }
.prof-card h2 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -0.005em; }
.prof-card summary { cursor: pointer; }
.prof-card summary h2 { display: inline; }
.prof-body h3, .prof-body h4, .prof-body h5 { font-size: 15px; margin: 16px 0 4px; }
.prof-body p { margin: 8px 0; }
.prof-body ul, .prof-body ol { padding-left: 22px; margin: 6px 0; }
.prof-body li { margin: 4px 0; }
.prof-body code { font-size: 13px; background: var(--hover); padding: 0 4px; border-radius: 3px; }
.prof-body pre { background: var(--hover); padding: 8px 10px; border-radius: 4px; overflow-x: auto; }
.prof-body blockquote { margin: 8px 0; padding: 2px 12px; border-left: 3px solid var(--rule); color: var(--muted); }
.prof-body .src { color: var(--muted); font-size: 0.88em; }
.prof-body a { overflow-wrap: anywhere; }
.prof-body hr { border: 0; border-top: 1px solid var(--rule); }
.prof-table { overflow-x: auto; margin: 8px 0; }
.prof-table table { border-collapse: collapse; font-size: 13.5px; }
.prof-table th, .prof-table td { border: 1px solid var(--rule); padding: 4px 8px; text-align: left; vertical-align: top; }
.prof-open { font-size: 13px; margin: 0 0 8px; }
@media (max-width: 640px) { .prof-head { flex-direction: column; } .prof-fig { flex-basis: auto; max-width: 220px; } }

/* ---------- site shell */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); font-size: 15.5px; }
h1, .display { font-family: "Anton", "Barlow Condensed", Impact, sans-serif; font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; max-width: 24ch; margin: 0 0 10px; }
h2 { font-family: "Barlow Condensed", "Inter", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: .01em; margin: 36px 0 10px; }
.md h2 { font-size: 23px; } .md h3 { font-size: 17px; } .lede { font-size: 16.5px; }
.kicker { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 700 14px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px 5px; border-radius: 3px; margin: 0 0 14px; }
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { background: linear-gradient(180deg, var(--paper2), var(--paper) 240px); border-right: 1px solid var(--rule); padding: 20px 0 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: block; padding: 0 20px 16px; text-decoration: none; color: var(--ink); }
.brand b { display: block; font: 400 25px/1.02 "Anton", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.brand b span { color: var(--accent); }
.brand small { display: block; margin-top: 7px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.rail a.nav { display: block; padding: 7px 20px 7px 17px; border-left: 3px solid transparent; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.rail a.nav:hover { color: var(--ink); background: var(--hover); }
.rail a.nav[aria-current="page"] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; background: var(--hover); }
.rail-group { font: 700 12.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 18px 20px 6px; }
.rail-foot { margin-top: auto; padding: 16px 20px 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.rail-foot button { margin-top: 8px; font-size: 12px; padding: 4px 9px; }
.menu-btn { display: none; }
main { padding: 34px 40px 0; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
#view { flex: 1; min-width: 0; }
.btn { transition: background .12s, border-color .12s; } .btn:hover { filter: none; border-color: var(--muted); }
.btn.primary { color: var(--accent-ink); } .btn.seg[aria-pressed="true"] { color: var(--accent-ink); }
.btn:disabled { opacity: .45; cursor: default; }
input, select, textarea { background: var(--sheet); border: 1px solid var(--rule); border-radius: 5px; padding: 5px 8px; color: var(--ink); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); padding: 0; }
.tip { background: var(--sheet2); color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.suggest { box-shadow: var(--shadow); }
th { background: var(--sheet2); z-index: 1; }
.sheet, .table-wrap, .graph { border-radius: 8px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--sheet); padding: 8px 12px; }

/* ---------- footer */
.foot { margin: 56px -40px 0; padding: 26px 40px 34px; border-top: 1px solid var(--rule); background: var(--sheet); color: var(--muted); font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 36px; max-width: 1100px; }
.foot h3 { font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.foot p { margin: 0 0 6px; } .foot ul { list-style: none; margin: 0; padding: 0; } .foot li { margin: 3px 0; }

/* ---------- home */
.hero { padding: 6px 0 8px; max-width: 980px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); max-width: 14ch; line-height: .98; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 18.5px; color: var(--ink); max-width: 62ch; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 26px 0 8px; }
.stat { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px 12px; }
.stat b { display: block; font: 400 34px/1 "Anton", sans-serif; letter-spacing: .01em; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.card { display: block; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 8px;
  padding: 15px 17px 14px; color: var(--ink); text-decoration: none; transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-2px); border-color: var(--muted); border-left-color: var(--accent); }
.card h3 { font: 700 21px/1.15 "Barlow Condensed", sans-serif; margin: 0 0 5px; letter-spacing: .01em; }
.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.callout { border-left: 4px solid var(--c-gold); background: var(--sheet); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 18px 0; max-width: 80ch; }
.prose { max-width: 74ch; } .prose p, .prose li { line-height: 1.65; }

/* ---------- posts */
.post { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 13px 16px 11px; margin: 0 0 12px; max-width: 74ch; }
.post header { align-items: center; }
.post .who { font-weight: 700; color: var(--ink); text-decoration: none; } .post .who:hover { text-decoration: underline; }
.post p { margin: 8px 0; line-height: 1.5; }
.post .body { font-size: 15.5px; }
.post blockquote { border: 1px solid var(--rule); border-left: 3px solid var(--quote); border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 8px 0; }
.post .codes { margin-top: 6px; align-items: center; }
.post .tag.sev { color: #111; font-weight: 700; border: 0; }
.post footer { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.post.withheld { border-style: dashed; }
.post .protected { margin: 8px 0 2px; }
.pc-item { list-style: none; margin: 14px 0 18px -22px !important; }
.pc-item .post { margin-bottom: 8px; max-width: none; }
.pc-meta, .pc-note, .pc-corr { margin: 6px 0 0 !important; font-size: 14px; }
.pc-meta { color: var(--muted); font-size: 13px; }
.pc-k { display: inline-block; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.pc-corr { border-left: 3px solid var(--good); padding: 6px 10px; background: var(--hover); border-radius: 0 6px 6px 0; }
.pc-corr .pc-k { color: var(--good); }
a.postref { white-space: nowrap; border-bottom: 1px dashed var(--link); text-decoration: none; }
.postref-card { display: block; margin: 8px 0; }

/* ---------- profiles */
.profile-wrap { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
.profile-side { position: sticky; top: 14px; max-height: calc(100vh - 28px); display: flex; flex-direction: column; }
.profile-list { overflow-y: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); flex: 1; min-height: 0; }
.profile-list button { padding: 7px 12px; font-size: 14px; border-bottom: 1px solid var(--rule); }
.profile-list button[hidden] { display: none; }
.prof-head { border-top: 4px solid var(--accent); }
.prof-id h1 { font-size: clamp(26px, 3.4vw, 38px); max-width: none; }
.prof-card h2 { font-size: 21px; margin: 14px 0 6px; }
.prof-card summary { list-style-position: outside; }

/* ---------- citations */
.cite { font: 600 11.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--rule);
  color: var(--ink); background: var(--sheet2); text-decoration: none; white-space: nowrap; display: inline-block; margin: 1px 4px 1px 0; }
a.cite:hover { border-color: var(--accent); }
tr.hl td { background: var(--hover); box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- network pages: fill the window, never overflow it */
.graph { height: clamp(420px, calc(100vh - 300px), 900px); }
.graph-wrap { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
.graph-wrap > .panel, .ent-grid > .panel { max-height: clamp(420px, calc(100vh - 300px), 900px); overflow-y: auto; }
.ent-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); }
.ctl { row-gap: 12px; } .ctl label { min-width: 0; } .ctl select, .ctl input[type=text], .ctl input[type=search] { max-width: 100%; }
.legend { row-gap: 8px; }
.table-wrap table { min-width: 640px; }
svg { max-width: 100%; }

@media (max-width: 1100px) {
  .graph-wrap, .ent-grid { grid-template-columns: 1fr; }
  .graph-wrap > .panel, .ent-grid > .panel { max-height: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; z-index: 40; height: auto; max-height: 100vh; padding: 10px 0 0; border-right: 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
  .brand { padding: 0 60px 10px 16px; } .brand small { display: none; } .brand b { font-size: 21px; }
  .menu-btn { display: block; position: absolute; right: 12px; top: 8px; padding: 6px 11px; }
  .rail .nav-body { display: none; padding-bottom: 12px; } .rail.open .nav-body { display: block; }
  main { padding: 22px 16px 0; }
  .foot { margin: 40px -16px 0; padding: 22px 16px 28px; }
  .profile-wrap { grid-template-columns: 1fr; }
  .profile-side { position: static; max-height: 300px; }
  .cols { grid-template-columns: 1fr; }
  .graph { height: 70vh; min-height: 380px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .rail, .foot, .ctl, .pager { display: none !important; } .app { display: block; } body { background: #fff; color: #000; } }

.ctl label.type-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--rule); border-radius: 5px; background: var(--sheet); font-size: 13px; color: var(--ink); cursor: pointer; }
.ctl .types { align-self: end; }

/* ---------- network pages (polish): Ties network, Funding flows, Entity explorer */
.net-lede { margin-bottom: 14px; }
.net-wrap { --net-h: clamp(380px, calc(100vh - 385px), 1000px); align-items: start; }
.net-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.net-find { flex: 0 1 260px; min-width: 0; }
.net-find .ta, .net-find input { width: 100% !important; }
.net-bar .seggrp { flex: 0 1 auto; }
.net-bar .btn.seg { padding: 6px 11px; font-size: 14px; }
.net-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.net-btns .btn, .btn.net-small { padding: 6px 12px; font-size: 14px; }
.net-filters { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; margin: 0 0 8px; }
.net-filters > summary { cursor: pointer; padding: 7px 12px; display: flex; align-items: baseline; gap: 10px; min-width: 0; list-style-position: inside; }
.net-filters > summary::-webkit-details-marker { margin-right: 4px; }
.net-filt-h { font: 700 15px/1.2 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); flex: none; }
.net-filtsum { font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-filters[open] > summary { border-bottom: 1px solid var(--rule); }
.net-filt-body { padding: 10px 12px 4px; }
.net-filt-body .ctl { margin-bottom: 10px; }
.net-filt-body .legend { margin-bottom: 8px; }
.net-filt-body .note { margin: 4px 0 8px; }
.net-slider input[type=range] { width: 180px; max-width: 100%; }
.net-status { font-size: 13px; color: var(--muted); margin: 0 0 8px; min-height: 1.5em; line-height: 1.5; }
.net-status .note { font-size: 13px; }
.net-crumb b { color: var(--ink); font-weight: 600; }
.net-graph-box { position: relative; min-width: 0; }
.net-wrap .net-graph { height: var(--net-h); min-height: 0; touch-action: none; }
.net-wrap > .net-panel { height: var(--net-h); max-height: none; overflow-y: auto; overscroll-behavior: contain; }
.net-panel, .ent-panel, .fund-info { overflow-wrap: anywhere; min-width: 0; }
.net-panel h2, .ent-panel h2, .fund-info h2 { overflow-wrap: anywhere; }
.net-panel .btn, .ent-panel .btn, .fund-info .btn { margin: 0 4px 6px 0; }
.net-cites { margin-top: 4px; font-size: 13px; }
.net-cites .note { margin: 0 0 4px; font-size: 12px; }
.net-key { position: absolute; left: 8px; bottom: 8px; z-index: 2; max-width: min(460px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto;
  background: var(--sheet); background: color-mix(in srgb, var(--sheet) 92%, transparent); border: 1px solid var(--rule); border-radius: 6px; font-size: 12px; color: var(--ink); box-shadow: var(--shadow); }
.net-key > summary { cursor: pointer; padding: 4px 10px; font-weight: 600; color: var(--muted); }
.net-key[open] > summary { padding-bottom: 2px; }
.net-key-body { padding: 0 10px 8px; display: grid; gap: 5px; }
.net-key-row { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.net-key-row span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.net-key .note { font-size: 11.5px; margin: 0; max-width: none; }
.net-line { display: inline-block; width: 22px; height: 0; flex: none; }
.ctl > label { max-width: 100%; }
.net-filt-body .ctl > label > select, .ent-bar > label > select, .ent-bar > label > input, .fund-bar > label > select { min-width: 0; max-width: 100%; }
.ent-bar select { max-width: 290px !important; }
.net-filt-body select, .ent-bar select, .fund-bar select {   /* one look in every engine (WebKit draws a taller grey native menu otherwise) */
  -webkit-appearance: none; -moz-appearance: none; appearance: none; height: 32px; line-height: 1.2; padding: 4px 28px 4px 9px; cursor: pointer;
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8f9c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.ent-bar input[type=search], .net-find input { height: 32px; }
.ent-bar > .inline { align-self: end; padding-bottom: 6px; }
.ent-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
@media (min-width: 1700px) { .ent-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); } }

.ent-path { margin: 0 0 14px; padding: 10px 16px; }
.ent-path > summary { cursor: pointer; }
.ent-path > summary h2 { display: inline; font-size: 20px; margin: 0; }
.ent-path[open] > summary { margin-bottom: 10px; }
.ent-path .ta, .ent-path .ta input { max-width: 100%; }
.ent-bar { margin-bottom: 8px; }
.ent-grid > .ent-table { max-height: clamp(360px, calc(100vh - 140px), 1000px); }
.ent-grid > .ent-panel { position: sticky; top: 12px; max-height: clamp(360px, calc(100vh - 140px), 1000px); overflow-y: auto; overscroll-behavior: contain; }
.ent-table td.ent-name { min-width: 12em; max-width: 26em; overflow-wrap: anywhere; }
.ent-table th { z-index: 2; }

.fund-bar { margin-bottom: 10px; }
.fund-key { font-size: 12.5px; margin-bottom: 10px; }
.fund-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 8px; align-items: start; }
.fund-chart { overflow-x: auto; padding: 8px; min-width: 0; -webkit-overflow-scrolling: touch; }
.fund-chart svg { max-width: none; display: block; }
.fund-chart .fund-labels text { fill: var(--ink); font-size: inherit; font-family: inherit; }
.fund-chart path:focus-visible, .fund-chart rect:focus-visible { outline: none; stroke: var(--focus); stroke-width: 2px; }
.fund-scroll { margin: 0 0 6px; }
@media (min-width: 1700px) {
  .fund-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .fund-info { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
}
@media (max-width: 1100px) {
  .net-wrap > .net-panel { height: auto; max-height: none; }
  .ent-grid > .ent-panel { position: static; max-height: none; }
  .ent-grid { grid-template-columns: minmax(0, 1fr); }
  .net-btns { margin-left: 0; }
}
@media (max-width: 900px) {
  .net-wrap { --net-h: clamp(340px, 62vh, 640px); }
  .net-find { flex: 1 1 100%; }
  .net-bar .btn.seg, .net-btns .btn { padding: 6px 9px; font-size: 13.5px; }
  .net-key { font-size: 11.5px; }
}
@media (max-width: 480px) {
  .net-bar .btn.seg { padding: 6px 8px; font-size: 13px; }
  .net-filtsum { display: none; }
  .net-bar .btn.seg { flex: 1 1 auto; }
  .net-lede { font-size: 15px; }
}

.md, .prose, .prof-body { overflow-wrap: anywhere; }
.md a { overflow-wrap: anywhere; word-break: break-word; }

.brand-mark { display: block; width: 44px; height: 44px; border-radius: 9px; margin: 0 0 10px; }
@media (max-width: 900px) { .brand-mark { display: inline-block; width: 26px; height: 26px; margin: 0 8px 0 0; vertical-align: middle; border-radius: 6px; } .brand b { display: inline-block; vertical-align: middle; } }

/* ---------- get involved, social links */
.social { list-style: none; margin: 0; padding: 0; } .social li { margin: 3px 0; }
.social a { text-decoration: none; } .social a:hover { text-decoration: underline; } .social b { color: var(--ink); font-weight: 600; }
.social.big { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 20px; }
.social.big li { margin: 0; }
.social.big a { display: block; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; }
.social.big a:hover { border-color: var(--muted); text-decoration: none; }
.card.way:hover { transform: none; border-color: var(--rule); border-left-color: var(--accent); }
.card.way .social { font-size: 14px; }
.gi-sheet { max-width: 74ch; padding: 18px 20px; }
.gi-form { display: grid; gap: 6px; }
.gi-form > label, .gi-form legend { font-weight: 600; margin-top: 10px; padding: 0; }
.gi-form .opt { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.gi-form input[type=text], .gi-form input[type=email], .gi-form textarea { width: 100%; padding: 8px 10px; font: inherit; }
.gi-form textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.gi-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.gi-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; margin-top: 6px; }
.gi-kinds label { display: flex; gap: 8px; align-items: center; }
.gi-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.gi-actions .btn { padding: 8px 16px; }
.gi-status { min-height: 1.4em; margin: 8px 0 0; }

/* ==========================================================================
   Reading and scanning. One type scale for the whole site, so each heading
   level is a clear step above the next and looks different from it:
     h1  Anton, capitals            page title
     h2  Barlow Condensed, large    section of a page (rule and red tick above)
     h3  Barlow Condensed, medium   part of a section, card title
     h4  Inter bold                 entry inside a part
     h5, h6, .sub, .md-label        small capitals: a label, not a heading
   Sizes of headings and text are decided here; the rules above set layout.
   ========================================================================== */
:root {
  --fs-h1: clamp(34px, 4.4vw, 54px);
  --fs-h2: clamp(27px, 2.5vw, 33px);
  --fs-h3: 22px;
  --fs-h4: 18px;
  --inset: var(--paper);            /* a block set into a sheet */
}
body { font-size: 16px; line-height: 1.6; }
h1, .display { font-size: var(--fs-h1); line-height: 1.04; margin: 0 0 14px; }
h2 { font: 700 var(--fs-h2)/1.1 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .005em; margin: 56px 0 14px; }
h3 { font: 700 var(--fs-h3)/1.2 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .01em; margin: 32px 0 8px; }
h4 { font: 700 var(--fs-h4)/1.35 "Inter", system-ui, sans-serif; letter-spacing: -.005em; margin: 26px 0 6px; }
h5, h6, h3.sub, .md-label, .toc-k { font: 700 13.5px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
h3.sub .note, h3.sub .tag { font-family: "Inter", system-ui, sans-serif; letter-spacing: 0; text-transform: none; font-weight: 400; }
.lede { font-size: 18px; line-height: 1.55; max-width: 68ch; margin: 0 0 26px; }
.hero .lede { font-size: 19px; }
.note { font-size: 13.5px; }
h1 + .note { margin: 0 0 10px; }

/* A section of a page starts with a rule and a red tick, so sections can be found while scrolling. */
#view > h2, #view > div:not(.sheet) > h2, .prose > h2, .md > h3 { position: relative; padding-top: 22px; border-top: 1px solid var(--rule); }
#view > h2::before, #view > div:not(.sheet) > h2::before, .prose > h2::before, .md > h3::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 64px; height: 3px; background: var(--accent); }
.prose > h2:first-child { margin-top: 26px; }
/* Headings inside a side panel or a sheet are a step smaller and carry no rule. */
.panel h2, .sheet > h2, .sheet summary h2 { font-size: 23px; line-height: 1.15; margin: 0 0 8px; padding: 0; border: 0; }
.panel h2::before, .sheet > h2::before { content: none; }
.panel h3.sub { margin: 16px 0 4px; }
.card p.quote { color: var(--ink); font-size: 16px; line-height: 1.5; }
.prose > ul, .prose > ol, ul.prose { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker, .md li::marker { color: var(--accent); }

/* ---------- numbered headings and the list of what is on a page */
.sec-n { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font: 400 17px/1 "Anton", "Barlow Condensed", sans-serif; letter-spacing: .02em; }
.toc { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px 12px; margin: 0 0 24px; max-width: 880px; }
.toc-k { margin: 0 4px 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2 250px; column-gap: 18px; }
.toc li { break-inside: avoid; margin: 0; }
.toc button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px;
  padding: 5px 6px; cursor: pointer; color: var(--ink); font-size: 14.5px; line-height: 1.4; }
.toc button:hover { background: var(--hover); }
.toc .sec-n { min-width: 24px; height: 21px; border-radius: 5px; font-size: 12.5px; background: var(--sheet2); color: var(--ink); }
.toc button:hover .sec-n { background: var(--accent); color: var(--accent-ink); }

/* ---------- list items as separate blocks (profiles and the written pages), instead of one run of bullets */
.items { list-style: none; padding: 0 !important; margin: 10px 0 16px; display: grid; gap: 8px; }
.items > li, .md .items > li { margin: 0; padding: 11px 16px; font-size: 15.5px; background: var(--item-bg, var(--sheet)); border: 1px solid var(--rule); border-radius: 8px;
  line-height: 1.58; min-width: 0; }
.sheet .items > li, .md-entry .items > li { --item-bg: var(--inset); }
.items li ul, .items li ol { margin: 6px 0 2px; padding-left: 20px; }
.items li li { margin: 4px 0; }
.items b.lead { font-weight: 700; }
ol.items { counter-reset: item; }
ol.items > li { counter-increment: item; position: relative; padding-left: 52px; }
ol.items > li::before { content: counter(item); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; min-width: 24px; height: 22px;
  border-radius: 5px; background: var(--sheet2); color: var(--ink); font: 400 13px/1 "Anton", "Barlow Condensed", sans-serif; }
.sheet ol.items > li::before, .md-entry ol.items > li::before { background: var(--sheet2); }
/* an item that opens with a date: the date stands in its own column */
.items > li.dated { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.it-date { font: 700 16px/1.55 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .03em; color: var(--event); }
.it-body { min-width: 0; }
/* a list of mostly dated items is a timeline: no boxes, a line and a mark per date */
.items.timeline { gap: 0; margin: 14px 0 18px; }
.items.timeline > li { background: none; border: 0; border-radius: 0; padding: 0 0 16px 0; position: relative; column-gap: 34px; }
.items.timeline > li.dated > .it-date { text-align: right; }
.items.timeline > li:not(.dated) { padding-left: 138px; }
.items.timeline > li::before { content: ""; position: absolute; left: 120px; top: 0; bottom: 0; width: 2px; background: var(--rule);
  min-width: 0; height: auto; border-radius: 0; display: block; }
.items.timeline > li:first-child::before { top: 8px; }
.items.timeline > li:last-child::before { bottom: auto; height: 10px; }
.items.timeline > li:last-child { padding-bottom: 2px; }
.items.timeline > li::after { content: ""; position: absolute; left: 115px; top: 7px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--event); }
.items.timeline > li:not(.dated)::after { border-color: var(--muted); }
ol.items.timeline > li { counter-increment: none; }

/* ---------- written pages (context, progress, codebook) */
.md { max-width: 880px; line-height: 1.65; }
.md > p { max-width: 74ch; margin: 12px 0; }
.md h2 { font-size: var(--fs-h2); margin: 40px 0 12px; }
.md > h3 { font-size: 28px; line-height: 1.12; margin: 52px 0 16px; }
.md > h3:first-child { margin-top: 8px; }
.md h4 { font-size: 19px; margin: 28px 0 8px; }
.md li { margin: 6px 0; }
.md-label { color: var(--c-gold); margin: 20px 0 8px !important; }
.md-label strong { font-weight: 700; }
.md-entry { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 4px 22px 14px; margin: 0 0 18px; scroll-margin-top: 16px; }
.md-entry > h3, .md-entry > h4 { display: flex; gap: 12px; align-items: flex-start; font: 700 24px/1.2 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .01em;
  margin: 14px 0 12px; padding: 0 0 13px; border-bottom: 1px solid var(--rule); }
.md-entry > p { max-width: 74ch; margin: 12px 0; }
.md-entry .table-wrap { margin: 12px 0; }
.md-entry + h3, .md-entry + h2 { margin-top: 52px; }
.srctag { display: inline-block; font: 600 11.5px/1.5 "Inter", system-ui, sans-serif; letter-spacing: .01em; color: var(--muted); border: 1px solid var(--rule);
  border-radius: 4px; padding: 0 6px; margin: 0 2px; white-space: nowrap; vertical-align: 1px; background: var(--sheet2); }
.sheet.md-sheet { padding: 22px 26px 18px; }
.md-sheet .md > h3 { font-size: 25px; margin-top: 36px; }

/* ---------- profile pages: open sections with a numbered heading; each point its own block */
.prof { max-width: 880px; }
.prof-head { margin-bottom: 16px; }
.prof-intro { font-size: 14px; line-height: 1.55; }
.prof-card { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; scroll-margin-top: 14px; }
.prof-card summary, .prof-card > h2 { display: flex; align-items: center; gap: 12px; padding: 20px 0 12px; margin: 0; border-top: 1px solid var(--rule); }
.prof-card summary { list-style: none; cursor: pointer; border-radius: 0; }
.prof-card summary::-webkit-details-marker { display: none; }
.prof-card summary::after { content: ""; flex: none; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); transition: transform .15s; margin-right: 6px; }
.prof-card details[open] > summary::after { transform: rotate(45deg); }
.prof-card summary:hover::after { border-color: var(--ink); }
.prof-card h2, .prof-card summary h2 { display: flex; align-items: center; gap: 12px; font: 700 27px/1.12 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .005em;
  margin: 0; padding: 0; border: 0; min-width: 0; }
.prof-card > h2 { padding: 20px 0 12px; border-top: 1px solid var(--rule); }
.prof-body { padding: 0 0 18px; }
.prof-body > p { max-width: 74ch; margin: 10px 0; }
.prof-body h3 { font: 700 21px/1.2 "Barlow Condensed", "Inter", sans-serif; margin: 22px 0 8px; }
.prof-body h4, .prof-body h5 { font: 700 13.5px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.prof-body .src { font-size: .84em; }
.prof-body ul:not(.items), .prof-body ol:not(.items) { padding-left: 22px; }
.items > li.pc-item, .pc-item { list-style: none; margin: 0 !important; padding: 14px 14px 12px; }
ol.items > li.pc-item { padding-left: 52px; }
.pc-item .post, .postref-card .post { background: var(--inset); max-width: none; }
.pc-item .post { margin-bottom: 10px; }
.pc-meta, .pc-note, .pc-corr { font-size: 14.5px; line-height: 1.55; }
.pc-meta { font-size: 13px; }
.postref-card { margin: 10px 0 4px; }
.profile-list button { line-height: 1.35; }
.profile-list button .note { font-size: 12.5px; margin-top: 1px; }

@media (max-width: 900px) {
  .md-entry, .prof-card { scroll-margin-top: 62px; }
  .md-entry { padding: 2px 15px 10px; }
  .md-entry > h3, .md-entry > h4 { font-size: 21px; }
  .prof-card h2, .prof-card summary h2 { font-size: 23px; }
  .sheet.md-sheet { padding: 16px 15px 12px; }
}
@media (max-width: 640px) {
  h2 { margin-top: 44px; }
  .lede { font-size: 17px; }
  .items > li { padding: 10px 13px; }
  ol.items > li { padding-left: 46px; } ol.items > li::before { left: 11px; }
  .items > li.dated { display: block; }
  .it-date { margin-bottom: 2px; }
  .items.timeline > li, .items.timeline > li:not(.dated) { padding: 0 0 16px 26px; }
  .items.timeline > li.dated > .it-date { text-align: left; }
  .items.timeline > li::before { left: 5px; }
  .items.timeline > li::after { left: 0; top: 6px; }
  .toc ol { columns: 1; }
}

/* ---------- brand mark in the rail */
.brand-mark { width: 54px; height: 54px; border-radius: 11px; margin: 0 0 12px; }
@media (max-width: 900px) { .brand-mark { width: 30px; height: 30px; margin: 0 9px 0 0; border-radius: 7px; } }

/* ---------- tool pages (network, funding, entities): a compact page header, so the tool itself stays in the window */
#view:has(.net-lede) > .kicker { margin-bottom: 8px; }
#view:has(.net-lede) > h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 6px; }
.lede.net-lede { font-size: 16px; line-height: 1.5; margin-bottom: 12px; max-width: 86ch; }
@media (min-width: 901px) { .net-wrap { --net-h: clamp(380px, calc(100vh - 400px), 1000px); } }

/* ---------- profiles: coded posts by severity level, as a small table */
.sev-table { width: auto; max-width: 100%; margin: 10px 0 10px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px;
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--sheet2); }
.sev-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sev-table th, .sev-table td { position: static; width: 104px; padding: 7px 8px; text-align: center; vertical-align: top; white-space: normal;
  border: 0; border-left: 1px solid var(--rule); background: none; }
.sev-table th:first-child, .sev-table td:first-child { border-left: 0; }
.sev-table th { padding-bottom: 5px; font-weight: 500; color: var(--muted); line-height: 1.25; }
.sev-table tr:hover td { background: none; }
.sev-table .sv { display: inline-block; min-width: 34px; padding: 2px 7px 1px; border-radius: 4px; font: 700 13px/1.4 "Inter", system-ui, sans-serif; color: #111; }
.sev-table .sv0 { background: var(--sev0); color: #fff; } .sev-table .sv1 { background: var(--sev1); } .sev-table .sv2 { background: var(--sev2); }
.sev-table .sv3 { background: var(--sev3); color: #fff; } .sev-table .sv4 { background: var(--sev4); } .sev-table .sv5 { background: var(--sev5); }
:root[data-theme="light"] .sev-table .sv0 { color: #111; }
:root[data-theme="light"] .sev-table .sv4, :root[data-theme="light"] .sev-table .sv5 { color: #fff; }
.sev-table .sev-name { display: block; margin-top: 4px; font-size: 11.5px; }
.sev-table td { padding: 2px 8px 8px; font: 400 24px/1.1 "Anton", "Barlow Condensed", sans-serif; letter-spacing: .01em; color: var(--ink); }
.sev-table td.zero { color: var(--muted); opacity: .55; }
.prof-p { max-width: 74ch; margin: 10px 0; }
@media (max-width: 640px) {
  .sev-table { width: 100%; }
  .sev-table th, .sev-table td { width: auto; padding-left: 2px; padding-right: 2px; }
  .sev-table .sev-name { display: none; }
  .sev-table td { font-size: 20px; }
}

/* ==========================================================================
   Profiles, second pass: statistics as tiles, labels on their own line,
   sources as footnotes under each block, long runs of clauses as rows.
   Layout comes from src/js/profile.js; the words are the profile's own.
   ========================================================================== */
/* ---------- registry numbers and other small facts beside the name */
.prof-ids { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.prof-idb { font: 600 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); background: var(--sheet2);
  border: 1px solid var(--rule); border-radius: 5px; padding: 1px 8px; white-space: nowrap; }
.prof-idb.kind { font-family: "Inter", system-ui, sans-serif; letter-spacing: .02em; }

/* ---------- label of a list item: its own line, in the accent colour */
.items > li > b.lead, .it-body > b.lead { display: block; margin: 0 0 4px; font: 700 14.5px/1.3 "Barlow Condensed", "Inter", sans-serif;
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold); }
.items > li > .lead-note { display: block; margin: -2px 0 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.items > li.summary-li { border-left: 3px solid var(--accent); font-size: 16px; }
.items > li.examples-li { background: none; border: 0; padding: 6px 0 0; }
.items > li.examples-li > ul { padding-left: 0; display: grid; gap: 8px; margin-top: 8px; }
.items > li.examples-li > ul > li.pc-item { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; }

/* ---------- a short paragraph that introduces what follows */
.prof-body > p.prof-note { font-size: 14px; line-height: 1.55; color: var(--muted); border-left: 3px solid var(--rule); padding: 2px 0 2px 12px; margin: 12px 0 10px; max-width: 80ch; }

/* ---------- posting record: statistics as tiles */
.items > li.pstats-li { background: none; border: 0; padding: 0; }
.pstats { display: grid; gap: 10px; }
.pstat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pstat { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 11px 14px 10px; min-width: 0; }
.pstat b { display: block; font: 400 26px/1.05 "Anton", "Barlow Condensed", sans-serif; letter-spacing: .01em; overflow-wrap: anywhere; }
.pstat span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.3; color: var(--ink); }
.pstat small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.pstat-block { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.pstat-head { display: flex; align-items: center; gap: 14px; }
.pstat-head b { font: 400 34px/1 "Anton", "Barlow Condensed", sans-serif; letter-spacing: .01em; }
.pstat-head span { font-size: 14px; font-weight: 600; }
.pstat-head small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.35; }
.pstat-block .sev-table { margin: 12px 0 10px; }
.pstat-line { display: grid; grid-template-columns: minmax(0, auto) minmax(80px, 1fr); gap: 6px 14px; align-items: center; font-size: 14px; }
.pmeter { height: 8px; border-radius: 4px; background: var(--sheet2); overflow: hidden; min-width: 0; }
.pmeter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.pstat-cap { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.pstat-k { font: 700 13.5px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pbars { display: grid; gap: 6px; }
.pbar { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.pbar-n { text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar-t { height: 10px; border-radius: 3px; background: var(--sheet2); overflow: hidden; }
.pbar-t i { display: block; height: 100%; background: var(--c-gold); border-radius: 3px; }
.pbar b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }

/* ---------- a long run of clauses, as groups of rows */
.sblock { display: grid; gap: 14px; margin: 10px 0 16px; }
.sgroup { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 16px 10px; min-width: 0; }
.items > li > .sblock { margin: 0; gap: 12px; }
.items > li > .sblock > .sgroup { background: none; border: 0; border-radius: 0; padding: 0; }
.sgroup-h { font: 700 14.5px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold); margin: 0 0 4px; }
.sgroup-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 0 0 8px; }
.sgroup-text { margin: 4px 0 2px; font-size: 15px; line-height: 1.55; }
.srows { display: grid; }
.srow { padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.5; min-width: 0; }
.srow:first-child { border-top: 0; padding-top: 2px; }
.srow-name { font-weight: 700; }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); background: var(--sheet2); border-radius: 4px; padding: 0 3px; }

/* ---------- sources: a number in the text, the source under the block */
sup.fn { font-size: 0; line-height: 0; vertical-align: baseline; margin: 0 1px; }
sup.fn button { font: 700 10.5px/1 "Inter", system-ui, sans-serif; position: relative; top: -0.55em; min-width: 16px; height: 16px; padding: 0 4px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet2); color: var(--link); cursor: pointer; }
sup.fn button:hover { border-color: var(--link); }
.fnotes { margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--rule); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.prof-body > p > .fnotes, .prof-intro > .fnotes { margin-bottom: 6px; }
.fnotes-k { font: 700 12px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.fnotes ol { list-style: none; counter-reset: fn; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.fnotes ol > li { counter-increment: fn; position: relative; margin: 0; padding: 1px 6px 1px 26px; border: 0; border-radius: 4px; background: none; overflow-wrap: anywhere; }
.fnotes ol > li::before { content: attr(data-fn); position: absolute; left: 0; top: 2px; min-width: 18px; height: 16px; display: grid; place-items: center;
  border-radius: 8px; background: var(--sheet2); color: var(--ink); font: 700 10.5px/1 "Inter", system-ui, sans-serif; }
.fnotes ol > li.on { background: var(--hover); color: var(--ink); }
.fnotes a { color: var(--link); }
.items .srctag, .prof-body .srctag { font-size: 11px; vertical-align: 1px; }

/* ---------- topic labels written in bold, long items as short paragraphs, funder lines */
.prof-body > p > b.lead { display: block; margin: 0 0 4px; font: 700 14.5px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-gold); }
.it-body > .lead-note, .prof-body > p > .lead-note { display: block; margin: -2px 0 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.chunk { display: block; }
.chunk + .chunk { margin-top: 11px; }
.tie-quals { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 7px; }
.tie-q { font-size: 12.5px; line-height: 1.45; color: var(--muted); background: var(--sheet2); border: 1px solid var(--rule); border-radius: 5px;
  padding: 1px 8px; overflow-wrap: anywhere; }

/* ---------- dated items (timelines): sources in their own column on the right, one line each, right-aligned,
   numbered straight through the list. A line too long for the column ends in "..." and opens on a click. */
.it-src { min-width: 0; display: grid; gap: 2px; align-content: start; justify-items: end; }
.items > li.dated > .it-src { grid-column: 2; margin-top: 4px; }
.it-src-line { box-sizing: border-box; max-width: 100%; min-width: 0; text-align: right; font-size: 12.5px; line-height: 1.55; color: var(--muted);
  border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
.it-src-line::before { content: attr(data-fn); display: inline-block; box-sizing: border-box; min-width: 16px; height: 16px; margin-right: 6px; padding: 0 3px;
  border-radius: 8px; background: var(--sheet2); color: var(--ink); font: 700 10.5px/16px "Inter", system-ui, sans-serif; text-align: center; vertical-align: 1px; }
.it-src-line.on { background: var(--hover); color: var(--ink); }
.it-src-line a { color: var(--link); }
@media (min-width: 641px) {
  .it-src-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .it-src-line.open { white-space: normal; overflow: visible; }
}
@media (min-width: 1380px) {                                    /* room for a third column beside the text */
  .items.src-col > li.dated { grid-template-columns: 104px minmax(0, 1fr) minmax(0, 28%); }
  .items > li.dated > .it-src { grid-column: 3; margin-top: 0; padding-top: 3px; }
  @supports (grid-template-columns: subgrid) {                 /* one source column for the whole list, as wide as its longest line (30% at most) */
    .items.src-col { grid-template-columns: 120px minmax(0, 1fr) fit-content(30%); column-gap: 16px; }
    ol.items.src-col { grid-template-columns: 156px minmax(0, 1fr) fit-content(30%); }
    .items.timeline.src-col { grid-template-columns: 104px minmax(0, 1fr) fit-content(30%); column-gap: 34px; }
    .items.src-col > li { grid-column: 1 / -1; }
    .items.src-col > li.dated { grid-template-columns: subgrid; }
  }
}

@media (max-width: 640px) {
  .pstat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pstat b { font-size: 22px; }
  .pstat-line { grid-template-columns: 1fr; }
  .pbar { grid-template-columns: minmax(90px, 130px) minmax(0, 1fr) auto; font-size: 13px; }
  .sgroup { padding: 10px 12px 8px; }
}

/* ==========================================================================
   Profiles, third pass (after a read of every profile): labels of every
   kind in one style, entries inside a block, filing numbers and counts as
   small marks, long source notes under their row, compact lists.
   ========================================================================== */
/* ---------- one look for every topic label; where it sits depends on its place */
.prof-body b.lead, .prof-intro b.lead { font: 700 14.5px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold); }
.items li li > b.lead, .chunk > b.lead { display: block; margin: 0 0 3px; }
.items li li > .lead-note, .chunk > .lead-note { display: block; margin: -1px 0 5px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.chunk.labelled { margin-top: 14px; }
/* entries that follow one another in a block: label and text on one line */
.entries > .chunk > b.lead, .prof-intro b.lead { display: inline; margin: 0 8px 0 0; }
.entries > .chunk > .lead-note, .prof-intro .lead-note { display: inline; margin: 0 8px 0 0; font-size: 12.5px; color: var(--muted); }
.prof-intro b.lead { font-size: 12.5px; }
.prof-intro .chunk + .chunk { margin-top: 6px; }
/* tie levels T1..T5: a small badge, its meaning beside it */
.prof-body b.lead.tier { display: inline-block; margin: 0 8px 3px 0; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 5px; background: var(--sheet2);
  color: var(--ink); letter-spacing: .06em; }
.prof-body b.lead.tier + .lead-note { display: inline; margin: 0 10px 0 0; font: 700 12.5px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
/* a short line that heads a list */
.prof-body > p.prof-sub { margin: 18px 0 6px; font: 700 15px/1.3 "Barlow Condensed", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold); }
.prof-body > p.prof-sub .lead-note { display: inline; }

/* ---------- small marks inside a sentence */
.idtag { font: 500 11.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); background: var(--sheet2); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.fig { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); background: var(--sheet2); border-radius: 4px; padding: 0 3px; }
.prof-body a.postref { display: inline-block; font-size: .84em; line-height: 1.5; padding: 0 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet2);
  white-space: nowrap; text-decoration: none; }
.prof-body a.postref::before { content: "post "; color: var(--muted); }
.prof-body a.postref:hover { border-color: var(--link); }
.items > li.stat-li { border-left: 3px solid var(--c-gold); }

/* ---------- a block that is only a source note; a section that only lists sources */
.prof-body > p.src-only, .items > li.src-only { font-size: 13px; line-height: 1.5; color: var(--muted); }
.prof-body > p.src-only { border-left: 3px solid var(--rule); padding: 2px 0 2px 12px; }
.src-section .items > li, .src-section .prof-body > p, .src-section .sgroup-text, .src-section .srow { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- funder lines: a qualifier too long for a small label */
.tie-note { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.items li li > .srow-name { font-weight: 700; }

/* ---------- dated rows: a source note too long for the right-hand column sits under the row, in full */
.it-body > .it-src-long { justify-items: start; margin-top: 7px; }
.it-src-long .it-src-line { white-space: normal; overflow: visible; text-align: left; padding-left: 0; }

/* ---------- a run of one-line items is one list, not a stack of boxes */
.items.compact { gap: 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--item-bg, var(--sheet)); overflow: hidden; }
.items.compact > li, .md .items.compact > li { background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding-top: 8px; padding-bottom: 8px; }
.items.compact > li:first-child { border-top: 0; }
ol.items.compact > li::before { top: 8px; }
