/* S-1 Dissector. Cool paper, navy ink, one herring-red accent (after the red legend that
   gives the preliminary prospectus its name). Schibsted Grotesk for the interface,
   Newsreader for reading. */

:root {
  color-scheme: light;
  --paper: #f5f6f8;
  --sheet: #ffffff;
  --sheet-2: #fafbfc;
  --ink: #15233f;
  --ink-2: #48546a;
  --ink-3: #737d90;
  --rule: #dde2ea;
  --rule-2: #eceff4;
  --herring: #a3161b;
  --herring-soft: #f8e7e7;
  --focus: #2a5bd7;
  --mark: rgba(255, 210, 64, 0.5);
  --neutral: #b8bcc5;
  --act-1: #1baf7a;
  --act-2: #2a78d6;
  --act-3: #e34948;
  --act-4: #6250d6;
  --act-5: #eda100;
  --act-6: #e87ba4;
  --shadow: 0 1px 2px rgba(21, 35, 63, 0.06), 0 8px 24px rgba(21, 35, 63, 0.08);
  --ui: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --read: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --bar-h: 56px;
  --outline-w: 236px;
  --raw-w: 42%;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme='light'])) {
    color-scheme: dark;
    --paper: #0f1522; --sheet: #161e2e; --sheet-2: #1a2335; --ink: #e7ebf3; --ink-2: #b0b9ca; --ink-3: #828ca0;
    --rule: #2a3550; --rule-2: #212b40; --herring: #e2545a; --herring-soft: #3a1d24; --focus: #8fb0ff; --mark: rgba(255, 210, 64, 0.32);
    --neutral: #59606f; --act-1: #199e70; --act-2: #3987e5; --act-3: #e66767; --act-4: #9085e9; --act-5: #c98500; --act-6: #d55181;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #0f1522; --sheet: #161e2e; --sheet-2: #1a2335; --ink: #e7ebf3; --ink-2: #b0b9ca; --ink-3: #828ca0;
  --rule: #2a3550; --rule-2: #212b40; --herring: #e2545a; --herring-soft: #3a1d24; --focus: #8fb0ff; --mark: rgba(255, 210, 64, 0.32);
  --neutral: #59606f; --act-1: #199e70; --act-2: #3987e5; --act-3: #e66767; --act-4: #9085e9; --act-5: #c98500; --act-6: #d55181;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 0;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 6px 10px; z-index: 50; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ header */
.bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h);
  display: grid; grid-template-columns: auto minmax(0, 560px) 1fr; align-items: center; gap: 20px;
  padding: 0 16px 0 18px; background: var(--sheet); border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 600 17px/1 var(--read); letter-spacing: 0.005em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; fill: var(--herring); }
.brand-mark circle { fill: var(--sheet); }
.search { position: relative; }
.search input {
  width: 100%; height: 38px; padding: 0 40px 0 38px; border-radius: 8px;
  border: 1px solid var(--rule); background: var(--sheet-2); outline: none;
}
.search input:focus { border-color: var(--ink-3); background: var(--sheet); box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 18%, transparent); }
.search-icon { position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.search-key { position: absolute; right: 10px; top: 9px; font: 500 12px/18px var(--ui); color: var(--ink-3); border: 1px solid var(--rule); border-radius: 4px; padding: 0 6px; }
.search input:focus ~ .search-key { display: none; }
.suggest {
  position: absolute; top: 44px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; z-index: 40;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto;
}
.suggest li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.suggest li[aria-selected='true'], .suggest li:hover { background: var(--rule-2); }
.suggest .s-name { font-weight: 500; }
.suggest .s-meta { grid-column: 1; font-size: 12.5px; color: var(--ink-3); }
.suggest .s-tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 12px; color: var(--ink-2); }
.suggest .s-note { padding: 10px; color: var(--ink-3); font-size: 13.5px; cursor: default; display: block; }
.bar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn, .text-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.icon-btn { padding: 0; }
.icon-btn:hover, .text-btn:hover { background: var(--rule-2); color: var(--ink); }
.icon-btn svg, .text-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }
.text-btn[aria-pressed='true'] { background: var(--ink); color: var(--sheet); }
.icon-btn.small, .text-btn.small { height: 28px; min-width: 28px; font-size: 13px; }
.text-btn.small svg { width: 11px; height: 11px; }
.text-btn.toggle[aria-pressed='true'] { background: var(--rule-2); color: var(--ink); border-color: var(--rule); }
.button {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--sheet); font-weight: 600; text-decoration: none;
}
.button.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button:hover { filter: brightness(1.08); }

/* ------------------------------------------------------------------ views */
.view { min-height: calc(100vh - var(--bar-h)); }

/* Landing */
.landing { position: relative; max-width: 1080px; margin: 0 auto; padding: 72px 32px 80px 120px; }
.herring {
  position: absolute; left: 40px; top: 64px; bottom: 64px; writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 12.5px/1.3 var(--read); color: var(--herring); letter-spacing: 0.02em; max-height: 560px;
}
.landing h1 { font: 500 clamp(40px, 6vw, 68px)/1.02 var(--read); letter-spacing: -0.015em; margin: 0 0 22px; max-width: 13ch; }
.landing .lead { font: 400 19px/1.55 var(--read); color: var(--ink-2); max-width: 60ch; margin: 0 0 32px; }
.landing .big-search { position: relative; max-width: 620px; }
.landing .big-search input { height: 54px; font-size: 18px; padding-left: 46px; border-radius: 10px; }
.landing .big-search .search-icon { left: 15px; top: 17px; width: 20px; height: 20px; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); font-size: 13.5px; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-3); }
.chip .sw { width: 8px; height: 8px; border-radius: 2px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--rule); }
.how h2 { font: 600 15px/1.3 var(--ui); margin: 0 0 6px; }
.how p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.setup { margin-top: 36px; max-width: 620px; padding: 18px 20px; border: 1px solid var(--rule); border-left: 3px solid var(--herring); border-radius: 8px; background: var(--sheet); }
.setup h2 { font: 600 16px/1.3 var(--ui); margin: 0 0 6px; }
.setup p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.setup form { display: flex; gap: 8px; }
.setup input { flex: 1; height: 36px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet-2); }

/* Company */
.company { max-width: 980px; margin: 0 auto; padding: 44px 32px 80px; }
.company h1 { font: 500 44px/1.08 var(--read); margin: 0 0 10px; letter-spacing: -0.01em; }
.facts-row { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-2); font-size: 14px; margin: 0 0 28px; }
.facts-row b { color: var(--ink); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13.5px; color: var(--ink-3); }
.filters label { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); color: var(--ink); cursor: pointer; }
.filters input { accent-color: var(--ink); margin: 0; }
.reg { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; margin: 0 0 16px; overflow: hidden; }
.reg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid var(--rule-2); }
.reg-head h2 { font: 600 15px/1.3 var(--ui); margin: 0; }
.reg-head span { color: var(--ink-3); font-size: 13px; }
.reg ol { list-style: none; margin: 0; padding: 0; }
.reg li { display: grid; grid-template-columns: 76px 112px 1fr auto auto; align-items: center; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--rule-2); }
.reg li:first-child { border-top: 0; }
.reg li:hover { background: var(--sheet-2); }
.form-tag { font-weight: 600; font-size: 13.5px; }
.form-tag.a { color: var(--ink-2); }
.reg .when { color: var(--ink-2); font-size: 14px; }
.reg .what { color: var(--ink-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg .size { color: var(--ink-3); font-size: 13px; }
.empty { padding: 28px; border: 1px dashed var(--rule); border-radius: 10px; color: var(--ink-2); background: var(--sheet); }
.empty h2 { font: 600 16px/1.3 var(--ui); margin: 0 0 6px; color: var(--ink); }
.empty p { margin: 0; }
.error { border-left: 3px solid var(--herring); border-style: solid; border-width: 1px 1px 1px 3px; border-color: var(--rule) var(--rule) var(--rule) var(--herring); }

/* ------------------------------------------------------------------ workspace */
.workspace { display: grid; grid-template-columns: var(--outline-w) minmax(0, 1fr) 8px var(--raw-w); height: calc(100vh - var(--bar-h)); min-height: 0; }
.workspace.no-raw { grid-template-columns: var(--outline-w) minmax(0, 1fr) 0 0; }
.workspace.no-raw .raw, .workspace.no-raw .gutter { display: none; }
.workspace > .outline { grid-column: 1; grid-row: 1; }
.workspace > .analysis { grid-column: 2; grid-row: 1; }
.workspace > .gutter { grid-column: 3; grid-row: 1; }
.workspace > .raw { grid-column: 4; grid-row: 1; }
.outline { overflow: auto; border-right: 1px solid var(--rule); background: var(--sheet); padding: 14px 8px 40px; font-size: 13.5px; }
.outline h2 { font: 600 12.5px/1.3 var(--ui); color: var(--ink-3); margin: 4px 10px 10px; }
.outline ol { list-style: none; margin: 0; padding: 0; }
.outline .o-item { position: relative; display: grid; grid-template-columns: 8px 1fr; gap: 9px; width: 100%; text-align: left; padding: 6px 10px 7px 10px; border: 0; background: none; border-radius: 6px; color: var(--ink-2); line-height: 1.3; }
.outline .o-item:hover { background: var(--rule-2); color: var(--ink); }
.outline .o-item[aria-current='true'] { color: var(--ink); background: var(--rule-2); font-weight: 500; }
.outline .o-item[aria-current='true']::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--herring); }
.outline .o-sw { width: 8px; height: 8px; border-radius: 2px; margin-top: 4px; }
.outline .o-len { grid-column: 2; height: 3px; margin-top: 5px; border-radius: 2px; overflow: hidden; }
.outline .o-len i { display: block; height: 100%; border-radius: 2px; opacity: 0.45; }
.outline .o-subs { margin: 2px 0 6px 27px; border-left: 1px solid var(--rule); }
.outline .o-sub { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 4px 8px; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; border-radius: 4px; }
.outline .o-sub:hover { color: var(--ink); background: var(--rule-2); }

.analysis { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.analysis-head { padding: 14px 28px 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.filing-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.filing-id a { color: var(--ink-2); text-decoration: none; }
.filing-id a:hover { text-decoration: underline; }
.filing-id .co { font: 600 15px/1.3 var(--ui); color: var(--ink); }
.filing-id .export { margin-left: auto; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; border: 0; background: none; padding: 9px 12px 11px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected='true'] { color: var(--ink); }
.tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.panel { flex: 1; overflow: auto; min-height: 0; outline: none; }

.gutter { cursor: col-resize; background: var(--paper); border-left: 1px solid var(--rule); position: relative; }
.gutter::after { content: ''; position: absolute; left: 2px; top: 50%; width: 2px; height: 36px; margin-top: -18px; border-radius: 2px; background: var(--rule); }
.gutter:hover::after, .gutter.drag::after { background: var(--ink-3); }
.raw { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #e9ebef; }
:root[data-theme='dark'] .raw { background: #0b101a; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme='light'])) .raw { background: #0b101a; } }
.raw-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 42px; padding: 0 8px 0 14px; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.raw-where { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.raw-where .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raw-where .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--neutral); flex: none; }
.raw-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.raw-body { position: relative; flex: 1; min-height: 0; }
.raw iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #e9ebef; }
.raw-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; padding: 24px; text-align: center; }

/* Loading */
.loading { max-width: 560px; margin: 12vh auto 0; padding: 0 28px; }
.loading h2 { font: 500 26px/1.2 var(--read); margin: 0 0 8px; }
.loading p { color: var(--ink-2); margin: 0 0 18px; }
.progress { height: 3px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--herring); transition: width 0.25s ease; }
.loading .step { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ story */
.story { max-width: 920px; margin: 0 auto; padding: 36px 32px 96px; }
.hero { margin-bottom: 40px; }
.hero .kicker { font-size: 13.5px; color: var(--ink-3); margin: 0 0 10px; }
.hero h1 { font: 500 clamp(34px, 4.6vw, 52px)/1.04 var(--read); letter-spacing: -0.015em; margin: 0 0 16px; }
.hero .lede { font: 400 21px/1.5 var(--read); color: var(--ink); max-width: 62ch; margin: 0; }
.src { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.src:hover { text-decoration-color: var(--herring); }
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.terms > div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.terms dt { font-size: 12.5px; color: var(--ink-3); margin: 0 0 3px; }
.terms dd { margin: 0; font-weight: 500; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.terms dd .missing { color: var(--ink-3); font-weight: 400; }

.anatomy { margin: 0 0 56px; }
.anatomy-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.anatomy h2, .act h2, .section-head h2, .block-title { font: 500 26px/1.2 var(--read); margin: 0; letter-spacing: -0.005em; }
.anatomy .note { color: var(--ink-2); font-size: 14px; max-width: 64ch; margin: 6px 0 0; }
.anatomy svg { width: 100%; height: auto; overflow: visible; }
.anatomy .band-label { font: 500 12px var(--ui); fill: var(--ink-3); }
.anatomy .act-label { font: 600 13px var(--ui); fill: var(--ink); }
.anatomy .act-sub { font: 400 12px var(--ui); fill: var(--ink-3); }
.anatomy .seg { cursor: pointer; }
.anatomy .ribbon { opacity: 0.26; transition: opacity 0.15s ease; cursor: pointer; }
.anatomy .arc { fill: none; stroke: var(--ink-3); opacity: 0.32; transition: opacity 0.15s ease; }
.anatomy.focus .ribbon { opacity: 0.08; }
.anatomy.focus .arc { opacity: 0.06; }
.anatomy.focus .ribbon.on { opacity: 0.75; }
.anatomy.focus .arc.on { opacity: 0.9; stroke: var(--ink); }
.anatomy.focus .seg:not(.on) { opacity: 0.45; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend .arc-key { width: 18px; height: 8px; border: 1.5px solid var(--ink-3); border-bottom: 0; border-radius: 10px 10px 0 0; }

.acts { list-style: none; margin: 0; padding: 0; position: relative; }
.act { position: relative; padding: 0 0 8px 64px; }
.act::before { content: ''; position: absolute; left: 19px; top: 44px; bottom: -8px; width: 2px; background: linear-gradient(var(--act), var(--next, var(--act))); opacity: 0.55; }
.act:last-child::before { display: none; }
.act-node {
  position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px/1 var(--read); color: var(--ink); background: var(--sheet); border: 2px solid var(--act);
}
.act-meta { color: var(--ink-3); font-size: 13.5px; margin: 6px 0 16px; }
.act-intro { font: 400 17.5px/1.6 var(--read); color: var(--ink); max-width: 66ch; margin: 0 0 16px; }
.quotes { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.quotes li { position: relative; padding-left: 16px; max-width: 70ch; min-width: 0; }
.quotes li::before { content: ''; position: absolute; left: 0; top: 0.35em; bottom: 0.35em; width: 2px; background: var(--act); border-radius: 2px; opacity: 0.8; }
.quotes .q { font: 400 16.5px/1.55 var(--read); color: var(--ink); }
.quotes .where { display: block; margin-top: 3px; font: 400 12.5px var(--ui); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-figure { margin: 6px 0 18px; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; }
.act-figure h3 { font: 600 13.5px/1.3 var(--ui); margin: 0 0 2px; }
.act-figure .sub { font-size: 12.5px; color: var(--ink-3); margin: 0 0 10px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis { stroke: var(--rule); }
.chart text { font: 400 11.5px var(--ui); fill: var(--ink-3); }
.chart .val { fill: var(--ink-2); font-weight: 500; }
.chart .bar { fill: var(--act); }
.chart .bar.neg { fill: var(--act); opacity: 0.55; }
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 140px 34px; gap: 10px; align-items: center; font-size: 13.5px; border: 0; background: none; padding: 2px 0; text-align: left; color: var(--ink); }
.hbar .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 8px; background: var(--rule-2); border-radius: 4px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--act); border-radius: 0 4px 4px 0; }
.hbar .n { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hbar:hover .t { text-decoration: underline; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.firms { display: flex; flex-wrap: wrap; gap: 6px; }
.firms .chip { height: 26px; font-size: 12.5px; }
.firms .chip.lead { border-color: var(--act); }
.themes-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.themes-line .chip { height: 26px; font-size: 12.5px; }
.bridge { margin: 18px 0 30px; padding: 2px 0 2px 16px; font: italic 400 15.5px/1.5 var(--read); color: var(--ink-2); max-width: 64ch; }
.act-sections { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }

/* ------------------------------------------------------------------ reader */
.reader { max-width: 780px; margin: 0 auto; padding: 30px 32px 120px; }
.section-head { margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.section-head .act-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.section-head .act-pill i { width: 9px; height: 9px; border-radius: 2px; }
.section-head h2 { font-size: 32px; line-height: 1.12; }
.section-head .meta { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; }
.section-nav { display: flex; justify-content: space-between; gap: 12px; margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.prose p, .prose li { font: 400 17px/1.62 var(--read); margin: 0 0 0.85em; color: var(--ink); max-width: 68ch; cursor: pointer; border-radius: 3px; }
.prose p:hover { background: color-mix(in oklab, var(--mark) 35%, transparent); }
.prose p.here { background: color-mix(in oklab, var(--mark) 55%, transparent); }
.prose h3 { font: 600 18px/1.35 var(--ui); margin: 1.6em 0 0.6em; max-width: 60ch; }
.prose h4 { font: italic 600 17px/1.45 var(--read); margin: 1.3em 0 0.5em; max-width: 66ch; }
.prose ul { padding-left: 1.2em; margin: 0 0 0.85em; }
.prose .note { font-size: 14.5px; color: var(--ink-2); }
.prose .tbl-wrap { margin: 1em 0 1.4em; }
.content-auto > * { content-visibility: auto; contain-intrinsic-size: auto 60px; }

/* Data tables */
.dtable { width: 100%; overflow: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); }
.dtable table { border-collapse: collapse; width: 100%; font: 400 13px/1.35 var(--ui); font-variant-numeric: tabular-nums; }
.dtable td, .dtable th { padding: 6px 10px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.dtable th { font-weight: 600; text-align: right; color: var(--ink-2); background: var(--sheet-2); position: sticky; top: 0; }
.dtable th:first-child, .dtable td:first-child { text-align: left; min-width: 180px; max-width: 420px; }
.dtable th.span { text-align: center; border-bottom: 1px solid var(--rule); }
.dtable td { text-align: right; white-space: nowrap; }
.dtable td:first-child { white-space: normal; }
.dtable tr.sub td:first-child { font-weight: 600; }
.dtable tr:hover td { background: var(--sheet-2); }

/* Risks */
.risks { max-width: 880px; margin: 0 auto; padding: 30px 32px 120px; --act: var(--act-3); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 22px; }
.toolbar input[type='search'] { flex: 1; min-width: 200px; height: 36px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); }
.toolbar select { height: 36px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); max-width: 260px; min-width: 0; }
.toolbar label { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.rgroup { margin: 0 0 30px; }
.rgroup h3 { font: 600 16px/1.35 var(--ui); margin: 0 0 4px; }
.rgroup .meta { color: var(--ink-3); font-size: 13px; margin: 0 0 10px; }
.ritem { border-top: 1px solid var(--rule); }
.ritem summary { list-style: none; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 11px 0; cursor: pointer; }
.ritem summary::-webkit-details-marker { display: none; }
.ritem .no { color: var(--ink-3); font-size: 13px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.ritem .rt { font: 500 16px/1.45 var(--read); }
.ritem .rw { color: var(--ink-3); font-size: 12.5px; padding-top: 3px; white-space: nowrap; }
.ritem .rbody { padding: 0 0 14px 44px; }
.ritem .rbody p { font: 400 15.5px/1.6 var(--read); color: var(--ink-2); margin: 0 0 10px; max-width: 68ch; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }

/* Tables tab */
.tables-wrap { container-type: inline-size; height: 100%; }
.tables-view { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 0; height: 100%; }
@container (max-width: 780px) {
  .tables-view { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
  .tlist { border-right: 0; border-bottom: 1px solid var(--rule); max-height: 280px; }
  .tview { padding: 20px 20px 80px; }
}
.tlist { border-right: 1px solid var(--rule); overflow: auto; padding: 16px 12px 40px; background: var(--sheet); }
.tlist .toolbar { margin: 0 0 12px; }
.tlist button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 6px; }
.tlist button:hover { background: var(--rule-2); }
.tlist button[aria-current='true'] { background: var(--rule-2); box-shadow: inset 2px 0 0 var(--herring); }
.tlist .tc { font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tlist .tm { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tview { overflow: auto; padding: 26px 28px 80px; min-width: 0; }
.tview h2 { font: 500 24px/1.2 var(--read); margin: 0 0 6px; }
.tview .meta { color: var(--ink-3); font-size: 13.5px; margin: 0 0 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

/* Find */
.find { max-width: 880px; margin: 0 auto; padding: 30px 32px 120px; }
.strip { margin: 6px 0 22px; }
.strip svg { width: 100%; height: auto; }
.strip .lbl { font: 400 11.5px var(--ui); fill: var(--ink-3); }
.hits { list-style: none; margin: 0; padding: 0; }
.hits h3 { font: 600 14px/1.3 var(--ui); margin: 22px 0 6px; display: flex; align-items: center; gap: 8px; }
.hits h3 i { width: 9px; height: 9px; border-radius: 2px; }
.hit { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 6px; font: 400 15.5px/1.55 var(--read); color: var(--ink-2); }
.hit:hover { background: var(--sheet); }
.hit b { color: var(--ink); font-weight: 600; background: var(--mark); border-radius: 2px; padding: 0 1px; }
.count-line { color: var(--ink-2); font-size: 14px; margin: 0 0 6px; }

/* Tooltip & toast */
.tip { position: fixed; z-index: 60; max-width: 300px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: var(--sheet); font-size: 12.5px; line-height: 1.4; pointer-events: none; box-shadow: var(--shadow); }
.tip b { font-weight: 600; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--sheet); font-size: 13.5px; box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  :root { --outline-w: 0px; }
  .outline { position: fixed; left: 0; top: var(--bar-h); bottom: 0; width: 280px; z-index: 25; transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: var(--shadow); }
  .outline.open { transform: none; }
  .workspace { grid-template-columns: 0 minmax(0, 1fr) 8px var(--raw-w); }
  .workspace.no-raw { grid-template-columns: 0 minmax(0, 1fr) 0 0; }
  #contentsBtn { display: inline-flex; }
}
@media (max-width: 860px) {
  .bar { grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 10px; }
  .brand span { display: none; }
  .search-key { display: none; }
  .workspace, .workspace.no-raw { grid-template-columns: 0 minmax(0, 1fr) 0 0; }
  .gutter { display: none; }
  .raw { position: fixed; inset: var(--bar-h) 0 0 0; z-index: 26; }
  .workspace.no-raw .raw { display: none; }
  .landing { padding: 40px 20px 60px; }
  .herring { position: static; writing-mode: horizontal-tb; transform: none; margin-bottom: 18px; max-width: 46ch; }
  .how { grid-template-columns: 1fr; gap: 18px; margin-top: 48px; }
  .company, .story, .reader, .risks, .find { padding-left: 18px; padding-right: 18px; }
  .analysis-head { padding: 10px 14px 0; }
  .filing-id .wide { display: none; }
  .filing-id { margin-bottom: 4px; }
  .reg li { grid-template-columns: 64px 1fr auto; }
  .reg .what, .reg .size { display: none; }
  .act { padding-left: 52px; }
  .act-node { width: 34px; height: 34px; font-size: 13px; }
  .act::before { left: 16px; top: 38px; }
  .tables-view { grid-template-columns: 1fr; height: auto; }
  .tlist { border-right: 0; border-bottom: 1px solid var(--rule); max-height: 40vh; }
  .hbar { grid-template-columns: minmax(0, 1fr) 80px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .bar, .outline, .raw, .gutter, .tabs { display: none !important; }
  .workspace { display: block; height: auto; }
  .panel { overflow: visible; }
}
