/* 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; } }
