/* ==== css/palette.css ==== */
/* Fonts shipped with the site: Instrument Serif speaks, Instrument Sans measures. */
@font-face { font-family: 'Instrument Sans'; src: url(../assets/fonts/instrument-sans-400.ttf) format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(../assets/fonts/instrument-sans-500.ttf) format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(../assets/fonts/instrument-sans-600.ttf) format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(../assets/fonts/instrument-serif-1.ttf) format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(../assets/fonts/instrument-serif-2.ttf) format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  --g-night: #07080d; --g-indigo: #141a3d; --g-print: #e3e4ea;
  --sp-ai-1: #ffd1d2;
  --sp-ai-2: #ffa9ae;
  --sp-ai-3: #dc5465;
  --sp-ai-4: #cb4457;
  --sp-ai-5: #951b34;
  --sp-materials-1: #ffd3c3;
  --sp-materials-2: #ffad91;
  --sp-materials-3: #e2805e;
  --sp-materials-4: #b95c3a;
  --sp-materials-5: #873616;
  --sp-energy-1: #ffd3be;
  --sp-energy-2: #ffae85;
  --sp-energy-3: #dc7a44;
  --sp-energy-4: #bb5c22;
  --sp-energy-5: #863800;
  --sp-space-1: #fdd7a6;
  --sp-space-2: #f0b96e;
  --sp-space-3: #c8860c;
  --sp-space-4: #a56d00;
  --sp-space-5: #714900;
  --sp-transport-1: #f4dca2;
  --sp-transport-2: #e3c069;
  --sp-transport-3: #e0b43a;
  --sp-transport-4: #987500;
  --sp-transport-5: #674f00;
  --sp-biotech-1: #b2edd6;
  --sp-biotech-2: #7fd9b9;
  --sp-biotech-3: #38b892;
  --sp-biotech-4: #00906e;
  --sp-biotech-5: #00624a;
  --sp-agriculture-1: #edf6bf;
  --sp-agriculture-2: #c9e24f;
  --sp-agriculture-3: #9fbf12;
  --sp-agriculture-4: #728a08;
  --sp-agriculture-5: #4a5a04;
  --sp-health-1: #c9f6ec;
  --sp-health-2: #62e6cb;
  --sp-health-3: #1fc0a4;
  --sp-health-4: #0f8b76;
  --sp-health-5: #0a5b4d;
  --sp-home-1: #ffe6dc;
  --sp-home-2: #ffb8a0;
  --sp-home-3: #ff8666;
  --sp-home-4: #c45a3a;
  --sp-home-5: #7f3a22;
  --sp-computing-1: #a9edea;
  --sp-computing-2: #6fd9d5;
  --sp-computing-3: #28c8c4;
  --sp-computing-4: #008d8a;
  --sp-computing-5: #00605d;
  --sp-semiconductors-1: #b4e7ff;
  --sp-semiconductors-2: #81d0f4;
  --sp-semiconductors-3: #48b4e0;
  --sp-semiconductors-4: #0086b0;
  --sp-semiconductors-5: #005b79;
  --sp-internet-1: #cddfff;
  --sp-internet-2: #a5c5ff;
  --sp-internet-3: #6e9cf4;
  --sp-internet-4: #4c77cc;
  --sp-internet-5: #2a4e98;
  --sp-communications-1: #d1ddff;
  --sp-communications-2: #acc2ff;
  --sp-communications-3: #9ab4ff;
  --sp-communications-4: #5f76bc;
  --sp-communications-5: #3c4e8b;
  --sp-software-1: #e5d6ff;
  --sp-software-2: #d1b3ff;
  --sp-software-3: #a479de;
  --sp-software-4: #8c61c3;
  --sp-software-5: #623a90;
  --sp-society-1: #ffccf0;
  --sp-society-2: #f3a8de;
  --sp-society-3: #ce74b7;
  --sp-society-4: #ad5698;
  --sp-society-5: #7d316b;
  --sp-media-1: #ffd0d8;
  --sp-media-2: #ffa7ba;
  --sp-media-3: #de708b;
  --sp-media-4: #bc526e;
  --sp-media-5: #892c48;
  --t-fall: 900ms; --t-split: 600ms; --t-trace: 1400ms; --t-resolve: 500ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-settle: cubic-bezier(0.34, 1.4, 0.64, 1); --ease-inout: cubic-bezier(0.65, 0, 0.35, 1); --ease-steps: steps(8, end);
}
/* Palette families, generated from site/data/palette.json by qa/palette/build.py. Edit the JSON, not this file. */
/* Steps: 1 pale (1026) to last saturated (present). *-label passes 4.5:1 on its ground for 12px type. */
:root {
  --h-signal-1: #B8C9D9;
  --h-signal-2: #8FA6BB;
  --h-signal-3: #67849E;
  --h-signal-4: #416382;
  --h-signal-5: #1B4366;
  --h-signal-label: #1B4366;
  --h-signal-computing-1: #B6CAD7;
  --h-signal-computing-2: #8CA7B9;
  --h-signal-computing-3: #62869C;
  --h-signal-computing-4: #3A657F;
  --h-signal-computing-5: #0D4563;
  --h-signal-computing-label: #0D4563;
  --h-signal-semiconductors-1: #B8C9D9;
  --h-signal-semiconductors-2: #8FA6BB;
  --h-signal-semiconductors-3: #67849E;
  --h-signal-semiconductors-4: #416382;
  --h-signal-semiconductors-5: #1B4366;
  --h-signal-semiconductors-label: #1B4366;
  --h-signal-internet-1: #BBC8DA;
  --h-signal-internet-2: #93A4BC;
  --h-signal-internet-3: #6C82A0;
  --h-signal-internet-4: #486184;
  --h-signal-internet-5: #264168;
  --h-signal-internet-label: #264168;
  --h-signal-communications-1: #BEC7DA;
  --h-signal-communications-2: #97A3BD;
  --h-signal-communications-3: #7280A0;
  --h-signal-communications-4: #4F5F84;
  --h-signal-communications-5: #2F3E68;
  --h-signal-communications-label: #2F3E68;
  --h-knowledge-1: #D8BFC9;
  --h-knowledge-2: #BC98A7;
  --h-knowledge-3: #A17186;
  --h-knowledge-4: #844D66;
  --h-knowledge-5: #682848;
  --h-knowledge-label: #682848;
  --h-knowledge-society-1: #D5C0CE;
  --h-knowledge-society-2: #B899AE;
  --h-knowledge-society-3: #9C7290;
  --h-knowledge-society-4: #7F4E71;
  --h-knowledge-society-5: #622A55;
  --h-knowledge-society-label: #622A55;
  --h-knowledge-software-1: #D8BFC9;
  --h-knowledge-software-2: #BC98A7;
  --h-knowledge-software-3: #A17186;
  --h-knowledge-software-4: #844D66;
  --h-knowledge-software-5: #682848;
  --h-knowledge-software-label: #682848;
  --h-knowledge-media-1: #DABFC4;
  --h-knowledge-media-2: #BF989F;
  --h-knowledge-media-3: #A4717C;
  --h-knowledge-media-4: #884D5A;
  --h-knowledge-media-5: #6C273A;
  --h-knowledge-media-label: #6C273A;
  --h-power-1: #E6BFA3;
  --h-power-2: #CC9B7F;
  --h-power-3: #B2785C;
  --h-power-4: #98553B;
  --h-power-5: #7D3318;
  --h-power-label: #7D3318;
  --h-power-energy-1: #E3C1A0;
  --h-power-energy-2: #C99D7B;
  --h-power-energy-3: #AF7A56;
  --h-power-energy-4: #965733;
  --h-power-energy-5: #7B3607;
  --h-power-energy-label: #7B3607;
  --h-power-materials-1: #E8BDA7;
  --h-power-materials-2: #CE9984;
  --h-power-materials-3: #B47662;
  --h-power-materials-4: #995343;
  --h-power-materials-5: #7E3124;
  --h-power-materials-label: #7E3124;
  --h-movement-1: #E9D69C;
  --h-movement-2: #D3BB7D;
  --h-movement-3: #BEA15F;
  --h-movement-4: #A9873F;
  --h-movement-5: #946E19;
  --h-movement-label: #8D691B;
  --h-movement-transport-1: #E4D89D;
  --h-movement-transport-2: #CEBD7D;
  --h-movement-transport-3: #B9A35F;
  --h-movement-transport-4: #A48A3F;
  --h-movement-transport-5: #8F7117;
  --h-movement-transport-label: #886C1A;
  --h-movement-space-1: #EFD39C;
  --h-movement-space-2: #D9B87E;
  --h-movement-space-3: #C49E60;
  --h-movement-space-4: #AF8441;
  --h-movement-space-5: #9A6A1E;
  --h-movement-space-label: #96681F;
  --h-life-1: #B8CFC4;
  --h-life-2: #93AFA1;
  --h-life-3: #6E8F7F;
  --h-life-4: #4B715F;
  --h-life-5: #285440;
  --h-life-label: #285440;
  --h-life-biotech-1: #B8CFC4;
  --h-life-biotech-2: #93AFA1;
  --h-life-biotech-3: #6E8F7F;
  --h-life-biotech-4: #4B715F;
  --h-life-biotech-5: #285440;
  --h-life-biotech-label: #285440;
  --h-ai-1: #D45B45;
  --h-ai-2: #C24C3C;
  --h-ai-3: #B13D33;
  --h-ai-4: #A02E2A;
  --h-ai-5: #8F1D21;
  --h-ai-label: #8F1D21;
  --h-region-north-america: #405D98;
  --h-region-north-america-label: #405D98;
  --h-region-north-america-1: #AEBAD0;
  --h-region-north-america-2: #657EAD;
  --h-region-north-america-3: #405D98;
  --h-region-latin-america: #3D8077;
  --h-region-latin-america-label: #3B7A72;
  --h-region-latin-america-1: #B1C8C1;
  --h-region-latin-america-2: #689990;
  --h-region-latin-america-3: #3D8077;
  --h-region-europe: #6C803A;
  --h-region-europe-label: #657738;
  --h-region-europe-1: #C0C8AB;
  --h-region-europe-2: #899963;
  --h-region-europe-3: #6C803A;
  --h-region-africa: #B48027;
  --h-region-africa-label: #91692A;
  --h-region-africa-1: #E4D59D;
  --h-region-africa-2: #C39A5B;
  --h-region-africa-3: #B48027;
  --h-region-middle-east: #A64F2D;
  --h-region-middle-east-label: #A64F2D;
  --h-region-middle-east-1: #DCB6A5;
  --h-region-middle-east-2: #BB7459;
  --h-region-middle-east-3: #A64F2D;
  --h-region-south-asia: #A43D70;
  --h-region-south-asia-label: #A43D70;
  --h-region-south-asia-1: #DCB0BE;
  --h-region-south-asia-2: #BA678B;
  --h-region-south-asia-3: #A43D70;
  --h-region-east-asia: #6B3253;
  --h-region-east-asia-label: #6B3253;
  --h-region-east-asia-1: #C3A8B2;
  --h-region-east-asia-2: #8A5B73;
  --h-region-east-asia-3: #6B3253;
  --h-region-oceania: #6C599D;
  --h-region-oceania-label: #6C599D;
  --h-region-oceania-1: #C0B9D2;
  --h-region-oceania-2: #887AB0;
  --h-region-oceania-3: #6C599D;
  --h-region-global: #8A8580;
  --h-region-global-label: #74706D;
  --h-region-global-1: #CDCAC5;
  --h-region-global-2: #A19D98;
  --h-region-global-3: #8A8580;
  --in-computing: #28C8C4;
  --in-computing-label: #28C8C4;
  --in-semiconductors: #48B4E0;
  --in-semiconductors-label: #69BEE3;
  --in-internet: #6E9CF4;
  --in-internet-label: #92B5F4;
  --in-communications: #9AB4FF;
  --in-communications-label: #9AB4FF;
  --in-society: #CE74B7;
  --in-society-label: #ED9AD7;
  --in-software: #D871A2;
  --in-software-label: #F898C3;
  --in-media: #DE708B;
  --in-media-label: #FE97AE;
  --in-energy: #DC7A44;
  --in-energy-label: #F89E6E;
  --in-materials: #E17460;
  --in-materials-label: #FF9B88;
  --in-transport: #E0B43A;
  --in-transport-label: #E0B43A;
  --in-space: #C8860C;
  --in-space-label: #E7AB55;
  --in-biotech: #38B892;
  --in-biotech-label: #6FC6A6;
  --in-ai: #E0716B;
  --in-ai-label: #FF9991;
  --in-ground: #2639A8;
  --in-white: #F7F7F4;
  --in-black: #111322;
  --ai-organ-models-1: #4D4990;
  --ai-organ-models-2: #8E7CF0;
  --ai-organ-models-3: #ADA4F2;
  --ai-organ-models-label: #8E7CF0;
  --ai-organ-chips-1: #6B3759;
  --ai-organ-chips-2: #C84B78;
  --ai-organ-chips-3: #DC849C;
  --ai-organ-chips-label: #D06286;
  --ai-organ-capital-1: #756750;
  --ai-organ-capital-2: #E8B84A;
  --ai-organ-capital-3: #EDCC86;
  --ai-organ-capital-label: #E8B84A;
  --ai-organ-energy-1: #7B4F47;
  --ai-organ-energy-2: #F0803A;
  --ai-organ-energy-3: #F6A77A;
  --ai-organ-energy-label: #F0803A;
  --ai-organ-policy-1: #2B6973;
  --ai-organ-policy-2: #3FBFB0;
  --ai-organ-policy-3: #87D1C3;
  --ai-organ-policy-label: #3FBFB0;
  --ai-organ-data-1: #376C90;
  --ai-organ-data-2: #5BC8F0;
  --ai-organ-data-3: #95D7F0;
  --ai-organ-data-label: #5BC8F0;
  --ai-organ-people-1: #7B535F;
  --ai-organ-people-2: #F08A80;
  --ai-organ-people-3: #F5ADA3;
  --ai-organ-people-label: #F08A80;
  --ai-organ-labs-1: #3F5792;
  --ai-organ-labs-2: #6F9BF5;
  --ai-organ-labs-3: #9AB9F5;
  --ai-organ-labs-label: #6F9BF5;
  --ai-organ-products-1: #3B6160;
  --ai-organ-products-2: #6BAE82;
  --ai-organ-products-3: #99C4A4;
  --ai-organ-products-label: #6BAE82;
  --ai-organ-talent-1: #7B5B7B;
  --ai-organ-talent-2: #F2A0C0;
  --ai-organ-talent-3: #F5BBCF;
  --ai-organ-talent-label: #F2A0C0;
  --ai-organ-users-1: #62648B;
  --ai-organ-users-2: #BDB6E6;
  --ai-organ-users-3: #CFCAE9;
  --ai-organ-users-label: #BDB6E6;
  --lab-openai: #2FA37E;
  --lab-openai-label: #2FA37E;
  --lab-openai-1: #235C5D;
  --lab-openai-2: #2FA37E;
  --lab-openai-3: #7BBDA1;
  --lab-google: #4F7FD6;
  --lab-google-label: #5785D8;
  --lab-google-1: #304B84;
  --lab-google-2: #4F7FD6;
  --lab-google-3: #83A5E0;
  --lab-anthropic: #C98A62;
  --lab-anthropic-label: #C98A62;
  --lab-anthropic-1: #685253;
  --lab-anthropic-2: #C98A62;
  --lab-anthropic-3: #D9AC8F;
  --lab-meta: #7C6BE0;
  --lab-meta-label: #8476E2;
  --lab-meta-1: #454288;
  --lab-meta-2: #7C6BE0;
  --lab-meta-3: #A099E8;
  --lab-mistral: #E9A23B;
  --lab-mistral-label: #E9A23B;
  --lab-mistral-1: #765E4A;
  --lab-mistral-2: #E9A23B;
  --lab-mistral-3: #EFBD7E;
  --lab-deepseek: #3FB9D6;
  --lab-deepseek-label: #3FB9D6;
  --lab-deepseek-1: #2C6584;
  --lab-deepseek-2: #3FB9D6;
  --lab-deepseek-3: #86CDDE;
  --lab-xai: #DEC48E;
  --lab-xai-label: #DEC48E;
  --lab-xai-1: #706C67;
  --lab-xai-2: #DEC48E;
  --lab-xai-3: #E6D3AD;
  --lab-alibaba: #E05A3A;
  --lab-alibaba-label: #E05A3A;
  --lab-alibaba-1: #753F44;
  --lab-alibaba-2: #E05A3A;
  --lab-alibaba-3: #ED8F76;
  --lab-microsoft-nvidia: #8DBE4A;
  --lab-microsoft-nvidia-label: #8DBE4A;
  --lab-microsoft-nvidia-1: #4A6A4E;
  --lab-microsoft-nvidia-2: #8DBE4A;
  --lab-microsoft-nvidia-3: #AED084;
  --lab-other-china: #C25E8A;
  --lab-other-china-label: #C5668F;
  --lab-other-china-1: #673E61;
  --lab-other-china-2: #C25E8A;
  --lab-other-china-3: #D68EA9;
  --lab-other: #6C82A6;
  --lab-other-label: #7287AA;
  --lab-other-1: #3D4C6E;
  --lab-other-2: #6C82A6;
  --lab-other-3: #97A5BD;
  --ai-amber: #E09F24;
  --ai-heat-1: #E09F24;
  --ai-heat-2: #EB8A2C;
  --ai-heat-3: #E5603A;
  --ai-heat-4: #DE4078;
  --ai-heat-5: #D23AA6;
  --riso-ultramarine: #3B45C4;
  --riso-ultramarine-label: #3B45C4;
  --riso-ultramarine-tint-1: #7E91DC;
  --riso-ultramarine-tint-2: #BAC5EA;
  --riso-ultramarine-tint-3: #DCE1F0;
  --riso-orange: #F26A2B;
  --riso-orange-label: #B6552D;
  --riso-orange-tint-1: #FBA783;
  --riso-orange-tint-2: #FDD0BC;
  --riso-orange-tint-3: #FCE6DA;
  --riso-teal: #0A858B;
  --riso-teal-label: #117F85;
  --riso-teal-tint-1: #7EB3B4;
  --riso-teal-tint-2: #BCD6D4;
  --riso-teal-tint-3: #DDE8E5;
  --riso-pink: #C84B78;
  --riso-pink-label: #BE4973;
  --riso-pink-tint-1: #E293A8;
  --riso-pink-tint-2: #F0C6CD;
  --riso-pink-tint-3: #F6E1E2;
  --riso-pink-navy: #C85A82;
  --riso-pink-navy-label: #CD668A;
  --ai-ground: #141C3A;
  --ai-paper: #FAF9F4;
  --imp-health-1: #9DBFAF;
  --imp-health-2: #5C8270;
  --imp-health-3: #1F4A36;
  --imp-health-label: #1F4A36;
  --imp-income-1: #E8B04B;
  --imp-income-2: #B07E30;
  --imp-income-3: #7A4F16;
  --imp-income-label: #7A4F16;
  --imp-access-1: #9FD0C8;
  --imp-access-2: #598D91;
  --imp-access-3: #0F4F5C;
  --imp-access-label: #0F4F5C;
  --imp-tools-1: #8FA6E0;
  --imp-tools-2: #58779C;
  --imp-tools-3: #234B5E;
  --imp-tools-label: #234B5E;
  --imp-shadows-1: #7A2E52;
  --imp-shadows-2: #621F34;
  --imp-shadows-3: #4A0F17;
  --imp-shadows-label: #4A0F17;
  --imp-shadow-red-1: #8C2B2B;
  --imp-shadow-red-2: #6A1D21;
  --imp-shadow-red-3: #4A0F17;
  --imp-shadow-red-label: #4A0F17;
  --imp-shadow-plum-1: #7A2E52;
  --imp-shadow-plum-2: #5B1F41;
  --imp-shadow-plum-3: #3E1030;
  --imp-shadow-plum-label: #3E1030;
  --imp-ground: #F6F7F4;
  --led-verdigris-1: #b2edd6;
  --led-verdigris-2: #38b892;
  --led-verdigris-3: #00906e;
  --led-coral-1: #ffd1d2;
  --led-coral-2: #dc5465;
  --led-coral-3: #cb4457;
  --led-right: #00906e;
  --led-right-pale: #b2edd6;
  --led-right-label: #00624a;
  --led-late: #008d8a;
  --led-late-pale: #a9edea;
  --led-late-label: #00605d;
  --led-partly: #987500;
  --led-partly-pale: #f4dca2;
  --led-partly-label: #674f00;
  --led-wrong: #cb4457;
  --led-wrong-pale: #ffd1d2;
  --led-wrong-label: #951b34;
  --led-pending: #8b8fa8;
  --led-pending-pale: #d9dbe6;
  --led-pending-label: #5d6280;
  --led-misattributed: #ad5698;
  --led-misattributed-pale: #ffccf0;
  --led-misattributed-label: #7d316b;
  --led-pending-faded: #b4b7c6;
  --led-stamp: #cb4457;
  --led-ground: #e3e4ea;
  --led-unresolvable: #6f7390;
  --led-unresolvable-label: #6f7390;
  --play-pair-1a: #2A4FB5;
  --play-pair-1a-label: #2A4FB5;
  --play-pair-1b: #E8632B;
  --play-pair-1b-label: #BA542D;
  --play-pair-2a: #6B7F2E;
  --play-pair-2a-label: #697C2E;
  --play-pair-2b: #702C5E;
  --play-pair-2b-label: #702C5E;
  --play-pair-3a: #D9557A;
  --play-pair-3a-label: #BE4E6D;
  --play-pair-3b: #1C2B6E;
  --play-pair-3b-label: #1C2B6E;
  --play-pair-4a: #C58A1A;
  --play-pair-4a-label: #956B25;
  --play-pair-4b: #4A5A6E;
  --play-pair-4b-label: #4A5A6E;
  --play-pair-5a: #1F8A86;
  --play-pair-5a-label: #22807D;
  --play-pair-5b: #A8402A;
  --play-pair-5b-label: #A8402A;
  --play-pair-6a: #6A4FB5;
  --play-pair-6a-label: #6A4FB5;
  --play-pair-6b: #8F7117;
  --play-pair-6b-label: #8F7117;
  --play-year-ink: #2E7D4F;
  --play-year-ink-label: #2E7D4F;
  --play-mark: #D98A1C;
  --play-mark-label: #9E6828;
  --play-ground: #FDFDFC;
  --play-stamp: #17171A;
}

/* ==== css/style.css ==== */
/* Technology Histomap: archival atlas styles */
:root {
  /* Ground: cool near-white. Tan paper retired Oct 20, 2026 (DESIGN_BRIEF.md). --paper kept as an alias. */
  --ground: #f7f7f5;
  --ground-2: #efefec;
  --ground-3: #e4e4df;
  --paper: var(--ground);
  --paper-2: var(--ground-2);
  --paper-3: var(--ground-3);
  --ink: #121212;
  --ink-2: #3a3a38;
  --ink-3: #5e5e5a;  /* 5.4:1 on the #eaeaea panel tint; the lighter #6e6e6a measured 4.2 to 4.3:1 there */
  --rule: rgba(18, 18, 18, 0.14);
  --rule-strong: rgba(18, 18, 18, 0.40);
  --night: #07080d;
  --night-2: #10121c;
  --night-3: #181b2a;
  --chalk: #f1f1ee;
  --chalk-2: #d3d4d1;
  --chalk-3: #b9bbb8; /* 70% brightness floor for text on dark (DESIGN_BRIEF.md) */
  --accent: #b9292f;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-text: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'Instrument Sans', system-ui, sans-serif;
  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --top-h: 56px;
  --rail-h: 56px;
  --filter-h: 44px;
  --scrub-h: 72px;
  /* 12-column scaffold: 7% outer margins, 16px gutters. Headlines sit flush left on column 2 (--col2);
     the top rail, the year rail's label column and view headers share these coordinates. */
  --margin: clamp(16px, 7vw, 120px);
  --gutter: 16px;
  --col: calc((100% - 2 * var(--margin) - 11 * var(--gutter)) / 12);
  --col2: calc(var(--margin) + var(--col) + var(--gutter));
  --fade: 240ms;
  color-scheme: light;
}
/* shared scaffold classes any view can adopt */
.g-pad { padding-inline: var(--margin); }
.g-col2 { padding-left: var(--col2); }
.col2 { left: var(--col2); }
.col2-head { margin-left: var(--col2); }
@media (max-width: 760px) { :root { --margin: 12px; } .g-col2 { padding-left: var(--margin); } .col2 { left: var(--margin); } .col2-head { margin-left: var(--margin); } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  font-variant-numeric: tabular-nums lining-nums;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-3); }
.skip:focus { left: var(--space-2); }
.sc { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App shell ---------- */
.topbar { grid-row: 1; } .filterbar { grid-row: 2; } .stage { grid-row: 3; } .scrubber { grid-row: 4; }
/* chrome is not prose: a drag across the top bar, the subnav, toggles, chips, segmented controls or cue labels selects nothing */
.topbar .brand, .topbar .views, .topbar .subnav, .filterbar .lbl, .chips, .chip, .toggle, .seg, .view-ctl, .scrubber .lbl, .sect-h, .ix-h, .fab-filter, .tabs, [role='tablist'], .st-key { -webkit-user-select: none; user-select: none; }
.app { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto var(--filter-h) 1fr var(--scrub-h); height: 100vh; height: 100dvh; }  /* the top bar row is its content height; --top-h is measured from it by main.js for the fixed layers */

.topbar {
  display: flex; align-items: stretch; gap: var(--space-4);
  border-bottom: 1px solid var(--rule-strong); padding: 0 var(--margin);
  background: var(--paper); position: relative; z-index: 6;
}
/* desktop rail: identity | tabs | section views (yields) | search. Each slot keeps its column when a tab
   has no sub navigation, so the tabs never move between sections. */
@media (min-width: 761px) {
  .topbar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: var(--rail-h); grid-template-areas: 'brand views subnav search'; column-gap: var(--space-4); }
  .brand { grid-area: brand; } .views { grid-area: views; margin-left: 0; } .subnav { grid-area: subnav; }
  .search { grid-area: search; align-self: center; margin-left: 0; }
}
.brand { display: flex; align-items: baseline; gap: var(--space-3); padding-top: 12px; white-space: nowrap; }
.brand h1 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1; margin: 0; letter-spacing: -0.005em; }
.brand h1 em { font-style: italic; }
.brand .yrs { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.06em; }

.views { display: flex; align-items: stretch; gap: 0; margin-left: auto; overflow-x: auto; scrollbar-width: none; position: relative; }
/* the active-tab mark is one element that slides between tabs (a morph, not a fade out and back) */
.tab-ind { position: absolute; bottom: -1px; height: 3px; background: var(--ink); left: 0; width: 0; opacity: 0; pointer-events: none; }  /* hard cut: the mark jumps with the view, no slide */
.views.has-ind .tab-ind { opacity: 1; }
.views.has-ind button[aria-current='page']::after { content: none; }
.views::-webkit-scrollbar { display: none; }
.views button {
  position: relative; border: 0; background: none; padding: 0 var(--space-3);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap; min-height: 44px; display: flex; align-items: center; gap: 6px;
}
.views button .n { font-size: 10.5px; color: var(--ink-3); opacity: 0.8; }
.views button:hover { color: var(--ink); }
.views button[aria-current='page'] { color: var(--ink); }
.views button[aria-current='page']::after { content: ''; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 3px; background: var(--ink); }

.search { position: relative; display: flex; align-items: center; width: 200px; flex: none; }
.search input {
  width: 100%; border: 1px solid var(--rule-strong); background: var(--paper); padding: 6px 10px 6px 28px;
  font-family: var(--font-mono); font-size: 12px; height: 32px;
}
.search > svg { position: absolute; left: 8px; width: 14px; height: 14px; color: var(--ink-3); }
.search-results {
  position: absolute; top: calc(100% + 4px); right: 0; width: min(420px, 92vw); max-height: 60vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--rule-strong); z-index: 30;
}
.search-results button { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-2); width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: var(--space-2) var(--space-3); }
.search-results button:hover, .search-results button[aria-selected='true'] { background: var(--paper-2); }
/* matches as a strip on the same thousand-year axis as the year rail, then the list */
.sr-tl { padding: 8px var(--space-3) 4px; border-bottom: 1px solid var(--rule-strong); }
.sr-tl .sr-n { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 2px; }
.sr-tl .sr-n b { color: var(--ink); font-weight: 500; }
.sr-tl svg { display: block; width: 100%; height: auto; overflow: visible; }
.sr-tl .ax { stroke: var(--rule-strong); shape-rendering: crispEdges; }
.sr-tl .yr { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); }
.scrubber svg g.age text { font-size: 10.5px; letter-spacing: 0.06em; }  /* type floor: the era labels */
.sr-tl .tk { stroke-width: 1.5; stroke-opacity: 0.5; }
.sr-tl .tk.on { stroke-width: 2; stroke-opacity: 1; cursor: pointer; }
.sr-tl .tk.hot, .sr-tl .tk.on:hover { stroke: var(--accent); stroke-width: 3; stroke-opacity: 1; }
.search-results .y { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); }
.search-results .t { font-size: var(--text-sm); line-height: 1.25; }
.search-results .empty { padding: var(--space-4); font-size: var(--text-sm); color: var(--ink-3); }
/* narrow screens: the results sheet spans the viewport under the top row instead of hanging off the search box */
@media (max-width: 760px) { .search-results { position: fixed; left: 8px; right: 8px; top: 48px; width: auto; max-height: calc(100dvh - var(--top-h) - var(--scrub-h) - 20px); } .search-results button { grid-template-columns: 40px 1fr; } }

/* ---------- Filter bar ---------- */
.filterbar {
  display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-4);
  border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 5; min-width: 0;
}
.filterbar .lbl { color: var(--ink-3); flex: none; }
.chips { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.chips[hidden], .filterbar > .lbl[hidden] { display: none !important; }
.chips.at-end { -webkit-mask-image: none; mask-image: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; background: none;
  padding: 3px 5px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; text-transform: lowercase;
  color: var(--ink-2); white-space: nowrap; min-height: 28px;
}
.chip i { width: 10px; height: 10px; display: inline-block; background: var(--c); }
.chip:hover { border-color: var(--rule-strong); }
.chip[aria-pressed='false'] { color: var(--ink-3); opacity: 0.55; }
.chip[aria-pressed='false'] i { background: transparent; outline: 1px solid var(--c); outline-offset: -1px; }
.fsel { display: flex; align-items: center; gap: 6px; flex: none; }
.fsel input[type='number'] {
  border: 1px solid var(--rule-strong); background: var(--paper); font-family: var(--font-mono); font-size: 11.5px;
  padding: 4px 4px; width: 58px; height: 28px; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.fsel input[type='number']::-webkit-inner-spin-button, .fsel input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fsel.fyr .lbl + .lbl { margin-left: 4px; }
.fsel select {
  border: 1px solid var(--rule-strong); background: var(--paper); font-family: var(--font-mono); font-size: 11.5px;
  padding: 4px 6px; max-width: 150px; height: 28px;
}
.count { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); flex: none; white-space: nowrap; }
.count b { color: var(--ink); font-weight: 500; }
/* the register switch and the period overlays toggle (Vision 4 S5, S6), on the Stream, Columns and Wheel */
.reg-sw { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.reg-sw .toggle button { font-size: 12px; padding: 3px 9px; }
.reg-sw .reg-ov { font-size: 12px; }
@media (max-width: 599px) { .reg-sw { display: none !important; } }  /* under 600 the register stays on its default and the count holds still */
.reg-sw .reg-ov[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.btn-ghost { border: 1px solid var(--rule-strong); background: none; font-family: var(--font-mono); font-size: 11.5px; padding: 3px 8px; min-height: 28px; letter-spacing: 0.04em; }
.btn-ghost:hover { background: var(--paper-2); }
.mobile-only { display: none !important; }

/* ---------- Stage ---------- */
.stage { position: relative; overflow: hidden; min-height: 0; }
/* Hard cut on a beat: a tab switch swaps the view in one frame; the rails (title, tabs, year rail) never move. */
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.view.on { opacity: 1; visibility: visible; }
/* inactive top-level views must not take clicks, hovers, focus or a place in the accessibility tree */
.stage > .view:not(.on) { visibility: hidden; pointer-events: none; }
.stage > .view:not(.on) .view { visibility: hidden; }  /* the Today sections inside an inactive host stay hidden too */
.view.scroll-y { overflow-y: auto; overflow-x: hidden; }
.view.scroll-xy { overflow: auto; }
.view[data-view^='play'], html[data-tab='play'] .stage > .view { overflow-y: auto; overflow-x: hidden; }  /* the Play page scrolls like Impact and Patterns, keyed to the page so any view id (first / year / beat, or a later split) gets it */
.view svg { display: block; }
.view canvas { display: block; }
.app.dark .stage { background: var(--night); color: var(--chalk); }
.app.dark .stage::before { content: none; }

.view-head { position: absolute; left: var(--space-4); top: var(--space-3); z-index: 3; pointer-events: none; display: grid; grid-template-columns: auto minmax(0, 60ch); column-gap: var(--space-6); align-items: end; right: 260px; }
.view-head .sc { grid-column: 1 / -1; }
/* opt in per view: the headline moves to column 2 of the scaffold (DESIGN_BRIEF.md); mobile falls back to the margin */
.view-head.col2 { left: var(--col2); }
@media (max-width: 760px) { .view-head.col2 { left: var(--margin); } }
.view-head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1; margin: 0; white-space: nowrap; }
.view-head p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); line-height: 1.3; padding-bottom: 3px; }
.app.dark .view-head p { color: var(--chalk-2); }
.view-head .sc { color: var(--ink-3); display: block; margin-bottom: 4px; }
.app.dark .view-head .sc { color: var(--chalk-3); }

.toggle { display: inline-flex; border: 1px solid var(--rule-strong); overflow: hidden; pointer-events: auto; }
.toggle button { border: 0; background: none; font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); min-height: 28px; }
.toggle button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.app.dark .toggle { border-color: rgba(241, 241, 238, 0.35); }
.app.dark .toggle button { color: var(--chalk-2); }
.app.dark .toggle button[aria-pressed='true'] { background: var(--chalk); color: var(--night); }

.view-head.stacked { grid-template-columns: 1fr; right: auto; width: 270px; row-gap: 6px; }
/* Strata carries a wider control group (Paths, Off / Show lineages, Recenter); its text column stops short of it */
.st-head { right: 420px; }
.view-head.stacked p { padding-bottom: 0; }
@media (min-width: 761px) { .anat-head p { display: none; } }
/* svg typography */
.axis text, .tick-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); }
.axis line, .axis path { stroke: var(--rule-strong); }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }
.hair { stroke: var(--rule); stroke-width: 1; fill: none; }

/* ---------- Tooltip ---------- */
.tip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 300px; padding: 8px 10px;
  background: var(--ink); color: var(--paper); font-size: var(--text-sm); line-height: 1.3; opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
  border: 1px solid rgba(220, 230, 238, 0.28);  /* a hairline so the plate keeps its edge over night and blueprint grounds */
}
.tip.on { opacity: 1; transform: none; }
.tip .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.tip .k i { width: 8px; height: 8px; display: inline-block; }
.tip .h { font-family: var(--font-text); }
.tip .m { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.7; margin-top: 4px; }

/* ---------- Scrubber ---------- */
.scrubber { border-top: 1px solid var(--rule-strong); background: var(--paper); position: relative; z-index: 5; display: grid; grid-template-columns: var(--col2) 1fr; min-width: 0; }
.scrub-label { padding: 10px 6px 10px var(--margin); border-right: 1px solid var(--rule); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.scrub-label .sc { color: var(--ink-3); }
.scrub-label .rng { font-family: var(--font-display); font-size: 17px; line-height: 1; white-space: nowrap; letter-spacing: -0.01em; }
.scrub-label .rng button { border: 0; background: none; padding: 0; font: inherit; }
.scrub-svg { min-width: 0; position: relative; }
.scrub-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrub-svg .selection { fill: rgba(18, 18, 18, 0.06); stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.scrub-svg .handle { fill: var(--ink); }
/* window label: the chosen years sit over the brush in a crisp ground tile */
.scrub-win rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.scrub-win text { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; fill: var(--ink); }
.scrub-svg .overlay { cursor: crosshair; }
/* this week: the record's newest date, pulsing */
.scrub-now .tick { stroke: var(--accent); stroke-width: 1.2; stroke-opacity: 0.8; }
.scrub-now .dot { fill: var(--accent); }
/* the "now" marker scales in once when it appears, then stands as a static ring (the newest date does not move while you watch) */
.scrub-now .halo { fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: scrub-in 600ms ease-out both; }
@keyframes scrub-in { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1.7); opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .scrub-now .halo { animation: none; opacity: 0.6; } }
/* the Stream's edge: the last thirty days as a soft band, the last seven as a bright edge */
.st-now-month { fill: rgba(247, 247, 245, 0.22); }
.st-now-week { fill: rgba(247, 247, 245, 0.62); }
.st-now-edge { stroke: var(--accent); stroke-width: 1.5; }
.st-now-label { fill: var(--accent); }

/* ---------- Drawer ---------- */
/* Impact between phone and 1366: the drawer is a bottom sheet so the head and the reading columns stay */
@media (min-width: 761px) and (max-width: 1365px) {
  .drawer.sheet { top: auto; bottom: var(--scrub-h); height: 38dvh; width: 100%; border-left: 0; border-top: 1px solid var(--rule-strong); transform: translateY(102%); }
  .drawer.sheet.on { transform: none; }
  body.drawer-sheet .view.on[data-view='impact'] { padding-bottom: 38dvh; }
}
/* an index's "Open the record" control (data-reopen), the mono bordered button of the Connections index */
.ix-open { font: 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); padding: 7px 10px; margin: 8px 0 0; cursor: pointer; }
.ix-open:hover, .ix-open:focus-visible { background: var(--ink); color: var(--paper); outline: 0; }
/* the one-line note that stands in the drawer's place when the hash names a record the index does not hold */
.drawer-note { position: fixed; top: calc(var(--top-h) + var(--filter-h) + 12px); right: 16px; z-index: 19; margin: 0; padding: 8px 12px; max-width: min(408px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--rule-strong); font: 12px/1.45 var(--font-mono); letter-spacing: 0.02em; color: var(--ink); overflow-wrap: anywhere; }
.drawer {
  position: fixed; top: calc(var(--top-h) + var(--filter-h)); right: 0; bottom: var(--scrub-h); width: min(440px, 100vw);
  background: var(--paper); border-left: 1px solid var(--rule-strong); z-index: 20; transform: translateX(102%);
  transition: transform 0.38s var(--ease); display: flex; flex-direction: column;
  color: var(--ink);
}
.drawer.on { transform: none; }
.drawer-head { padding: var(--space-3) var(--space-5) var(--space-4); border-bottom: 1px solid var(--rule-strong); flex: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.drawer-title:empty { display: none; }
.drawer-title h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); line-height: 1; letter-spacing: -0.01em; margin: var(--space-3) 0 var(--space-2); }
.drawer-title .date { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.05em; display: flex; gap: var(--space-3); flex-wrap: wrap; }
.drawer-foot { flex: none; display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; border-top: 1px solid var(--rule-strong); background: var(--paper-2); padding: var(--space-2) var(--space-5); min-height: 44px; }
.drawer-foot .where-draw.cx-brush, .drawer-foot .where-jump { display: inline-flex; align-items: center; gap: 6px; height: 26px; margin: 0; padding: 0 10px; box-sizing: border-box; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 0; cursor: pointer; white-space: nowrap; }
.drawer-foot .where-jump { border-color: transparent; background: none; color: var(--ink-2); padding: 0 4px; }
.drawer-foot .where-jump b { font-weight: 500; color: var(--ink); }
.drawer-foot .where-draw.cx-brush:hover, .drawer-foot .where-draw.cx-brush:focus-visible { background: var(--ink); color: var(--paper); }
.drawer-foot .where-jump:hover, .drawer-foot .where-jump:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.drawer-body.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
.drawer-body .sources { font-size: var(--text-base); line-height: 1.35; }
.drawer-body .sources li { margin-bottom: 8px; }
.drawer-body .sources .host { font-size: var(--text-xs); margin-top: 1px; }
.drawer-body > .verif { margin-top: var(--space-3); margin-bottom: var(--space-4); }
.drawer-foot[hidden] { display: none; }
.drawer-foot .sect-h { border-top: 0; padding-top: 0; margin: 0 0 var(--space-2); }
.drawer-foot .sources { font-size: var(--text-base); line-height: 1.35; }
.drawer-foot .sources li { margin-bottom: 8px; }
.drawer-foot .sources .host { font-size: var(--text-xs); margin-top: 1px; }
.drawer-foot .verif { margin-top: var(--space-3); }
.drawer-head .kicker { display: flex; align-items: center; gap: 8px; color: var(--ink-2); flex-wrap: wrap; }
.drawer-head .kicker i { width: 10px; height: 10px; display: inline-block; }
/* kicker parts are flex items; the separator belongs to the item that follows, so a wrapped line never ends in a dot */
.drawer-head .kicker .ki { display: inline-flex; align-items: center; }
.drawer-head .kicker .ki + .ki::before { content: '\00b7'; margin-right: 8px; color: var(--ink-3); }
.icon-btn { border: 1px solid var(--rule-strong); background: none; width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 14px; height: 14px; }
.drawer-body { overflow-y: auto; padding: var(--space-5); flex: 1; }
.drawer-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); line-height: 1.05; margin: 0 0 var(--space-2); }
.drawer-body .date { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.05em; margin-bottom: var(--space-4); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.drawer-body .summary { font-size: var(--text-base); margin: 0 0 var(--space-5); }
/* the Ledger's span line under its headline: the count and the years in view, from the data */
.ledger .lg-hl-wrap { min-width: 0; }
.ledger .lg-span { margin: 6px 0 0; font-family: var(--font-text); font-size: 14px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* the scale note: "editorial" beside the readouts is a disclosure; the note sits under the date row while open */
.drawer-title .date .scale-k { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.drawer-title .date .scale-k[aria-expanded='true'], .drawer-title .date .scale-k:hover { color: var(--ink); }
.drawer-title .scales { margin: 6px 0 0; font-family: var(--font-text); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
/* supporting detail: a closed disclosure after the relations, paragraphs inside */
.drawer-body details.detail { margin: var(--space-2) 0 var(--space-3); }
.drawer-body details.detail summary { cursor: pointer; font-family: var(--font-text); font-style: italic; font-size: var(--text-sm); color: var(--ink-2); list-style: none; }
.drawer-body details.detail summary::-webkit-details-marker { display: none; }
.drawer-body details.detail summary::before { content: '\25B8'; display: inline-block; width: 14px; font-style: normal; }
.drawer-body details.detail[open] summary::before { content: '\25BE'; }
.drawer-body details.detail p { margin: var(--space-2) 0 0; font-size: var(--text-sm); line-height: 1.5; }
.dl { display: grid; grid-template-columns: 86px 1fr; gap: 6px var(--space-3); margin: 0 0 var(--space-5); font-size: var(--text-sm); border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.dl dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.dl dd { margin: 0; }
.tagbtn { border: 1px solid var(--rule-strong); background: none; font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; margin: 0 4px 4px 0; }
.tagbtn:hover { background: var(--ink); color: var(--paper); }
.sect-h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: var(--space-3); margin: var(--space-4) 0 var(--space-2); display: flex; justify-content: space-between; }
.minigraph { width: 100%; height: 200px; display: block; background: var(--paper-2); border: 1px solid var(--rule); }
.minigraph text { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-2); }
.links { list-style: none; margin: 0; padding: 0; }
.links li button { display: grid; grid-template-columns: 12px 44px 1fr; gap: 8px; align-items: baseline; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 7px 0; font-size: var(--text-sm); line-height: 1.25; }
.links li button:hover { background: var(--paper-2); }
.links li i { width: 8px; height: 8px; display: inline-block; }
.links .y { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.links .dir { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.sources { margin: 0; padding: 0 0 0 1.1em; font-size: var(--text-sm); }
.sources li { margin-bottom: 6px; }
.sources a { text-decoration-color: var(--rule-strong); text-underline-offset: 2px; word-break: break-word; }
.sources a:hover { text-decoration-color: var(--ink); }
.sources .host { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); display: block; }

/* ---------- Drawer list mode: the records behind a number ---------- */
.ls-list .ls-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--rule); padding: 7px 0; font-size: var(--text-sm); line-height: 1.3; }
.ls-list .ls-row b { font-weight: 500; }
.ls-list .ls-sub { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.ls-back { display: block; border: 0; background: none; padding: 0; margin: var(--space-2) 0 0; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--ink-2); text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-back:hover { color: var(--ink); text-decoration: underline; }
.ls-list .ls-pair { border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.ls-list .ls-pair button { border-bottom: 0; padding-bottom: 2px; }
.ls-list .ls-pair .ls-from { padding-top: 0; color: var(--ink-2); }
.ls-list .ls-pair .ls-from .y::before { content: '\2190'; margin-right: 4px; }
.ls-list .ls-lag { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); padding-left: 64px; }
.ls-list .ls-empty { font-size: var(--text-sm); color: var(--ink-3); padding: 8px 0; }
/* Patterns: every number is a way in; the headline numeral is a button and the cue says so once */
.pt-num[data-behind] { cursor: pointer; }
.pt-num[data-behind]:hover .pt-big, .pt-num[data-behind]:focus-visible .pt-big { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.pt-tkb:hover { text-decoration: underline; }

/* ---------- Empty / loading ---------- */
.state-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--space-8); }
.state-msg h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.state-msg p { color: var(--ink-3); max-width: 42ch; margin: 0 auto var(--space-4); font-size: var(--text-sm); }
.loading-bars { display: flex; gap: 3px; justify-content: center; height: 40px; align-items: flex-end; margin-bottom: var(--space-4); }
.loading-bars span { width: 6px; background: var(--c); animation: lb 1.2s var(--ease) infinite alternate; }
@keyframes lb { from { height: 6px; } to { height: 40px; } }

/* ---------- Columns view ---------- */
.cols-head { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--rule-strong); }
/* ---------- Rates view ---------- */
.rates { padding: 96px var(--space-4) var(--space-8); display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); grid-auto-flow: dense; gap: 0; }
.rate { border-top: 1px solid var(--rule-strong); border-right: 1px solid var(--rule); padding: var(--space-3) var(--space-4) var(--space-4); min-width: 0; }
.rate h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.1; margin: 4px 0 2px; }
.rate .u { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.rate .src { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
.rate .src a { color: var(--ink-2); }
.rate .note { font-size: var(--text-xs); color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
.rate svg text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 1520px) and (min-width: 761px) {
  .views button { padding: 0 9px; }
  .search { width: 170px; }
}
@media (max-width: 1360px) and (min-width: 761px) {
  .brand .yrs { display: none; }
  .views button { padding: 0 8px; }
  .views button .n { display: none; }
  .search { width: 150px; }
  .filterbar > .lbl.sc:first-child { display: none; }  /* the Domains word only; the select labels stay (visually hidden where the row is tight) */
}
@media (max-width: 1100px) and (min-width: 761px) {
  .brand h1 { font-size: 22px; }
  .fsel .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }  /* the labels stay in view; the row wraps when tight */
  .filterbar { row-gap: 2px; }
  .view-head p { display: none; }
}
/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --top-h: 92px; --filter-h: 0px; --scrub-h: 60px; }
  .app { grid-template-rows: var(--top-h) 0 1fr var(--scrub-h); }  /* phones keep the fixed rows (the wrapped flex bar has no reliable intrinsic height) */
  .topbar { flex-wrap: wrap; padding: 0 var(--margin); gap: 0 var(--space-2); align-content: flex-start; }
  .brand { padding-top: 10px; flex: 1; min-width: 0; }
  .brand h1 { font-size: 22px; }
  .brand .yrs { display: none; }
  .view-ctl .sc { display: none; }
  .view-ctl { top: 44px !important; }
  .view-head .sc { font-size: 10.5px; }
  .search { min-width: 0; width: 132px; margin-top: 8px; height: 32px; }
  .views { order: 3; width: 100%; margin-left: calc(-1 * var(--space-3)); margin-right: calc(-1 * var(--space-3)); padding: 0 var(--space-1); border-top: 1px solid var(--rule); height: 44px; flex: none; width: calc(100% + 2 * var(--space-3)); }
  .views button { padding: 0 10px; }
  .filterbar { position: fixed; top: var(--top-h); left: 0; right: 0; flex-wrap: wrap; padding: var(--space-3); gap: var(--space-2); transform: translateY(-120%); transition: transform 0.3s var(--ease); border-bottom: 1px solid var(--rule-strong); visibility: hidden; }
  .filterbar.open { transform: none; visibility: visible; }
  .chips { flex-wrap: wrap; flex-basis: 100%; }
  .mobile-only { display: inline-flex !important; }
  /* the Filters control is a trailing pill in the sub navigation row, not a button floating over the content */
  .fab-filter { position: fixed; right: var(--space-2); top: calc(var(--top-h) - 35px); z-index: 15; background: var(--ink); color: var(--paper); border: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 10px; height: 30px; align-items: center; gap: 6px; }
  .scrubber { grid-template-columns: 74px 1fr; }
  .scrub-label { padding: 6px var(--space-2) 6px var(--margin); }
  .scrub-label .rng { font-size: 13px; }
  .scrub-label .sc { font-size: 10.5px; }
  .drawer { top: auto; bottom: 0; height: 86dvh; width: 100%; border-left: 0; border-top: 1px solid var(--rule-strong); transform: translateY(102%); }
  .drawer-note { top: auto; bottom: calc(var(--scrub-h) + 12px); left: 16px; right: 16px; max-width: none; }
  .drawer.on { transform: none; }
  /* Draw the links on a phone: the drawer folds to a 96px bar (kicker, title, a control to open the record again) and the
     Connections index opens as a bottom sheet above it, so the Stream and its lit links are what the screen shows */
  .drawer.folded { height: 96px; overflow: hidden; transition: transform 0.38s var(--ease), height 0.3s var(--ease); }
  .drawer.folded .drawer-body, .drawer.folded .drawer-foot, .drawer.folded .drawer-title .date, .drawer.folded .drawer-title .trail { display: none; }
  .drawer.folded .drawer-head { padding: 8px var(--space-3) 6px; border-bottom: 0; }
  .drawer.folded .drawer-title h3 { font-size: 17px; line-height: 1.15; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .drawer-unfold { display: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); min-height: 28px; padding: 0 10px; margin-left: auto; white-space: nowrap; }
  .drawer.folded .drawer-unfold { display: inline-flex; align-items: center; }
  /* while the sheet is up the Stream's standfirst and key give way, so the column shows between the controls and the sheet */
  body.sheet-open .view[data-view='stream'] .view-head p, body.sheet-open .view[data-view='stream'] .st-key { display: none; }
  #cx-sheet.cx-sheet { position: fixed; left: 0; right: 0; top: auto; bottom: 96px; max-height: 32dvh; width: auto; z-index: 21; background: var(--paper); border-top: 1px solid var(--rule-strong); border-left: 0; padding: 8px var(--space-3) 12px; overflow: auto; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08); }
  #cx-sheet.cx-sheet .cx-open { display: none; }  /* the folded bar carries the control */
  #cx-sheet.cx-sheet[hidden] { display: none; }
  .drawer.folded .drawer-head .kicker { min-width: 0; overflow: hidden; }
  .drawer.folded .drawer-head .kicker .rhd { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .view-head { left: var(--space-3); right: 110px; top: var(--space-2); display: block; }
  .view-head p { display: none; }
  .rates { padding: 64px var(--space-2) 96px; grid-template-columns: 1fr; }
  .rate { border-right: 0; padding: var(--space-3) var(--space-2) var(--space-4); }
}
@keyframes an-dash { to { stroke-dashoffset: -32; } }
.app.dark .view-head h2 { color: var(--chalk); }

.verif { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule); font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.verif span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 6px; }
.verif.ok span { color: #3f6f4a; }
.verif.part span { color: #9a5a12; }
.verif.bad span { color: #a63a2b; }
.verif.no span { color: var(--ink-3); }
.verif.bad { border-top-color: #c9705f; }
.verif summary { cursor: pointer; list-style: none; }
.verif summary::-webkit-details-marker { display: none; }
.verif summary::after { content: ' +'; font-family: var(--font-mono); }
.verif[open] summary::after { content: ' \2212'; }
.verif details p, .verif p + p { margin-top: var(--space-2); }
/* strata exploded era sheet */
.era-sheet { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100% - 24px)); z-index: 6; background: rgba(14, 15, 17, 0.97); border: 1px solid rgba(241, 241, 238, 0.28); display: flex; flex-direction: column; color: var(--chalk); }
.era-sheet[hidden] { display: none; }
.era-sheet header { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid rgba(241, 241, 238, 0.18); border-top: 3px solid var(--c); }
.era-sheet h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--c); margin-top: 4px; }
.era-sheet header p { font-family: var(--font-mono); font-size: 11px; color: var(--chalk-2); margin-top: 6px; }
.era-sheet .sc { color: var(--chalk-2); }
.era-nav { display: flex; gap: 4px; align-items: flex-start; }
.era-nav button { width: 32px; height: 32px; border: 1px solid rgba(241, 241, 238, 0.35); background: none; color: var(--chalk); font-size: 16px; }
.era-nav button:hover { background: rgba(241, 241, 238, 0.08); }
.era-body { overflow: auto; padding: 8px 18px 18px; overscroll-behavior: contain; }
.era-yr { display: grid; grid-template-columns: 48px 1fr; gap: 8px; border-top: 1px solid rgba(241, 241, 238, 0.1); padding: 6px 0; }
.era-yr .y { font-family: var(--font-display); font-size: 20px; color: var(--chalk); line-height: 1.2; }
.era-yr ol { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }
.era-yr button { display: grid; grid-template-columns: 10px 30px 1fr; column-gap: 8px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; color: var(--chalk); padding: 3px 4px; }
.era-yr button:hover { background: rgba(241, 241, 238, 0.08); }
.era-yr i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.era-yr .m { font-family: var(--font-mono); font-size: 10.5px; color: var(--chalk-3); text-transform: uppercase; }
.era-yr .t { font-family: var(--font-text); font-size: 14px; line-height: 1.3; }
.era-yr .k { grid-column: 3; font-family: var(--font-mono); font-size: 10px; color: var(--chalk-3); }
.era-sheet .empty { color: var(--chalk-2); padding: 16px 0; }

@media (max-width: 1520px) { .search { width: 150px; } }
@media (max-width: 760px) {
  .search { width: 108px; }
}
@media (max-width: 760px) { .era-sheet { position: fixed; top: calc(var(--top-h) + 8px); bottom: calc(var(--scrub-h) + 8px); left: 8px; right: 8px; width: auto; } .era-sheet h3 { font-size: 24px; } }

/* responsive nav and filter bar between tablet and wide desktop */
.views button .sh { display: none; }
.views { min-width: 0; }
@media (max-width: 1499px) and (min-width: 761px) {
  .views button .lg { display: none; }
  .views button .sh { display: inline; }
}
@media (max-width: 1599px) and (min-width: 761px) {
  :root { --filter-h: 78px; }
  .filterbar { flex-wrap: wrap; align-content: center; row-gap: 4px; padding-top: 4px; padding-bottom: 4px; }
  .filterbar > .lbl.sc:first-child { display: none; }  /* the Domains word only; the select labels stay (visually hidden where the row is tight) */
  .chips { flex: 1 0 100%; order: -1; }
  .fsel .lbl { display: inline; }
  .count { margin-left: auto; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .search { width: 130px; }
  .brand h1 { font-size: 21px; }
  .topbar { gap: var(--space-3); }
}

/* ---------- H. Model genealogy ---------- */
.gen-top { position: sticky; left: 0; width: min(100%, 100vw); padding: 12px 16px 10px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 28px; }
.gen-top .view-head { position: static; display: grid; right: auto; }
.gen-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); max-width: 760px; }
.gen-legend .lg-group { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.gen-legend .sc { color: var(--ink-3); font-size: 10.5px; margin-right: 2px; }
.gen-legend .lg-i { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gen-legend .lg-i i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.gen-legend svg { display: inline-block; }
.gen-head { position: sticky; top: 0; z-index: 4; display: flex; background: var(--paper); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.gen-head .gh-rail { flex: none; position: sticky; left: 0; background: var(--paper); z-index: 2; }
.gen-head .gh-lane { flex: none; display: flex; flex-direction: column; padding: 0 10px 7px; border-left: 1px solid var(--rule); background: color-mix(in srgb, var(--c) 16%, var(--paper)); }
.gen-head .bar { height: 4px; background: var(--c); margin: 0 -10px 6px; }
.gen-head .nm { font-family: var(--font-display); font-size: 19px; line-height: 1.05; }
.gen-head .sub { font-size: 11.5px; font-style: italic; color: var(--ink-3); line-height: 1.2; margin-top: 2px; min-height: 2.4em; }
.gen-head .ct { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); margin-top: auto; padding-top: 3px; }
.gen-body { display: flex; align-items: flex-start; position: relative; }
.gen-rail { position: sticky; left: 0; z-index: 2; flex: none; }
.gen-svg { flex: none; }
.gen-svg g.m:focus { outline: none; }
.gen-svg g.m:focus-visible rect.hit, .gen-svg g.m.sel rect.hit { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 2; }
@media (max-width: 760px) {
  .gen-top { padding: 8px 12px 8px; }
  .gen-legend { font-size: 10.5px; gap: 4px 14px; }
  .gen-legend .lg-mod .lg-i:nth-child(n) { font-size: 10.5px; }
  .gen-head .nm { font-size: 17px; }
}

/* ---------- I. Capital and compute ---------- */
.cap-top { padding: 12px 16px 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: end; }
.cap-top .view-head { position: static; display: grid; right: auto; }
/* below 1380 the controls take a row of their own; the lead paragraph keeps its measure instead of a 107px column */
@media (max-width: 1380px) { .cap-top { grid-template-columns: 1fr; } .cap-top .cap-ctl { justify-content: flex-start; } .cap-top .view-head { grid-template-columns: auto minmax(0, 60ch); } }
.cap-ctl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cap-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); align-items: center; }
.cap-legend .lg-i { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cap-legend .lg-i i { width: 14px; height: 6px; display: inline-block; }
.cap-legend .lg-note { color: var(--ink-3); font-style: italic; font-family: var(--font-text); font-size: 12.5px; }
.cap-sum { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 6px; }
.cap-sum b { color: var(--ink); font-weight: 600; }
.cap-flow { overflow-x: auto; padding: 0 0 24px; }
.cap-flow svg { display: block; }
.cap-flow g.nd:focus { outline: none; }
.cap-ledger { padding: 4px 16px 40px; max-width: 1100px; }
.led-g h3 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 18px 0 4px; border-bottom: 1px solid var(--rule-strong); padding-bottom: 4px; }
.led-g h3 .n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.led-g ol { list-style: none; margin: 0; padding: 0; }
.led-g li { border-bottom: 1px solid var(--rule); padding: 6px 0 7px; }
.led-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 76px minmax(0, 1fr) 170px; gap: 12px; width: 100%; align-items: baseline; }
.led-row:hover .who { text-decoration: underline; text-underline-offset: 3px; }
.led-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.led-row .dt { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.led-row .pr { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; min-width: 0; }
.led-row .who { font-size: 15px; overflow-wrap: anywhere; }
.led-row .kd { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.led-row .kd i { width: 10px; height: 5px; display: inline-block; }
.led-row .am { font-family: var(--font-mono); font-size: 12px; text-align: right; display: grid; gap: 3px; justify-items: end; }
.led-row .am .bar { height: 4px; display: block; opacity: 0.75; }
.led-g .src { display: block; margin-left: 88px; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.led-empty { font-style: italic; color: var(--ink-3); }
@media (max-width: 760px) {
  .cap-top { grid-template-columns: 1fr; padding: 8px 12px 6px; }
  .cap-ctl { justify-content: flex-start; }
  .cap-ledger { padding: 0 12px 40px; }
  .led-row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .led-row .dt { grid-column: 1 / -1; }
  .led-row .am { grid-row: 2; grid-column: 2; min-width: 70px; }
  .led-g .src { margin-left: 0; }
}

/* below 1380px the sub navigation moves to its own row */
@media (max-width: 1380px) and (min-width: 761px) {
  :root { --top-h: 97px; }  /* rail 56 + band 40 + hairline; main.js replaces it with the measured height */
  .brand { min-width: 0; }
  .views button { padding: 0 8px; }
  .views button .n { display: inline; }
}
@media (max-width: 1000px) and (min-width: 761px) { .views button .n { display: none; } }
@media (max-width: 1360px) and (min-width: 1200px) {
  .views button { padding: 0 7px; letter-spacing: 0.03em; }
}
.led-row .am .tn { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- J. Threads: the walk caption (a corner card that narrates a thread on the map) ---------- */
.tourbar { position: fixed; z-index: 14; left: 16px; bottom: calc(var(--scrub-h) + 14px); width: min(500px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border: 1px solid var(--rule-strong); border-top: 4px solid var(--tc); display: flex; flex-direction: column; max-height: calc(100dvh - var(--top-h) - var(--scrub-h) - 40px); }
.tourbar[hidden] { display: none; }
.tourbar.right { left: auto; right: 16px; }
.tb-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 4px 14px; }
.tb-head .sc { flex: 1; min-width: 0; font-size: 11px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-head .sc i { width: 8px; height: 8px; background: var(--tc); flex: none; }
.tb-ct { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tb-on { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.tb-on select { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); min-height: 26px; padding: 0 4px; cursor: pointer; }
.tb-on select:hover { border-color: var(--ink); }
.tb-story { border: 0; background: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; min-height: 30px; cursor: pointer; }
.tb-story:hover { color: var(--ink); }
.tb-x { border: 0; background: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-2); }
.tb-x:hover { background: rgba(18, 18, 18, 0.06); color: var(--ink); }
/* progress rail: one segment per step; the current one fills while the walk plays */
.tb-prog { display: flex; gap: 3px; padding: 0 14px; }
.tb-prog button { flex: 1; height: 14px; border: 0; padding: 5px 0; background: none; cursor: pointer; min-width: 0; }
.tb-prog button i { display: block; position: relative; height: 4px; background: var(--rule-strong); opacity: 0.5; overflow: hidden; }
.tb-prog button.done i { background: var(--tc); opacity: 0.6; }
.tb-prog button.on i { background: color-mix(in srgb, var(--tc) 45%, var(--ground)); opacity: 1; }
.tb-prog button.on i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
.tourbar.playing .tb-prog button.on i::after { animation: tb-fill var(--step-ms, 6s) linear forwards; }
.tourbar:not(.playing) .tb-prog button.on i::after { width: 100%; }
@keyframes tb-fill { from { width: 0; } to { width: 100%; } }
.tb-prog button:hover i { opacity: 1; }
.tb-body { padding: 8px 14px 2px; overflow-y: auto; min-height: 0; }
.tb-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); align-items: baseline; }
.tb-meta .yr { color: var(--ink); white-space: nowrap; }
.tb-meta i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: 0; }
.tb-meta .vw { flex-basis: 100%; font-family: var(--font-text); font-size: 14px; color: var(--ink-2); line-height: 1.3; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 150ms; }
.tb-meta .vw:hover { color: var(--ink); text-decoration-color: var(--ink-3); }
.tb-meta .vw::after { content: ' \2192'; color: var(--ink-3); }
.tb-say { font-family: var(--font-display); font-size: 21px; line-height: 1.2; margin: 6px 0 4px; color: var(--ink); text-wrap: pretty; }
.tb-ctl { display: flex; gap: 6px; padding: 8px 14px 12px; align-items: center; flex-wrap: wrap; }
.tb-ctl button, .tc-ctl button, .rh-foot button { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; min-height: 34px; padding: 0 12px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; }
.tb-ctl button:hover:not(:disabled), .tc-ctl button:hover, .rh-foot button:hover { border-color: var(--ink); }
.tb-ctl button:disabled { opacity: 0.4; cursor: default; }
.tb-ctl [data-a='p'], .tb-ctl [data-a='n'] { padding: 0 10px; min-width: 36px; }
.tb-ctl [data-a='pp'] { display: inline-flex; align-items: center; gap: 7px; min-width: 92px; justify-content: center; }
.tb-ctl .ghost { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; color: var(--ink-2); }
.tb-ctl .ghost:hover { color: var(--ink); }
.tb-ctl .pri, .tc-ctl .pri { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tb-ctl .pri:hover, .tc-ctl .pri:hover { background: #000; }
.tb-speed { display: inline-flex; border: 1px solid var(--rule-strong); overflow: hidden; margin-left: 2px; }
.tb-speed button { border: 0; min-height: 32px; padding: 0 8px; color: var(--ink-3); border-left: 1px solid var(--rule); }
.tb-speed button:first-child { border-left: 0; }
.tb-speed button[aria-pressed='true'] { color: var(--paper); background: var(--ink-2); }
.tb-ctl .tb-on { margin-left: auto; }
.tourbar.min .tb-body, .tourbar.min .tb-ctl { display: none; }
/* the lit events on the map */
.walk-lit .lit-thread { fill: none; stroke-width: 1.3; stroke-dasharray: 3 4; stroke-linecap: round; opacity: 0.75; }
.walk-lit .lit .glow { fill: #fff; opacity: 0.35; }
.walk-lit .lit.cur .glow { opacity: 0.55; }
.walk-lit .lit .dot { stroke: #fff; stroke-width: 1.8; }
.walk-lit .lit .core { fill: #121212; }
/* the current step's ring scales in once per step, then holds; the step change is the motion, not a loop */
.walk-lit .lit.cur .ring { fill: none; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: lit-in 600ms ease-out both; }
@keyframes lit-in { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1.6); opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .walk-lit .lit.cur .ring { animation: none; opacity: 0.8; } .tourbar.playing .tb-prog button.on i { animation: none; background-size: 100% 100%; } }
@media (max-width: 760px) {
  .tourbar { left: 8px; right: 8px; width: auto; bottom: calc(var(--scrub-h) + 8px); }
  body.touring .fab-filter, body.drawer-open .fab-filter, body.story-on .fab-filter, body.search-open .fab-filter { display: none !important; }
  html[data-tab='past'] .subnav { padding-right: 96px; }
  .tourbar.right { left: 8px; right: 8px; }
  .tb-on .lg { display: none; }
  .tb-say { font-size: 18px; }
  .tb-story { display: none; }
}

/* ---------- J. Threads view ---------- */
.th-wrap { max-width: 1440px; padding: 14px 16px 120px; }
.th-head { max-width: 760px; margin-bottom: 14px; }
.th-head .sc { color: var(--ink-3); font-size: 11px; }
.th-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; margin: 4px 0 8px; }
.th-head p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.th-head .k { font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.th-head .k i { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 2px; vertical-align: -1px; }
.rh-head { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule-strong); max-width: none; }
.rh-head p { max-width: 760px; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.tc { position: relative; border: 1px solid var(--rule-strong); background: color-mix(in srgb, var(--tc) 6%, var(--paper)); padding: 0 16px 14px; display: flex; flex-direction: column; }
.tc-bar { height: 5px; background: var(--tc); margin: 0 -16px 10px; }
.tc-top { display: flex; justify-content: space-between; color: var(--ink-3); }
.tc-top .sc { font-size: 10.5px; }
.tc h3 { font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.05; margin: 6px 0 6px; }
.tc > p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.th-strip { position: relative; height: 14px; border-bottom: 1px solid var(--rule-strong); margin-top: auto; }
.th-strip span { position: absolute; bottom: 0; width: 2px; height: 12px; transform: translateX(-1px); opacity: 0.85; }
.th-strip .early { position: absolute; left: 0; bottom: 2px; width: auto; height: auto; transform: none; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); background: none !important; opacity: 1; }
.th-ax { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); margin: 2px 0 10px; }
.tc-steps { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13.5px; line-height: 1.35; }
.tc-steps li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px dotted var(--rule); }
.tc-steps .y { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); flex: none; width: 34px; padding-top: 1px; }
.tc-steps .more { color: var(--ink-3); font-style: italic; border-bottom: 0; padding-left: 42px; }
.tc-ctl { display: flex; gap: 8px; }
.rh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); gap: 16px; }
.rh { border: 1px solid var(--rule-strong); padding: 14px 16px; background: var(--paper); transition: border-color 0.15s; }
.rh:hover, .rh.pin { border-color: var(--ink); }
.rh h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.1; margin: 0 0 10px; text-wrap: balance; }
.rh-strip span { width: 3px; }
.rh-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rh-pair section { border-top: 3px solid; padding-top: 6px; min-width: 0; }
.rh-pair .then { border-color: #2d5a88; }
.rh-pair .now { border-color: #d8603c; }
.rh-pair .lab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rh-pair .lab .sc { font-size: 10.5px; }
.rh-pair .yrs { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }
.rh-pair p { font-size: 14px; line-height: 1.42; margin: 6px 0 8px; color: var(--ink-2); }
.rh-none { font-style: italic; color: var(--ink-3) !important; font-size: 13px !important; }
.rh-ev { list-style: none; margin: 0; padding: 0; }
.rh-ev button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 6px; align-items: baseline; padding: 3px 0; font-size: 13px; line-height: 1.3; width: 100%; }
.rh-ev button:hover span:last-child { text-decoration: underline; text-underline-offset: 2px; }
.rh-ev button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rh-ev i { width: 7px; height: 7px; flex: none; transform: translateY(-1px); }
.rh-ev .y { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); flex: none; width: 32px; }
.rh-thesis { font-family: var(--font-display); font-size: 17px; line-height: 1.3; margin: 12px 0 10px; padding-left: 10px; border-left: 2px solid var(--ink); }
.rh-foot { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.rh-foot .rh-pinbtn[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.rh-src { margin: 0; padding: 0 0 0 16px; font-size: 12px; color: var(--ink-3); flex: 1; min-width: 220px; }
.rh-src a { color: var(--ink-2); overflow-wrap: anywhere; }
.rh-side-src { margin: 8px 0 0; padding: 6px 0 0 16px; border-top: 1px dotted var(--rule-strong); font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.rh-side-src li { margin-bottom: 3px; }
.rh-side-src a { color: var(--ink-2); overflow-wrap: anywhere; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
@media (max-width: 760px) {
  .th-wrap { padding: 10px 12px 140px; }
  .th-head h2 { font-size: 28px; }
  .rh-pair { grid-template-columns: 1fr; }
  .tc h3 { font-size: 24px; }
}

@media (max-width: 1599px) and (min-width: 1200px) {
  .brand .yrs { display: none; }
  .views button { padding: 0 7px; letter-spacing: 0.03em; }
  .views button .n { display: none; }
  .search { width: 150px; }
}

@media (max-width: 760px) { .tb-head .sc { white-space: normal; overflow: visible; line-height: 1.3; } }
@media (max-width: 760px) { .tb-ct .lg { display: none; } }

/* ---------- Intro overlay ---------- */
.intro { position: fixed; inset: 0; z-index: 70; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; }
.intro[hidden] { display: none; }
.in-skip { position: fixed; top: 14px; right: 18px; z-index: 3; }
.in-skipbtn { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--paper); border: 1px solid var(--rule-strong); color: var(--ink); padding: 8px 12px; cursor: pointer; }
.in-skipbtn:hover { border-color: var(--ink); }
.in-stage { position: sticky; top: 0; height: 52vh; z-index: 1; pointer-events: none; transition: opacity 0.6s; }
.in-stage.dim { opacity: 0.35; }
.in-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.in-tk { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); }
.in-ages text { fill: var(--ink-2); }
.in-caption { position: absolute; left: 4%; bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.in-card { font-family: var(--font-text); background: var(--paper); border: 1px solid var(--ink); padding: 10px 12px; color: var(--ink); }
.in-card .sc { color: var(--ink-3); font-size: 10.5px; }
.in-card .sc i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: -1px; }
.in-card h4 { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.05; margin: 4px 0 6px; }
.in-card p { font-size: 13px; line-height: 1.38; margin: 0 0 6px; color: var(--ink-2); }
.in-card .src { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.in-scenes { position: relative; z-index: 2; margin-top: -52vh; }
.in-scene { min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; padding: 0 6vw 7vh; scroll-snap-align: start; cursor: default; }
.in-text { max-width: 620px; opacity: 0.35; transform: translateY(12px); transition: opacity 0.5s, transform 0.5s; }
.in-scene.on .in-text { opacity: 1; transform: none; }
.in-text.wide { max-width: 980px; width: 100%; }
/* first screen: the span of the record as two captions on the right, so the headline does not sit beside an empty half */
.in-scene[data-s='0'] { justify-content: space-between; gap: 40px; }
.in-ends { display: grid; gap: 22px; max-width: 300px; padding-bottom: 6px; opacity: 0.35; transform: translateY(12px); transition: opacity 0.5s, transform 0.5s; }
.in-scene.on .in-ends { opacity: 1; transform: none; }
.in-ends .sc { display: block; color: var(--ink-3); margin-bottom: 4px; }
.in-ends b { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.15; color: var(--ink); }
@media (max-width: 900px) { .in-ends { display: none; } }
.in-text .sc { color: var(--ink-3); }
.in-text h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 64px); line-height: 0.98; margin: 8px 0 14px; letter-spacing: -0.01em; text-wrap: balance; }
.in-text p { font-size: 18px; line-height: 1.45; color: var(--ink-2); margin: 0 0 8px; }
.in-hint { margin-top: 18px !important; font-size: 10.5px !important; color: var(--ink-3) !important; }
.in-last { background: var(--paper); border-top: 1px solid var(--rule); align-items: center; }
.in-tabs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 18px; border-top: 1px solid var(--rule-strong); }
.in-tabs li { border-bottom: 1px solid var(--rule); }
.in-tabs button { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: 12px 4px 12px 0; }
.in-tabs button:hover { background: var(--paper-2); }
.in-tabs button:focus-visible { outline: 2px solid var(--ink); }
.in-tabs b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1; margin-bottom: 6px; }
.in-tabs span { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); display: block; }
.in-tours { margin-bottom: 22px; }
.in-tours > .sc { display: block; margin-bottom: 8px; color: var(--ink-3); }
.in-tours > div { display: flex; flex-wrap: wrap; gap: 6px; }
.in-tours button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule-strong); background: var(--paper); padding: 6px 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.in-tours button:hover { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 8%, var(--paper)); }
.in-tours i { width: 9px; height: 9px; background: var(--tc); display: inline-block; flex: none; }
.in-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--rule-strong); }
.intro-pri, .intro-sec { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 16px; min-height: 44px; }
.intro-pri { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.intro-pri:hover { background: #000; }
.intro-sec { background: none; border: 1px solid var(--rule-strong); color: var(--ink); }
.intro-sec:hover { background: var(--paper-2); }
.intro-note { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
@media (max-width: 760px) {
  .in-stage { height: 42vh; }
  .in-scenes { margin-top: -42vh; }
  .in-scene { padding: 0 18px 6vh; }
  .in-text p { font-size: 16px; }
  .in-tabs b { font-size: 22px; }
  .in-foot button { flex: 1 1 auto; }
  .intro-note { margin-left: 0; width: 100%; }
}
.cap-flow g.nd { outline: none; }
.cap-flow g.nd:focus-visible rect.bar { stroke: var(--accent); stroke-width: 3px; }
.cap-flow g.nd:focus-visible rect.lb { stroke: var(--accent); stroke-width: 1.5px; }
.st-ctl { position: absolute; right: 12px; top: 12px; z-index: 3; }
.st-scale { display: flex; gap: 8px; align-items: center; }
.st-prompt { position: absolute; right: 12px; bottom: 1px; z-index: 3; margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-align: right; }
.st-prompt button { border: 0; background: none; padding: 2px 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.st-prompt button:hover { color: var(--ink); text-decoration-color: currentColor; }
body.touring .st-prompt { visibility: hidden; }
@media (max-width: 760px) { .st-prompt { display: none; } }
.app.dark .stage :focus-visible { outline-color: var(--chalk); }
.drawer-body h3:focus { outline: none; }
.drawer-body h3:focus-visible { outline: none; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.views button:focus-visible, .chip:focus-visible, .toggle button:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .view { transition: none !important; } }
.rh-verif { margin-top: 10px; border-top: 1px dotted var(--rule-strong); padding-top: 7px; font-size: 12.5px; color: var(--ink-3); }
.rh-verif summary { cursor: pointer; list-style-position: outside; }
.rh-verif summary .sc { font-size: 10.5px; color: #8a4e2c; margin-right: 6px; }
.rh-verif.ok summary .sc { color: var(--ink-2); }
.rh-verif p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.4; }

/* ---------- K. Predictions ledger: drawer card ---------- */
.pr-quote { margin: 0 0 var(--space-4); padding: 0 0 0 14px; border-left: 3px solid var(--ink); }
.pr-quote.mis { border-left-color: #7a4f9a; border-left-style: dashed; }
.pr-quote blockquote { margin: 0; }
.pr-quote blockquote p { font-family: var(--font-display); font-size: 21px; line-height: 1.25; margin: 0 0 6px; }
.pr-quote.mis blockquote p { color: var(--ink-2); }
.pr-quote figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--ink-3); }
.pr-para { font-size: var(--text-base); margin: 0 0 4px; }
.pr-para .sc, .pr-mis .sc { display: block; color: var(--ink-3); font-size: 10.5px; margin-bottom: 4px; }
.pr-by { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin: 0 0 var(--space-4); }
.pr-mis { background: rgba(122, 79, 154, 0.08); border: 1px dashed #7a4f9a; padding: 8px 10px; font-size: 13.5px; line-height: 1.4; margin: 0 0 var(--space-4); }
.pr-mis .sc { color: #6a3f8a; }
.pr-verdict { border-top: 3px solid var(--oc); padding-top: 8px; margin: 0 0 var(--space-2); }
.pr-verdict .sc { color: var(--oc); filter: brightness(0.7); font-size: 10.5px; }
.pr-verdict p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--ink-2); }

/* ---------- K. Predictions ledger: view ---------- */
.pl-wrap { padding: 14px 16px 64px; min-width: 0; }
.pl-top { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2.1fr); gap: 16px 32px; align-items: start; margin-bottom: 10px; }
.pl-intro .sc { color: var(--ink-3); font-size: 11px; display: block; }
.pl-intro h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; margin: 4px 0 8px; }
.pl-intro p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.42; max-width: 52ch; }
.pl-tallies { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule-strong); }
.pl-t { padding: 8px 14px 6px; border-right: 1px solid var(--rule); min-width: 0; }
.pl-t:first-child { padding-left: 0; }
.pl-t:last-child { border-right: 0; padding-right: 0; }
.pl-t h3 { color: var(--ink-3); font-size: 10.5px; margin: 0 0 6px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.pl-t h3 span { text-transform: none; letter-spacing: 0.02em; opacity: 0.85; }
.pl-out button { display: grid; grid-template-columns: 12px 104px 1fr 24px; gap: 8px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 3px 0; min-height: 26px; text-align: left; font-size: 13px; }
.pl-out button:hover { background: var(--paper-2); }
.pl-out .sw { width: 11px; height: 11px; border-radius: 50%; background: var(--oc); display: block; }
.pl-out .sw.mis { background: none; border: 1.5px dashed var(--oc); }
.pl-out .bar { height: 7px; background: var(--paper-3); display: block; position: relative; }
.pl-out .bar b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--oc); }
.pl-out .n, .pl-dom .n, .pl-dec .n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); text-align: right; }
.pl-out button[aria-pressed='false'] { color: var(--ink-3); }
.pl-out button[aria-pressed='false'] .sw { background: none; outline: 1.5px solid var(--oc); outline-offset: -1.5px; }
.pl-out button[aria-pressed='false'] .bar b { opacity: 0.25; }
.pl-out button[aria-pressed='false'] .l { text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.pl-dom { display: grid; gap: 3px; }
.pl-dom .row { display: grid; grid-template-columns: 82px 1fr 22px; gap: 8px; align-items: center; font-size: 12.5px; min-height: 15px; }
.pl-dom .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.pl-dom .l i { width: 8px; height: 8px; flex: none; }
.pl-dom .bar { display: flex; height: 8px; width: var(--w); gap: 1px; }
.pl-dom .bar b, .pl-dec .stack b { display: block; min-width: 2px; }
.pl-dec { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; height: 148px; align-items: end; }
.pl-dec .col { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; min-width: 0; }
.pl-dec .stack { display: flex; flex-direction: column-reverse; gap: 1px; min-height: 0; }
.pl-dec .stack b { min-height: 2px; }
.pl-dec .n { text-align: center; font-size: 10.5px; margin-bottom: 2px; }
.pl-dec .d { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); text-align: center; border-top: 1px solid var(--rule-strong); padding-top: 2px; margin-top: 2px; }
.pl-none { font-size: 13px; color: var(--ink-3); margin: 0; }
.pl-sticky { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--rule-strong); margin: 0 -16px; padding: 6px 16px 0; }
.pl-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-bottom: 4px; }
.pl-grp { display: flex; align-items: center; gap: 8px; }
.pl-grp > .sc { color: var(--ink-3); font-size: 10.5px; }
.pl-key { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.pl-key span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pl-count { margin-left: auto; }
.pl-axis svg { display: block; }
.pl-axis .pl-now { fill: var(--ink); font-weight: 500; }
.pl-chart { min-height: 200px; }
.pl-chart svg { display: block; overflow: visible; }
.pl-row { cursor: pointer; outline: none; }
.pl-row .pl-bg { fill: transparent; }
.pl-row:hover .pl-bg, .pl-row:focus-visible .pl-bg { fill: rgba(18, 18, 18, 0.06); }
.pl-row.hi .pl-bg { fill: rgba(18, 18, 18, 0.1); }
.pl-row:focus-visible .pl-bg { stroke: var(--accent); stroke-width: 1.5; }
.pl-row.hi .pl-who, .pl-row.hi .pl-claim { fill: var(--ink); }
.pl-who { font-family: var(--font-text); font-weight: 600; font-size: 13px; fill: var(--ink); }
.pl-claim { font-family: var(--font-text); font-size: 13px; fill: var(--ink-2); }
.pl-row.o-misattributed .pl-claim { fill: #6a3f8a; }
.pl-verdict { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; filter: brightness(0.7); }
.pl-gh { font-family: var(--font-display); font-size: 19px; fill: var(--ink); }
.pl-gn { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.pl-empty { padding: 48px 0; text-align: center; }
.pl-empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.pl-empty p { color: var(--ink-3); margin: 0 0 14px; font-size: 14px; }
@media (max-width: 1360px) {
  .pl-top { grid-template-columns: 1fr; gap: 10px; }
  .pl-intro h2 { font-size: 30px; margin-bottom: 6px; }
  .pl-intro p { max-width: 110ch; font-size: 14.5px; }
}
@media (max-width: 1360px) and (min-width: 761px) {
  .pl-tallies { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 0.9fr); }
  .pl-out button { min-height: 21px; padding: 1px 0; font-size: 12.5px; grid-template-columns: 11px 96px 1fr 22px; }
  .pl-dom { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .pl-dom .row { grid-template-columns: 80px 1fr 18px; gap: 5px; font-size: 12px; }
  .pl-dec { height: 112px; }
}
@media (max-width: 760px) {
  .pl-wrap { padding: 10px 12px 140px; }
  .pl-intro h2 { font-size: 28px; }
  .pl-intro p { font-size: 14.5px; }
  .pl-tallies { grid-template-columns: 1fr; }
  .pl-t, .pl-t:first-child, .pl-t:last-child { padding: 8px 0 8px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .pl-dom { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .pl-dom .row { grid-template-columns: 80px 1fr 18px; gap: 5px; font-size: 12px; }
  .pl-dec { height: 110px; gap: 3px; }
  .pl-dec .d { font-size: 10.5px; }
  .pl-out button { grid-template-columns: 12px 108px 1fr 24px; min-height: 32px; }
  .pl-sticky { display: contents; }
  .pl-ctl { padding: 6px 0 8px; }
  .pl-axis { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--rule-strong); margin: 0 -12px; padding: 0 12px; }
  .pl-key { display: none; }
  .pl-ctl { gap: 6px 12px; }
  .pl-count { margin-left: 0; }
}

/* ---------- L. Benchmarks ---------- */
.bm-wrap { padding: 14px 16px 64px; min-width: 0; }
.bm-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 12px 40px; align-items: end; margin-bottom: 10px; }
.bm-top .pl-intro p { max-width: 78ch; }
.bm-find { border-top: 1px solid var(--rule-strong); padding-top: 6px; }
.bm-find h3 { color: var(--ink-3); font-size: 10.5px; margin: 0; font-weight: 500; }
.bm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-fn { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.bm-stat { margin: 0; padding: 8px 14px 4px 0; display: grid; gap: 2px; align-content: start; }
.bm-stat + .bm-stat { padding-left: 14px; border-left: 1px solid var(--rule); }
.bm-stat b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; }
.bm-stat span { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.bm-sw { width: 10px; height: 10px; display: inline-block; }
.bm-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 24px; margin-top: 14px; align-items: start; }
.bm-sum { position: sticky; top: 52px; border-top: 1px solid var(--rule-strong); padding-top: 8px; }
.bm-sum h3 { color: var(--ink-3); font-size: 10.5px; margin: 0 0 4px; font-weight: 500; }
.bm-sum-p { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.35; }
.bm-sum-svg svg { display: block; overflow: visible; }
.bm-grid { display: grid; gap: 18px 14px; }
.bm-card { min-width: 0; border-top: 1px solid var(--rule-strong); padding-top: 6px; transition: opacity 0.2s; }
.bm-card.off { opacity: 0.38; }
.bm-card.hi { border-top-color: var(--ink); }
.bm-card.hi .bm-h .t { text-decoration: underline; text-underline-offset: 3px; }
.bm-h { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 0; text-align: left; min-height: 24px; }
.bm-h i { width: 9px; height: 9px; background: var(--c); flex: none; }
.bm-h .t { font-family: var(--font-display); font-size: 19px; line-height: 1.05; min-width: 0; }
.bm-tag { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; flex: none; }
.bm-tag.sat { color: var(--ink); }
.bm-sub { font-size: 12px; color: var(--ink-3); line-height: 1.3; margin: 1px 0 2px; }
.bm-tk { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); }
.bm-hl { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
@media (max-width: 760px) { .bm-hl { font-size: 9.5px; } }  /* under the floor on phones until benchmarks.js spaces its end labels for 10.5px: at that size OSWorld and SWE-bench Verified collide */
.bm-pt { cursor: pointer; outline: none; }
.bm-pt:hover, .bm-pt:focus-visible { stroke: var(--ink); stroke-width: 2; }
.bm-pt.sel { stroke: var(--ink); stroke-width: 2.4; r: 5; }
.bm-chart svg { display: block; }
.bm-line .hit { cursor: pointer; }
.bm-line.off { opacity: 0.18; }
.bm-focus .bm-line:not(.hi) { opacity: 0.16; }
.bm-focus .bm-end:not(.hi) { opacity: 0.35; }
.bm-line.hi .ln { stroke-width: 3; }
.bm-end text { font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.bm-srow { cursor: pointer; outline: none; }
.bm-srow .bg { fill: transparent; }
.bm-srow:hover .bg, .bm-srow.hi .bg { fill: rgba(18, 18, 18, 0.07); }
.bm-srow:focus-visible .bg { stroke: var(--accent); stroke-width: 1.5; }
.bm-srow.off { opacity: 0.4; }
.bm-sl { font-family: var(--font-text); font-size: 12.5px; fill: var(--ink); }
.bm-sd { font-family: var(--font-mono); font-size: 11px; }
@media (max-width: 1360px) {
  .bm-top { grid-template-columns: 1fr; }
  .bm-top .pl-intro p { max-width: 110ch; }
  .bm-find { max-width: 640px; }
}
@media (max-width: 1279px) {
  .bm-main { grid-template-columns: 1fr; }
  .bm-sum { position: static; order: -1; }
}
@media (max-width: 760px) {
  .bm-wrap { padding: 10px 12px 140px; }
  .bm-stat b { font-size: 28px; }
  .bm-sum-p { font-size: 12.5px; }
}

/* AI depth drawers */
.bd-pick { border-left: 3px solid var(--oc); background: var(--paper-2); padding: 8px 12px; margin: 0 0 var(--space-3); }
.bd-pick .sc { color: var(--ink-3); font-size: 10.5px; }
.bd-pick p { margin: 3px 0 0; font-size: var(--text-sm); }
.bd-pick b { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.bd-pick .src { font-size: 13px; }
.bd-pick .host, .tl-moves .host { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.bd-note { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.bd-src { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.bd-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.bd-tab th { font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 0 6px 4px 0; border-bottom: 1px solid var(--rule-strong); }
.bd-tab td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.25; }
.bd-tab .y { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.bd-tab .r { text-align: right; font-family: var(--font-mono); font-size: 12px; padding-right: 0; }
.bd-tab td button { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
.bd-tab td span { display: block; color: var(--ink-3); font-size: 12px; }
.bd-tab td span a { color: inherit; font-family: var(--font-mono); font-size: 10.5px; }
.bd-tab tr.on td { background: var(--paper-2); }
.tl-stub { background: var(--paper-2); border-left: 3px solid var(--ink-3); padding: 8px 12px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 var(--space-3); }
.tl-stub .sc { display: block; color: var(--ink-3); font-size: 10.5px; margin-bottom: 2px; }
.tl-moves, .tl-roles { list-style: none; margin: 0; padding: 0; }
.tl-moves li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; line-height: 1.3; }
.tl-moves li.f { border-left: 3px solid var(--ink); padding-left: 5px; }
.tl-moves .y, .tl-roles .d { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.tl-moves .n { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.tl-moves .host { display: inline-block; margin-top: 2px; }
.tl-f { font-size: 10.5px; color: var(--ink); border: 1px solid var(--ink); padding: 0 3px; vertical-align: 1px; }
.tl-v { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-left: 8px; }
.tl-roles { border-left: 1px solid var(--rule-strong); margin-left: 4px; }
.tl-roles li { position: relative; padding: 4px 0 6px 14px; display: grid; font-size: 13.5px; line-height: 1.25; }
.tl-roles li::before { content: ''; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-2); }
.tl-roles .o { font-weight: 600; }
.tl-roles .t { color: var(--ink-2); font-size: 13px; }
.pd-life { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pd-life li { flex: 1 1 0; min-width: 84px; padding: 6px 10px 6px 0; display: grid; }
.pd-life li + li { padding-left: 10px; border-left: 1px solid var(--rule); }
.pd-life .sc { font-size: 10.5px; color: var(--ink-3); }
.pd-life b { font-weight: 600; font-size: 13.5px; }
.pd-life li.end b { color: var(--oc); font-weight: 400; font-style: italic; font-size: 13px; }
.pd-note { font-size: 13.5px; color: var(--ink-2); border-left: 2px solid var(--rule-strong); padding-left: 10px; }

/* ---------- M. Talent ---------- */
.tl-wrap { padding: 14px 16px 64px; min-width: 0; }
.tl-top { display: grid; grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.3fr); gap: 12px 36px; align-items: start; margin-bottom: 10px; }
.tl-cl { border-top: 1px solid var(--rule-strong); padding-top: 8px; min-width: 0; }
.tl-cl h3 { color: var(--ink-3); font-size: 10.5px; margin: 0 0 6px; font-weight: 500; display: flex; justify-content: space-between; }
.tl-cl h3 span { text-transform: none; letter-spacing: 0.02em; }
.tl-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 0 14px; }
.tl-chips button { display: grid; grid-template-columns: 10px auto 1fr; gap: 6px; align-items: baseline; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 4px 0; text-align: left; font-size: 13px; min-height: 26px; min-width: 0; }
.tl-chips button i { width: 9px; height: 9px; background: var(--c); align-self: center; }
.tl-chips button b { font-weight: 600; white-space: nowrap; }
.tl-chips button span { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tl-chips button:hover { background: var(--paper-2); }
.tl-chips button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.tl-chips button[aria-pressed='true'] span { color: var(--paper-3); }
.tl-clear { margin-left: 4px; }
.tl-chart svg { display: block; overflow: visible; }
.tl-lane { outline: none; }
.tl-lane[role='button'] { cursor: pointer; }
.tl-lane .bg { fill: transparent; }
.tl-lane[role='button']:hover .bg, .tl-lane.hi .bg { fill: rgba(18, 18, 18, 0.06); }
.tl-lane:focus-visible .bg { stroke: var(--accent); stroke-width: 1.5; }
.tl-lane.hi .tl-ll { font-weight: 600; }
.tl-ll { font-family: var(--font-text); font-size: 13px; fill: var(--ink); }
.tl-ll.else { fill: var(--ink-3); font-style: italic; }
.tl-mv { cursor: pointer; outline: none; transition: opacity 0.15s; }
.tl-mv .hit { pointer-events: stroke; }
.tl-mv.stub { opacity: 0.45; }
.tl-mv:focus-visible .arc { stroke: var(--accent); }
.tracing .tl-mv { opacity: 0.12; }
.tracing .tl-mv.hi { opacity: 1; }
.tracing .tl-mv.hi .arc { stroke-width: 2.6; }
.tl-cl-t { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3.5px; letter-spacing: 0.02em; pointer-events: none; }
.tracing .tl-cl-t:not(.hi) { opacity: 0.3; }
@media (max-width: 1360px) {
  .tl-top { grid-template-columns: 1fr; }
  .tl-top .pl-intro p { max-width: 110ch; }
}
@media (max-width: 760px) {
  .tl-wrap { padding: 10px 12px 140px; }
  .tl-chips { grid-template-columns: 1fr; }
}

/* ---------- N. Policy Atlas ---------- */
.po-wrap { padding: 14px 16px 64px; min-width: 0; }
.po-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 640px); gap: 12px 36px; align-items: start; margin-bottom: 10px; }
.po-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.po-key span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.po-map { border-top: 1px solid var(--rule-strong); padding-top: 6px; min-width: 0; }
.po-map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.po-map-head h3 { color: var(--ink-3); font-size: 10.5px; margin: 0; font-weight: 500; }
.po-map-head h3 b { color: var(--ink); font-weight: 500; font-size: 12px; }
.po-map-head h3 span { text-transform: none; letter-spacing: 0.02em; }
.po-tiles { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.po-tiles svg { display: block; overflow: visible; }
.po-tile { outline: none; }
.po-tile[role='button'] { cursor: pointer; }
.po-tile[role='button']:hover rect { stroke: var(--ink); stroke-width: 1.5; }
.po-tile:focus-visible rect { stroke: var(--accent); stroke-width: 2; }
.po-tile.on rect { stroke: var(--accent); stroke-width: 2.4; }
.po-tile.dim rect { opacity: 0.3; transition: opacity 220ms var(--ease); }
.po-tile.dim text { opacity: 0.45; }
.po-tile rect, .po-tile text { transition: opacity 220ms var(--ease); }
.po-hint { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.po-hint b { color: var(--ink); font-weight: 600; }
.po-hint .lnk { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.po-hint .lnk:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.po-show { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--accent); padding: 2px 4px 2px 10px; min-height: 30px; font-size: 13px; background: color-mix(in srgb, var(--accent) 7%, var(--paper)); }
.po-show .sc { color: var(--ink-3); font-size: 10.5px; }
.po-show b { font-weight: 600; color: var(--ink); }
.po-show .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); }
.po-show.muted { border-color: var(--rule-strong); background: none; padding-right: 10px; }
.po-show.muted b { font-weight: 500; }
.po-ab { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; pointer-events: none; }
.po-legend { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 8px; font-size: 12px; color: var(--ink-2); align-items: center; }
.po-legend span { display: inline-flex; align-items: center; gap: 5px; }
.po-legend i { width: 11px; height: 11px; display: inline-block; border: 1px solid var(--rule-strong); }
.po-ramp { width: 140px; height: 10px; border: 1px solid var(--rule-strong); }
.po-rl { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.po-stat { display: flex; flex-wrap: wrap; gap: 4px; }
.po-stat button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule-strong); background: none; padding: 2px 8px; min-height: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; }
.po-stat button i { width: 9px; height: 9px; border-radius: 50%; background: var(--oc); }
.po-stat button b { font-weight: 500; color: var(--ink-3); }
.po-stat button[aria-pressed='false'] { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.po-stat button[aria-pressed='false'] i { background: none; outline: 1.5px solid var(--oc); outline-offset: -1.5px; }
.po-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--ink); color: var(--paper); padding: 3px 9px; min-height: 24px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.po-chip:hover { background: var(--accent); }
.po-chip span { font-size: 15px; line-height: 1; }
.po-chart svg { display: block; overflow: visible; }
.po-jl { font-family: var(--font-text); font-size: 13px; fill: var(--ink); }
.po-jl.sub { fill: var(--ink-2); }
.po-lv { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); letter-spacing: 0.04em; }
.po-mk { cursor: pointer; outline: none; }
.po-mk .hit { fill: transparent; }
.po-mk:hover .hit, .po-mk.hi .hit { fill: rgba(18, 18, 18, 0.09); }
.po-mk:focus-visible .hit { stroke: var(--accent); stroke-width: 1.5; }
.po-mk.hi .gl { stroke: var(--ink); stroke-width: 1.8; }
@media (max-width: 1360px) {
  .po-top { grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); }
}
@media (max-width: 1100px) {
  .po-top { grid-template-columns: 1fr; }
  .po-map { max-width: 680px; }
}
@media (max-width: 760px) {
  .po-wrap { padding: 10px 12px 140px; }
  .po-key { display: none; }
  .po-stat button { padding: 2px 6px; font-size: 10.5px; }
}
.po-fn { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; max-width: 72ch; line-height: 1.4; }
.drawer-body h3.long { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); line-height: 1.15; }
.tl-ann { border-style: dashed; }
.tl-fc { color: var(--ink-3) !important; font-style: italic; }
.bd-fc { font-size: 12.5px !important; color: var(--ink-3); font-style: italic; }
.bd-tab sup { color: var(--ink-3); }
.pd-dn { font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }
@media (max-width: 760px) { .po-map-head { flex-wrap: wrap; } }

/* ================= V2 shell: tabs and sub navigation ================= */
.views button { gap: 0; padding: 0 var(--space-4); flex-direction: column; align-items: flex-start; justify-content: center; }
.views button .lg { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.01em; text-transform: none; line-height: 1; color: var(--ink-2); }
.views button .sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.views button:hover .lg, .views button[aria-current='page'] .lg { color: var(--ink); }
.views button[aria-current='page']::after { left: var(--space-4); right: var(--space-4); height: 3px; background: var(--accent); }
.views button .n { display: none; }
.subnav { display: flex; align-items: stretch; gap: 0; margin-left: var(--space-2); padding-left: var(--space-3); border-left: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.subnav[hidden] { display: none; }
.subnav::-webkit-scrollbar { display: none; }
/* a row that scrolls fades at its overflowing edge (main.js sets .more / .more-l), never a hard clip */
.subnav.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.subnav.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.subnav.more.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.subnav button { position: relative; border: 0; background: none; padding: 0 var(--space-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
.subnav button:hover { color: var(--ink); }
.subnav button[aria-current='page'] { color: var(--ink); }
.subnav button[aria-current='page']::after { content: ''; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 2px; background: var(--ink); }
.subnav button .sh { display: none; }
/* PAGE GROUNDS AND INKS (Vision 4, rules from the main session). Each page has its own ground, ink and one accent, set
   on body[data-page] by the shell (main.js) so every owner inherits them: --page-ground, --page-ink, --page-ink-2 (secondary
   text, at or above the 70 percent brightness floor on dark), --page-accent (one thing: the part in hand, the latest point,
   the answer), --page-bar (the top bar and tab row tint), and for History the five family band inks --page-band-1..5
   (brick, ochre, mustard, slate, moss). The stage takes the ground; only AI's Now tab changes paper inside its page. */
body { --page-ground: var(--ground); --page-ink: var(--ink); --page-ink-2: var(--ink-3); --page-accent: var(--accent); --page-bar: var(--paper); }
/* palette.css (design_critic) sets the page families; each page token reads its palette hook first and falls back to the
   ground named in the brief: --pal-<page>-ground, -ink, -ink-2, -accent, -bar, and for History -band-1..5 */
body[data-page='ai'] { --page-ground: var(--pal-ai-ground, var(--ai-ground, #141c3a)); --page-ink: var(--pal-ai-ink, #dce6ee); --page-ink-2: var(--pal-ai-ink-2, #b4c3d1); --page-accent: var(--pal-ai-accent, var(--ai-amber, #e09f24)); --page-bar: var(--pal-ai-bar, #e8edf3); }
body[data-page='past'] { --page-ground: var(--pal-past-ground, var(--h-ground, #f8f6f1)); --page-ink: var(--pal-past-ink, #1c1a17); --page-ink-2: var(--pal-past-ink-2, #5a5650); --page-accent: var(--pal-past-accent, #9a4a2e); --page-bar: var(--pal-past-bar, var(--h-ground, #f8f6f1));
  --page-band-1: var(--pal-past-band-1, var(--h-signal-1, #9a4a2e)); --page-band-2: var(--pal-past-band-2, var(--h-signal-2, #c2803a)); --page-band-3: var(--pal-past-band-3, var(--h-signal-3, #d4a52a)); --page-band-4: var(--pal-past-band-4, var(--h-signal-4, #5b6b7a)); --page-band-5: var(--pal-past-band-5, var(--h-signal-5, #6f7f4a)); }
body[data-page='impact'] { --page-ground: var(--pal-impact-ground, var(--imp-ground, #f6f7f4)); --page-ink: var(--pal-impact-ink, #111111); --page-ink-2: var(--pal-impact-ink-2, #5e5e5a); --page-accent: var(--pal-impact-accent, #f2c200); --page-bar: var(--pal-impact-bar, var(--imp-ground, #f6f7f4)); }
body[data-page='ledger'] { --page-ground: var(--pal-ledger-ground, var(--led-ground, #e3e4ea)); --page-ink: var(--pal-ledger-ink, #0f1120); --page-ink-2: var(--pal-ledger-ink-2, #4a4f66); --page-accent: var(--pal-ledger-accent, var(--led-stamp, #cb4457)); --page-bar: var(--pal-ledger-bar, #e3e4ea); }
body[data-page='play'] { --page-ground: var(--pal-play-ground, var(--play-ground, #fdfdfc)); --page-ink: var(--pal-play-ink, #000000); --page-ink-2: var(--pal-play-ink-2, #555555); --page-accent: var(--pal-play-accent, #ff5a1f); --page-bar: var(--pal-play-bar, var(--play-ground, #fdfdfc)); }
/* THE MAP PAGE (SPIRAL_DIRECTION.md, item 6): one indigo world. The ground token --sp-ground is the spiral's; the shell's
   base tokens are re-pointed here so the bar, the search, the record panel and the spiral's own controls inherit light
   type on indigo glass. No monospace, no tracked uppercase, no hairline boxes, no white card on this page. */
:is(html[data-tab='map'], html[data-tab='ai']) {
  --sp-ground: #141a3d;
  --ground: var(--sp-ground); --ground-2: #1b2250; --ground-3: #232b60;
  --paper: var(--sp-ground); --paper-2: #1b2250; --paper-3: #232b60;
  --ink: #eef0fa; --ink-2: #d2d7ef; --ink-3: #aeb6dc;
  --rule: rgba(238, 240, 250, 0.14); --rule-strong: rgba(238, 240, 250, 0.3);
  --glass: rgba(20, 26, 61, 0.72); --glass-2: rgba(27, 34, 80, 0.86); --link: #c3d1ff;
  color-scheme: dark;
}
:is(html[data-tab='map'], html[data-tab='ai']) body, :is(html[data-tab='map'], html[data-tab='ai']) .app { background: var(--sp-ground); color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) body[data-page] { --page-ground: var(--sp-ground); --page-ink: var(--ink); --page-ink-2: var(--ink-3); --page-bar: var(--glass); }
/* the bar: glass, light type, the display face for the brand and the text face (no mono, no tracking) for the tabs */
:is(html[data-tab='map'], html[data-tab='ai']) .topbar { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--rule); color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .brand h1 { color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .brand .yrs { font-family: var(--font-text); font-size: 14px; letter-spacing: 0; color: var(--ink-3); }
:is(html[data-tab='map'], html[data-tab='ai']) .views button { font-family: var(--font-text); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
:is(html[data-tab='map'], html[data-tab='ai']) .views button .n, :is(html[data-tab='map'], html[data-tab='ai']) .views button .sub { font-family: var(--font-text); font-size: 12px; letter-spacing: 0; text-transform: none; }
:is(html[data-tab='map'], html[data-tab='ai']) .views button:hover, :is(html[data-tab='map'], html[data-tab='ai']) .views button[aria-current='page'] { color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .views button[aria-current='page']::after { background: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .views .ind { background: var(--ink); }
/* the tab row says HISTOMAP once under the Histomap tab: redundant here, so the row leaves (the spiral has one screen) */
html[data-tab='map'] .subnav, html[data-tab='map'] .screens { display: none; }
/* the search: a glass field with light type and the page's own placeholder (main.js); results in the same world */
:is(html[data-tab='map'], html[data-tab='ai']) .search input { background: rgba(238, 240, 250, 0.08); border: 0; border-radius: 3px; color: var(--ink); font-family: var(--font-text); font-size: 14px; letter-spacing: 0; }
:is(html[data-tab='map'], html[data-tab='ai']) .search input::placeholder { color: var(--ink-3); opacity: 1; }
:is(html[data-tab='map'], html[data-tab='ai']) .search input:focus { background: rgba(238, 240, 250, 0.12); outline: 1px solid var(--rule-strong); outline-offset: 0; }
:is(html[data-tab='map'], html[data-tab='ai']) .search > svg { color: var(--ink-3); }
:is(html[data-tab='map'], html[data-tab='ai']) .search-results { background: var(--glass-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 0; border-radius: 4px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45); color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .search-results button { border-bottom-color: var(--rule); }
:is(html[data-tab='map'], html[data-tab='ai']) .search-results button:hover, :is(html[data-tab='map'], html[data-tab='ai']) .search-results button[aria-selected='true'] { background: rgba(238, 240, 250, 0.08); }
:is(html[data-tab='map'], html[data-tab='ai']) .search-results .y, :is(html[data-tab='map'], html[data-tab='ai']) .search-results .d, :is(html[data-tab='map'], html[data-tab='ai']) .search-results button.sr-game .y { font-family: var(--font-display); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
:is(html[data-tab='map'], html[data-tab='ai']) .search-results .t { font-family: var(--font-text); color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .sr-h { display: none; }
:is(html[data-tab='map'], html[data-tab='ai']) .search-results button.sr-all .t { color: var(--ink-2); }
/* the record panel: indigo glass, Newsreader for text, Instrument Serif for numerals and titles, tinted light links */
:is(html[data-tab='map'], html[data-tab='ai']) .drawer { background: var(--glass-2); -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15); border-left: 0; box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35); color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-head { border-bottom: 0; padding-bottom: var(--space-2); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-head .kicker, :is(html[data-tab='map'], html[data-tab='ai']) .drawer-head .kicker .ki, :is(html[data-tab='map'], html[data-tab='ai']) .drawer-body .kicker { font-family: var(--font-text); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-title h3, :is(html[data-tab='map'], html[data-tab='ai']) .drawer-body h3 { color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-title .date, :is(html[data-tab='map'], html[data-tab='ai']) .drawer-body .date, :is(html[data-tab='map'], html[data-tab='ai']) .ls-list .ls-row .y, :is(html[data-tab='map'], html[data-tab='ai']) .ls-list .ls-sub { font-family: var(--font-display); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .sect-h { font-family: var(--font-text); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink-2); border-top: 0; padding-top: var(--space-2); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-body .summary, :is(html[data-tab='map'], html[data-tab='ai']) .drawer-body p, :is(html[data-tab='map'], html[data-tab='ai']) .drawer-body dd, :is(html[data-tab='map'], html[data-tab='ai']) .drawer-body li { font-family: var(--font-text); color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-body dt { font-family: var(--font-text); font-style: italic; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer a, :is(html[data-tab='map'], html[data-tab='ai']) .drawer .sources a { color: var(--link); text-decoration-color: rgba(195, 209, 255, 0.45); text-underline-offset: 3px; }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .sources .host { font-family: var(--font-text); font-size: 13px; letter-spacing: 0; color: var(--ink-3); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-foot { background: rgba(238, 240, 250, 0.05); border-top: 1px solid var(--rule); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-foot .where-draw.cx-brush, :is(html[data-tab='map'], html[data-tab='ai']) .sect-h.where-h .where-draw.cx-brush, :is(html[data-tab='map'], html[data-tab='ai']) .drawer-foot .where-jump, :is(html[data-tab='map'], html[data-tab='ai']) .ls-back { font-family: var(--font-text); font-size: 14px; letter-spacing: 0; text-transform: none; border: 0; border-radius: 3px; background: rgba(238, 240, 250, 0.1); color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-foot .where-jump, :is(html[data-tab='map'], html[data-tab='ai']) .ls-back { background: none; color: var(--ink-2); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-foot .where-draw.cx-brush:hover, :is(html[data-tab='map'], html[data-tab='ai']) .sect-h.where-h .where-draw.cx-brush:hover { background: var(--ink); color: var(--sp-ground); }
:is(html[data-tab='map'], html[data-tab='ai']) .ls-list .ls-row { border-bottom-color: var(--rule); }
:is(html[data-tab='map'], html[data-tab='ai']) .ls-list .ls-row b { color: var(--ink); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-body .sig b { background: var(--ink); } :is(html[data-tab='map'], html[data-tab='ai']) .drawer-body .sig b.off { background: rgba(238, 240, 250, 0.18); }
:is(html[data-tab='map'], html[data-tab='ai']) .icon-btn { color: var(--ink-2); border-color: transparent; }
:is(html[data-tab='map'], html[data-tab='ai']) .icon-btn:hover { color: var(--ink); background: rgba(238, 240, 250, 0.1); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-note, :is(html[data-tab='map'], html[data-tab='ai']) .tip { background: var(--glass-2); color: var(--ink); border: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); font-family: var(--font-text); }
:is(html[data-tab='map'], html[data-tab='ai']) .state-msg, :is(html[data-tab='map'], html[data-tab='ai']) .boot-note { color: var(--ink); font-family: var(--font-text); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-head .kicker .no { display: none; }  /* no index numbering on this page */
:is(html[data-tab='map'], html[data-tab='ai']) .drawer-title .trail { font-family: var(--font-text); font-size: 13.5px; letter-spacing: 0; }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .folio { display: none; }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .where .k, :is(html[data-tab='map'], html[data-tab='ai']) .drawer .where-checked { font-family: var(--font-text); font-size: 13px; letter-spacing: 0; text-transform: none; font-style: italic; }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer h3:focus, :is(html[data-tab='map'], html[data-tab='ai']) .drawer h3:focus-visible { outline: 0; }  /* the title takes focus when the panel opens; no box around it */
:is(html[data-tab='map'], html[data-tab='ai']) .drawer #mg, :is(html[data-tab='map'], html[data-tab='ai']) .drawer .mg { border: 0; background: rgba(238, 240, 250, 0.04); border-radius: 4px; }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .tagbtn { border: 0; border-radius: 3px; background: rgba(238, 240, 250, 0.1); color: var(--ink); font-family: var(--font-text); font-size: 13.5px; letter-spacing: 0; text-transform: none; }  /* "fol. 142 of 3,324": a process note, not for this page */
:is(html[data-tab='map'], html[data-tab='ai']) .drawer :focus-visible, :is(html[data-tab='map'], html[data-tab='ai']) .topbar :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
/* no tab row on the map page, so the search keeps its field at every desktop width (the icon that opens on focus is for
   the pages whose rail holds section views) */
@media (min-width: 1381px) {
  :is(html[data-tab='map'], html[data-tab='ai']) .search { width: 272px; justify-content: flex-start; }
  :is(html[data-tab='map'], html[data-tab='ai']) .search input { position: static; width: 100%; color: inherit; cursor: text; padding: 6px 10px 6px 30px; }
  :is(html[data-tab='map'], html[data-tab='ai']) .search input::placeholder { color: var(--ink-3); }
  :is(html[data-tab='map'], html[data-tab='ai']) .search > svg { left: 10px; right: auto; }
}
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .sources.ix .n { font-family: var(--font-display); font-size: 15px; letter-spacing: 0; color: var(--ink-3); }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .verif { border-top: 0; color: var(--ink-3); font-family: var(--font-text); font-size: 13.5px; }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .verif span { font-family: var(--font-text); font-style: italic; font-size: 13.5px; letter-spacing: 0; text-transform: none; }
:is(html[data-tab='map'], html[data-tab='ai']) .drawer .verif.ok span { color: #9fd3a8; } :is(html[data-tab='map'], html[data-tab='ai']) .drawer .verif.part span { color: #e8bb7a; } :is(html[data-tab='map'], html[data-tab='ai']) .drawer .verif.bad span { color: #f0907e; } :is(html[data-tab='map'], html[data-tab='ai']) .drawer .verif.no span { color: var(--ink-3); }
body.intro-open { --page-ground: var(--pal-intro-ground, var(--in-ground, #2639a8)); --page-ink: #ffffff; --page-accent: #ffffff; }  /* the Intro's flat blue, black and white */
body[data-page] .stage { background: var(--page-ground); }
body[data-page='ai'] .stage { color: var(--page-ink); }
body[data-page] .topbar, body[data-page] .subnav { background: var(--page-bar); }
body[data-page] .views button[aria-current='page']::after, body[data-page] .subnav button[aria-current='page']::after { background: var(--page-accent); }
/* shared type scale across the pages: the --text-* steps above plus the small sizes; nothing under 10.5px */
:root { --text-2xs: 10.5px; --text-mono: 11px; --text-2xl: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
/* the screen stepper under the tab row: a tab with more than one screen names the one shown and steps to its neighbours */
.subnav .screens { margin-left: auto; }
.screens { display: flex; align-items: center; gap: 6px; padding: 0 var(--space-3); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; flex: none; }
.screens button { border: 1px solid var(--rule-strong); background: none; color: var(--ink-2); font: inherit; min-width: 28px; min-height: 28px; padding: 0 6px; cursor: pointer; }
.screens button:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.screens button:disabled { opacity: 0.35; cursor: default; }
.screens[hidden] { display: none; }
/* the phone pager: a row of its own under the tabs, full width, 44px targets, the count between; no sideways scroll */
@media (max-width: 760px) {
  .topbar > .screens { order: 5; width: calc(100% + 2 * var(--space-3)); margin: 0 calc(-1 * var(--space-3)); padding: 4px var(--space-2); border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px; white-space: normal; }
  .topbar > .screens button { min-height: 44px; min-width: 44px; padding: 0 12px; flex: none; font-size: 11px; letter-spacing: 0.04em; }
  .topbar > .screens .sc-n { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar > .screens[hidden] { display: none; }  /* a single-screen tab: the pager row leaves (the display rule above would keep it) */
}
/* the other drawings behind one menu (History): the summary reads as a subnav item, the panel drops under it */
.sub-more { position: relative; display: flex; align-items: center; }
.sub-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 0 var(--space-3); min-height: 44px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; position: relative; user-select: none; -webkit-user-select: none; }
.sub-more summary::-webkit-details-marker { display: none; }
.sub-more summary:hover, .sub-more[open] summary { color: var(--ink); }
.sub-more[data-on] summary { color: var(--ink); }
.sub-more[data-on] summary::after { content: ''; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 2px; background: var(--ink); }
.sub-more summary .caret { font-size: 10.5px; color: var(--ink-3); }
.sub-more summary .sh { display: none; }
.sub-menu { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 180px; background: var(--paper); border: 1px solid var(--rule-strong); box-shadow: 0 8px 24px rgba(18, 18, 18, 0.12); display: flex; flex-direction: column; padding: 4px 0; }
.sub-menu button { min-height: 36px; justify-content: flex-start; padding: 0 var(--space-4); }
.sub-menu button .lg { display: inline !important; } .sub-menu button .sh { display: none !important; }
.sub-menu button[aria-current='page']::after { display: none; }
.sub-menu button[aria-current='page'] { background: var(--paper-2); }
.subnav[data-tab='ai'] button[aria-current='page']::after { background: var(--accent); }
@media (min-width: 1381px) and (max-width: 1700px) { .subnav button { padding: 0 9px; letter-spacing: 0.03em; font-size: 10.5px; } .subnav button[aria-current='page']::after { left: 9px; right: 9px; } }
.search { margin-left: auto; }
@media (max-width: 1499px) and (min-width: 761px) {
  .views button .lg { display: inline; }
  .subnav button .lg { display: none; }
  .subnav button .sh { display: inline; }
}
@media (max-width: 1640px) and (min-width: 761px) { .views button .sub { display: none; } .views button .lg { font-size: 18px; } .views button { padding: 0 12px; } .views button[aria-current='page']::after { left: 12px; right: 12px; } }
@media (max-width: 1380px) and (min-width: 761px) {
  /* two rows: the rail keeps its slots; the section views take a full-width row under it */
  .topbar { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: var(--rail-h) auto; row-gap: 0; grid-template-areas: 'brand views . search' 'subnav subnav subnav subnav'; }  /* the band is the subnav's own 40px; tabs without one get no band */
  .views { margin: 0; align-self: stretch; }
  .views button { min-height: 0; }
  .subnav { margin: 0 calc(-1 * var(--margin)); padding: 0 calc(var(--margin) - var(--space-3)); border-left: 0; border-top: 1px solid var(--rule); height: 40px; box-sizing: border-box; align-items: center; }
  .subnav button { min-height: 0; height: 100%; }
  .search { width: 220px; }  /* the rail has room on two rows; the whole placeholder shows */
  .subnav button .lg { display: inline; } .subnav button .sh { display: none; }
}
/* the same two-row form above 1380 when the subnav would not fit on the rail (nine Today sections): main.js sets .stacked by measuring */
@media (min-width: 1381px) {
  .topbar.stacked { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: var(--rail-h) auto; row-gap: 0; grid-template-areas: 'brand views . search' 'subnav subnav subnav subnav'; }
  .topbar.stacked .views { margin: 0; align-self: stretch; }
  .topbar.stacked .views button { min-height: 0; }
  .topbar.stacked .subnav { margin: 0 calc(-1 * var(--margin)); padding: 0 calc(var(--margin) - var(--space-3)); border-left: 0; border-top: 1px solid var(--rule); height: 40px; box-sizing: border-box; align-items: center; }
  .topbar.stacked .subnav button { min-height: 0; height: 100%; }
  .topbar.stacked .search { width: 220px; }
  .topbar.stacked .subnav button .lg { display: inline; }
  .topbar.stacked .subnav button .sh { display: none; }
  .topbar.stacked .views button { padding: 0 8px; }
  .topbar.stacked .subnav button { padding: 0 var(--space-3); font-size: 11px; letter-spacing: 0.06em; }
  .topbar.stacked .subnav button[aria-current='page']::after { left: var(--space-3); right: var(--space-3); }
}
@media (max-width: 760px) {
  :root { --top-h: 132px; }
  .views { order: 3; width: calc(100% + 2 * var(--space-3)); height: 48px; }
  .views button { padding: 0 10px; }
  .views button .lg { font-size: 17px; }
  .views button .sub { display: none; }
  .subnav { order: 4; width: calc(100% + 2 * var(--space-3)); margin: 0 calc(-1 * var(--space-3)); padding: 0 var(--space-1); border-left: 0; border-top: 1px solid var(--rule); height: 40px; flex: none; }
  .subnav button { min-height: 40px; padding: 0 9px; font-size: 10.5px; }
  .subnav button .lg { display: none; } .subnav button .sh { display: inline; }
  /* the seven Today views fit a 375px row without a swipe once the tracking and padding come down */
  .subnav[data-tab='ai'] { padding: 0 2px; }
  .subnav[data-tab='ai'] button { padding: 0 4px; font-size: 10.5px; letter-spacing: 0; }
  .subnav[data-tab='ai'] button[aria-current='page']::after { left: 4px; right: 4px; }
}
/* every page carries a tab row now, so no page sets its own --top-h: main.js measures the bar on every page and width */
.scrub-ages text { pointer-events: none; }

/* ================= TODAY: one composed page ================= */
.view.today { overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 8px; }
.reduced-motion .view.today { scroll-behavior: auto; }
.td-sec { position: relative; border-bottom: 1px solid var(--rule-strong); }
/* one plate at a time (Vision 4, S2): the AI host shows the selected plate only; a plate's own min-height fills the stage */
.td-sec[hidden] { display: none !important; }
.view.today.plates > .td-sec { min-height: 100%; border-bottom: 0; }
/* the navy blueprint surface Anatomy uses, shared by Strata and Capital (their modules read --night and --chalk, Capital through --ink and --paper) */
.td-sec.blueprint { --night: #0f2a44; --night-2: #12304e; --night-3: #1a4068; --chalk: #dce6ee; --chalk-2: #c9d6e1; --chalk-3: #b4c3d1; --bp-acc: var(--ai-amber, #e09f24); background: var(--night); }
.td-sec.dark { background: var(--night); color: var(--chalk); }
.td-sec.dark .view-head h2 { color: var(--chalk); }
.td-sec.dark .view-head p { color: var(--chalk-2); }
.td-sec.dark .view-head .sc { color: var(--chalk-3); }
.td-sec.dark .toggle { border-color: rgba(241, 241, 238, 0.35); }
.td-sec.dark .toggle button { color: var(--chalk-2); }
.td-sec.dark .toggle button[aria-pressed='true'] { background: var(--chalk); color: var(--night); }
.td-sec.dark :focus-visible { outline-color: var(--chalk); }
.td-sec > .view { position: relative; inset: auto; opacity: 1; visibility: visible; height: 100%; }  /* visible before its module lands: the section holds its skeleton */
.td-sec.fixed { height: calc(100dvh - var(--top-h) - var(--filter-h) - var(--scrub-h)); min-height: 560px; }
.td-sec.tall { height: 640px; }
.td-sec.flow > .view { overflow: visible !important; height: auto; }
.td-sec.flow > .view.scroll-xy { overflow-x: auto !important; }
.td-kicker { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 16px 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.td-kicker b { font-weight: 500; color: var(--ink-2); }
.td-kicker .jump { display: flex; gap: 10px; }
.td-kicker button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.td-kicker button:hover { color: var(--ink); }
.td-sec.dark .td-kicker { color: var(--chalk-3); } .td-sec.dark .td-kicker b { color: var(--chalk-2); }
.td-sec.dark .td-kicker button { color: var(--chalk-3); text-decoration-color: var(--chalk-3); } .td-sec.dark .td-kicker button:hover { color: var(--chalk); }
.im-shadow h3 small { color: var(--chalk-3, #b9bbb8); }
.td-caveat { margin: 0 16px 14px; border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--paper)); padding: 12px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }
.td-caveat h4 { grid-column: 1 / -1; margin: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.td-caveat p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.td-caveat p b { color: var(--ink); font-weight: 600; }
/* tests versus people */
.td-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); gap: 0 20px; margin: 8px 16px 14px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding: 12px 0 6px; align-items: start; }
.td-vs .sc { color: var(--ink-3); font-size: 10.5px; display: block; }
.td-vs h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; margin: 6px 0 8px; color: var(--ink); text-wrap: balance; }
.vs-tests p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 60ch; }
.vs-tests p b { color: var(--ink); font-weight: 600; }
.vs-tests .lnk { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; color: var(--ink); }
.vs-tests .lnk:hover { text-decoration-color: var(--ink); }
.vs-tests .lnk:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vs-mid { align-self: stretch; display: flex; align-items: center; justify-content: center; position: relative; width: 44px; }
.vs-mid::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--rule-strong); }
.vs-mid span { position: relative; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--ink-3); background: var(--paper); padding: 6px 2px; }
.vs-people .td-usage { margin: 0; max-width: none; border-top: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (min-width: 1280px) { .vs-people .td-usage { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vs-people .td-usage .u { padding: 6px 10px 8px 10px; border-right: 1px solid var(--rule); border-bottom: 0; }
.vs-people .td-usage .u:first-child { padding-left: 0; }
.vs-people .td-usage .u:last-child { border-right: 0; }
.vs-people .td-usage .u b { font-size: 26px; }
.vs-people .td-usage .u span.d { font-size: 11.5px; }
.vs-people .td-usage .u svg { width: 100%; max-width: 150px; height: 28px; }
.td-sec[data-sec='benchmarks'] .bm-find { display: none; }
.td-sec[data-sec='benchmarks'] .bm-top { grid-template-columns: 1fr; }
/* per-benchmark notes inside the caveats panel */
.td-bnotes { grid-column: 1 / -1; border-top: 1px solid var(--rule-strong); margin-top: 6px; padding-top: 8px; }
.td-bnotes h5 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.td-bnotes h5 span { color: var(--ink-3); letter-spacing: 0.02em; text-transform: none; font-weight: 400; }
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 14px; max-height: 236px; overflow: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.bn { border-left: 3px solid var(--c); padding: 2px 0 2px 10px; min-width: 0; }
.bn-name { all: unset; cursor: pointer; font-family: var(--font-text); font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 180ms var(--ease); }
.bn-name:hover { text-decoration-color: var(--ink); }
.bn-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bn-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-left: 8px; }
.bn p { margin: 2px 0 0; font-size: 12px; line-height: 1.38; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bn:hover p, .bn:focus-within p { -webkit-line-clamp: unset; }
@media (max-width: 1100px) {
  .td-vs { grid-template-columns: 1fr; gap: 8px; }
  .vs-mid { width: auto; height: 28px; }
  .vs-mid::before { top: 50%; left: 0; right: 0; bottom: auto; border-left: 0; border-top: 1px solid var(--rule-strong); }
  .vs-people .td-usage .u:first-child { padding-left: 10px; }
}
@media (max-width: 760px) { .td-vs { margin: 6px 12px 12px; } .td-caveat { margin: 0 12px 12px; } .bn-grid { grid-template-columns: 1fr; max-height: 280px; } }
.td-usage { margin: 0 16px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); max-width: 1400px; }
.td-usage .u { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); padding-left: 14px; min-width: 0; }
.td-usage .u:first-child { padding-left: 0; }
.td-usage .u .sc { color: var(--ink-3); font-size: 10.5px; display: block; }
.td-usage .u b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 4px 0 2px; }
.td-usage .u span.d { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; display: block; }
.td-usage .u svg { display: block; margin-top: 6px; }
.td-usage .u a { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.td-lineage { padding: 12px 16px 48px; }
.td-lineage .ln-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.td-lineage h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1; margin: 2px 0 6px; }
.td-lineage p.dek { margin: 0; font-size: var(--text-sm); color: var(--ink-2); max-width: 70ch; }
.ln-strip { position: relative; overflow-x: auto; padding-bottom: 6px; }
.ln-strip svg { display: block; }
.ln-org { font-family: var(--font-text); font-size: 13px; fill: var(--ink); cursor: pointer; }
.ln-org.hi { font-weight: 600; }
.ln-arc { fill: none; stroke-width: 1.2; opacity: 0.55; pointer-events: stroke; cursor: pointer; }
.ln-arc.hi { opacity: 1; stroke-width: 2.2; }
.ln-dim .ln-arc:not(.hi) { opacity: 0.08; }
.ln-yr { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); }
.ln-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
/* the Today page closes as an index: one hairline, then one ruled row per tab (name | dek | count or span) */
.td-foot { padding: 28px 16px 64px; display: grid; grid-template-columns: 1fr; }
.td-foot-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 8px; border-bottom: 1px solid var(--rule-strong); }
.td-foot .sc { color: var(--ink-3); }
.td-foot a, .td-foot button { all: unset; cursor: pointer; display: grid; grid-template-columns: 3fr 6fr 3fr; gap: 0 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1); }
.td-foot a:hover, .td-foot button:hover { background: var(--paper-2); }
.td-foot a:focus-visible, .td-foot button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.td-foot b { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.1; }
.td-foot span.d { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.td-foot span.n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .td-foot a, .td-foot button { grid-template-columns: 1fr auto; gap: 2px 16px; }
  .td-foot span.d { grid-column: 1 / -1; }
  .td-foot span.n { grid-column: 2; grid-row: 1; }
}

/* a deep link into a lower section: the head and a ruled skeleton of the section's height hold the page until the module draws */
.td-skel { display: flex; flex-direction: column; justify-content: space-between; min-height: var(--skel-h, 1200px); padding: 38px 16px 24px; }
.td-skel .view-head { position: static; display: block; margin: 0; pointer-events: none; }
.td-skel .sc { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.td-skel h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 0.98; margin: 6px 0 0; }
.td-skel i { display: block; border-top: 1px solid var(--rule); }
.td-sec.dark .td-skel .sc { color: var(--chalk-3); } .td-sec.dark .td-skel h2 { color: var(--chalk); } .td-sec.dark .td-skel i { border-top-color: rgba(241, 241, 238, 0.18); }
.td-skel[data-skel='capital'] { --skel-h: 1600px; } .td-skel[data-skel='benchmarks'] { --skel-h: 2530px; } .td-skel[data-skel='policy'] { --skel-h: 2570px; } .td-skel[data-skel='lineage'] { --skel-h: 1270px; }
@media (max-width: 760px) {
  .td-skel { padding-top: 49px; }
  .td-skel[data-skel='capital'] { --skel-h: 10500px; } .td-skel[data-skel='benchmarks'] { --skel-h: 7280px; } .td-skel[data-skel='policy'] { --skel-h: 4320px; } .td-skel[data-skel='lineage'] { --skel-h: 2360px; }
}

/* ================= shells: IMPACT and PATTERNS ================= */
.sh-wrap { padding: 14px 16px 80px; max-width: 1500px; }
.sh-head { max-width: 820px; margin-bottom: 18px; }
.sh-head .sc { color: var(--ink-3); font-size: 11px; }
.sh-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 0.98; margin: 6px 0 10px; text-wrap: balance; }
.sh-head p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.sh-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); border: 1px dashed var(--rule-strong); padding: 6px 10px; }
.sh-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: sh-in 600ms ease-out both; }
@keyframes sh-in { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.im-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.im-card { border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); padding: 12px 16px 14px 0; padding-left: 16px; min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; cursor: pointer; transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1); }
.im-card:hover { background: var(--paper-2); }
.im-card .sc { color: var(--ink-3); font-size: 10.5px; display: flex; justify-content: space-between; gap: 8px; }
.im-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.05; margin: 4px 0 2px; }
.im-card .big { font-family: var(--font-display); font-size: 40px; line-height: 1; margin: 8px 0 2px; }
.im-card .big small { font-size: 14px; font-family: var(--font-mono); color: var(--ink-3); margin-left: 6px; }
.im-card .d { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.im-card svg { display: block; margin-top: 8px; overflow: visible; }
.im-card .src { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
.im-skel { height: 160px; background: var(--paper-2); animation: skel-pulse 1.5s ease-in-out infinite alternate; }
@keyframes skel-pulse { from { opacity: 1; } to { opacity: 0.45; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.pt-list { display: grid; gap: 44px; }
.pt-toc { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; border-top: 1px solid var(--rule-strong); }
.pt-toc li { border-bottom: 1px solid var(--rule); }
.pt-toc a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.3; }
.pt-toc a:hover { background: var(--paper-2); }
.pt-toc .n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.pt { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 12px 36px; border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.pt-head { grid-column: 1 / -1; max-width: 1100px; }
.pt-head .sc b { color: var(--ink); font-weight: 400; }
.pt h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.04; margin: 6px 0 6px; letter-spacing: -0.005em; }
.pt-sub { margin: 0; font-size: 14px; color: var(--ink-3); font-style: italic; }
.pt-notes { display: grid; gap: 8px; margin: 8px 0 10px; padding: 10px 12px; background: var(--paper-2); border-left: 2px solid var(--rule-strong); font-size: 13.5px; line-height: 1.4; }
.pt-notes .sc { margin-bottom: 2px; }
.pt-link { cursor: pointer; border-bottom: 1px solid var(--ink-3); color: var(--ink); }
.pt-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.pt-link:hover { background: var(--paper-3); border-bottom-color: var(--ink); }
.pt-det summary { cursor: pointer; list-style: none; padding: 6px 0; border-top: 1px solid var(--rule); }
.pt-det summary::before { content: '+ '; font-family: var(--font-mono); }
.pt-det[open] summary::before { content: '\2212  '; }
.pt-src { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 8px; word-break: break-all; }
.pt-src a { color: inherit; }
.pt-ann-t { font-family: var(--font-text); font-size: 11.5px; fill: var(--ink); }
.pt-ann:hover .pt-ann-t { text-decoration: underline; }
@media (max-width: 900px) { .pt { grid-template-columns: 1fr; } .pt h3 { font-size: 24px; } }
.pt .pt-chart svg { display: block; overflow: visible; }
.pt .pt-read { font-size: 15px; line-height: 1.5; color: var(--ink); }
.pt .pt-read p { margin: 0 0 10px; }
.pt .pt-read .sc { color: var(--ink-3); font-size: 10.5px; display: block; margin-bottom: 6px; }
.pt-ev { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow: auto; border-top: 1px solid var(--rule); }
.pt-ev button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 10px 40px 1fr; gap: 8px; align-items: baseline; width: 100%; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.3; }
.pt-ev button:hover { background: var(--paper-2); }
.pt-ev i { width: 8px; height: 8px; display: inline-block; align-self: center; }
.pt-ev .y { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.pt-tk { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); }
.pt-lbl { font-family: var(--font-text); font-size: 12px; fill: var(--ink); }
.pt-mk { cursor: pointer; }
.pt-mk:hover { stroke: var(--ink); stroke-width: 2; }
@media (max-width: 1100px) { .pt { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sh-wrap { padding: 10px 12px 120px; } .pt h3 { font-size: 24px; } }

/* ---- Diffusion ---- */
.df-wrap { padding: 0 24px 60px; display: grid; gap: 34px; }
.view[data-view='diffusion'] .view-head { position: relative; left: 0; top: 0; right: 0; margin: 20px 24px 10px; display: block; max-width: 78ch; }
.view[data-view='diffusion'] .view-head p { margin-top: 8px; font-size: 15px; line-height: 1.4; }
.view[data-view='diffusion'] .view-ctl { position: relative; margin: 0 24px 10px; left: 0; top: 0; }
.df-sec h3 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 8px; }
.df-sec h3 small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-left: 12px; }
.df-note { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-3); max-width: 900px; margin: 8px 0 0; }
.df-note a { color: inherit; }
.df-lags svg [data-t], .df-race svg [data-t] { transition: opacity 0.25s var(--ease-out, ease); }
.df-lags svg [data-t].dim, .df-race svg [data-t].dim { opacity: 0.18; }
.df-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.df-card { border: 1px solid var(--rule); padding: 10px 10px 6px; background: rgba(255,255,255,0.25); transition: opacity 0.25s ease, border-color 0.2s ease; }
.df-card:hover { border-color: var(--ink); }
.df-card.dim { opacity: 0.35; }
.df-card h4 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 19px; }
.df-cap { font-family: var(--font-body, var(--font-serif)); font-size: 13px; line-height: 1.4; color: var(--ink-2); margin: 2px 0 4px; min-height: 36px; }
.df-race { position: relative; }
.df-replay { position: absolute; left: 44px; top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--rule-strong); background: var(--paper); padding: 5px 10px; cursor: pointer; }
@media (max-width: 760px) { .df-wrap { padding: 0 12px 40px; } .view[data-view='diffusion'] .view-ctl, .view[data-view='diffusion'] .view-head { margin-left: 12px; margin-right: 12px; } .view[data-view='diffusion'] .view-ctl { top: 0 !important; right: auto; } .df-sec h3 small { display: block; margin: 2px 0 0; } }

/* ---- Impact (real) ---- */
.im-wrap { max-width: none; }
.im-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-strong); margin: 0 0 40px; }
.im-h { text-align: left; border: 0; border-right: 1px solid var(--rule); background: none; padding: 16px 16px 14px; display: grid; gap: 6px; cursor: pointer; font: inherit; color: inherit; }
.im-h:last-child { border-right: 0; }
.im-h:hover { background: var(--paper-2); }
.im-h .big { font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -0.01em; }
.im-h .big.sm { font-size: 26px; }
.im-h .d { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-3); line-height: 1.4; }
.im-sec { margin: 0 0 44px; }
.im-sec h3 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; margin: 0 0 10px; }
.im-sec h3 small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-left: 12px; }
.im-card h4 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.05; margin: 4px 0 2px; }
.im-card { cursor: pointer; position: relative; grid-template-rows: none; align-content: start; }
.im-card .big.sm { font-size: 30px; }
.im-card .big.good { color: #3f7f5a; }
.im-card .big.bad { color: #b8282e; }
.im-card.open { grid-column: 1 / -1; background: var(--paper-2); cursor: default; border-right: 0; }
.im-card.open .ch { display: none; }
.im-more { margin-top: 10px; display: grid; gap: 14px; }
.im-text { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.im-text p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; max-width: 62ch; }
.im-text .sc { color: var(--ink-3); display: block; margin-top: 10px; }
.im-text .sc:first-child { margin-top: 0; }
.im-cav { font-family: var(--font-mono); font-size: 11.5px !important; color: var(--ink-3); line-height: 1.5 !important; }
.im-ms { list-style: none; margin: 4px 0 0; padding: 0; columns: 1; }
.im-ms li { font-size: 13.5px; line-height: 1.4; padding: 2px 0; counter-increment: ms; display: flex; gap: 8px; }
.im-ms li::before { content: counter(ms); font-family: var(--font-mono); font-size: 10.5px; border: 1px solid var(--ink); border-radius: 50%; width: 16px; height: 16px; display: inline-grid; place-items: center; flex: none; margin-top: 2px; }
.im-ms { counter-reset: ms; }
.im-ms button { font: inherit; background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.im-ms button:hover { text-decoration-color: var(--ink); }
.im-ms .y, .im-ms .nolink { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.im-tech { margin-top: 4px; display: flex; flex-wrap: wrap; }
.tagbtn.plain { color: var(--ink-2); border-style: dashed; cursor: default; }
.tagbtn.plain:hover { background: none; color: var(--ink-2); }
.im-close { justify-self: start; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--rule-strong); background: var(--paper); padding: 5px 10px; cursor: pointer; }
.im-shadow { background: var(--ink); color: var(--chalk, #f1f1ee); margin: 0 -16px 44px; padding: 36px 16px 40px; }
.im-shadow h3, .im-shadow .im-card h4 { color: var(--chalk, #f1f1ee); }
.im-shadow .im-lede { max-width: 62ch; font-size: 15px; line-height: 1.5; color: var(--chalk-2, #d3d4d1); margin: 0 0 18px; }
.im-shadow .im-grid { border-top-color: rgba(241,241,238,.5); }
.im-shadow .im-card { border-color: rgba(241,241,238,.18); }
.im-shadow .im-card:hover, .im-shadow .im-card.open { background: rgba(255,255,255,.05); }
.im-shadow .im-card .sc, .im-shadow .im-card .d, .im-shadow .im-card .src, .im-shadow .im-card .src a, .im-shadow .pt-tk, .im-shadow .im-text .sc, .im-shadow .im-cav, .im-shadow .im-ms .y, .im-shadow .im-ms .nolink { color: var(--chalk-3); }
.im-shadow .im-card .big { color: #e07a6a; }
.im-shadow .im-card .big small { color: var(--chalk-3); }
.im-shadow .im-text p, .im-shadow .im-ms li { color: var(--chalk, #f1f1ee); }
.im-shadow .im-ms li::before { border-color: var(--chalk-2, #d3d4d1); }
.im-shadow .tagbtn { border-color: rgba(241,241,238,.4); color: var(--chalk, #f1f1ee); }
.im-shadow .im-close { background: transparent; color: var(--chalk, #f1f1ee); border-color: rgba(241,241,238,.4); }
.im-shadow svg [stroke='var(--ink)'] { stroke: var(--chalk, #f1f1ee); }
.im-shadow svg [fill='var(--ink)'] { fill: var(--chalk, #f1f1ee); }
.im-shadow svg [fill='var(--paper)'] { fill: var(--ink); }
.im-shadow svg [fill='var(--ink-2)'] { fill: var(--chalk-2, #d3d4d1); }
.im-card .sc .px { font-weight: 600; color: var(--ink); border: 1px solid currentColor; padding: 0 4px; margin-right: 6px; }
.im-shadow .im-card .sc .px { color: var(--chalk, #f1f1ee); }
.im-shadow svg [stroke='rgba(18,18,18,.1)'], .im-shadow svg [stroke='rgba(18,18,18,.06)'] { stroke: rgba(241,241,238,.1); }
.im-shadow svg [stroke='rgba(18,18,18,.18)'] { stroke: rgba(241,241,238,.25); }
@media (max-width: 760px) { .im-text { grid-template-columns: 1fr; } .im-shadow { margin: 0 -12px 40px; padding: 28px 12px; } .im-h .big { font-size: 26px; } }
.im-card .sc > span:last-child { white-space: nowrap; flex: none; }
/* primary nav keeps priority; the sub navigation yields and scrolls */
@media (min-width: 1381px) { .views { flex: none; overflow: visible; min-width: max-content; } .subnav { flex: 0 1 auto; min-width: 0; } .search { flex: none; width: 184px; } }

/* ---- Columns 10x ---- */
.cw-top { padding: 12px 16px 8px; position: sticky; left: 0; width: min(100%, 100vw); box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; }
.cw-top .view-head { position: static; right: auto; display: grid; }
.cw-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cw-ctl .sc { color: var(--ink-3); }
.cw-back { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 5px 10px; cursor: pointer; }
.cw-kbd { display: none; }
@media (min-width: 1100px) { .cw-kbd { display: inline; margin-left: 8px; } }
.cols-head { display: flex; }
.cw-corner { flex: none; position: sticky; left: 0; background: var(--paper); z-index: 3; padding: 8px 6px 0 0; text-align: right; color: var(--ink-3); }
.cw-lens { flex: none; padding: 8px 10px 6px; border-left: 1px solid var(--rule); min-width: 0; }
.cw-lens .bar { height: 3px; margin-bottom: 6px; }
.cw-lens .row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.cw-lens .lg { font-family: var(--font-display); font-size: 19px; line-height: 1.05; }
.cw-lens .n { font-size: 11px; color: var(--ink-3); }
.cw-lens .sub { font-size: 12px; font-style: italic; color: var(--ink-3); margin-top: 1px; line-height: 1.25; }
.cols-body { display: flex; align-items: flex-start; position: relative; }
.cols-body .rail { position: sticky; left: 0; z-index: 2; background: var(--paper); flex: none; }
.cols-body .cols-main { flex: none; }
.cw-mini { position: sticky; top: 8px; right: 0; flex: none; margin-left: auto; border-left: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); z-index: 2; align-self: flex-start; }
.view[data-view='columns']:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (max-width: 760px) { .cw-top { grid-template-columns: 1fr; } .cw-ctl { justify-content: flex-start; } }

/* ---- Threads: cinematic story mode ---- */
.view[data-view='threads'].story { background: var(--night); color: var(--chalk); }
.st { --tc: #888; min-height: 100%; padding: 0 0 120px; }
.st-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(241, 241, 238, 0.12); }
.st-top .sc { color: var(--chalk-3); }
.st-back { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 1px solid rgba(241, 241, 238, 0.3); color: var(--chalk); padding: 6px 10px; cursor: pointer; }
.st-back:hover { border-color: var(--chalk); }
.st-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: rgba(241, 241, 238, 0.08); }
.st-prog i { display: block; height: 100%; width: 0; background: var(--tc); transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.st-title { max-width: 820px; padding: 18vh 20px 14vh; margin: 0 auto; text-align: center; }
.st-title .sc { color: var(--tc); }
.st-title h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: 0.98; margin: 10px 0 18px; letter-spacing: -0.01em; text-wrap: balance; color: var(--chalk); }
.st-title p { font-size: 19px; line-height: 1.45; color: var(--chalk-2); margin: 0 auto; max-width: 620px; }
.st-hint { margin-top: 28px !important; color: var(--chalk-3) !important; font-size: 10.5px !important; }
.st-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); gap: 0 48px; max-width: 1440px; margin: 0 auto; padding: 0 24px; align-items: start; }
.st-stage { position: sticky; top: 54px; display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; padding: 10px 0 30px; color: var(--chalk); }
.st-year { display: flex; align-items: baseline; gap: 18px; }
.st-yr { font-family: var(--font-display); font-size: clamp(80px, 10vw, 150px); line-height: 0.85; letter-spacing: -0.03em; color: var(--tc); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.st-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chalk-3); }
.st-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk-3); margin-bottom: 8px; }
.st-meta i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: -1px; }
.st-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.04; margin: 0; max-width: 18em; text-wrap: balance; }
.st-h.in { animation: st-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes st-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.st-rib { display: block; overflow: visible; color: var(--chalk); }
.st-tk { font-family: var(--font-mono); font-size: 10px; fill: var(--chalk-3); }
.st-path { transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.st-node circle { transition: r 0.3s, fill 0.3s; }
.st-node.done circle { fill: var(--tc); }
.st-node.on circle { r: 7; fill: var(--chalk); stroke: var(--chalk); }
.st-else .sc { color: var(--chalk-3); display: block; margin-bottom: 6px; }
.st-else ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.st-else li.none { font-style: italic; color: var(--chalk-3); font-size: 13px; }
.st-else button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: baseline; width: 100%; padding: 5px 0; border-bottom: 1px solid rgba(241, 241, 238, 0.1); font-size: 14px; line-height: 1.3; color: var(--chalk-2); }
.st-else button:hover { color: var(--chalk); }
.st-else button:focus-visible { outline: 2px solid var(--chalk); }
.st-else button i { width: 8px; height: 8px; display: inline-block; align-self: center; }
.st-else button .sc { color: var(--chalk-3); margin: 0; white-space: nowrap; }
.st-steps { list-style: none; margin: 0; padding: 20vh 0 10vh; display: grid; gap: 38vh; }
.st-step { position: relative; padding: 18px 20px 16px 22px; border-left: 2px solid rgba(241, 241, 238, 0.15); opacity: 0.38; transition: opacity 0.4s, border-color 0.4s, transform 0.4s; transform: translateX(0); }
.st-step.on { opacity: 1; border-color: var(--tc); }
.st-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--tc); }
.st-sy { font-family: var(--font-mono); font-size: 11px; color: var(--chalk-3); margin-left: 10px; }
.st-step h4, .st-end h4 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.08; margin: 8px 0 10px; color: var(--chalk); text-wrap: balance; }
.st-step p, .st-end p { font-size: 17px; line-height: 1.5; color: var(--chalk-2); margin: 0 0 14px; }
.story-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.story-ctl button { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; min-height: 32px; padding: 0 12px; border: 1px solid rgba(241, 241, 238, 0.3); background: transparent; color: var(--chalk); cursor: pointer; }
.story-ctl button:hover { border-color: var(--chalk); }
.story-ctl .pri { background: var(--tc); border-color: var(--tc); color: var(--night); }
.story-ctl .ghost { color: var(--chalk-2); }
.st-end { padding: 24px 20px 10px 22px; border-left: 2px solid var(--tc); }
.st-end .sc { color: var(--tc); }
.st-rel { margin-top: 22px; }
.st-rel .sc { color: var(--chalk-3); display: block; margin-bottom: 6px; }
.st-rel ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.3; color: var(--chalk); }
.st-rel li { padding: 5px 0; border-bottom: 1px solid rgba(241, 241, 238, 0.12); display: flex; justify-content: space-between; gap: 12px; }
.st-rel li .sc { color: var(--chalk-3); margin: 0; white-space: nowrap; }
@media (max-width: 980px) {
  .st-body { grid-template-columns: 1fr; gap: 0; padding: 0 14px; }
  .st-stage { position: sticky; top: 52px; min-height: 0; gap: 10px; padding: 12px 0 10px; background: var(--night); z-index: 3; border-bottom: 1px solid rgba(241, 241, 238, 0.12); }
  .st-yr { font-size: 64px; }
  .st-h { font-size: 22px; }
  .st-else { display: none; }
  .st-rib { height: auto; }
  .st-steps { padding-top: 6vh; gap: 20vh; }
  .st-title { padding: 10vh 14px 8vh; }
  .st-title p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .in-text, .in-stage { transition: none; } .intro { scroll-snap-type: none; } .st-h.in { animation: none; } .st-path, .st-step, .st-prog i { transition: none; } }

/* ---- Capital, hero treatment: the section inverts its palette so every var(--ink) in the chart reads on night */
/* the Strata band shares the blueprint sheet of its stage, so the kicker row above it is the same ground */
.td-sec.dark[data-sec='strata'] { --night: #0f2a44; --night-2: #12304e; --night-3: #1a4068; --chalk: #dce6ee; --chalk-2: #c9d6e1; --chalk-3: #b4c3d1; }
.td-sec.dark[data-sec='capital'] { --ink: var(--chalk); --ink-2: var(--chalk-2); --ink-3: var(--chalk-3); --paper: var(--night); --paper-2: var(--night-2); --rule: rgba(241, 241, 238, 0.14); --rule-strong: rgba(241, 241, 238, 0.38); }
.td-sec.dark[data-sec='capital'] .cap-top .view-head h2 { font-size: clamp(34px, 4vw, 54px); }
.cap-hero { padding: 6px 16px 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cap-ticker { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; padding: 10px 0 12px; }
.cap-ticker .num { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cap-ticker .tk:first-child .num { font-size: clamp(42px, 5vw, 72px); color: var(--accent); }
.td-sec.dark[data-sec='capital'] .cap-ticker .tk:first-child .num { color: #e2b25a; }
.cap-ticker .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
.cap-ticker .lbl b { color: var(--ink-2); font-weight: 500; }
.cap-ticker .asof .num { font-size: clamp(22px, 2.2vw, 30px); color: var(--ink-2); }
.cap-ticker .asof .lbl { text-transform: none; letter-spacing: 0; font-family: var(--font-text); font-size: 12.5px; }
.cap-clock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.cap-play { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 8px 14px; cursor: pointer; min-height: 34px; white-space: nowrap; }
.cap-play:hover { background: var(--ink-2); border-color: var(--ink-2); }
.cap-play[aria-pressed='true'] { background: transparent; color: var(--ink); }
.cap-axis svg { display: block; overflow: visible; }
.cap-axis svg:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cap-cut { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.cap-follow { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--rule-strong); font-size: 13.5px; color: var(--ink-2); background: var(--paper-2); }
.cap-follow[hidden] { display: none; }
.cap-follow b { color: var(--ink); font-weight: 500; }
/* body: flow plus, while following, a side list of the path's deals */
.cap-body { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.cap.following .cap-body { grid-template-columns: minmax(0, 1fr) 320px; }
.cap-side { border-left: 1px solid var(--rule); background: var(--paper-2); position: sticky; top: 0; max-height: min(78vh, 760px); overflow: auto; overscroll-behavior: contain; font-size: 13px; }
.cap-side[hidden] { display: none; }
.cs-head { position: sticky; top: 0; z-index: 1; background: var(--paper-2); padding: 12px 14px 10px; border-bottom: 1px solid var(--rule-strong); }
.cs-head .sc { color: var(--ink-3); font-size: 10.5px; }
.cs-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.05; margin: 4px 0 4px; color: var(--ink); }
.cs-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); line-height: 1.4; }
.cs-close { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--rule-strong); background: none; color: var(--ink); padding: 4px 10px; cursor: pointer; }
.cs-close:hover { background: var(--ink); color: var(--paper); }
.cap-side section { padding: 6px 14px 4px; }
.cap-side h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin: 8px 0 4px; display: flex; justify-content: space-between; }
.cap-side ol { list-style: none; margin: 0; padding: 0; }
.cap-side li { border-bottom: 1px solid var(--rule); padding: 5px 0 6px; }
.cs-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; width: 100%; align-items: baseline; color: var(--ink); }
.cs-row:hover .who, .cs-row:focus-visible .who { text-decoration: underline; text-underline-offset: 3px; }
.cs-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cs-row .dt { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.cs-row .who { font-size: 13.5px; line-height: 1.3; display: inline-flex; gap: 7px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.cs-row .who i { flex: 0 0 10px; width: 10px; height: 5px; display: inline-block; transform: translateY(-2px); }
.cs-row .am { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; }
.cs-row .am .tn { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 4px; }
.cap-side .src { display: block; margin-left: 66px; font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-foot { padding: 8px 14px 14px; margin: 0; font-size: 11.5px; color: var(--ink-3); font-style: italic; }
/* a thin current runs along each live band, the same idea as the particle flows in Anatomy */
.cap-flow path.pulse { stroke-opacity: 0.55; stroke-dasharray: 2 18; animation: cap-run 1.6s linear infinite; pointer-events: none; }
@keyframes cap-run { to { stroke-dashoffset: -20; } }
@media (max-width: 1100px) { .cap.following .cap-body { grid-template-columns: minmax(0, 1fr); } .cap-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--rule-strong); } }
.cap-unfollow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--rule-strong); background: none; color: var(--ink); padding: 4px 10px; cursor: pointer; }
.cap-unfollow:hover { background: var(--ink); color: var(--paper); }
.cap-flow path.lk { transition: stroke-opacity 0.25s ease; }
.cap-flow g.nd rect.fill { transition: none; }
.cap-cards { padding: 4px 0 28px; border-top: 1px solid var(--rule); }
.cap-cards-h { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cap-cards-h .sc { color: var(--ink-2); }
.cap-cards-n { text-transform: none; letter-spacing: 0; font-size: 11px; }
.cap-rail { list-style: none; margin: 0; display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cap-card { flex: 0 0 272px; scroll-snap-align: start; border: 1px solid var(--rule-strong); padding: 12px 14px 10px; background: var(--paper); display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 4px; transition: opacity 0.25s ease, transform 0.25s ease; min-height: 196px; }
.cap-card.dim { opacity: 0.35; }
.cap-card.off { display: none; }
.cap-card.new { animation: cc-in 0.5s ease both; }
@keyframes cc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cap-card .cc-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.cap-card .cc-kind { display: inline-flex; align-items: center; gap: 6px; }
.cap-card .cc-kind i { width: 12px; height: 5px; display: inline-block; }
.cap-card .cc-who { font-family: var(--font-text); font-size: 15px; font-weight: 500; line-height: 1.3; margin: 2px 0 0; color: var(--ink); }
.cap-card .cc-who .arr { color: var(--ink-3); margin: 0 2px; }
.cap-card .cc-amt { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--ink); margin: 4px 0 2px; }
.cap-card .cc-amt .tn { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-left: 8px; vertical-align: middle; }
.cap-card .cc-note { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cap-card .cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rule); font-size: 11.5px; }
.cap-card .cc-foot .src { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cap-card .cc-open { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--rule-strong); background: none; color: var(--ink); padding: 3px 8px; cursor: pointer; }
.cap-card .cc-open:hover { background: var(--ink); color: var(--paper); }
.td-sec.dark[data-sec='capital'] .cap-legend, .td-sec.dark[data-sec='capital'] .cap-legend .lg-note { color: var(--chalk-2); }
.td-sec.dark[data-sec='capital'] .cap-card { background: var(--night-2); }
.td-sec.dark[data-sec='capital'] .led-row .who, .td-sec.dark[data-sec='capital'] .led-g h3 { color: var(--chalk); }
@media (max-width: 760px) {
  .cap-clock { grid-template-columns: 1fr auto; }
  .cap-clock .cap-axis { grid-column: 1 / -1; order: 3; }
  .cap-ticker { grid-template-columns: 1fr 1fr; }
  .cap-ticker .asof { grid-column: 1 / -1; }
  .cap-card { flex-basis: 240px; }
}
@media (prefers-reduced-motion: reduce) { .cap-card.new { animation: none; } .cap-flow path.lk { transition: none; } .cap-flow path.pulse { display: none; } }

/* ================= Chrome per tab: no filter bar anywhere; in History the scrubber is a thin locator ================= */
html:not([data-ready]) .filterbar, html:not([data-ready]) .fab-filter { visibility: hidden; }
html[data-tab] { --filter-h: 0px; }  /* the shell's filter bar is gone on every page: in History the Stream's Chart options popover hosts Draw and the overlays toggle and the other tabs carry their own controls; the filter state and hashes are unchanged */
html[data-tab]:not([data-tab='past']) { --scrub-h: 0px; }  /* no scrubber outside History (Vision 4, S7) */
html[data-tab='past'] { --scrub-h: 24px; }  /* in History the scrubber is a thin grey locator with one amber window */
.scrubber[hidden] { display: none; }
.scrubber { height: var(--scrub-h); }
.scrub-label { flex-direction: row; align-items: center; gap: 8px; padding: 0 var(--space-4) 0 var(--margin); white-space: nowrap; overflow: hidden; }
.scrub-label .sc { display: none; }
.scrub-label .rng { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-2); }
.scrub-svg .hist rect, .scrub-svg .hist path { fill: var(--ink-3); fill-opacity: 0.55; }
.scrub-svg .selection { fill: rgba(255, 176, 0, 0.22); stroke: #c98a00; stroke-width: 1; }
.scrub-svg .handle { fill: #c98a00; }
.scrubber .axis, .scrubber .scrub-ages text, .scrub-win { display: none; }
html[data-tab] .filterbar, html[data-tab] .fab-filter { display: none !important; }
html[data-tab] .app { grid-template-rows: auto 0 1fr var(--scrub-h); }
@media (max-width: 760px) {
  html[data-tab] .app { grid-template-rows: var(--top-h) 0 1fr var(--scrub-h); }
  /* the phone locator: its label column takes the width of "1026 to 2026" at 11px mono (the 74px column clipped it to
     "926 to 202"), and every History view keeps the locator's height clear at its foot so the last card is not under it */
  html[data-tab='past'] .scrubber { grid-template-columns: auto 1fr; }
  html[data-tab='past'] .scrub-label { padding: 0 var(--space-2) 0 var(--margin); overflow: visible; }
  html[data-tab='past'] .scrub-label .rng { font-size: 11px; letter-spacing: 0.02em; }
  html[data-tab='past'] .stage > .view { padding-bottom: var(--scrub-h); box-sizing: border-box; }
}
.scrubber.compact { position: absolute; left: 0; right: 0; bottom: 0; height: var(--scrub-h); grid-template-columns: var(--col2) 1fr; transition: height 0.18s var(--ease); z-index: 12; }
.scrubber.compact.expanded { height: 76px; border-top-color: var(--ink); }
/* desktops under 1700px: the compact label column (margin + one column) leaves about 100 to 130px, so the years alone show */
@media (max-width: 1700px) and (min-width: 761px) { .scrubber.compact:not(.expanded) .scrub-label .sc { display: none; } .scrubber.compact:not(.expanded) .scrub-label .rng { font-size: 13px; } }
.scrubber.compact .scrub-label { flex-direction: row; align-items: center; gap: 8px; padding: 0 var(--space-4) 0 var(--margin); white-space: nowrap; overflow: hidden; }
.scrubber.compact .scrub-label .rng { font-size: 14px; }
.scrubber.compact.expanded .scrub-label { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px var(--space-4) 10px var(--margin); }
.scrubber.compact.expanded .scrub-label .rng { font-size: 17px; }
.scrubber.compact:not(.expanded) .axis, .scrubber.compact:not(.expanded) .scrub-ages text { display: none; }
.scrub-pill { position: absolute; right: var(--space-3); top: 50%; transform: translateY(-50%); z-index: 2; display: none; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule-strong); padding: 2px 8px; min-height: 22px; }
.scrub-pill.show { display: inline-flex; }
.scrub-pill button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.scrubber.compact.expanded .scrub-pill { top: 10px; transform: none; }
@media (max-width: 760px) {
  .scrubber.compact { grid-template-columns: 1fr; }
  .scrubber.compact .scrub-label { padding: 0 var(--space-3); position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; background: var(--paper); border-right: 1px solid var(--rule); }
  .scrubber.compact .scrub-label .rng { font-size: 13px; }
  .scrubber.compact.expanded { grid-template-columns: 74px 1fr; }
  .scrubber.compact.expanded .scrub-label { position: static; background: none; padding: 6px var(--space-2); }
  .scrubber.compact.expanded .scrub-label .rng { font-size: 15px; }
}
html[data-tab='past'] .scrub-pill { display: none; }
/* numbered pattern callouts and their legend */
.pt-ann-n { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ink); font-weight: 600; }
.pt-ann-num:hover circle:last-of-type { fill: var(--ink); }
.pt-ann-num:hover .pt-ann-n { fill: var(--paper); }
.pt-legend { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px 18px; font-size: 12.5px; color: var(--ink-2); }
.pt-legend li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.pt-legend .n { font-family: var(--font-mono); color: var(--ink); flex: none; }
.pt-legend button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-2); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.pt-legend button:hover { color: var(--ink); text-decoration-color: currentColor; }
.view-head .st-how, .st-how { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; color: var(--chalk-2); max-width: 78ch; margin: 2px 0 0; line-height: 1.5; }
.st-how .sc { color: var(--chalk-3); margin-right: 6px; font-size: 10px; }
/* inside Today, the section kicker already names the view: the view's own kicker would be a second one */
.td-sec:not(.fixed) > .view .view-head > .sc:first-child, .td-sec:not(.fixed) > .view .pl-intro > .sc:first-child { display: none; }
/* touch targets: section jump links and ledger legend controls are at least 28px tall, 44px on touch screens */
.td-kicker button { min-height: 28px; padding: 0 6px; margin: -6px -2px; display: inline-flex; align-items: center; }
@media (pointer: coarse) { .td-kicker button { min-height: 44px; padding: 0 10px; } .pl-out button { min-height: 44px; } }
@media (max-width: 760px) { .th-ax .th-ax-opt { display: none; } } /* narrow mini-axes drop the 1500 and 1950 ticks so years never run together */
/* the thread's own sentence under each step: the argument, set apart from the record */
.st-step .st-arg { font-family: var(--font-display); font-size: 19px; line-height: 1.35; color: var(--chalk); margin: -4px 0 16px; padding-left: 14px; border-left: 2px solid var(--tc, var(--accent)); }
@media (max-width: 760px) { .po-jl { font-size: 11.5px; } }
@media (max-width: 760px) {
  /* Strata on a phone: the controls sit under the heading and swipe hint instead of over them; the scene is empty up there */
  .view[data-view='strata'] .view-ctl { top: 118px !important; }
  .view[data-view='strata'] .view-head .mobile-only.sc { display: block; max-width: 100%; }
}

/* the shell's .lg label spans never take padding from a view's .lg root rule */
.views button .lg, .subnav button .lg, .tb-on .lg { padding: 0; }

/* ---- rail fit (integration, burst 1): every section is one click away at every desktop width ---- */
@media (min-width: 1381px) {
  /* the section views use their short names on the single-row rail; the long names belong to the two-row layout */
  .subnav button .lg { display: none; } .subnav button .sh { display: inline; }
  .subnav button { padding: 0 9px; letter-spacing: 0.03em; font-size: 10.5px; }
  .subnav button[aria-current='page']::after { left: 9px; right: 9px; }
  /* search is a 32px icon that opens to a field on focus (or while it holds a query), over the rail, so the
     section views keep their room */
  .search { width: 32px; height: 32px; justify-content: flex-end; }
  .search input { position: absolute; right: 0; top: 0; width: 32px; height: 32px; padding: 6px 28px 6px 10px; color: transparent; background: var(--ground); cursor: pointer; transition: width 200ms var(--ease), color 120ms; }
  .search input::placeholder { color: transparent; }
  .search > svg { left: auto; right: 9px; pointer-events: none; z-index: 1; }
  .search:focus-within input, .search.has-q input { width: 240px; color: inherit; cursor: text; }
  .search:focus-within input::placeholder { color: var(--ink-3); }
  .search:focus-within, .search.has-q { z-index: 8; }
}
@media (max-width: 760px) {
  /* five tabs fit a 375px row without a swipe */
  .views { justify-content: space-between; padding: 0 2px; }
  .views button { padding: 0 6px; }
  .views button .lg { font-size: 15.5px; }
  .views button .n { display: none; }
}

/* ---- mobile reading ratio (integration, burst 1; LIFT_CRITIQUE_2 fix 1): headline about 3x body on every view.
   This is the base rule; section stylesheets may override it. ---- */
@media (max-width: 760px) {
  .view-head h2 { font-size: 40px; line-height: 0.98; letter-spacing: -0.01em; white-space: normal; }
  .view-head p, .view .lede, .view .pl-intro p, .view .view-head + p { font-size: 13.5px; line-height: 1.45; }
}

/* ---- First paint: Stagger reveal for the shell (Aesthetic Systems, burst 4). Title rail, tabs, year rail, then the content;
   70ms apart, 480ms each, ease-out expo. Runs once, when the record is ready; nothing moves after it lands. ---- */
html:not([data-ready]) .brand, html:not([data-ready]) .views, html:not([data-ready]) .subnav,
html:not([data-ready]) .scrubber, html:not([data-ready]) .stage { opacity: 0; }
html[data-ready] .brand { animation: shell-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both; }
html[data-ready] .views, html[data-ready] .subnav { animation: shell-in 480ms cubic-bezier(0.16, 1, 0.3, 1) 70ms both; }
html[data-ready] .scrubber { animation: shell-in 480ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both; }
/* the stage takes no reveal: it is laid out at full opacity behind the intro and the overlay cuts away to it in one frame, so no light ground can show between the field and the blueprint */
/* behind the introduction the shell waits; the reveal runs when the overlay lifts and the shell is first seen */
body.intro-open .brand, body.intro-open .views, body.intro-open .subnav, body.intro-open .scrubber { animation: none; }
@keyframes shell-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html[data-ready] .brand, html[data-ready] .views, html[data-ready] .subnav, html[data-ready] .scrubber, html[data-ready] .stage { animation: none; } }

/* ---- Event drawer as an Archive Index (Aesthetic Systems, burst 4). Running head: record number and domain; folio: position
   in the window. Role-fixed columns (date, record, link; number, source, host) bound by thin rules. One red mark: the
   connection you arrived from. Rows appear top to bottom, 80ms apart. ---- */
.drawer-head .kicker .rhd { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.drawer-head .kicker .no { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink); padding-right: 8px; border-right: 1px solid var(--rule-strong); }
.drawer-title .date .folio { margin-left: auto; color: var(--ink-3); text-transform: none; white-space: nowrap; }
.drawer-title .date .folio::before { content: 'fol. '; }
.dl { gap: 0 var(--space-3); border-top: 1px solid var(--rule-strong); padding-top: 0; }
.dl dt, .dl dd { border-bottom: 1px solid var(--rule); padding: 6px 0; }
.dl dt { padding-top: 8px; }
.ix-h, .links.ix li button { display: grid; grid-template-columns: 48px 1fr 60px; gap: 0 10px; align-items: baseline; }
.ix-h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule-strong); padding: 0 0 5px; margin-top: var(--space-3); }
.ix-h span:last-child { text-align: right; }
.links.ix li { position: relative; }
.links.ix li button { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: var(--text-sm); line-height: 1.3; }
.links.ix li button:hover, .links.ix li button:focus-visible { background: var(--paper-2); outline: none; }
.links.ix .tt i { width: 7px; height: 7px; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.links.ix .dir { text-align: right; white-space: nowrap; }
.links.ix li.mark .y { color: var(--accent); }
.links.ix li.mark::before { content: ''; position: absolute; left: -14px; top: 12px; width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 50%; }
.sources.ix { list-style: none; padding: 0; }
.sources.ix li { display: grid; grid-template-columns: 20px 1fr; gap: 0 8px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.sources.ix .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.sources.ix .host { grid-column: 2; }
.ix li { animation: ix-in 240ms ease-out both; }
.ix li:nth-child(2) { animation-delay: 80ms; } .ix li:nth-child(3) { animation-delay: 160ms; } .ix li:nth-child(4) { animation-delay: 240ms; }
.ix li:nth-child(5) { animation-delay: 320ms; } .ix li:nth-child(6) { animation-delay: 400ms; } .ix li:nth-child(n + 7) { animation-delay: 480ms; }
@keyframes ix-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ix li { animation: none; } }

/* ---- Search results as an index table; the mini timeline above is its locator. ---- */
.sr-h, .search-results button { display: grid; grid-template-columns: 22px 40px 1fr 64px; gap: 0 8px; align-items: baseline; }
.sr-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 6px var(--space-3) 4px; border-bottom: 1px solid var(--rule-strong); }
.search-results button .n, .search-results button .d { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.search-results button .d { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results button .t i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; vertical-align: 1px; }
.search-results button.sr-all .t { color: var(--ink-2); }
.search-results button.sr-game .y { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) { .sr-h, .search-results button { grid-template-columns: 18px 36px 1fr; } .sr-h span:last-child, .search-results button .d { display: none; } }

/* phones: a search with a query grows over the title so the words stay readable */
@media (max-width: 760px) { .search:focus-within, .search.has-q { position: absolute; left: 12px; right: 56px; width: auto; z-index: 8; background: var(--ground); } .search:focus-within input, .search.has-q input { width: 100%; } }

/* ---- while a view waits for the rest of the record, one hairline at the top of the stage (no spinner) ---- */
.stage.waiting::before { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--rule-strong); z-index: 4; }

/* ---- Where this appears (drawer, Archive Index): a ruled index of the record's places in other views ---- */
.where { list-style: none; margin: 0; padding: 0; }
.where li { display: grid; grid-template-columns: 100px 1fr; gap: 0 10px; align-items: baseline; border-bottom: 1px solid var(--rule); }
.where li .k { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 9px; }  /* 10.5px, the floor; a long group name ("8 nearest deals of 12") wraps in its column */
.where li .k b { font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.where li button { display: grid; grid-template-columns: 1fr 40px; gap: 0 10px; align-items: baseline; grid-template-areas: "t y" "w w"; width: 100%; text-align: left; border: 0; background: none; padding: 7px 0; font: inherit; font-size: var(--text-sm); line-height: 1.3; color: var(--ink); cursor: pointer; }
.where li button:hover .tt, .where li button:focus-visible .tt { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
.where li button .tt { grid-area: t; } .where li button .y { grid-area: y; }
.where li button .why { grid-area: w; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.45; color: var(--ink-3); margin-top: 1px; }
/* "Draw the links": a 24px mono button standing on the block's top rule, right-aligned, paper behind it so the rule
   breaks for it; the header's own count moves left to leave it room. Overrides lift_history_a's .cx-brush display rules. */
.sect-h.where-h { position: relative; padding-top: 16px; }
.sect-h.where-h > span:nth-child(2) { margin-right: 0; }
.sect-h.where-h .where-draw.cx-brush { display: inline-flex; align-items: center; position: absolute; right: 0; top: -12px; height: 24px; margin: 0; padding: 0 10px; box-sizing: border-box; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 0; cursor: pointer; }
.sect-h.where-h .where-draw.cx-brush:hover, .sect-h.where-h .where-draw.cx-brush:focus-visible { background: var(--ink); color: var(--paper); }
.sect-h.where-h .where-draw.cx-brush[hidden] { display: none; }
.where-checked { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-3); margin: 6px 0 2px; }
.where-none { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: var(--space-3); margin: var(--space-4) 0 0; }
/* the trail: the records read in this sitting, oldest first, under the folio; every crumb is a button, the current one in ink */
.cx-sheet { display: none; }
@media (max-width: 760px) { .cx-sheet:not([hidden]) { display: block; } }
.drawer-title .trail { margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em; line-height: 1.6; }
.drawer-title .trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.drawer-title .trail li { display: inline-flex; gap: 6px; align-items: baseline; min-width: 0; }
.drawer-title .trail button { background: none; border: 0; padding: 0; margin: 0; font: inherit; letter-spacing: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-title .trail button:hover, .drawer-title .trail button:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }
.drawer-title .trail button[aria-current] { color: var(--ink); text-decoration: none; cursor: default; }
.drawer-title .trail .y { color: var(--ink-3); }
.drawer-title .trail .sep { color: var(--ink-3); }
.where li button .y { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .where li { grid-template-columns: 76px 1fr; } }

/* ---- cursor hints on interactive marks: one shared vocabulary for every view ---- */
.view svg [role='button'], .view svg [role='link'], .view [role='button'], .view [role='link'] { cursor: pointer; }
.view svg .brush .selection, .view .brush .selection { cursor: grab; } .view .brush .selection:active { cursor: grabbing; }
.view svg .handle, .view [role='slider'], .scrubber .handle { cursor: ew-resize; }
.view .hint-drag, .view [data-drag] { cursor: grab; } .view .hint-drag:active, .view [data-drag]:active { cursor: grabbing; }
.view .hint-zoom { cursor: zoom-in; }
.view .hint-cross { cursor: crosshair; }

/* a deep link's landing: the element is marked with a red hairline for a moment (red = selection) */
.landed { outline: 1px solid #B9292F; outline-offset: 4px; transition: outline-color 1.2s ease 1.2s; }
/* source links in Capital lists wrap inside their column (verification sweep, Oct 23) */
.cap-deals a.src, .cap-list a.src, .capital li > a.src { overflow-wrap: anywhere; max-width: 100%; display: inline-block; }
.boot-note { margin: 0; padding: 24px var(--margin); font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.boot-note a { color: var(--ink); }



/* the arrival: night field over the shell while the globe breaks open onto the coil (js/arrival.js) */
.arrival { position: fixed; inset: 0; z-index: 80; background: var(--g-night, #07080d); opacity: 1; transition: opacity 0.9s ease; }
.arrival.fade { opacity: 0; pointer-events: none; }
.arrival canvas { position: absolute; left: 0; top: 0; display: block; }
.arrival .ar-ov { z-index: 1; pointer-events: none; }
.arrival .ar-gl { z-index: 2; }
.arrival .ar-lines { position: absolute; left: 6vw; top: auto; bottom: 9vh; z-index: 3; margin: 0; display: grid; gap: 0.28em; font: 400 clamp(40px, 5.6vw, 92px)/1 var(--font-display, 'Instrument Serif', serif); color: #eef0fa; opacity: 0; pointer-events: none; letter-spacing: -0.01em; text-shadow: 0 2px 28px rgba(6, 8, 26, 0.8); }
.arrival .ar-lines span { display: block; }
.arrival .ar-lines em { font-style: italic; color: #ffe2a8; }
.arrival .ar-lines small { display: block; font: 400 clamp(13px, 1.05vw, 17px)/1.3 var(--font-text, 'Instrument Sans', system-ui, sans-serif); color: rgba(238, 240, 250, 0.72); letter-spacing: 0.02em; }
@media (max-width: 759px) { .arrival .ar-lines { left: 7vw; right: 7vw; top: auto; bottom: 7vh; font-size: clamp(34px, 11vw, 48px); } .arrival .ar-lines small { font-size: 13px; } }


/* THE AI TAB: the same dark shell as the map, on night instead of indigo (brand system, November 2026) */
html[data-tab='ai'] { --sp-ground: #07080d; --ground-2: #10121c; --ground-3: #181b2a; --paper-2: #10121c; --paper-3: #181b2a; --glass: rgba(7, 8, 13, 0.72); --glass-2: rgba(16, 18, 28, 0.88); --ink: #eef0fa; --ink-2: #d2d7ef; --ink-3: #aeb6dc; --rule: rgba(238, 240, 250, 0.14); --rule-strong: rgba(238, 240, 250, 0.3); --link: #c3d1ff; color-scheme: dark; }
html[data-tab='ai'] .subnav .subnav { background: var(--glass); border-bottom: 1px solid var(--rule); color: var(--ink); }
html[data-tab='ai'] .subnav button, html[data-tab='ai'] .screens button .subnav button { font-family: var(--font-text); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-3); background: transparent; }
html[data-tab='ai'] .subnav button:hover, html[data-tab='ai'] .subnav button[aria-current='page'], html[data-tab='ai'] .subnav button[aria-pressed='true'] .subnav button:hover .subnav button[aria-current='page'] { color: var(--ink); }
html[data-tab='ai'] .subnav button[aria-current='page']::after, html[data-tab='ai'] .subnav button[aria-pressed='true']::after .subnav button[aria-current='page']::after { background: var(--ink); }

/* THE LEDGER TAB: print grey, tinted dark inks, the same quiet shell (brand system, November 2026) */
html[data-tab='ledger'] {
  --ground: #e3e4ea; --ground-2: #d9dbe3; --ground-3: #cfd2dc; --paper: #e3e4ea; --paper-2: #d9dbe3; --paper-3: #cfd2dc;
  --ink: #0f1120; --ink-2: #363a52; --ink-3: #5d6280;
  --rule: rgba(15, 17, 32, 0.14); --rule-strong: rgba(15, 17, 32, 0.34);
  --glass: rgba(227, 228, 234, 0.82); --glass-2: rgba(217, 219, 227, 0.92); --link: #3a3f7a; --accent: #cb4457;
  color-scheme: light;
}
html[data-tab='ledger'] body, html[data-tab='ledger'] .app { background: var(--ground); color: var(--ink); }
html[data-tab='ledger'] body[data-page] { --page-ground: var(--ground); --page-ink: var(--ink); --page-ink-2: var(--ink-3); --page-bar: var(--glass); }
html[data-tab='ledger'] .topbar { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); border-bottom: 1px solid var(--rule); color: var(--ink); }
html[data-tab='ledger'] .brand h1 { color: var(--ink); }
html[data-tab='ledger'] .brand .yrs { font-family: var(--font-text); font-size: 14px; letter-spacing: 0; color: var(--ink-3); }
html[data-tab='ledger'] .views button { font-family: var(--font-text); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
html[data-tab='ledger'] .views button .n, html[data-tab='ledger'] .views button .sub { font-family: var(--font-text); font-size: 12px; letter-spacing: 0; text-transform: none; }
html[data-tab='ledger'] .views button:hover, html[data-tab='ledger'] .views button[aria-current='page'] { color: var(--ink); }
html[data-tab='ledger'] .views button[aria-current='page']::after, html[data-tab='ledger'] .views .ind { background: var(--ink); }
html[data-tab='ledger'] .subnav { background: var(--glass); border-bottom: 1px solid var(--rule); }
html[data-tab='ledger'] .subnav button, html[data-tab='ledger'] .screens button { font-family: var(--font-text); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-3); background: transparent; }
html[data-tab='ledger'] .subnav button:hover, html[data-tab='ledger'] .subnav button[aria-current='page'], html[data-tab='ledger'] .subnav button[aria-pressed='true'] { color: var(--ink); }
html[data-tab='ledger'] .subnav button[aria-current='page']::after, html[data-tab='ledger'] .subnav button[aria-pressed='true']::after { background: var(--ink); }
html[data-tab='ledger'] .search input { background: rgba(15, 17, 32, 0.06); border: 0; border-radius: 3px; color: var(--ink); font-family: var(--font-text); }
html[data-tab='ledger'] .search input::placeholder { color: var(--ink-3); opacity: 1; }
html[data-tab='ledger'] .icon-btn { color: var(--ink-2); border-color: transparent; }
html[data-tab='ledger'] .icon-btn:hover { color: var(--ink); background: rgba(15, 17, 32, 0.06); }

/* ---------- Brand system, November 2026: one spectrum, three grounds, four motions ---------- */
/* Labels are sentence case and untracked everywhere; the monospace face is gone, so figures line up through tabular numerals. */
body * { text-transform: none !important; letter-spacing: 0 !important; }
.sc, .sect-h, .dl dt, .tip .k, .verif span, .drawer-unfold, .kicker, .kicker .ki, .where .k, .where-checked, .ledger .lg-band, .ledger.lg-v-lines .lg-main::before { font-size: 12px; }
.toggle button, .subnav button { font-size: 12.5px; }
body { font-variant-numeric: tabular-nums; }
/* Photographic grain over every ground, lighter on print grey. */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; opacity: 0.075; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.55 0 0 0 1 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px; }
body[data-page='ledger']::after { opacity: 0.05; mix-blend-mode: multiply; }

/* sources under the November 2026 standard: kind, bibliographic line, doi, what the page confirms */
.sources li .kind { display: inline-block; width: max-content; max-width: 100%; margin: 3px 0 0;  padding: 1px 6px; border-radius: 3px; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); background: rgba(127, 140, 190, 0.14); vertical-align: 1px; }
.sources li .kind.k-journal, .sources li .kind.k-primary, .sources li .kind.k-technical { background: rgba(94, 160, 120, 0.18); color: #8fd0a4; }
.sources li .kind.k-book { background: rgba(120, 140, 210, 0.2); color: #b7c3f0; }
.sources li .kind.k-vendor { background: rgba(200, 120, 90, 0.18); color: #e6a68c; }
.sources li .bib, .sources li .says { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); margin-top: 2px; }
.sources li .says em { font-style: italic; color: #e8bb7a; }
.sources li .doi { display: inline-block; margin-top: 2px; font-size: 12px; color: var(--ink-3); text-decoration: underline; text-decoration-color: rgba(174, 182, 220, 0.35); text-underline-offset: 3px; }
.drawer .rec-pic { margin: var(--space-3) 0 var(--space-3); }
.drawer .rec-pic .rec-img { max-height: 300px; overflow: hidden; border-radius: 2px; }
.drawer .rec-pic img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: center; }
.drawer .rec-pic figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.drawer .rec-pic figcaption a { color: inherit; text-decoration: underline; text-decoration-color: rgba(174, 182, 220, 0.4); text-underline-offset: 3px; }
.sources.ix li > a, .sources.ix li .kind, .sources.ix li .bib, .sources.ix li .doi, .sources.ix li .says { grid-column: 2; }
.sources.ix li .kind { justify-self: start; }
/* background reading: encyclopaedia links kept for orientation, set apart from the cited sources */
.drawer-body .bg-read { margin: 2px 0 0; font-size: var(--text-xs); line-height: 1.5; color: var(--ink-3); }
.drawer-body .bg-read span { color: var(--ink-2); margin-right: 6px; }
.drawer-body .bg-read a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
