/* AIBD. Typography, rules, and white space establish the hierarchy.
   The wordmark reveals the page artwork. Case colors indicate benefit depth or,
   on paired incidents, the harm scale. No gradients, no shadows, no radius. */

@font-face { font-family: "AIBD Serif"; src: url("fonts/optimized/AIBDSerif-Regular-Latin.woff2?v=46857d2d20") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+20-7E,U+A0-FF,U+131,U+152-153,U+2010,U+2013-2014,U+2018-2019,U+201C-201E,U+2026,U+20A6,U+20AC,U+20B9,U+2122,U+2212; }
@font-face { font-family: "AIBD Serif"; src: url("fonts/optimized/AIBDSerif-Regular-Extended.woff2?v=651f288aa2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+100-130,U+134-148,U+14A-151,U+154-17E,U+1A1,U+1B0,U+1EA1,U+1EA3,U+1EA5,U+1EA7,U+1EA9,U+1EAD,U+1EAF,U+1EB1,U+1EB7,U+1EBB,U+1EBF,U+1EC1,U+1EC3,U+1EC5,U+1EC7,U+1EC9,U+1ECB,U+1ECD,U+1ED1,U+1ED3,U+1ED5,U+1ED7,U+1ED9,U+1EDB,U+1EDD,U+1EDF,U+1EE3,U+1EE5,U+1EE7-1EE9,U+1EEB,U+1EED,U+1EEF,U+1EF1,U+1EF5,U+1EF9,U+2264-2265; }
@font-face { font-family: "AIBD Serif"; src: url("fonts/optimized/AIBDSerif-Italic-Latin.woff2?v=9b5985e5aa") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+20-7E,U+A0-FF,U+131,U+152-153,U+2010,U+2013-2014,U+2018-2019,U+201C-201E,U+2026,U+20A6,U+20AC,U+20B9,U+2122,U+2212; }
@font-face { font-family: "AIBD Serif"; src: url("fonts/optimized/AIBDSerif-Italic-Extended.woff2?v=8812389f1f") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+100-130,U+134-148,U+14A-151,U+154-17E,U+1A1,U+1B0,U+1EA1,U+1EA3,U+1EA5,U+1EA7,U+1EA9,U+1EAD,U+1EAF,U+1EB1,U+1EB7,U+1EBB,U+1EBF,U+1EC1,U+1EC3,U+1EC5,U+1EC7,U+1EC9,U+1ECB,U+1ECD,U+1ED1,U+1ED3,U+1ED5,U+1ED7,U+1ED9,U+1EDB,U+1EDD,U+1EDF,U+1EE3,U+1EE5,U+1EE7-1EE9,U+1EEB,U+1EED,U+1EEF,U+1EF1,U+1EF5,U+1EF9,U+2264-2265; }
@font-face { font-family: "AIBD Sans"; src: url("fonts/optimized/AIBDSans-Regular-Latin.woff2?v=ab1a9bf904") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+20-7E,U+A0-FF,U+131,U+152-153,U+2010-2011,U+2013-2014,U+2018-2019,U+201C-201E,U+2026,U+20A6,U+20AC,U+20B9,U+2122,U+2191-2193,U+2212; }
@font-face { font-family: "AIBD Sans"; src: url("fonts/optimized/AIBDSans-Regular-Extended.woff2?v=b152156cfe") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+100-130,U+132-151,U+154-17F,U+1A1,U+1B0,U+388,U+38C,U+391-394,U+397,U+399-39D,U+39F-3A1,U+3A3-3A6,U+3AC-3AF,U+3B1-3C9,U+3CC-3CE,U+1EA1,U+1EA3,U+1EA5,U+1EA7,U+1EA9,U+1EAD,U+1EAF,U+1EB1,U+1EB7,U+1EBB,U+1EBF,U+1EC1,U+1EC3,U+1EC5,U+1EC7,U+1EC9,U+1ECB,U+1ECD,U+1ED1,U+1ED3,U+1ED5,U+1ED7,U+1ED9,U+1EDB,U+1EDD,U+1EDF,U+1EE3,U+1EE5,U+1EE7-1EE9,U+1EEB,U+1EED,U+1EEF,U+1EF1,U+1EF5,U+1EF9,U+2082,U+2264-2265; }
@font-face { font-family: "AIBD Sans"; src: url("fonts/optimized/AIBDSans-Italic-Latin.woff2?v=bad07ef1ae") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+20-7E,U+A0-FF,U+131,U+152-153,U+2010-2011,U+2013-2014,U+2018-2019,U+201C-201E,U+2026,U+20A6,U+20AC,U+20B9,U+2122,U+2191-2193,U+2212; }
@font-face { font-family: "AIBD Sans"; src: url("fonts/optimized/AIBDSans-Italic-Extended.woff2?v=06ceb78cdb") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+100-130,U+132-151,U+154-17F,U+1A1,U+1B0,U+388,U+38C,U+391-394,U+397,U+399-39D,U+39F-3A1,U+3A3-3A6,U+3AC-3AF,U+3B1-3C9,U+3CC-3CE,U+1EA1,U+1EA3,U+1EA5,U+1EA7,U+1EA9,U+1EAD,U+1EAF,U+1EB1,U+1EB7,U+1EBB,U+1EBF,U+1EC1,U+1EC3,U+1EC5,U+1EC7,U+1EC9,U+1ECB,U+1ECD,U+1ED1,U+1ED3,U+1ED5,U+1ED7,U+1ED9,U+1EDB,U+1EDD,U+1EDF,U+1EE3,U+1EE5,U+1EE7-1EE9,U+1EEB,U+1EED,U+1EEF,U+1EF1,U+1EF5,U+1EF9,U+2082,U+2264-2265; }
@font-face { font-family: "AIBD Mono"; src: url("fonts/optimized/AIBDMono-Regular-Latin.woff2?v=fc3ed01248") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+20-7E,U+A0-FF,U+131,U+152-153,U+2013-2014,U+2018-2019,U+201C-201E,U+2026,U+20A6,U+20AC,U+20B9,U+2122,U+2191-2193,U+2212; }
@font-face { font-family: "AIBD Mono"; src: url("fonts/optimized/AIBDMono-Regular-Extended.woff2?v=54fda65c12") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+100-130,U+132-151,U+154-17F,U+1A1,U+1B0,U+3C0,U+1EA1,U+1EA3,U+1EA5,U+1EA7,U+1EA9,U+1EAD,U+1EAF,U+1EB1,U+1EB7,U+1EBB,U+1EBF,U+1EC1,U+1EC3,U+1EC5,U+1EC7,U+1EC9,U+1ECB,U+1ECD,U+1ED1,U+1ED3,U+1ED5,U+1ED7,U+1ED9,U+1EDB,U+1EDD,U+1EDF,U+1EE3,U+1EE5,U+1EE7-1EE9,U+1EEB,U+1EED,U+1EEF,U+1EF1,U+1EF5,U+1EF9,U+2082,U+2264-2265; }
@font-face { font-family: "AIBD Mono"; src: url("fonts/optimized/AIBDMono-Medium-Latin.woff2?v=2d4a68f504") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+20-7E,U+A0-FF,U+131,U+152-153,U+2013-2014,U+2018-2019,U+201C-201E,U+2026,U+20A6,U+20AC,U+20B9,U+2122,U+2191-2193,U+2212; }
@font-face { font-family: "AIBD Mono"; src: url("fonts/optimized/AIBDMono-Medium-Extended.woff2?v=dc351ed48a") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+100-130,U+132-151,U+154-17F,U+1A1,U+1B0,U+3C0,U+1EA1,U+1EA3,U+1EA5,U+1EA7,U+1EA9,U+1EAD,U+1EAF,U+1EB1,U+1EB7,U+1EBB,U+1EBF,U+1EC1,U+1EC3,U+1EC5,U+1EC7,U+1EC9,U+1ECB,U+1ECD,U+1ED1,U+1ED3,U+1ED5,U+1ED7,U+1ED9,U+1EDB,U+1EDD,U+1EDF,U+1EE3,U+1EE5,U+1EE7-1EE9,U+1EEB,U+1EED,U+1EEF,U+1EF1,U+1EF5,U+1EF9,U+2082,U+2264-2265; }

:root {
  --paper: #ffffff; --paper-2: #f6f6f4; --rule: #e4e4e0; --rule-width: 1px; --rule-2: var(--rule);
  --ink: #161616; --ink-2: #4f4f4c; --ink-3: #6b6b66;
  --d1: #5fd3a4; --d2: #1fb26b; --d3: #148f85; --d4: #6b4fc0; --d5: #3b1f73; --una: #8f8f8a;
  --h1: #94a3b8; --h2: #60a5fa; --h3: #f59e0b; --h4: #ef4444; --h5: #911a33;
  --c: var(--ink-3);
  --serif: "AIBD Serif", Georgia, "Times New Roman", serif;
  --sans: "AIBD Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "AIBD Mono", ui-monospace, Menlo, Consolas, monospace;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #d9d4c7; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "tnum" 1; }
body { margin: 0; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #d9d4c7 url("marble.jpg") center / cover no-repeat; background-image: image-set(url("marble.webp") type("image/webp"), url("marble.jpg") type("image/jpeg")); }
.page { max-width: 1280px; margin: 18px auto 44px; padding: 0 18px; display: grid; gap: 16px; }
.sheet { background: var(--paper); padding: 26px 36px; }
main.stack { background: transparent; padding: 0; display: grid; gap: 16px; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: var(--rule-width); transition: text-decoration-color 120ms; }
a:hover { text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); font-size: 0.9em; }
.ink2 { color: var(--ink-2); } .ink3 { color: var(--ink-3); }
.small { font-size: 0.86rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: #dfe6f3; color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.textbtn { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: var(--rule-width); }
.textbtn:hover { text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
input[type="search"], select { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: var(--rule-width) solid var(--rule); padding: 4px 0; border-radius: 0; }
input[type="search"]:focus, select:focus { border-bottom-color: var(--ink); }
select { appearance: none; -webkit-appearance: none; padding-right: 16px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }

/* Masthead */
.masthead.sheet { --wordmark-width: 288px; --wordmark-top: 18px; --mast-cross-y: calc(var(--wordmark-width) * 64.4 / 459); --mast-cross-offset: calc(var(--wordmark-width) * 7.9 / 459); position: relative; z-index: 10; padding: 0; }
.mast-row { display: grid; gap: 12px; padding: 18px 36px; }
.wordmark { position: relative; display: flex; align-items: center; justify-content: center; grid-column: 2; grid-row: 1; justify-self: center; min-height: 44px; max-width: 100%; text-decoration: none; line-height: 0; }
.wordmark::after { content: ""; position: absolute; top: 0; bottom: 0; left: 44.22658%; width: var(--rule-width); background: var(--rule); pointer-events: none; }
.brand-wordmark { display: block; width: var(--wordmark-width); max-width: 100%; height: auto; }
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .masthead.sheet { background: transparent; }
  .masthead::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--paper);
    -webkit-mask-image: linear-gradient(#000 0 0), var(--wordmark-mask);
    mask-image: linear-gradient(#000 0 0), var(--wordmark-mask);
    -webkit-mask-size: 100% 100%, var(--wordmark-width) auto;
    mask-size: 100% 100%, var(--wordmark-width) auto;
    -webkit-mask-position: 0 0, center var(--wordmark-top);
    mask-position: 0 0, center var(--wordmark-top);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  .brand-wordmark { opacity: 0; }
}
@media print, (forced-colors: active) {
  .masthead.sheet { background: var(--paper); }
  .masthead::before { display: none; }
  .brand-wordmark { opacity: 1; }
}
.find { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 100%; max-width: 520px; min-width: 0; }
.find input { width: 100%; font-size: 0.95rem; }
.mast-nav { --mast-label-shift: 3px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--wordmark-width) minmax(0, 1fr); align-items: center; gap: 12px 32px; width: 100%; justify-self: center; font: 17px/24px var(--serif); }
.mast-nav::before { content: ""; grid-column: 1 / -1; grid-row: 1; align-self: start; height: var(--rule-width); margin-top: var(--mast-cross-y); background: var(--rule); pointer-events: none; }
.mast-branch { display: none; pointer-events: none; }
.mast-data { grid-column: 1; grid-row: 1; justify-self: start; justify-content: flex-start; min-width: 44px; }
.mast-data, .collections-menu { transform: translateY(var(--mast-cross-offset)); }
.mast-data, .collections-menu > summary { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.mast-label { position: relative; padding: 0 12px; margin: 0 -12px; background: var(--paper); transform: translateY(var(--mast-label-shift)); }
.mast-data:hover, .mast-nav [aria-current="page"], .collections-menu > summary:hover, .collections-menu[open] > summary { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; text-decoration-thickness: var(--rule-width); }
.collections-menu { grid-column: 3; grid-row: 1; justify-self: end; position: relative; }
.collections-menu > summary { list-style: none; cursor: pointer; }
.collections-menu > summary::-webkit-details-marker { display: none; }
.collections-menu-list { position: absolute; right: 0; top: calc(100% + 10px); width: 310px; max-width: calc(100vw - 36px); max-height: calc(100dvh - 170px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px; background: var(--paper); border: var(--rule-width) solid var(--rule); }
.collections-menu-list a { display: grid; gap: 2px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.collections-menu-list a + a { border-top: var(--rule-width) solid var(--rule); }
.collections-menu-list a:hover > span, .collections-menu-list [aria-current="page"] > span { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; text-decoration-thickness: var(--rule-width); }
.collections-menu-list small { font: 13px/20px var(--sans); color: var(--ink-3); }
.collections-menu-list [aria-current="page"] { text-decoration: none; }
.viewsel { color: var(--ink-3); display: inline-flex; gap: 6px; align-items: baseline; }
.viewsel select { font: inherit; color: var(--ink-2); border: 0; border-bottom: var(--rule-width) solid var(--rule); background: transparent; padding: 0 0 2px; }
.viewsel select:hover { color: var(--ink); border-bottom-color: var(--rule); }
.customize { border-top: var(--rule-width) solid var(--rule); padding: 12px 36px 16px; display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; font-size: 0.86rem; }
.customize fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.customize legend { color: var(--ink-3); margin-bottom: 6px; }
.customize label { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }

/* Front page */
.lede h1 { font-size: 3rem; max-width: 20ch; }
.lede .intro { font-size: 1.08rem; margin-top: 22px; color: var(--ink-2); }
.lede .facts { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); margin-top: 14px; max-width: none; }
.guide { border-top: var(--rule-width) solid var(--rule); padding-top: 12px; font-size: 0.9rem; }
.guide h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 10px; }
.guide dl { margin: 0; }
.guide div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 8px 0; border-top: var(--rule-width) solid var(--rule); }
.guide dt { font-weight: 600; }
.guide dd { margin: 0; color: var(--ink-2); }
.guide .swatches { display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; background: var(--c); vertical-align: -1px; }
.d1 { --c: var(--d1); } .d2 { --c: var(--d2); } .d3 { --c: var(--d3); } .d4 { --c: var(--d4); } .d5 { --c: var(--d5); } .unassessed { --c: var(--una); }
.hv1 { --c: var(--h1); } .hv2 { --c: var(--h2); } .hv3 { --c: var(--h3); } .hv4 { --c: var(--h4); } .hv5 { --c: var(--h5); }

.figure { padding: 0; }
.figure-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 6px; }
.figure-head h2 { font-size: 1.25rem; }
.figure-head .key { margin-left: auto; font-size: 0.82rem; color: var(--ink-2); display: inline-flex; gap: 14px; align-items: baseline; }
.figure-head .key span { display: inline-flex; gap: 6px; align-items: center; }
.figure-head .key { flex-wrap: wrap; row-gap: 4px; justify-content: flex-end; }
.soundings { width: 100%; height: auto; display: block; overflow: visible; }
.soundings .zero { stroke: var(--rule); stroke-width: var(--rule-width); vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.soundings .depthline { stroke: var(--rule); stroke-width: var(--rule-width); vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.soundings .una-line { stroke: var(--rule); stroke-width: var(--rule-width); stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.soundings .axis { fill: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.soundings .axis.zero-label { fill: var(--ink); font-size: 12.5px; }
.soundings .year { fill: var(--ink-3); font-family: var(--mono); font-size: 11px; text-anchor: middle; }
.soundings .mark .core { fill: var(--c); stroke: var(--paper); stroke-width: 1.5; }
.soundings .mark .ring { fill: none; stroke: var(--c); stroke-width: 1; }
.soundings .mark:hover .core { stroke: var(--ink); }
.soundings .mark .lab { fill: var(--ink); font-family: var(--sans); font-size: 12px; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.soundings .harm rect { fill: var(--c); stroke: var(--paper); stroke-width: 1; }
.caption { font-size: 0.86rem; color: var(--ink-2); margin-top: 6px; max-width: none; }
.tip { position: fixed; z-index: 50; pointer-events: none; max-width: 340px; background: var(--paper); border: var(--rule-width) solid var(--rule); padding: 10px 12px; font-size: 0.86rem; color: var(--ink-2); opacity: 0; transition: opacity 120ms; }
.tip.on { opacity: 1; }
.tip b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; line-height: 1.3; font-family: var(--serif); font-size: 1rem; }
.tip .row { margin-top: 3px; font-family: var(--mono); font-size: 0.78rem; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; padding: 40px 0; border-top: var(--rule-width) solid var(--rule); }
.split h2 { font-size: 1.25rem; margin-bottom: 12px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.matrix th, .matrix td { padding: 8px 6px; border-bottom: var(--rule-width) solid var(--rule); text-align: center; }
.matrix thead th { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--ink-3); }
.matrix .mt { text-align: left; font-weight: 400; }
.matrix .mt a { text-decoration: none; }
.matrix .mt a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.matrix .mt small { display: block; color: var(--ink-3); font-size: 0.78rem; }
.matrix-cell { font-family: var(--mono); background: color-mix(in srgb, var(--ink) calc(var(--i, 0) * 30%), transparent); }
.matrix-cell a { text-decoration: none; display: block; }
.matrix-cell .zero { color: #c9c9c3; }
.matrix tfoot td, .matrix tfoot th { border-bottom: 0; border-top: var(--rule-width) solid var(--rule); font-family: var(--mono); }
.matrix tfoot th { text-align: left; }
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: rec; }
.numbered li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: var(--rule-width) solid var(--rule); }
.numbered li::before { counter-increment: rec; content: counter(rec, decimal-leading-zero); font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); padding-top: 5px; }
.numbered h3 { font-size: 1.12rem; }
.numbered h3 a { text-decoration: none; }
.numbered h3 a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.numbered p { margin: 4px 0 4px; color: var(--ink-2); font-size: 0.92rem; max-width: none; }
.numbered .meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.depth { font-family: var(--mono); white-space: nowrap; }
.depth .sw { margin-right: 5px; }
.closing { border-top: var(--rule-width) solid var(--rule); padding: 32px 0 48px; display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }
.closing h2 { font-size: 1.25rem; }
.closing p { color: var(--ink-2); }

/* Ledger */
.page-head { padding: 40px 0 18px; display: flex; align-items: baseline; gap: 18px; }
.page-head h1 { font-size: 2.2rem; }
.page-head .count { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; padding: 8px 0 14px; border-top: var(--rule-width) solid var(--rule); border-bottom: var(--rule-width) solid var(--rule); font-size: 0.9rem; }
.toolbar label { display: inline-flex; gap: 8px; align-items: baseline; color: var(--ink-2); }
.toolbar input[type="search"] { width: 200px; }
.toolbar .spacer { flex: 1; }
.toolbar .check { gap: 6px; cursor: pointer; }
.toolbar .check input { accent-color: var(--ink); }
table.records { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.records th, table.records td { text-align: left; padding: 11px 10px 11px 0; border-bottom: var(--rule-width) solid var(--rule); vertical-align: top; }
table.records thead th { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
table.records tbody tr:hover { background: var(--paper-2); }
td.when { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.rec { min-width: 320px; }
.rec a { font-family: var(--serif); font-size: 1.08rem; text-decoration: none; }
.rec a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.rec .sum { display: block; color: var(--ink-2); font-size: 0.86rem; margin-top: 2px; }
td[data-col="system"] { max-width: 210px; color: var(--ink-2); font-size: 0.84rem; }
td[data-col="system"] span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
td[data-col="domain"] { max-width: 160px; color: var(--ink-2); font-size: 0.84rem; }
td[data-col="groups"] { color: var(--ink-2); font-size: 0.84rem; }
td.num, th.num { text-align: right !important; font-family: var(--mono); padding-right: 0; }
.cat { font-family: var(--mono); font-size: 0.82rem; }

/* Record */
.crumbs { padding: 22px 0 0; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: var(--rule-width); }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.record { display: grid; grid-template-columns: 3fr 8fr; gap: 56px; padding: 18px 0 64px; align-items: start; }
.aside { position: sticky; top: 24px; font-size: 0.88rem; max-height: calc(100vh - 36px); overflow-y: auto; }
.gauge { width: 100%; height: auto; display: block; overflow: visible; margin-bottom: 10px; }
.gauge .zero { stroke: var(--rule); stroke-width: var(--rule-width); vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.gauge .tick { stroke: var(--rule); stroke-width: var(--rule-width); vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.gauge .axis { fill: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.gauge .axis.zero-label { fill: var(--ink); }
.gauge .g { fill: var(--c); stroke: var(--paper); stroke-width: 1.5; }
.gauge .gl { fill: var(--ink-2); font-family: var(--mono); font-size: 10.5px; }
.props { margin: 0; border-top: var(--rule-width) solid var(--rule); }
.props div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 7px 0; border-bottom: var(--rule-width) solid var(--rule); }
.props dt { color: var(--ink-3); }
.props dd { margin: 0; }
.cite { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); margin-top: 12px; }
.record-head { padding-bottom: 8px; }
.record-head .tags { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); display: flex; gap: 16px; flex-wrap: wrap; }
.record-head h1 { font-size: 2.3rem; margin: 10px 0 12px; max-width: 26ch; }
.record-head .sum { font-size: 1.15rem; color: var(--ink-2); font-family: var(--serif); max-width: 40rem; }
.record-head .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.sec { border-top: var(--rule-width) solid var(--rule); padding: 20px 0; }
.sec > h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; }
.sec h3 { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; margin: 4px 0 8px; }
.prose { font-size: 1.02rem; line-height: 1.65; max-width: 40rem; }
.purpose { border-left: var(--rule-width) solid var(--rule); padding: 2px 0 2px 14px; margin-top: 8px; color: var(--ink-2); max-width: var(--measure); }
.purpose b { color: var(--ink); font-weight: 600; }
.ratings { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ratings li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.ratings .big { font-family: var(--mono); font-size: 1.6rem; line-height: 1; display: flex; align-items: center; gap: 8px; }
.ratings .big .sw { width: 14px; height: 14px; }
.ratings .big small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--ink-3); margin-top: 6px; }
.ratings p { margin: 0; color: var(--ink-2); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: var(--rule-width) solid var(--rule); color: var(--ink-2); font-size: 0.92rem; }
ul.plain li:last-child { border-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.mini th, table.mini td { text-align: left; padding: 7px 10px 7px 0; border-bottom: var(--rule-width) solid var(--rule); vertical-align: top; }
table.mini thead th { font-family: var(--mono); font-size: 0.76rem; font-weight: 400; color: var(--ink-3); }
table.mini td { color: var(--ink-2); max-width: 320px; overflow-wrap: anywhere; }
table.mini td.src { font-family: var(--mono); font-size: 0.76rem; }
.outcome { font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }
.sources { list-style: none; padding: 0; margin: 0; counter-reset: src; }
.sources li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-bottom: var(--rule-width) solid var(--rule); }
.sources li::before { counter-increment: src; content: counter(src); font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); padding-top: 3px; }
.sources .kind { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3); margin-bottom: 3px; }
.sources h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; margin: 0 0 2px; }
.sources h3 a { text-decoration: none; } .sources h3 a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.sources .cit { color: var(--ink-2); font-size: 0.86rem; }
.sources blockquote { margin: 6px 0 0; padding: 0 0 0 14px; border-left: var(--rule-width) solid var(--rule); font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-2); max-width: 44rem; }

/* The strike and its echoes */
figure.echoes { margin: 0 0 12px; }
figure.echoes svg { width: 100%; height: auto; display: block; overflow: visible; }
.echoes .line { stroke: var(--rule); stroke-width: var(--rule-width); vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.echoes .axis-word { fill: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.echoes .filled { fill: var(--c); stroke: var(--paper); stroke-width: 1.5; }
.echoes .hollow { fill: var(--paper); stroke: var(--c); stroke-width: 2; }
.echoes .dotted { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 3 4; stroke-linecap: round; }
.echoes .label { fill: var(--ink); font-size: 13px; text-anchor: middle; font-family: var(--sans); }
.echoes .date { fill: var(--ink-3); font-size: 11px; text-anchor: middle; font-family: var(--mono); }
figcaption { color: var(--ink-3); font-size: 0.8rem; font-family: var(--mono); }
body.d1 { --c: var(--d1); } body.d2 { --c: var(--d2); } body.d3 { --c: var(--d3); } body.d4 { --c: var(--d4); } body.d5 { --c: var(--d5); } body.unassessed { --c: var(--una); }

/* Compare */
details.compare summary { cursor: pointer; font-weight: 500; }
.compare svg { width: 100%; max-width: 36rem; height: auto; display: block; margin: 12px 0; overflow: visible; }
.compare .vline, .compare .zrule { stroke: var(--rule); stroke-width: var(--rule-width); vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.compare .harm { fill: var(--ink); }
.compare .h1 { fill: var(--h1); } .compare .h2 { fill: var(--h2); } .compare .h3 { fill: var(--h3); } .compare .h4 { fill: var(--h4); } .compare .h5 { fill: var(--h5); }
.compare .benefit { fill: var(--c); }
.compare text { font-size: 12px; font-family: var(--mono); }
.compare .n { fill: var(--ink-3); text-anchor: end; }
.compare .t { fill: var(--ink); font-family: var(--sans); font-size: 13px; }

/* Documents */
.doc { max-width: var(--measure); padding-bottom: 48px; color: var(--ink-2); font-size: 1rem; }
.doc h2 { margin: 26px 0 8px; color: var(--ink); font-size: 1.3rem; }
.doc dt { color: var(--ink); font-family: var(--mono); font-size: 0.86rem; margin-top: 10px; } .doc dd { margin: 2px 0 0; }
.facts.wide { display: grid; gap: 8px; } .facts.wide div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
.card { border-top: var(--rule-width) solid var(--rule); margin-top: 28px; }
.card-head { display: flex; align-items: baseline; gap: 16px; padding: 12px 0 10px; }
.card-head h2 { font-size: 1.25rem; }
.card-head .right { margin-left: auto; }
.card-body { padding: 0 0 8px; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.case { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 0; border-top: var(--rule-width) solid var(--rule); }
.case .n { font-family: var(--mono); font-size: 1.2rem; }
.case .n small { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--ink-3); margin-top: 4px; }
.case h3 { font-size: 1.1rem; } .case h3 a { text-decoration: none; } .case h3 a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.case p { margin: 4px 0; color: var(--ink-2); font-size: 0.88rem; max-width: none; }
.case .meta { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3); }
.footer { justify-self: end; max-width: 100%; padding: 0; background: var(--paper); }
.footer .footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; padding: 0 16px; font: 12px/20px var(--sans); color: var(--ink-3); }
.footer-inner > a, .footer-downloads a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-downloads { display: inline-flex; flex-wrap: wrap; gap: 16px; }
.footer a { text-decoration: none; } .footer a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }

@media (max-width: 980px) {
  .lede, .split, .closing, .record, .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .lede h1 { font-size: 2.2rem; }
  .cases { grid-template-columns: 1fr; }
  .aside { position: static; }
}

/* Explorer */
.explorer { display: block; }
.facets { font-size: 0.86rem; position: sticky; top: 12px; }
.facet-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: var(--rule-width) solid var(--rule); color: var(--ink-2); }
.facet-search { display: block; margin: 12px 0 4px; color: var(--ink-2); }
.facet-search input { width: 100%; font-size: 0.9rem; margin-top: 2px; }
.facet h3 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; margin: 18px 0 4px; }
.facet button { display: flex; width: 100%; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: var(--rule-width) solid var(--rule); color: var(--ink-2); text-align: left; transition: color 120ms; }
.facet button:hover { color: var(--ink); }
.facet button .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.facet button .n { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3); }
.facet button.on { color: var(--ink); font-weight: 600; }
.facet button.on .v { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: var(--rule-width); }
.facet button.zero { color: var(--ink-3); }
.facet button.zero .v { opacity: 0.6; }
.facet-foot { margin: 20px 0 0; font-size: 0.82rem; color: var(--ink-2); line-height: 1.7; max-width: none; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: 12px 0 13px; border-bottom: var(--rule-width) solid var(--rule); }
.results li:first-child { padding-top: 2px; }
.results h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 500; }
.results h3 a { text-decoration: none; }
.results h3 a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.results p { margin: 4px 0 5px; color: var(--ink-2); font-size: 0.9rem; max-width: none; }
.results .meta { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 3px 14px; }
.matrix.narrow { max-width: 760px; }
@media (max-width: 980px) { .explorer { grid-template-columns: 1fr; gap: 20px; } .facets { position: static; max-height: none; overflow: visible; padding-right: 0; } .figure-head { flex-wrap: wrap; } .figure-head .key { margin-left: 0; flex-wrap: wrap; } }

/* Faceted state and long facets */
.active { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; padding: 0 0 12px; border-bottom: var(--rule-width) solid var(--rule); margin-bottom: 4px; font-size: 0.86rem; }
.active-chip { font-size: 0.86rem; color: var(--ink); border-bottom: var(--rule-width) solid var(--rule); padding: 0 0 1px; }
.active-chip .k { color: var(--ink-3); }
.active-chip .val { font-weight: 600; }
.active-chip .x { color: var(--ink-3); }
.active-chip:hover .x { color: var(--ink); }
.active-chip:hover { color: var(--ink-2); }
.active-text { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.facet-more { display: block; }
.facet-toggle { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--ink-3); font-style: italic; }
.facet-toggle:hover { color: var(--ink); }
.facets { max-height: calc(100vh - 24px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.toolbar.filtered { border-top-color: var(--rule); }
table.records thead th { position: sticky; top: 0; background: var(--paper); z-index: 1; border-bottom: 0; box-shadow: inset 0 calc(-1 * var(--rule-width)) 0 var(--rule); }

.results .meta .id { color: var(--ink-2); }

/* paired harms whose severity the source does not give */
.hvna .sw { background: var(--una); }
.harm.hvna rect { fill: var(--una); }
.compare .harm.hna { fill: var(--una); }

.soundings .axis-small { font-size: 10px; }

.results .metric { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); margin: 3px 0 4px; max-width: none; }
.more-rows { margin: 16px 0 0; font-size: 0.92rem; }

.record .meta span + span, .kind span + span, .taxonomy .meta span + span { margin-left: 16px; }

.facet h3 button { font: inherit; color: inherit; padding: 0; text-align: left; }
.facet[data-collapsed] h3 button { color: var(--ink-3); font-weight: 400; }
.facet[data-collapsed] > button[data-facet], .facet[data-collapsed] .facet-more, .facet[data-collapsed] .facet-toggle { display: none; }
.facet[data-collapsed] { padding-bottom: 2px; }
.record .metric-big { font-family: var(--mono); font-size: 1.02rem; color: var(--ink); margin: 8px 0 12px; }

.page > * { min-width: 0; }
.sheet { max-width: 100%; }

.define { color: var(--ink-2); font-size: 0.95rem; max-width: 78ch; margin: -4px 0 14px; }
table.records th[data-sort] { cursor: pointer; }
table.records th[aria-sort] { color: var(--ink); border-bottom-color: var(--rule); }

.case .meta span + span { margin-left: 14px; }

.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 250px; column-gap: 44px; }
.explorer > * { grid-column: 1; }
.explorer > .browse { grid-column: 2; grid-row: 1 / span 5; align-self: start; position: sticky; top: 16px; }
.browse { padding: 2px 0 0; }
.browse .fgroup { margin: 0 0 16px; }
.browse .flabel { font-size: 0.78rem; color: var(--ink-3); margin: 0 0 4px; }
.browse .row { display: flex; flex-wrap: wrap; gap: 1px 12px; }
.browse button { color: var(--ink-2); font-size: 0.86rem; padding: 0 0 1px; border-bottom: var(--rule-width) solid transparent; display: inline-flex; align-items: baseline; gap: 6px; }
.browse button:hover { color: var(--ink); }
.browse button .n { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.browse button.on { color: var(--ink); border-bottom-color: var(--rule); }
.browse button.zero { color: var(--ink-3); opacity: 0.55; }
.browse .sw { width: 10px; height: 10px; display: inline-block; }
.list-head { display: flex; gap: 16px; align-items: baseline; padding: 12px 0 2px; font-size: 0.82rem; }
.list-head .active { flex: 1; border: 0; padding: 0; margin: 0; }
.list-head [data-count] { margin-left: auto; }
.results { max-width: 980px; }
.results li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 13px 0 14px; }
.results .d { font-family: var(--mono); font-size: 0.95rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; padding-top: 4px; }
.results .d .sw { width: 11px; height: 11px; }
@media (max-width: 980px) { .explorer { grid-template-columns: 1fr; } .explorer > .browse { grid-column: 1; grid-row: auto; position: static; display: flex; flex-wrap: wrap; gap: 4px 22px; } .browse .fgroup { margin: 0 0 6px; } .results li { grid-template-columns: 1fr; gap: 4px; } }

.results li { align-items: start; }
.results .d { align-self: start; padding-top: 6px; }

.list-head a { margin-left: 18px; }
[data-explorer] .table-scroll { margin-top: 10px; }

h1.wordmark { margin: 0; }
.lede { max-width: 46rem; margin: 2px 0 22px; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); }
.soundings { width: 100%; height: auto; display: block; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { .sheet { overflow-x: hidden; } .find input { width: 100%; } .find { width: 100%; } }

@media (max-width: 700px) {
  table.records [data-col="system"], table.records [data-col="groups"], table.records [data-col="domain"], table.records [data-col="location"], table.records [data-col="echoes"] { display: none; }
  table.records { font-size: 0.86rem; }
  table.records td.rec a { white-space: normal; }
  table.records td.rec .sum { white-space: normal; }
  table.records .rec { min-width: 0; }
  table.records:not(.evidence) [data-col="sources"].num, table.records:not(.evidence) td.when, table.records:not(.evidence) th:nth-child(2) { display: none; }
  table.records th, table.records td { padding-right: 8px; }
  table.records { table-layout: fixed; width: 100%; }
  table.records .rec { width: 60%; }
  table.records th[data-col="depth"], table.records td[data-col="depth"] { width: 22%; }
  table.records td[data-col="depth"] .depth { white-space: normal; }
}

.record .brief { border-left: var(--rule-width) solid var(--rule); padding-left: 16px; max-width: 42rem; }

.record h2.brief-head em { font-style: italic; }
.record h2.brief-head strong { font-weight: 700; }

.ratings .big.unrated-word { flex-direction: column; align-items: flex-start; gap: 0; font-size: 0.86rem; color: var(--ink-3); }

@media (max-width: 700px) {
  table.mini, table.mini tbody, table.mini tr, table.mini td { display: block; }
  table.mini thead { display: none; }
  table.mini tr { padding: 8px 0; border-bottom: var(--rule-width) solid var(--rule); }
  table.mini td { border: 0; padding: 2px 0; max-width: none; }
  table.mini td.when, table.mini td.outcome { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
  table.records.evidence th:nth-child(n+3), table.records.evidence td:nth-child(n+3), table.records.evidence th:first-child, table.records.evidence td:first-child { display: none; }
  table.records.evidence .rec { width: auto; }
}

details.fold > summary { cursor: pointer; list-style: none; font-family: var(--sans); font-weight: 600; font-size: 0.86rem; color: var(--ink); margin: 26px 0 10px; padding-bottom: 6px; border-bottom: var(--rule-width) solid var(--rule); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; float: right; font-family: var(--mono); color: var(--ink-3); }
details.fold[open] > summary::after { content: "\2013"; }
details.fold.small > summary { font-size: 0.8rem; margin: 10px 0 6px; border-bottom: 0; }

.mk { vertical-align: -3px; overflow: visible; }
.mk .full { fill: var(--c); stroke: var(--c); stroke-width: 1.4; stroke-linejoin: round; }
.mk.conf-low .full { fill: var(--paper); }
.mk .half { fill: var(--c); }
.mk.unassessed { --c: var(--una); }
.browse .mk, .key .mk { --c: var(--ink); margin-right: 5px; }
.browse .fgroup[data-facet-group="group"] .mk, .browse .fgroup[data-facet-group="evidence"] .mk { --c: var(--ink); }
.key .sep { width: 14px; display: inline-block; }
.results .d { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding-top: 5px; }
.results .mkn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 0.95rem; color: var(--ink-2); }
.soundings .mark .core .full { fill: var(--c); stroke: var(--paper); stroke-width: 1.2; }
.soundings .mark.conf-low .core .full { fill: var(--paper); stroke: var(--c); stroke-width: 1.6; }
.soundings .mark .core .half { fill: var(--c); }
.gauge .g .full { fill: var(--c); stroke: var(--paper); stroke-width: 1.2; }
.gauge .conf-low .g .full { fill: var(--paper); stroke: var(--c); stroke-width: 1.6; }
.gauge .g .half { fill: var(--c); }
.ratings .big .mk { margin-right: 2px; }
.depth .mk { margin-right: 2px; }
.conf { display: inline-flex; align-items: center; gap: 6px; }
.conf .sw { width: 10px; height: 10px; display: inline-block; }

.browse .note { flex-basis: 100%; font-size: 0.82rem; color: var(--ink-3); margin: 0 0 4px; max-width: 46rem; }

.marks-line { margin: 4px 0 14px; font-size: 0.95rem; color: var(--ink-2); }
.marks-summary { margin: 4px 0 0; }
.marks-line .mkn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.marks-line .mk { transform: translateY(0.1em); }

.revs li { padding: 6px 0; border-bottom: var(--rule-width) solid var(--rule); color: var(--ink-2); }
.revs .when { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); margin-right: 8px; }
.conds { display: block; }

.ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px; fill: currentColor; color: var(--ink-2); flex: none; }
.browse .ic { width: 12px; height: 12px; margin-right: 5px; }

.lede { max-width: 40rem; margin: 6px 0 26px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; color: var(--ink); }
.browse .row { display: flex; flex-direction: column; gap: 2px; }
.browse button { display: inline-flex; align-items: center; gap: 7px; line-height: 1.5; padding: 1px 0; font-size: 0.9rem; }
.browse button .n { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-3); margin-left: 2px; }
.browse .ic, .props .ic { width: 15px; height: 15px; margin: 0; display: block; flex: none; color: var(--ink-2); }
.props .ic { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.browse .mk, .browse .sw { display: block; flex: none; }
.browse .note { font-size: 0.8rem; color: var(--ink-3); margin: 0 0 6px; }
.rn { display: inline-block; width: 3.2em; font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3); }
.props .rn { width: auto; margin-right: 6px; }
.results .mkn { gap: 6px; }
.results .mkn .mk { display: block; }
.results .meta span { display: inline-flex; align-items: center; }

.hero { padding: 30px 36px 6px; }
.hero .lede { font-family: var(--serif); font-size: 2.35rem; line-height: 1.2; max-width: 44rem; color: var(--ink); margin: 0; letter-spacing: -0.005em; }
.explorer > .lede { display: none; }
.results li { grid-template-columns: var(--benefit-mark-width, 136px) 1fr; }
.results .d { padding-top: 2px; }
.mobile { display: block; overflow: visible; }
.mobile .string { stroke: var(--rule); stroke-width: var(--rule-width); vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.mobile .mobile-fork { shape-rendering: geometricPrecision; }
.mobile .full { fill: var(--c); stroke: var(--c); stroke-width: 1.2; stroke-linejoin: round; }
.mobile .conf-low .full { fill: var(--paper); }
.mobile .half { fill: var(--c); }
.mobile .num { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
@media (max-width: 980px) { .hero { padding: 22px 18px 4px; } .hero .lede { font-size: 1.6rem; } .results li { grid-template-columns: 1fr; } }

.figure-head { display: block; }
.figure-head .key { justify-content: flex-start; margin: 6px 0 4px; font-size: 0.8rem; color: var(--ink-2); gap: 4px 14px; }
.soundings .mark .core .full { stroke-width: 1; }
.soundings .mark.conf-low .core .full { stroke-width: 1.4; }

.hero { display: none; }
.explorer > .lede { display: block; }
.lede { max-width: 40rem; margin: 4px 0 24px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.mk .full, .mobile .full, .soundings .mark .core .full { fill: var(--c); stroke: color-mix(in srgb, var(--c) 70%, #000); stroke-width: 1.2; stroke-linejoin: round; opacity: 1; }
.evidence-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.evidence-outline { fill: none; stroke: color-mix(in srgb, var(--c) 70%, #000); stroke-width: 1.2; stroke-linejoin: round; }
.conf-low .full, .mk.conf-low .full, .mobile .conf-low .full, .soundings .mark.conf-low .core .full { fill: var(--paper); stroke: color-mix(in srgb, var(--c) 70%, #000); stroke-width: 2; opacity: 1; }

.browse .row.compact { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; }
.browse .row.compact button { font-size: 0.84rem; }

.explorer { display: block; }
.explorer > .browse { display: none; }
.panel { margin: 0 0 22px; padding: 0 0 18px; border-bottom: var(--rule-width) solid var(--rule); }
.lists { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; }
.lists .fgroup { margin: 0 0 10px; }
.lists .row { display: flex; flex-direction: column; gap: 2px; }
.lists .row.compact { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; }
.lists button { display: inline-flex; align-items: center; gap: 7px; line-height: 1.5; padding: 1px 0; font-size: 0.9rem; color: var(--ink-2); text-align: left; }
.lists button:hover { color: var(--ink); }
.lists button.on { color: var(--ink); font-weight: 600; }
.lists button.zero { color: var(--ink-3); opacity: 0.55; }
.lists button .n { font-size: 0.78rem; color: var(--ink-3); margin-left: 2px; }
.lists .ic { width: 15px; height: 15px; display: block; flex: none; color: var(--ink-2); }
.lists .mk, .lists .sw { display: block; flex: none; }
/* Lowercase labels occupy a lower band than capital letters or numerals. */
.lists [data-facet="group"] .mk, .lists [data-facet="evidence"] .mk { transform: translateY(0.1em); }
.lists [data-facet="group"][data-value="personal"] .mk { transform: translateY(0.16em); }
.lists .sw { width: 10px; height: 10px; }
.lists .note { font-size: 0.8rem; color: var(--ink-3); margin: 0 0 6px; }
.worldmap { width: 100%; height: auto; display: block; }
.worldmap .land { fill: #dedbd3; stroke: var(--paper); stroke-width: 0.6; cursor: pointer; }
.worldmap .land.c1 { fill: #9fb7c9; } .worldmap .land.c2 { fill: #5b86a6; } .worldmap .land.c3 { fill: #2f5876; }
.worldmap .land:focus-visible { outline: none; stroke: var(--ink); stroke-width: 1.4; }
.worldmap .land:hover { stroke: var(--ink); stroke-width: 1; }
.worldmap .land.on { stroke: var(--ink); stroke-width: 1.2; }
.worldmap .land.c0.zero { fill: #dedbd3; opacity: 1; }
.panel .figure-head h2 { font-size: 1.1rem; }
.panel > .note { font-size: 0.8rem; color: var(--ink-3); margin: 6px 0 0; }
@media (max-width: 980px) { .lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lists { grid-template-columns: 1fr; } }

.plates { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 8px; }
.plates .plate { font-size: 0.86rem; color: var(--ink-3); padding: 0 0 1px; border-bottom: var(--rule-width) solid transparent; }
.plates .plate.on { color: var(--ink); border-bottom-color: var(--rule); }
.plates .readout { margin-left: auto; font-size: 0.8rem; color: var(--ink-2); min-height: 1.2em; }
.worldmap { background: #f4f2ed; }
.worldmap .land { transition: fill 120ms; }

.panel-h { font-size: 1.1rem; margin: 6px 0 10px; }
.panel .page-head { display: none; }
.thead { display: grid; grid-template-columns: var(--benefit-mark-width, 136px) minmax(0, 1fr) 140px 142px 96px 100px; gap: 14px; padding: 6px 0; margin-top: 10px; border-bottom: var(--rule-width) solid var(--rule); font-size: 0.78rem; color: var(--ink-3); }
.thead button { text-align: left; color: var(--ink-3); }
.thead button.on { color: var(--ink); border-bottom: var(--rule-width) solid var(--rule); }
.explorer.tabular .results li { grid-template-columns: var(--benefit-mark-width, 136px) minmax(0, 1fr) 140px 142px 96px 100px; align-items: center; padding: 6px 0; }
.explorer.tabular .results li > div:nth-child(2) { display: contents; }
.explorer.tabular .results .metric { display: none; }
.explorer.tabular .results .meta { display: contents; }
.explorer.tabular .results .meta span { display: block; font-size: 0.82rem; }
.explorer.tabular .results .meta span:nth-child(n+5) { display: none; }
.explorer.tabular .results h3 { font-size: 0.98rem; }
.explorer.tabular .results .d .mobile { width: auto; max-width: 100%; height: auto; }
.footer-inner { gap: 18px; }

.brief-wrap { display: grid; grid-template-columns: minmax(0, 42rem) minmax(12rem, 16rem); column-gap: 32px; align-items: start; }
.sidenotes { font-size: 0.8rem; line-height: 1.45; color: var(--ink-2); }
.sidenotes ol { list-style: none; margin: 4px 0 0; padding: 0; }
.sidenotes li { margin: 0 0 10px; padding-left: 1.4em; text-indent: -1.4em; }
.sn-mark { font-family: var(--mono); font-size: 0.72em; color: var(--ink-3); vertical-align: super; line-height: 0; margin: 0 2px 0 1px; }
.sidenotes .sn-mark { vertical-align: baseline; margin-right: 6px; }
@media (max-width: 980px) { .brief-wrap { grid-template-columns: 1fr; } .sidenotes { border-top: var(--rule-width) solid var(--rule); padding-top: 8px; } }

.lede { font-size: 1.9rem; line-height: 1.25; max-width: 36rem; margin: 6px 0 26px; }

.sub { max-width: 40rem; margin: -10px 0 26px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; color: var(--ink-2); }
/* On phones the wordmark has its own row above the navigation and search. */
@media (max-width: 820px) {
  .masthead.sheet { --wordmark-top: 16px; overflow: visible; }
  .mast-row { padding: 16px 18px; }
  .masthead .find input { min-height: 44px; font-size: 16px; }
  .mast-nav { --mast-label-shift: 2px; column-gap: 24px; font-size: 16px; }
  .collections-menu { position: static; }
  .collections-menu-list { right: 0; top: calc(100% + 8px); }
}
@media (max-width: 600px) {
  .masthead.sheet { --wordmark-width: min(288px, calc(100vw - 60px)); }
  .mast-nav { --mast-label-shift: 1.5px; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; font-size: 14px; }
  .mast-nav::before { justify-self: center; width: var(--wordmark-width); }
  .mast-branch { display: block; position: absolute; top: var(--mast-cross-y); width: calc((100% - var(--wordmark-width)) / 2 + 8px); height: calc(var(--wordmark-width) * 48.6 / 459 + 32px); border-top: var(--rule-width) solid var(--rule); }
  .mast-branch::after { content: ""; position: absolute; bottom: 0; width: 4px; border-bottom: var(--rule-width) solid var(--rule); }
  .mast-branch-data { left: -8px; border-left: var(--rule-width) solid var(--rule); }
  .mast-branch-data::after { left: 0; }
  .mast-branch-collections { right: -8px; border-right: var(--rule-width) solid var(--rule); }
  .mast-branch-collections::after { right: 0; }
  .mast-label { padding: 0; margin: 0; }
  .wordmark { grid-column: 1 / -1; grid-row: 1; }
  .mast-data, .collections-menu { transform: none; }
  .mast-data { grid-column: 1; grid-row: 2; justify-self: start; justify-content: flex-start; }
  .find { grid-column: 2; grid-row: 2; }
  .collections-menu { grid-column: 3; grid-row: 2; justify-self: end; }
}

/* Facts with their quote: Measured against, Value as stated, Since then. */
.facts { margin: 4px 0 26px; }
.facts .fq { display: block; margin: 4px 0 0; font-size: 0.86rem; color: var(--ink-2); quotes: "\201C" "\201D"; }
.facts .fq::before { content: open-quote; } .facts .fq::after { content: close-quote; }
.facts .fsrc { font-size: 0.8rem; color: var(--ink-3); }
.basis { margin: -6px 0 12px; color: var(--ink-2); }

.marks-line .why { font-size: 0.9rem; color: var(--ink-3); }

.tax-group { font-family: var(--serif); font-size: 1.1rem; margin: 18px 0 8px; }

/* Things to do on a record: keep, shelf, atlas, correction, feed; and cases like it. */
.do { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; font-size: 0.95rem; color: var(--ink-2); }
.do a, .do button { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: var(--rule-width); }
.do a:hover, .do button:hover { color: var(--ink); text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.do button[aria-pressed="true"] { color: var(--ink); text-decoration: none; font-weight: 600; }
.like { margin: 8px 0 0; font-size: 0.95rem; color: var(--ink-2); }
.revs-line { color: var(--ink-2); }

/* Front door: the orientation under the heading, and the legend above the list. */
.orient { max-width: 46rem; margin: -10px 0 22px; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); }
.orient p { margin: 0 0 10px; }
.legend { max-width: 62rem; margin: 12px 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--ink-3); }

/* Charts: subtitle with count, span and source; the timeline's build rule; hit targets. */
.figure-head .subtitle { flex-basis: 100%; margin: -2px 0 6px; font-size: 0.82rem; color: var(--ink-3); }
.figure-head .key .kw { color: var(--ink-3); margin-right: 2px; }
.soundings .built-line { stroke: var(--rule); stroke-width: var(--rule-width); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.soundings .built-label { fill: var(--ink-2); }
.soundings .mark .hit { fill: transparent; stroke: none; }
.soundings .mark:focus-visible .core .full { stroke: var(--ink); stroke-width: 2.4; }
.atlas-key { margin: 0 0 8px; }
.atlas-key .sw { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; border: 1px solid var(--paper); outline: var(--rule-width) solid var(--rule); }
.atlas-key .sw.c0 { background: #dedbd3; } .atlas-key .sw.c1 { background: #9fb7c9; } .atlas-key .sw.c2 { background: #5b86a6; } .atlas-key .sw.c3 { background: #2f5876; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) { .browse .row button, .facet button { min-height: 28px; } }

/* Panel heads: the tool's name and a way back; the Lists head mirrors the count. */
.panel-head { display: flex; align-items: baseline; gap: 18px; margin: 0 0 12px; padding: 0 0 8px; border-bottom: var(--rule-width) solid var(--rule); }
.panel-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.panel-head .panel-close { margin-left: auto; font-size: 0.9rem; color: var(--ink-2); }
.panel-head [data-count-mirror] { font-size: 0.82rem; color: var(--ink-3); }
.panel-head [data-show-cases] { font-size: 0.9rem; }
@media (max-width: 1000px) {
  .explorer.tabular .results li, .thead { grid-template-columns: var(--benefit-mark-width, 118px) minmax(0, 1fr); }
  .explorer.tabular .results .d { grid-row: span 2; }
  .explorer.tabular .results .meta span:first-child { grid-column: 2; }
  .thead button:nth-child(n+3), .explorer.tabular .results .meta span:nth-child(n+2) { display: none; }
}
@media (max-width: 700px) {
  .record { display: grid; grid-template-columns: 1fr; }
  .record .aside { order: 2; }
}

/* Widths shared by the list, its head and the table head; phone targets; the timeline scrolls sideways on phones. */
.list-head, .thead { max-width: 980px; }
.empty { margin: 14px 0; }
.panel-name { font-size: 1.3rem; }
.soundings-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .list-head button, .crumbs a, .do a, .do button, .panel-close, .plate { min-height: 40px; display: inline-flex; align-items: center; }
  .soundings { min-width: 760px; }
}

.fragment[aria-busy="true"] { color: var(--ink-3); font-size: 0.9rem; padding: 24px 0; }

/* Lists head stays in view; comparison table; phone-only lines; atlas dots; disabled facets. */
.panel[data-tool-panel="lists"] .panel-head { position: sticky; top: 0; z-index: 5; background: var(--paper); padding-top: 6px; }
table.compare { border-collapse: collapse; font-size: 0.9rem; margin: 10px 0 18px; display: block; overflow-x: auto; max-width: 100%; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-bottom: var(--rule-width) solid var(--rule); min-width: 200px; max-width: 320px; }
.compare th { font-weight: 400; }
.compare thead th { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.compare thead th small { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); margin-top: 2px; }
.compare th.f { min-width: 120px; max-width: 140px; color: var(--ink-3); font-size: 0.82rem; }
.phone-only { display: none; }
.quick { font-size: 0.92rem; color: var(--ink-2); margin: 4px 0 0; }
.worldmap .dot { stroke: var(--paper); stroke-width: 1; }
.browse .row button:disabled, .facet button:disabled { opacity: 0.45; cursor: default; }
@media (max-width: 700px) { .phone-only { display: block; } .quick { margin-bottom: 8px; } }

/* Type scale: eight roles on a 16 px root, leadings in multiples of 4 px; measures per role. */
:root { --t-h1: 2.125rem; --l-h1: 40px; --t-lede: 1.75rem; --l-lede: 36px; --t-head: 1.25rem; --l-head: 28px; --t-title: 1.0625rem; --l-title: 24px; --t-body: 1rem; --l-body: 24px; --t-data: 0.9375rem; --l-data: 24px; --t-small: 0.875rem; --l-small: 20px; --t-cap: 0.8125rem; --l-cap: 20px; }
.mono { font-size: inherit; }
body { font-size: var(--t-body); line-height: var(--l-body); }
.record-head h1, .record h1 { font-size: var(--t-h1); line-height: var(--l-h1); letter-spacing: -0.02em; font-weight: 500; }
.lede { font-size: var(--t-lede); line-height: var(--l-lede); font-weight: 400; max-width: 32rem; }
.panel-name, .figure-head h2, .sec h2, .record h2, .method h2, .panel h2, .tax-group, .panel-h, .brief-head { font-size: var(--t-head); line-height: var(--l-head); }
.results h3, .sources h3, .case h3, .compare thead th, .record-head .sum, .sum { font-size: var(--t-title); line-height: var(--l-title); }
.record-head .sum { max-width: 32rem; }
.prose, .orient, .orient p, .brief, .ratings p, .facts dd, .purpose, .basis, .revs-line, .conds p, .method p, .panel p.prose, .not-admitted p, .case p, .do, .like, .quick, .shelf p, .marks-line { font-size: var(--t-body); line-height: var(--l-body); }
.prose, .orient, .brief, .ratings p, .purpose, .basis, .revs-line, .conds p, .method p, .case p { max-width: 34rem; }
.metric, .metric-big, .results .metric, .ratings .big, .readout, [data-count], .list-head [data-count], .cite .mono, .props dd.mono, .props .mono, .matrix td, .matrix-cell, .compare thead th small, .crumbs { font-size: var(--t-data); line-height: var(--l-data); }
.metric-big { font-size: 1.0625rem; line-height: 24px; max-width: 34rem; }
.note, .legend, .subtitle, .atlas-key, .cit, .sidenotes, .sidenotes li, .props, .props dt, .props dd, .aside, .facets, .browse, .browse .row button, .fgroup, .flabel, .thead, .thead button, .list-head, .key, .figure-head .key, .tip, .compare th, .compare td, .matrix th, .matrix thead th, .matrix .mt small, .mini, .mini td, .mini th, .footer-inner, .find input, .sources blockquote, .plain, .revs, .empty, .panel > .note, .panel-head [data-count-mirror], .panel-head [data-show-cases], .panel-head .panel-close, .compare th.f { font-size: var(--t-small); line-height: var(--l-small); }
.note, .legend, .subtitle, .atlas-key, .cit, .empty { max-width: 30rem; }
.legend { max-width: 34rem; }
.meta, .results .meta, .results .meta span, .kind, .kind span, .cite, .sn-mark, .sidenotes .sn-mark, .why, .marks-line .why, .matrix tfoot th, .matrix tfoot td, .kw, .figure-head .key .kw, .thead, .thead button, .crumbs, .list-head, .tip .row, .plates .plate, .compare thead th small { font-size: var(--t-cap); line-height: var(--l-cap); }
sup, .sn-mark { font-size: 0.75em; line-height: 0; }
.sidenotes .sn-mark { font-size: var(--t-cap); line-height: inherit; }
.ratings .big { font-size: var(--t-head); line-height: var(--l-head); }
.figure-head h2, .panel h2 { margin-bottom: 4px; }
/* Phone: figures scroll instead of shrinking; grids stack; the column widens. */
.echoes { overflow-x: auto; }
.matrix-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .page { padding: 0 12px; }
  .sheet { padding: 20px 18px; }
  .echoes svg { min-width: 640px; }
  .ratings li, .facts.wide div, .props div, .props.facts div { grid-template-columns: 1fr; }
  .record-head h1 { font-size: 1.75rem; line-height: 36px; }
}
/* Scale stragglers and the phone overflow. */
.more-rows, .ratings small, .big.unrated-word, q.fq, .fq, p.cit, .ink3.small, .small { font-size: var(--t-small); line-height: var(--l-small); }
.rn, .props .rn, .fsrc, a.fsrc { font-size: var(--t-cap); line-height: var(--l-cap); }
.record-head .metric-big { font-size: var(--t-title); line-height: var(--l-title); }
.record > article, .record article { min-width: 0; }
@media (max-width: 700px) { .record { grid-template-columns: minmax(0, 1fr); } .record .aside { min-width: 0; } }

/* A record opens with its benefit; metadata accompanies the account. */
.record-page .record-head { position: relative; padding: 28px 130px 30px 0; border-bottom: var(--rule-width) solid var(--rule); }
.record-page .record-head h1 { max-width: 28ch; margin: 8px 0 16px; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; text-wrap: balance; }
.record-page .record-head .sum { max-width: 42rem; margin: 0; font-size: 20px; line-height: 28px; }
.record-date { margin: 0; color: var(--ink-3); font: 13px/20px var(--sans); }
.record-date time { margin-left: 8px; }
.record-grades { position: absolute; top: 52px; right: 0; display: flex; align-items: center; gap: 16px; }
.record-grade-key { display: inline-flex; min-width: 40px; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; color: var(--ink-3); }
.record-page .record { grid-template-columns: minmax(0, 8fr) minmax(220px, 3fr); gap: 48px; padding-top: 24px; }
.record-page .record .aside { position: static; max-height: none; overflow: visible; min-width: 0; }
.record-page .aside h2 { font: 500 18px/28px var(--serif); margin: 0 0 16px; }
.record-page .aside .props { border-top: 0; }
.record-page .aside .props > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
.record-page .aside .props > div:first-child { padding-top: 0; }
.record-page .aside .props dt { font-size: 12px; }
.record-page .aside .props dd { font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.record-page .aside { --case-icon-width: 36px; }
.record-page .aside .case-party-line, .record-page .aside .case-country { grid-template-columns: var(--case-icon-width) minmax(0, 1fr); }
.record-page .record article > .sec:first-child { border-top: 0; padding-top: 0; }
.record-page .record article p, .record-page .record-head .sum { text-align: justify; text-align-last: left; -webkit-hyphens: auto; hyphens: auto; }
.record-page .record article .do { text-align: left; }
.record-page .prose, .record-page .ratings p, .record-page .purpose { max-width: none; }
.record-page .sec { padding-block: 24px; }
.record-page .sec > h2 { font: 500 22px/28px var(--serif); margin-bottom: 16px; }
.record-page .sources .kind { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--sans); }
.record-page .sources .cit { max-width: none; margin-bottom: 6px; }
.record-page .source-contribution { font-size: 14px; line-height: 22px; color: var(--ink-2); margin: 8px 0 0; }
.record-page .followup-list { list-style: none; padding: 0; margin: 20px 0 0; }
.record-page .followup-list li { padding-block: 16px; border-top: var(--rule-width) solid var(--rule); }
.record-page .followup-list p { max-width: none; margin-bottom: 8px; }
.record-page .followup-date { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.record-page .followup-source { font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.record-page .ratings li { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
.record-page .facts > div { grid-template-columns: 100px minmax(0, 1fr); }
.record-page .mini { font-size: 14px; }
.record-page .mini .when { white-space: normal; }
@media (max-width: 980px) {
  .record-page .record { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .record-page .record .aside { border-top: var(--rule-width) solid var(--rule); padding-top: 24px; }
  .record-page .aside .props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 600px) {
  .record-page .record-head { padding: 20px 0 24px; }
  .record-page .record-head h1 { font-size: 32px; }
  .record-page .record-head .sum { font-size: 18px; line-height: 26px; }
  .record-page .record-grades { position: static; margin-top: 16px; justify-content: space-between; }
  .record-page .record { padding-top: 24px; }
  .record-page .ratings li { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .record-page .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .record-page .aside .props { grid-template-columns: 1fr; }
  .record-page .sources li { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
  .record-page .mini { display: block; overflow-x: auto; }
  .record-page .mini td { min-width: 100px; }
  .record-page .mini td:nth-child(3) { min-width: 200px; }
}

/* Atlas: outlines in one quiet tone; circles carry the counts. */
.worldmap .land { fill: #e6e3dc; }
.worldmap .land.on { fill: #cfcbc2; }
.worldmap .bubble { fill: #2f5876; fill-opacity: 0.72; stroke: var(--paper); stroke-width: 1; }
.worldmap .bubble:hover, .worldmap .bubble.on { fill-opacity: 0.95; stroke: var(--ink); }
.atlas-key .bk { vertical-align: middle; margin: 0 2px; } .atlas-key .bk circle { fill: #2f5876; fill-opacity: 0.72; stroke: var(--paper); }

/* Roles: a line per case for the reader's work; the role buttons as a plain list. */
.roles { max-width: 40rem; }
.roles button { display: block; width: 100%; text-align: left; padding: 10px 0; border: 0; border-bottom: var(--rule-width) solid var(--rule); background: none; font: inherit; cursor: pointer; }
.roles button b { font-family: var(--serif); font-weight: 500; font-size: var(--t-title); line-height: var(--l-title); display: block; }
.roles button span { display: block; color: var(--ink-2); font-size: var(--t-small); line-height: var(--l-small); }
.roles button[aria-pressed="true"] b { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; text-decoration-thickness: var(--rule-width); }
.extra { display: none; margin-top: 4px; max-width: 34rem; font-size: var(--t-small); line-height: var(--l-small); color: var(--ink-2); }
.extra .x { display: none; }
.explorer[data-role] .extra { display: block; }
.explorer[data-role="buyer"] .x.buyer, .explorer[data-role="regulator"] .x.regulator, .explorer[data-role="insurer"] .x.insurer, .explorer[data-role="reporter"] .x.reporter { display: inline; }
.explorer.tabular .extra { display: none; }

/* Depth 5: a halo, two thin rings around the mark. */
.mk, .mobile, .soundings { overflow: visible; }
.halo { fill: none; stroke: var(--c); stroke-width: 0.8; opacity: 0.6; }
.halo.far { stroke-width: 0.6; opacity: 0.3; }
.sw.d5, .d5 .sw { box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 2.5px var(--d5); }

.explorer[data-role] .extra { display: block; }

/* Atlas layers: where it happened, or where the system was made. */
.layers { display: flex; gap: 18px; margin: 0 0 8px; font-size: var(--t-small); }
.layers button { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: var(--rule-width); }
.layers button[aria-pressed="true"] { color: var(--ink); text-decoration: none; font-weight: 600; }
.worldmap .bubble.made { fill: #2f5876; }
.atlas-key [data-made-note] { display: block; margin-top: 2px; }
.worldmap .layer-off { display: none; }

/* Latest, Entities and Submit. */
.latest { list-style: none; margin: 0 0 18px; padding: 0; max-width: 46rem; }
.latest li { padding: 8px 0; border-bottom: var(--rule-width) solid var(--rule); }
.latest-when { font-weight: 400; color: var(--ink-3); font-size: var(--t-cap); line-height: var(--l-small); margin: 18px 0 2px; }
.newest-date { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0 0 6px; color: var(--ink-3); font: 14px/22px var(--sans); }
.newest-date time { color: var(--ink-2); }
.latest a { text-decoration: none; }
.latest li > a { font-family: var(--serif); font-size: var(--t-title); line-height: var(--l-title); }
.latest li > a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
.latest .src { display: block; color: var(--ink-3); font-size: var(--t-small); line-height: var(--l-small); }
.latest .src a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
/* Entities: one organization per row; its mark's area follows its count. */
.ents { display: block; list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.ent { display: grid; grid-template-columns: 96px minmax(0, 1fr) 3.5rem 15rem; align-items: center; column-gap: 20px; padding: 5px 0; border-bottom: var(--rule-width) solid var(--rule); min-height: calc(var(--s, 16px) + 10px); }
.ent .mark { width: 96px; height: var(--s, 16px); display: flex; align-items: center; }
.ent .mark .logo { max-width: 96px; max-height: var(--s); width: auto; height: auto; object-fit: contain; margin: 0; }
.ent .who { font-size: var(--t-body); line-height: var(--l-body); color: var(--ink-2); text-align: left; justify-self: start; }
.ent .who.on .v { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; color: var(--ink); text-decoration-thickness: var(--rule-width); }
.ent > .n { color: var(--ink-3); font-family: var(--mono); font-size: var(--t-data); text-align: right; font-variant-numeric: tabular-nums; }
.ent .where { color: var(--ink-3); font-size: var(--t-small); line-height: var(--l-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .ent { grid-template-columns: 64px minmax(0, 1fr) 3rem; } .ent .where { grid-column: 2 / -1; } }
.submit { max-width: 34rem; display: grid; gap: 14px; }
.submit label { display: grid; gap: 4px; font-size: var(--t-small); color: var(--ink-2); }
.submit textarea, .submit input { font: inherit; font-size: var(--t-body); color: var(--ink); background: var(--paper); border: var(--rule-width) solid var(--rule); padding: 6px 8px; border-radius: 0; }
.submit textarea:focus, .submit input:focus { border-color: var(--ink); outline: none; }
.submit button { justify-self: start; font-size: var(--t-body); }

/* Browsing controls belong to the case list. */
.case-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; margin: 12px 0 24px; padding: 8px 0; border-bottom: var(--rule-width) solid var(--rule); font: 15px/24px var(--sans); }
.case-controls label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); }
.case-controls select, .case-controls button { min-height: 44px; }
.case-controls [aria-expanded="true"] { color: var(--ink); text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); }
@media (max-width: 480px) {
  .case-controls { gap: 0 22px; }
  .case-controls select { max-width: 200px; }
}
/* The homepage is a compact entrance to the full collection. */
body.door { min-height: 0; }
body.door .page { min-height: calc(100svh - 32px); margin-block: 16px; grid-template-rows: auto 1fr auto; }
section.door { display: grid; place-items: center; height: 100%; padding: 40px 36px; }
.door-welcome { width: min(100%, 720px); min-width: 0; }
section.door .lede { max-width: none; margin: 0 0 20px; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.16; font-weight: 400; text-wrap: balance; }
.door-purpose { max-width: none; margin: 0; color: var(--ink-2); font-size: 18px; line-height: 28px; text-align: justify; text-align-last: left; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
.door-purpose-benefit { font-family: var(--serif); font-size: 21px; font-style: italic; }
.door-find { margin: 32px 0 0; }
.door-search-control { display: flex; align-items: stretch; border: var(--rule-width) solid var(--rule); }
.door-search-control:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.door-search-control input { min-width: 0; flex: 1; width: 100%; min-height: 52px; padding: 12px 14px; border: 0; font: 16px/26px var(--sans); }
.door-search-control input:focus { outline: none; }
.door-search-control input::placeholder { color: var(--ink-3); opacity: 1; }
.door-search-control button { min-height: 52px; padding: 12px 20px; background: var(--ink); color: var(--paper); font: 16px/26px var(--sans); }
.door-search-control button:hover { background: var(--ink-2); }
.door-search-control button:focus-visible { outline-offset: 4px; }
.door-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font: 16px/24px var(--sans); }
.door-credit { max-width: none; margin: 0 auto 0 0; font: 12px/20px var(--sans); }
body.door .footer { justify-self: stretch; }
body.door .footer-inner { padding-inline: 24px; }
.briefs .brief-opening { margin: 4px 0 0; color: var(--ink-2); font-size: var(--t-body); line-height: var(--l-body); max-width: 34rem; }
@media (max-width: 760px) {
  body.door .page { min-height: calc(100svh - 16px); margin-block: 8px; gap: 8px; }
  section.door { padding: 24px; }
  section.door .lede { margin-bottom: 18px; font-size: 32px; line-height: 38px; }
  .door-purpose { font-size: 16px; line-height: 24px; }
  .door-purpose-benefit { font-size: 19px; }
  .door-find { margin-top: 24px; }
  .door-search-control input { padding-inline: 10px; }
  .door-search-control button { padding-inline: 12px; }
  body.door .footer-inner { padding: 2px 18px 6px; justify-content: space-between; gap: 0 12px; }
  .door-credit { flex-basis: 100%; order: 1; font-size: 12px; line-height: 18px; }
}
@media (max-width: 600px) {
  body.door .masthead { --wordmark-width: min(244px, calc(100vw - 60px)); --wordmark-top: 10px; }
  body.door .mast-row { padding-block: 10px; }
}
@media (max-width: 600px) and (max-height: 680px) {
  section.door { padding: 16px 20px; }
  section.door .lede { font-size: 28px; line-height: 33px; margin-bottom: 12px; }
  .door-find { margin-top: 16px; }
}

/* Organization logos: small square marks beside names. */
.logo { --logo-height: 24px; height: var(--logo-height); width: auto; max-width: 72px; object-fit: contain; vertical-align: -7px; vertical-align: calc((1cap - var(--logo-height)) / 2); margin-right: 7px; }

/* A ditto mark when the deployer is the developer. */
.ditto { font-family: var(--serif); font-size: 1.5em; line-height: 0.6; color: var(--ink-2); display: inline-block; padding-left: 0.5em; }

/* Atlas: routes from the maker's country to the country of the case. */
.worldmap .flow { fill: none; stroke: transparent; stroke-width: 3; pointer-events: stroke; cursor: pointer; }
.worldmap .flow-vis { fill: none; stroke: #2f5876; stroke-opacity: 0.5; stroke-linecap: round; pointer-events: none; }
.worldmap .land, .worldmap .dot, .worldmap .ring, .worldmap .flow, .worldmap .flow-vis { vector-effect: non-scaling-stroke; }
.worldmap .flow:hover + .flow-vis, .worldmap .flow:focus-visible + .flow-vis { stroke: var(--ink); stroke-opacity: 1; }
.worldmap .flow:focus-visible { outline: none; }
.worldmap .arrowhead { fill: #2f5876; }
.worldmap .ring { fill: none; stroke: #2f5876; stroke-width: 0.9; stroke-opacity: 0.7; cursor: pointer; }
.worldmap .ring:hover, .worldmap .ring:focus-visible { stroke: var(--ink); outline: none; }

/* Flags beside country names, and marks in the atlas readout. */
.flag { --flag-height: 0.85em; height: var(--flag-height); width: auto; vertical-align: -0.05em; vertical-align: calc((1cap - var(--flag-height)) / 2); border: var(--rule-width) solid var(--rule); }
.ent small .flag { --flag-height: 0.95em; margin-right: 2px; }
[data-atlas-readout] .flag { --flag-height: 0.9em; margin: 0 2px; }
[data-atlas-readout] .logo { --logo-height: 1.2em; width: auto; max-width: 4.5em; margin: 0 3px 0 2px; }

/* The atlas readout keeps two lines of height so the map does not move when it fills. */
[data-atlas-readout] { display: block; min-height: calc(2 * var(--l-small)); }

/* Gazetteer rows: a jurisdiction, its parties as marks sized by their cases, its routes as flags. */
.gaz { list-style: none; margin: 18px 0 0; padding: 0; max-width: 62rem; border-top: var(--rule-width) solid var(--rule); }
.juris { border-bottom: var(--rule-width) solid var(--rule); padding: 8px 0; }
.juris-h { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: var(--t-title); line-height: var(--l-title); color: var(--ink); text-align: left; }
.juris-h .flag { height: 0.85em; align-self: center; transform: translateY(-0.12em); }
.juris-h .n { font-family: var(--mono); font-size: var(--t-cap); color: var(--ink-3); }
.juris-h .n.made::before { content: "made "; }
.juris.folded .juris-body { display: none; }
.juris-body { padding: 4px 0 2px 0; }
.parties { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 6px; max-width: none; }
.party { display: inline-flex; align-items: center; line-height: 1; color: var(--ink-2); }
.party .logo { height: var(--s); width: auto; max-width: 96px; margin: 0; display: block; }
.party .v { font-size: var(--t-small); line-height: var(--l-small); }
.party.on { outline: 1px solid var(--ink); outline-offset: 3px; }
.party.more { display: none; }
.parties.all .party.more { display: inline-flex; }
.morep { font-size: var(--t-cap); color: var(--ink-3); }
.routes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; max-width: none; }
.rl { font-family: var(--mono); font-size: var(--t-cap); color: var(--ink-3); margin-right: 2px; }
.rl:not(:first-child) { margin-left: 12px; }
.route { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: var(--t-cap); line-height: var(--l-cap); }
.route .flag { height: 1em; }
.route .n { font-family: var(--mono); color: var(--ink-3); }
.route.on { outline: 1px solid var(--ink); outline-offset: 3px; }
.layers { margin-bottom: 10px; }

/* Panel controls centered on both axes: plates, layers, readout, figure heads and keys, role buttons. */
.panel .plates { justify-content: center; align-items: center; text-align: center; margin: 0 auto 6px; }
.panel .plates .readout { margin: 0; flex-basis: 100%; text-align: center; height: calc(2 * var(--l-small)); min-height: 0; max-height: calc(2 * var(--l-small)); overflow: hidden; line-height: var(--l-small); }
.panel .layers { justify-content: center; align-items: center; text-align: center; margin: 0 auto 12px; }
.panel .figure-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 0 auto 8px; }
.panel .figure-head .key { justify-content: center; margin: 0; }
.panel .roles { justify-content: center; }
.panel .panel-h { text-align: center; }

/* Data: selection stays beside each benefit, with a visible route to comparison. */
.explorer > h1.lede { margin: 0 0 18px; }
.case-controls { column-gap: 24px; margin-bottom: 10px; }
.case-controls .compare-open { margin-left: auto; white-space: nowrap; }
.benefit-key-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; }
.benefit-info { display: inline-grid; place-items: center; width: 18px; height: 18px; border: var(--rule-width) solid var(--rule); border-radius: 50%; font: 600 13px/1 var(--serif); padding-top: 1px; }
.explorer-help { max-width: 52rem; margin: 0 0 6px; color: var(--ink-2); font: 14px/22px var(--sans); }
.explorer-help:empty { display: none; }
.find .search-help { display: none; max-width: none; margin: 8px 0 0; color: var(--ink-2); font: 14px/22px var(--sans); }
.find:focus-within .search-help { display: block; }
.results .case-result { min-width: 0; }
.results .d { flex-direction: column; align-items: flex-start; gap: 4px; }
.case-select { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); font: 14px/20px var(--sans); white-space: nowrap; }
.case-select::before { content: ""; display: inline-block; flex: none; width: 14px; height: 14px; border: var(--rule-width) solid var(--ink-3); }
.case-select[aria-pressed="true"] { color: var(--ink); }
.case-select[aria-pressed="true"]::before { content: "✓"; background: var(--ink); color: var(--paper); border-color: var(--ink); text-align: center; font: 12px/12px var(--sans); }
.search-match { max-width: 52rem; margin: 6px 0; color: var(--ink-2); font: 14px/22px var(--sans); overflow-wrap: anywhere; }
.search-match mark { color: inherit; background: var(--paper-2); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); text-underline-offset: 3px; }
.submit select { width: 100%; min-height: 44px; padding: 8px 24px 8px 10px; border: var(--rule-width) solid var(--rule); background-color: var(--paper); font: 16px/24px var(--sans); }
.submit input, .submit button { min-height: 44px; }
.submit input, .submit textarea { min-width: 0; width: 100%; }
.contribution-draft { max-width: 34rem; margin: 22px 0; padding-top: 18px; border-top: var(--rule-width) solid var(--rule); }
.contribution-draft label { display: grid; gap: 6px; color: var(--ink-2); font: 14px/22px var(--sans); }
.contribution-draft textarea { width: 100%; padding: 10px; border: var(--rule-width) solid var(--rule); border-radius: 0; color: var(--ink); background: var(--paper); font: 16px/24px var(--sans); resize: vertical; }
.contribution-draft > p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 8px 0 0; }
.contribution-draft a, .contribution-draft button { display: inline-flex; align-items: center; min-height: 44px; font: 15px/24px var(--sans); }
.contribution-draft [role="status"] { font: 14px/22px var(--sans); color: var(--ink-2); }
.explorer.tabular .search-match { grid-column: 2 / -1; }
.results .meta { row-gap: 6px; }
.more-rows, [data-clear], [data-clear-all], [data-compare-retry] { min-height: 44px; }

/* The comparison scrolls within its own region, with both dimensions labeled. */
.comparison-summary { max-width: 52rem; margin: 0 0 12px; font: 15px/24px var(--sans); color: var(--ink-2); }
.comparison-summary button { display: inline-flex; align-items: center; min-height: 44px; margin-inline: 6px; }
.comparison-scroll { --comparison-field-width: 8.5rem; --comparison-case-width: 18rem; max-width: 100%; max-height: min(72svh, 42rem); overflow: auto; overscroll-behavior: contain; scroll-padding: 8px; scrollbar-gutter: stable; }
.comparison-scroll:empty { display: none; }
.comparison-scroll table.compare { display: table; width: max-content; min-width: 100%; max-width: none; table-layout: fixed; border-collapse: separate; border-spacing: 0; overflow: visible; margin: 0; }
.comparison-scroll .compare th, .comparison-scroll .compare td { width: var(--comparison-case-width); min-width: var(--comparison-case-width); max-width: var(--comparison-case-width); padding: 10px 14px; border-bottom: var(--rule-width) solid var(--rule); background: var(--paper); color: var(--ink-2); font: 15px/23px var(--sans); overflow-wrap: anywhere; }
.comparison-scroll .compare thead th { position: sticky; top: 0; z-index: 2; color: var(--ink); font: 18px/24px var(--serif); }
.comparison-scroll .compare th.f { position: sticky; left: 0; z-index: 1; width: var(--comparison-field-width); min-width: var(--comparison-field-width); max-width: var(--comparison-field-width); padding-left: 0; border-right: var(--rule-width) solid var(--rule); color: var(--ink-2); font: 14px/22px var(--sans); }
.comparison-scroll .compare thead th.f { z-index: 3; }
.comparison-scroll .compare thead th small { margin-top: 8px; color: var(--ink-3); font: 13px/20px var(--mono); }
.comparison-scroll .compare th [data-keep] { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font: 14px/20px var(--sans); }
.comparison-scroll .compare tbody tr:last-child > * { border-bottom: 0; }
.comparison-fields-dialog.benefit-legend { width: min(28rem, calc(100vw - 24px)); }
.comparison-fields-body { padding: 12px 24px 20px; max-height: calc(100svh - 110px); overflow-y: auto; }
.comparison-fields-body fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; margin: 0; padding: 0; border: 0; }
.comparison-fields-body label { display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink-2); font: 15px/22px var(--sans); cursor: pointer; }
.comparison-fields-body input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.comparison-fields-body input:disabled { cursor: default; }
.comparison-fields-body #comparison-fields-note { margin-top: 12px; font-size: 14px; line-height: 22px; }

/* One-tap legend: the same shapes and transparent hatching as the benefits. */
.benefit-legend { width: min(48rem, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; color: var(--ink); background: var(--paper); border: var(--rule-width) solid var(--rule); overflow: hidden; }
.benefit-legend::backdrop { background: rgb(22 22 22 / 24%); }
.benefit-legend-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 24px; border-bottom: var(--rule-width) solid var(--rule); }
.benefit-legend-head h2 { font: 500 24px/32px var(--serif); }
.benefit-legend-head button { min-height: 44px; padding-inline: 6px; font: 15px/24px var(--sans); }
.benefit-legend-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 32px; max-height: calc(100svh - 108px); overflow-y: auto; padding: 24px; }
.benefit-legend h3 { margin: 0 0 8px; font: 500 19px/26px var(--serif); }
.benefit-legend p { margin: 0; font: 15px/23px var(--sans); color: var(--ink-2); }
.benefit-legend ul, .benefit-legend ol { padding: 0; margin: 12px 0 0; list-style: none; }
.benefit-legend li { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 10px; padding: 10px 0; border-bottom: var(--rule-width) solid var(--rule); font: 15px/23px var(--sans); }
.benefit-legend li:last-child { border-bottom: 0; }
.benefit-depth-mark { display: inline-flex; align-items: center; gap: 8px; min-height: 23px; font: 14px/23px var(--mono); }
.benefit-legend .mk { display: block; flex: none; margin: 0; }
.benefit-legend-details > section + section { margin-top: 24px; }
.benefit-legend-shapes li, .benefit-legend-fills li { grid-template-columns: 24px minmax(0, 1fr); }
.benefit-legend-shapes li { align-items: center; padding-block: 5px; border-bottom: 0; }
.benefit-legend-fills li > span { padding-top: 1px; }
.benefit-legend .benefit-legend-note { margin-top: 8px; font-size: 14px; line-height: 22px; }
.benefit-legend-method { grid-column: 1 / -1; }
.benefit-legend-method a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 980px) {
  .results .d { flex-direction: row; align-items: center; justify-content: space-between; }
  .explorer.tabular .results .d { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .case-controls { gap: 0 20px; }
  .case-controls .compare-open { margin-left: 0; }
  .case-controls label { min-width: 0; }
  .case-controls select { max-width: min(13rem, calc(100vw - 7rem)); font-size: 16px; }
  .comparison-scroll { --comparison-field-width: 6rem; --comparison-case-width: 13rem; max-height: 70svh; }
  .comparison-scroll .compare th, .comparison-scroll .compare td { padding: 9px 10px; }
  .comparison-scroll .compare thead th { font-size: 17px; }
  .comparison-scroll .compare th.f { padding-right: 8px; }
  .benefit-legend { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .benefit-legend-head { padding: 10px 18px; }
  .benefit-legend-body { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px; max-height: calc(100svh - 96px); }
  .benefit-legend-details { padding-top: 22px; border-top: var(--rule-width) solid var(--rule); }
  .benefit-legend-method { margin-top: -8px; }
}
@media (forced-colors: active) {
  .mk, .mobile g, .soundings .mark { --c: CanvasText; forced-color-adjust: none; }
  .mobile .num { fill: CanvasText; }
  .mk .full, .mobile .full, .soundings .mark .core .full { fill: CanvasText; stroke: CanvasText; }
  .evidence-outline { stroke: CanvasText; }
  .conf-low .full, .mk.conf-low .full, .mobile .conf-low .full, .soundings .mark.conf-low .core .full { fill: Canvas; stroke: CanvasText; }
}
@media print {
  .case-controls, .case-select, .explorer-help, .comparison-summary button, .benefit-key-open, .benefit-legend, .compare [data-keep] { display: none !important; }
  .comparison-scroll { overflow: visible; max-height: none; }
  .comparison-scroll .compare th, .comparison-scroll .compare td { position: static; }
}

/* Distinct benefits remain together beneath the shared entry. */
.case-heading { min-width: 0; }
.benefit-bundle { margin: 12px 0 8px; }
.benefit-item { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 14px; scroll-margin-top: 24px; }
.benefit-item + .benefit-item { margin-top: 12px; padding-top: 12px; border-top: var(--rule-width) solid var(--rule); }
.benefit-mark { padding-top: 2px; }
.benefit-mark .mobile { display: block; }
.benefit-text { min-width: 0; }
.benefit-bundle .benefit-title { margin: 0 0 4px; color: var(--ink); font: 500 16px/23px var(--sans); text-align: left; }
.benefit-title a { text-decoration: none; }
.benefit-title a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--rule-width); text-underline-offset: 3px; }
.benefit-bundle .benefit-statement { max-width: 52rem; margin: 0; color: var(--ink-2); font: 15px/23px var(--sans); text-align: justify; text-align-last: left; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.benefit-sources { font: 12px/1 var(--mono); white-space: normal; }
.benefit-sources a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; margin-block: -5px; vertical-align: baseline; white-space: nowrap; }
.benefit-bundle-full { margin: 0; }
.benefit-bundle-full .benefit-title { font: 500 20px/27px var(--serif); }
.record-page .record-head-bundled { padding-right: 210px; }
.explorer:has(.mobile-bundled), .results:has(.mobile-bundled) { --benefit-mark-width: 146px; }
.money-case-mark:has(.mobile-bundled) { width: 146px; }
.field-row.field-row-benefit-bundle { grid-template-columns: minmax(0, 1fr); gap: 0; }
.benefit-item:target { outline: var(--rule-width) solid var(--rule); outline-offset: 6px; }
@media (max-width: 600px) {
  .record-page .record-head-bundled { padding-right: 0; }
}
@media (max-width: 480px) {
  .benefit-item { column-gap: 12px; row-gap: 6px; }
  .benefit-text { display: contents; }
  .benefit-mark { grid-column: 1; grid-row: 1; align-self: center; padding-top: 0; }
  .benefit-bundle .benefit-title { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .benefit-bundle .benefit-statement { grid-column: 1 / -1; grid-row: 2; }
  .benefit-item + .benefit-item { margin-top: 14px; padding-top: 14px; }
}
