/* Norvian Review. A publication, not a dashboard: covers made from the data, a cool paper, Caslon for headlines. */
:root {
  --paper: #ECEFEC;
  --card: #F6F7F4;
  --ink: #0F171B;
  --ink-2: #2B3539;
  --muted: #5A676B;
  --rule: #C9D0CE;
  --signal: #C94E1D;
  --teal: #1D5664;
  --grid: #D7DDDB;
  --night: #0D1D23;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 680px;
  --wide: 1200px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0B1114; --card: #121A1E; --ink: #E4E9E8; --ink-2: #C3CBCC; --muted: #8E9B9F; --rule: #253039;
  --signal: #F07040; --teal: #6FB2BE; --grid: #1E2930; --night: #071114; color-scheme: dark } }
:root[data-theme="dark"] { --paper: #0B1114; --card: #121A1E; --ink: #E4E9E8; --ink-2: #C3CBCC; --muted: #8E9B9F; --rule: #253039;
  --signal: #F07040; --teal: #6FB2BE; --grid: #1E2930; --night: #071114; color-scheme: dark }

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 0 }
img { max-width: 100%; height: auto }
a { color: inherit }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px }
.wrap { max-width: var(--wide); margin: 0 auto }
.skip { position: absolute; left: -9999px } .skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 20 }

/* ---------- masthead ---------- */
.mast { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--rule) }
.brand { text-decoration: none; display: grid; line-height: 1 }
.brand b { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -.01em; white-space: nowrap }
.brand b i { font-style: normal; color: var(--signal) }
.brand small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 500 }
.nav { display: flex; gap: 22px; justify-content: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; min-width: 0; overflow-x: auto; scrollbar-width: none }
.nav::-webkit-scrollbar { display: none }
.nav a { text-decoration: none; color: var(--muted); white-space: nowrap; padding-block: 6px; border-bottom: 1px solid transparent }
.nav a:hover { color: var(--ink) }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--signal) }
.parent { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; text-decoration: none; color: var(--muted); white-space: nowrap; padding-block: 6px; border-bottom: 1px solid var(--rule) }
.parent span { color: var(--ink) }
.parent:hover { color: var(--ink); border-bottom-color: var(--signal) }

/* ---------- covers ---------- */
.cover { position: relative; border-radius: 26px; overflow: hidden; background: linear-gradient(120deg, #0B1D23, #173F4A 60%, #2A2420); isolation: isolate; color: #F4F1EA; display: block }
.cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block }
.cover .over { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; text-align: center; padding: 28px; text-shadow: 0 1px 24px rgba(4, 10, 13, .55) }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase }
.cover .kicker { opacity: .85 }
.tab { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--paper); color: var(--ink); z-index: 2; text-decoration: none;
  border-radius: 22px 22px 0 0; padding: 13px 28px 11px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; white-space: nowrap }
.tab::before, .tab::after { content: ""; position: absolute; bottom: 0; width: 22px; height: 22px; background: transparent }
.tab::before { left: -22px; border-bottom-right-radius: 22px; box-shadow: 8px 8px 0 8px var(--paper) }
.tab::after { right: -22px; border-bottom-left-radius: 22px; box-shadow: -8px 8px 0 8px var(--paper) }

/* ---------- home ---------- */
.hero { margin-top: 26px; aspect-ratio: 16 / 7.4; min-height: 380px }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.6vw, 92px); line-height: 1.0; margin: 14px 0 0; letter-spacing: -.015em; text-wrap: balance }
.hero .stand { max-width: 36em; font-size: clamp(15px, 1.6vw, 19px); margin: 18px auto 0; opacity: .93; text-wrap: balance }
.band { margin-top: 72px }
.bh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 26px; flex-wrap: wrap }
.bh h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; letter-spacing: -.01em }
.bh a { font-size: 13px; color: var(--muted); text-decoration: none } .bh a:hover { color: var(--ink) }
.bh p { margin: 0; color: var(--muted); font-size: 14px; max-width: 46em }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.card { display: grid; gap: 12px; text-decoration: none; min-width: 0; align-content: start }
.card .cover { aspect-ratio: 4 / 3; border-radius: 20px; transition: transform .35s ease }
.card:hover .cover { transform: scale(.985) }
.card .cover .over h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 29px); line-height: 1.08; margin: 0; text-wrap: balance; max-width: 13em }
.meta-line { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--muted); flex-wrap: wrap }
.fmt { font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); font-size: 11px }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2) }
.card.wide { grid-column: span 2 }
.card.wide .cover { aspect-ratio: 16 / 7.6 }
.card.wide .cover .over h3 { font-size: clamp(28px, 3.2vw, 44px); max-width: 16em }

/* the ledger */
.ledger { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink) }
.led { padding: 18px 16px 8px 0; border-right: 1px solid var(--rule); min-width: 0; text-decoration: none; display: block }
.led:last-child { border-right: 0 }
.led + .led { padding-left: 16px }
.led .k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500 }
.led .v { font-family: var(--display); font-size: 44px; line-height: 1.1; margin-top: 6px; font-variant-numeric: lining-nums tabular-nums }
.led .d { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 6px }
.led svg { display: block; width: 100%; height: 34px; margin-top: 10px }

/* ---------- section pages ---------- */
.sect-head { padding-block: 56px 34px; border-bottom: 1px solid var(--rule); margin-bottom: 34px; display: grid; gap: 14px }
.sect-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 88px); line-height: 1; margin: 0; letter-spacing: -.02em }
.sect-head p { margin: 0; max-width: 40em; font-size: 19px; color: var(--ink-2) }

/* ---------- piece ---------- */
.piece-cover { margin-top: 26px; aspect-ratio: 16 / 6.6; min-height: 340px }
.piece-cover h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.4vw, 74px); line-height: 1.02; margin: 14px auto 0; letter-spacing: -.015em; text-wrap: balance; max-width: 15em }
.piece-head { max-width: var(--measure); margin: 42px auto 0 }
.standfirst { font-family: var(--serif); font-size: 22px; line-height: 1.45; margin: 0 0 22px; color: var(--ink) }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 12px }
.byline b { color: var(--ink); font-weight: 600 }
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); column-gap: 40px; margin-top: 34px }
.body-grid > * { grid-column: 2 }
.toc { grid-column: 1; grid-row: 1 / span 400; align-self: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); font-size: 13px; max-width: 230px; justify-self: end; margin-top: 6px }
.toc b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 500 }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: none }
.toc a { text-decoration: none; color: var(--muted); line-height: 1.35; display: block }
.toc a:hover, .toc a.on { color: var(--ink) }
.prose { font-size: 18px; line-height: 1.7; min-width: 0 }
.prose > * { margin: 0 0 20px }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.12; margin: 54px 0 18px; letter-spacing: -.01em; text-wrap: balance; scroll-margin-top: 24px }
.prose h3 { font-size: 19px; font-weight: 600; margin: 34px 0 12px }
.prose blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--rule); font-family: var(--serif); font-size: 19px; color: var(--ink-2) }
.prose ul, .prose ol { padding-left: 1.25em }
.prose li { margin-bottom: 8px }
.prose a { text-decoration-color: var(--signal); text-underline-offset: 3px }
.prose strong { font-weight: 600 }
.prose sup a { text-decoration: none; color: var(--signal); font-size: 12px; font-family: var(--mono) }
.prose hr { border: 0; text-align: center; margin: 46px 0 }
.prose hr::after { content: "\2022  \2022  \2022"; color: var(--muted); letter-spacing: .4em }
.drop::first-letter { font-family: var(--display); float: left; font-size: 74px; line-height: .86; padding: 6px 10px 0 0; color: var(--ink) }
.pull { font-family: var(--display); font-size: 28px; line-height: 1.25; border-left: 2px solid var(--signal); padding-left: 20px; margin: 34px 0 !important }
.aside { font-size: 14px; line-height: 1.55; color: var(--ink-2); background: var(--card); border-radius: 14px; padding: 16px 18px }
.aside b:first-child { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 500 }
.findings { background: var(--card); border-radius: 18px; padding: 22px 24px 8px; border-top: 3px solid var(--signal) }
.findings > b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px }
.findings ul { margin: 0; padding-left: 1.1em } .findings li { margin-bottom: 10px; font-size: 16px }
.method { font-size: 14px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 34px !important }
.method b:first-child { color: var(--ink); font-weight: 600 }

/* figures and charts */
.fig { margin: 34px 0 !important; padding: 22px 22px 16px; background: var(--card); border-radius: 18px }
.fig.bleed { margin-inline: -60px !important }
.fig .ft { font-weight: 600; font-size: 15px; line-height: 1.35 }
.fig .fs { font-size: 13px; color: var(--muted); margin: 2px 0 14px }
.fig svg { display: block; width: 100%; height: auto; overflow: visible }
.fig .src { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline }
.fig .src b { font-family: var(--display); font-weight: 400; font-size: 14px; color: var(--ink) }
.fig.img { padding: 0; background: none }
.fig.img img { border-radius: 14px; display: block; width: auto; max-width: 100%; max-height: 640px; margin: 0 auto }
.fig.img figcaption { font-size: 13px; color: var(--muted); margin-top: 10px }
svg .ax { stroke: var(--grid); stroke-width: 1 }
svg .base { stroke: var(--muted); stroke-width: 1 }
svg .tl { fill: var(--muted); font-family: var(--mono); font-size: 11px }
svg .lab { fill: var(--ink); font-family: var(--text); font-size: 13px; font-weight: 600 }
svg .labm { fill: var(--muted); font-family: var(--text); font-size: 13px }
svg .ann { fill: var(--ink); font-family: var(--display); font-style: italic; font-size: 15px }
svg .s-ink { stroke: var(--ink) } svg .f-ink { fill: var(--ink) }
svg .s-signal { stroke: var(--signal) } svg .f-signal { fill: var(--signal) }
svg .s-teal { stroke: var(--teal) } svg .f-teal { fill: var(--teal) }
svg .s-muted { stroke: var(--muted) } svg .f-muted { fill: var(--muted) }
svg .f-quiet { fill: var(--rule) }
.tbl { overflow-x: auto } .tbl table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--ink) }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--rule) } .tbl td.n { text-align: right }

/* capital stack and timeline */
.stack { display: grid; gap: 4px }
.stack .tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border-radius: 10px; color: #F4F1EA; min-height: 54px }
.stack .tier b { font-weight: 600; font-size: 15px } .stack .tier .amt { font-family: var(--display); font-size: 22px; text-align: right }
.stack .tier .who { grid-column: 1 / -1; font-size: 13px; opacity: .85 }
.stack-note { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px }
.tline { list-style: none; margin: 0; padding: 0; position: relative }
.tline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 1px; background: var(--rule) }
.tline li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 25px; position: relative; padding-bottom: 14px; font-size: 15px }
.tline li::before { content: ""; position: absolute; left: 88px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted) }
.tline li.key::before { background: var(--signal); border-color: var(--signal) }
.tline .d { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; text-align: right }

/* sources, related */
.sources { margin-top: 46px !important; font-size: 14px; color: var(--ink-2) }
.sources h2 { font-family: var(--text); font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 12px !important }
.sources ol { padding-left: 1.4em; margin: 0 } .sources li { margin-bottom: 8px; word-break: break-word }
.sources a { color: var(--ink-2) }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted) }
.share button { font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; cursor: pointer }
.share button:hover { border-color: var(--ink) }
.quote-line { font-family: var(--display); font-size: 24px; line-height: 1.3; margin: 0 0 10px !important }
.related { margin-top: 80px }

/* ledger page */
.ind { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; padding-block: 34px; border-bottom: 1px solid var(--rule) }
.ind .v { font-family: var(--display); font-size: 64px; line-height: 1 }
.ind h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0 0 10px }
.ind p { margin: 0 0 10px; color: var(--ink-2) }
.ind .fig { margin: 0 !important }

/* about */
.about { max-width: var(--measure); margin: 0 auto }
.about h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 42px 0 12px }

/* footer */
.foot { margin-top: 110px; border-top: 1px solid var(--ink); padding-block: 34px 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 34px; font-size: 14px; color: var(--ink-2) }
.foot .brand b { font-size: 26px }
.foot h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 12px }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px } .foot a { text-decoration: none } .foot a:hover { text-decoration: underline }
.foot .legal { grid-column: 1 / -1; font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 18px; line-height: 1.6 }

@media (max-width: 1100px) {
  .body-grid { grid-template-columns: minmax(0, 1fr) } .toc { display: none } .fig.bleed { margin-inline: 0 !important }
}
@media (max-width: 980px) {
  .mast { grid-template-columns: 1fr auto } .nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start }
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .led:nth-child(3) { border-right: 0 } .led:nth-child(4) { padding-left: 0 } .led:nth-child(n+4) { border-top: 1px solid var(--rule) }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .ind { grid-template-columns: minmax(0, 1fr); gap: 16px }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } .foot > div:first-child { grid-column: 1 / -1 }
}
@media (max-width: 640px) {
  body { font-size: 16px }
  .hero, .piece-cover { aspect-ratio: 4 / 5; min-height: 0 }
  .grid, .grid.two { grid-template-columns: minmax(0, 1fr) } .card.wide { grid-column: auto } .card.wide .cover { aspect-ratio: 4 / 3 }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .led, .led + .led { padding: 16px 12px 8px 0 } .led:nth-child(even) { padding-left: 12px; border-right: 0 } .led:nth-child(3) { border-right: 1px solid var(--rule) }
  .led:nth-child(n+3) { border-top: 1px solid var(--rule) } .led .v { font-size: 36px }
  .prose { font-size: 17px } .standfirst { font-size: 19px } .prose h2 { font-size: 28px }
  .fig { padding: 16px 12px 12px } .pull { font-size: 23px }
  .tline::before { left: 70px } .tline li { grid-template-columns: 58px minmax(0, 1fr); gap: 24px } .tline li::before { left: 66px }
  .parent { display: none }
}
@media (prefers-reduced-motion: reduce) { .card .cover { transition: none } }

/* ---------- the essay: a title page, parts in Roman numerals, notes beside the text ---------- */
.cover.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02) }
.cover.pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,14,18,.18), rgba(6,14,18,.62)); z-index: 0 }
.essay { --col: 640px }
.title-page { max-width: 760px; margin: 64px auto 0; text-align: center }
.title-page .kicker { color: var(--signal) }
.title-page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -.015em; margin: 18px 0 0; text-wrap: balance }
.title-page .subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--ink-2); margin: 24px auto 0; max-width: 34em; text-wrap: pretty }
.title-page .by { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 26px 0 0 }
.title-page .by span + span::before { content: "·"; margin: 0 12px; color: var(--rule) }
.title-page .by span:first-child { color: var(--ink); font-weight: 500 }
.contents { margin: 40px auto 0; max-width: 420px; text-align: left; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0 }
.contents ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px }
.contents a { text-decoration: none; display: grid; grid-template-columns: 52px minmax(0, 1fr); font-family: var(--serif); font-size: 16px; color: var(--ink-2) }
.contents a:hover { color: var(--ink) }
.contents .rn { font-family: var(--display); color: var(--muted); letter-spacing: .06em }
.epis { margin: 44px auto 0; max-width: 520px; display: grid; gap: 26px }
.epi { margin: 0; text-align: right; font-family: var(--serif) }
.epi p { margin: 0; font-style: italic; font-size: 17px; line-height: 1.6; color: var(--ink-2) }
.epi footer { margin-top: 8px; font-size: 14px; color: var(--muted) }
.epi footer::before { content: "\2014\2002" }
.epi cite { font-style: italic }
.plate { max-width: 980px; margin: 56px auto 0 }
.plate img { display: block; width: 100%; max-height: 720px; object-fit: contain; background: var(--card) }
.plate figcaption, .essay .fig.img figcaption { font-family: var(--serif); font-style: italic; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; text-align: left }
.credit { display: block; font-family: var(--text); font-style: normal; font-size: 12px; color: var(--muted); margin-top: 4px }
.essay-col { max-width: var(--col); margin: 56px auto 0; font-family: var(--serif); font-size: 19.5px; line-height: 1.74; color: var(--ink); hyphens: auto; -webkit-hyphens: auto; hanging-punctuation: first }
.essay-col > *, .essay-col .para > * { margin: 0 }
.essay-col p { text-indent: 1.6em; text-wrap: pretty }
.essay-col h2.part + p, .essay-col h2.part + .para > p, .essay-col :is(.blk, blockquote, figure, h3, hr) + p, .essay-col :is(.blk, blockquote, figure, h3, hr) + .para > p { text-indent: 0 }
.essay-col h2.part { display: grid; justify-items: center; gap: 8px; text-align: center; margin: 76px 0 34px; scroll-margin-top: 24px }
.essay-col h2.part:first-child { margin-top: 0 }
.essay-col h2.part .rn { font-family: var(--display); font-size: 17px; letter-spacing: .3em; color: var(--signal); padding-left: .3em }
.essay-col h2.part .pt { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -.005em; text-wrap: balance }
.essay-col h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; margin: 40px 0 10px }
.essay-col > h2.part:first-child + p::first-letter, .essay-col > h2.part:first-child + .para > p::first-letter { font-family: var(--display); float: left; font-size: 84px; line-height: .8; padding: 8px 10px 0 0; color: var(--ink) }
.essay-col > h2.part:first-child + p::first-line, .essay-col > h2.part:first-child + .para > p::first-line { font-variant: small-caps; letter-spacing: .03em }
.essay-col blockquote { margin: 22px 1.8em !important; padding: 0; border: 0; font-size: 17px; line-height: 1.62; color: var(--ink-2) }
.essay-col blockquote p { text-indent: 0 !important; margin: 0 0 10px }
.essay-col blockquote p:last-child { margin-bottom: 0 }
.essay-col .blk, .essay-col figure { margin: 34px 0 !important }
.essay-col .fig.img img { border-radius: 2px; max-height: 760px }
.essay-col .pull { font-family: var(--display); font-style: italic; text-align: center; border: 0; padding: 0 6%; font-size: 27px }
.essay-col sup.nref { line-height: 0 }
.essay-col sup.nref a { font-family: var(--text); font-size: 11.5px; font-weight: 600; color: var(--signal); text-decoration: none; padding: 0 1px }
.para { position: relative }
.sns { display: grid; gap: 8px; margin: 10px 0 16px !important; padding-left: 14px; border-left: 1px solid var(--rule) }
.sn { font-family: var(--text); font-size: 13.5px; line-height: 1.52; color: var(--ink-2); hyphens: manual; text-indent: 0 }
.sn p { display: inline; text-indent: 0 }
.sn .sn-n { font-weight: 600; color: var(--signal); text-decoration: none; margin-right: 3px }
.sn a { color: var(--ink-2); text-decoration-color: var(--rule); text-underline-offset: 2px; word-break: break-word }
.sn em, .sn i { font-family: var(--serif) }
.sn.hi { color: var(--ink) }
.fin { text-align: center; color: var(--signal); font-size: 22px; margin: 48px 0 0 !important; text-indent: 0 !important }
.works { margin-top: 54px !important; border-top: 1px solid var(--rule); padding-top: 22px }
.works h2 { font-family: var(--text); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 14px }
.works ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2) }
.works li { padding-left: 2em; text-indent: -2em; margin-bottom: 8px; word-break: break-word }
.works a { color: var(--ink-2) }
.essay-col .share, .essay-col .method { font-family: var(--text) }
@media (min-width: 1180px) {
  .essay-col { margin-left: max(0px, calc((100% - var(--col)) / 2 - 150px)) }
  .essay-col .fig.img.wide { margin-inline: -60px -330px !important }
  .sns { position: absolute; left: calc(100% + 46px); top: 4px; width: 250px; margin: 0 !important; padding: 0; border: 0 }
}
@media (max-width: 640px) {
  .title-page { margin-top: 36px } .essay-col { font-size: 18px; line-height: 1.68; margin-top: 36px; hyphens: auto }
  .essay-col h2.part .pt { font-size: 26px } .essay-col blockquote { margin: 18px .6em !important }
  .essay-col > h2.part:first-child + p::first-letter, .essay-col > h2.part:first-child + .para > p::first-letter { font-size: 66px }
}

/* ---------- the Ledger's tables: dense, sortable, crude on purpose ---------- */
.lt-nav { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: -10px 0 28px; font-size: 12.5px }
.lt-nav a { text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; color: var(--ink-2); background: var(--card) }
.lt-nav a:hover { border-color: var(--ink); color: var(--ink) }
.lt-sec { margin-top: 56px; border-top: 2px solid var(--ink); padding-top: 18px; scroll-margin-top: 12px }
.lt-sec > h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.01em }
.lt-intro { max-width: 62em; color: var(--ink-2); font-size: 15.5px; margin: 0 0 6px }
.lt-src { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 0 0 18px }
.lt-wrap { margin: 30px 0 0; scroll-margin-top: 12px }
.lt-h h3 { font-size: 16px; font-weight: 600; margin: 0 }
.lt-h p { font-size: 13.5px; color: var(--muted); margin: 3px 0 0; max-width: 70em }
.lt-tools { display: flex; gap: 8px; align-items: center; margin: 10px 0 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted) }
.lt-tools input { font: inherit; font-size: 13px; padding: 5px 9px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); width: 200px; max-width: 100% }
.lt-tools button { font: inherit; font-size: 12px; padding: 5px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); cursor: pointer }
.lt-tools button:hover { border-color: var(--ink) }
.lt-wait { font-family: var(--mono); font-size: 12.5px; color: var(--muted); border: 1px dashed var(--rule); border-radius: 8px; padding: 14px 16px; margin-top: 10px }
.tbl.lt { max-height: 560px; overflow: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--card) }
.tbl.lt table { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 100% }
.tbl.lt th { position: sticky; top: 0; z-index: 1; background: var(--card); font-family: var(--text); font-size: 10.5px; letter-spacing: .06em; padding: 7px 8px; border-bottom: 1px solid var(--ink); cursor: pointer; user-select: none; white-space: nowrap; text-align: left }
.tbl.lt th.n { text-align: right }
.tbl.lt th:hover { color: var(--ink) }
.tbl.lt th[aria-sort="ascending"]::after { content: " ↑"; color: var(--signal) }
.tbl.lt th[aria-sort="descending"]::after { content: " ↓"; color: var(--signal) }
.tbl.lt td { padding: 5px 8px; border-bottom: 1px solid var(--grid); white-space: nowrap; background: color-mix(in srgb, var(--signal) calc(var(--h, 0) * 30%), transparent) }
.tbl.lt td:first-child { position: sticky; left: 0; background: var(--card); font-family: var(--text); font-size: 12.5px; color: var(--ink); max-width: 320px; overflow: hidden; text-overflow: ellipsis; z-index: 0 }
.tbl.lt tr:hover td { box-shadow: inset 0 0 0 999px rgba(127,127,127,.06) }
.tbl.lt.pivot td.n { text-align: center; min-width: 46px }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; margin: 12px 0 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule) }
.facts > div { padding: 10px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule) }
.facts dt { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted) }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 26px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums }
@media (max-width: 640px) { .tbl.lt { max-height: 480px } .tbl.lt td:first-child { max-width: 160px } .facts dd { font-size: 22px } }

.qa h2 { font-size: 26px !important; margin-top: 46px !important; scroll-margin-top: 12px }
.qa ul { padding-left: 1.1em } .qa li { margin-bottom: 6px }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; counter-reset: q; border-top: 1px solid var(--rule) }
.qlist li { counter-increment: q; border-bottom: 1px solid var(--rule) }
.qlist a { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 14px 0; text-decoration: none; font-family: var(--serif); font-size: 19px; line-height: 1.35 }
.qlist a::before { content: counter(q, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--signal); padding-top: 5px }
.qlist a:hover { color: var(--signal) }
@media (max-width: 640px) { .qlist { grid-template-columns: minmax(0, 1fr) } .qlist a { font-size: 17px } }
.who { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 860px; margin: 64px auto 0 }
.who-photo { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; background: var(--night); display: grid; place-items: center; color: #F4F1EA; font-family: var(--display); font-size: 64px }
.who-photo img { width: 100%; height: 100%; object-fit: cover }
.who h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1; margin: 10px 0 0 }
.who-role { font-size: 15px; color: var(--muted); margin: 10px 0 0 }
.who-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; font-size: 13px }
.who-links a { text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 13px; background: var(--card) }
.who-links a:hover { border-color: var(--ink) }
.who .about { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.6 }
.who .about p.small { font-family: var(--text); font-size: 13px; color: var(--muted); margin-top: 26px }
@media (max-width: 640px) { .who { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 36px } .who-photo { width: 120px; height: 120px; font-size: 40px } }

/* article header: label and title on the page, like the section pages; the cover follows as a band */
.piece-top { padding-block: 56px 0; max-width: 920px; display: grid; gap: 14px }
.piece-top h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; margin: 0; letter-spacing: -.015em; text-wrap: balance }
.piece-top .standfirst { margin: 8px 0 0; max-width: 40em; font-size: 21px; color: var(--ink-2) }
.piece-top .byline { margin-top: 10px }
.piece-cover { margin-top: 34px; aspect-ratio: 16 / 4.2; min-height: 180px }
@media (max-width: 640px) { .piece-top { padding-top: 36px } .piece-top .standfirst { font-size: 18px } .piece-cover { aspect-ratio: 16 / 7; min-height: 0 } }

/* essays: upright type; italics only where a book would use them (titles of works) */
.title-page .subtitle { font-style: normal; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 32em }
.epi p { font-style: normal; font-size: 16px; line-height: 1.62; color: var(--ink-2) }
.epi footer { font-size: 13px; letter-spacing: .02em }
.epi footer::before { content: "" }
.epis { gap: 22px; border-left: 1px solid var(--rule); padding-left: 22px; max-width: 470px }
.epi { text-align: left }
.essay-col h2.part .pt { font-style: normal; font-size: 30px }
.plate figcaption, .essay .fig.img figcaption { font-style: normal }
.essay-col h3 { font-style: normal; font-weight: 600; font-family: var(--text); font-size: 18px }
.essay-col .pull { font-style: normal }

/* the Ledger as cards; each dataset on its own page */
.dsets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px }
.dset { display: grid; gap: 10px; align-content: start; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: 4px; padding: 20px 20px 16px; transition: border-color .2s }
.dset:hover { border-color: var(--ink); border-top-color: var(--signal) }
.dset.wait { opacity: .7 }
.dset h3 { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.1; margin: 0 }
.dset p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2) }
.dset dl { display: flex; gap: 22px; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--rule) }
.dset dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.dset dd { margin: 2px 0 0; font-family: var(--mono); font-size: 14px }
.dset .src { font-family: var(--mono); font-size: 11px; color: var(--muted) }
.crumbs { font-size: 12px; color: var(--muted); margin: 26px 0 -30px; letter-spacing: .04em }
.crumbs a { color: var(--muted) }
.dset-pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px }
.dset-pn a { text-decoration: none; color: var(--ink-2) } .dset-pn a:hover { color: var(--signal) }

/* outside links carry a small drawn arrow */
svg.ext { width: .72em; height: .72em; margin-left: .32em; vertical-align: .02em; display: inline-block; transition: transform .2s }
a:hover svg.ext { transform: translate(1px, -1px) }
.parent svg.ext { width: 9px; height: 9px; margin-left: 7px; color: var(--signal) }

/* tighter leading: more text in the same space */
body { line-height: 1.5 }
.prose { line-height: 1.56 }
.prose > * { margin-bottom: 16px }
.standfirst { line-height: 1.38 }
.card p { line-height: 1.42 }
.essay-col { line-height: 1.6 }
.who .about { line-height: 1.5 }
.sn { line-height: 1.45 }
.lt-intro { line-height: 1.5 }

/* maps */
.fig.map { padding-bottom: 14px }
.mp-ctrl { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 10px }
.mp-m { display: flex; flex-wrap: wrap; gap: 6px }
.mp-m button { font: inherit; font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink-2); cursor: pointer }
.mp-m button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink) }
.mp-y { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted) }
.mp-y input { accent-color: var(--signal); width: 180px }
.mp-y output { font-family: var(--mono); color: var(--ink); min-width: 3em }
.mp-body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; align-items: start }
.mp-svg { width: 100%; height: auto; display: block }
.mp-st path { stroke: none; transition: fill .25s }
.mp-st path:hover { opacity: .85; cursor: pointer }
.mp-b { fill: none; stroke: var(--paper); stroke-width: .9; stroke-linejoin: round; pointer-events: none }
.mp-st .b-1 { fill: var(--grid) }
.scheme-signal .b0 { fill: color-mix(in srgb, var(--signal) 10%, var(--card)) }
.scheme-signal .b1 { fill: color-mix(in srgb, var(--signal) 28%, var(--card)) }
.scheme-signal .b2 { fill: color-mix(in srgb, var(--signal) 48%, var(--card)) }
.scheme-signal .b3 { fill: color-mix(in srgb, var(--signal) 70%, var(--card)) }
.scheme-signal .b4 { fill: var(--signal) }
.scheme-teal .b0 { fill: color-mix(in srgb, var(--teal) 10%, var(--card)) }
.scheme-teal .b1 { fill: color-mix(in srgb, var(--teal) 28%, var(--card)) }
.scheme-teal .b2 { fill: color-mix(in srgb, var(--teal) 48%, var(--card)) }
.scheme-teal .b3 { fill: color-mix(in srgb, var(--teal) 72%, var(--card)) }
.scheme-teal .b4 { fill: var(--teal) }
.mp-lg { display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); font-family: var(--mono) }
.mp-lg div { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: center }
.mp-lg i { width: 14px; height: 10px; display: block; border-radius: 2px }
.mp-rank { list-style: none; margin: 14px 0 0; padding: 0; font-size: 12.5px; display: grid; gap: 3px; counter-reset: r }
.mp-rank li { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; counter-increment: r; border-bottom: 1px solid var(--grid); padding-bottom: 3px }
.mp-rank li::before { content: counter(r); color: var(--muted); font-family: var(--mono); font-size: 11px }
.mp-rank b { font-family: var(--mono); font-weight: 500 }
.mp-tip { position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12.5px; padding: 7px 10px; border-radius: 6px; line-height: 1.35; max-width: 220px }
@media (max-width: 760px) { .mp-body { grid-template-columns: minmax(0, 1fr) } .mp-rank { grid-template-columns: 1fr 1fr; column-gap: 14px } }

/* maps: full width, legend and top ten beneath */
.mp-body { grid-template-columns: minmax(0, 1fr) !important; gap: 8px }
.mp-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; border-top: 1px solid var(--rule); padding-top: 12px }
.mp-lg div:first-child { font-family: var(--text); font-size: 12.5px; margin-bottom: 4px }
.mp-rank { margin: 0 !important; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 0 !important }
.mp-rank li { margin: 0 !important; padding: 3px 0 !important; line-height: 1.3 }
.prose .fig.map { margin-inline: -70px !important }
@media (max-width: 1100px) { .prose .fig.map { margin-inline: 0 !important } }
@media (max-width: 640px) { .mp-side { grid-template-columns: minmax(0, 1fr) } .mp-y input { width: 130px } }

/* ---------- case study graphics (lib/gfx.mjs) ---------- */
:root { --k-equity: #C94E1D; --k-debt: #1D5664; --k-hybrid: #A0662E; --k-public: #557538; --k-deal: #33444A; --k-exit: #6A4C93; --k-other: #7D898C; --k-use: #8A969A; --band: #E2E7E4; --band-2: #D9E0DD }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k-equity: #F07040; --k-debt: #6FB2BE; --k-hybrid: #D49A62; --k-public: #9DBB7A; --k-deal: #C3CBCC; --k-exit: #B49BD8; --k-other: #8E9B9F; --k-use: #6E7C80; --band: #17242A; --band-2: #1C2B32 } }
:root[data-theme="dark"] { --k-equity: #F07040; --k-debt: #6FB2BE; --k-hybrid: #D49A62; --k-public: #9DBB7A; --k-deal: #C3CBCC; --k-exit: #B49BD8; --k-other: #8E9B9F; --k-use: #6E7C80; --band: #17242A; --band-2: #1C2B32 }
.k-equity { --k: var(--k-equity) } .k-debt { --k: var(--k-debt) } .k-hybrid { --k: var(--k-hybrid) } .k-public { --k: var(--k-public) }
.k-deal { --k: var(--k-deal) } .k-exit { --k: var(--k-exit) } .k-other { --k: var(--k-other) } .k-use { --k: var(--k-use) }
svg [class*="k-"] { fill: var(--k) } svg .stem { stroke: var(--k); stroke-width: 1.4; stroke-dasharray: 2 3; fill: none }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; background: var(--k, var(--muted)) }
.sw.ln { height: 3px; border-radius: 2px; vertical-align: 3px; width: 16px }
.sw.f-signal { background: var(--signal) } .sw.f-teal { background: var(--teal) } .sw.f-ink { background: var(--ink) } .sw.f-quiet { background: var(--rule) } .sw.f-muted { background: var(--muted) }
.gleg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); margin-top: 12px }
.fig.gfx svg text { font-family: var(--text) }
.fig.gfx.wide { margin-right: -180px !important }
@media (max-width: 1280px) { .fig.gfx.wide { margin-right: -90px !important } }
@media (max-width: 1100px) { .fig.gfx.wide { margin-right: 0 !important } }
.gscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin }
@media (max-width: 720px) { .gscroll svg { min-width: 680px } }
svg .tl.t2 { fill: var(--signal) }
svg .pv { fill: var(--ink-2); font-family: var(--mono) !important; font-size: 11.5px }
svg .ann2 { fill: var(--ink); font-size: 12.5px; font-weight: 600 }
svg rect.est { opacity: .55 }
/* journey */
svg .stg { fill: var(--band) } svg .stg.alt { fill: var(--band-2) }
svg .stn { fill: var(--ink); font-size: 12.5px; font-weight: 600 } svg .stnote { fill: var(--muted); font-size: 11px }
svg .jarea { fill: var(--teal); opacity: .09 }
svg .axb { stroke: var(--muted); stroke-width: 1 } svg .brk { stroke: var(--muted); stroke-width: 1.4; fill: none }
svg .evd { fill: var(--muted); font-family: var(--mono) !important; font-size: 11px } svg .evd .eva { fill: var(--k); font-weight: 500 }
svg .evl { fill: var(--ink); font-size: 12px; font-weight: 500 }
/* flow */
svg .rib { fill: var(--k); opacity: .22 } svg .rib:hover { opacity: .4 }
svg .fl { fill: var(--ink); font-size: 12.5px; font-weight: 600 } svg .fl .fv { fill: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 11px }
svg .fhd { fill: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600 }
/* ladder */
svg .resid { fill: none; stroke: var(--muted); stroke-dasharray: 4 4 } svg .kline { fill: none !important; stroke: var(--k); stroke-width: 1.5 }
svg .mk { fill: var(--card); stroke: var(--ink); stroke-width: 1.2 } svg .mkt { fill: var(--ink); font-size: 11px; font-weight: 600 }
svg .lin { fill: #F4F1EA; font-size: 12.5px; font-weight: 600 }
svg .wavgb { fill: var(--card); opacity: .92 } svg .wavg { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 6 4 } svg .wavgt { fill: var(--ink); font-size: 12px; font-weight: 600 }
svg [class*="hbg-"] { fill: var(--card) } svg .hbg-equity, svg .hbg-debt, svg .hbg-hybrid, svg .hbg-public, svg .hbg-deal, svg .hbg-exit, svg .hbg-other { fill: var(--card) }
svg .hl-equity { stroke: var(--k-equity) } svg .hl-debt { stroke: var(--k-debt) } svg .hl-hybrid { stroke: var(--k-hybrid) } svg .hl-public { stroke: var(--k-public) } svg .hl-deal { stroke: var(--k-deal) } svg .hl-exit { stroke: var(--k-exit) } svg .hl-other { stroke: var(--k-other) }
.gtab { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 14px }
.gtab th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--rule) }
.gtab td { padding: 9px 8px; border-bottom: 1px solid var(--grid); vertical-align: top }
.gtab .n { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap }
.gtab td b { font-weight: 600 } .gtab .tnote { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; padding-left: 17px }
.mkn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.2px solid var(--ink); font-size: 11px; font-weight: 600 }
@media (max-width: 640px) { .gtab { font-size: 12.5px } .gtab th:nth-child(6), .gtab td:nth-child(6) { display: none } }
/* structure */
svg .nd { fill: var(--paper); stroke: var(--rule); stroke-width: 1.2 } svg .nd.focus { stroke: var(--ink); stroke-width: 2 }
svg .nd[class*="nk-"]:not(.nk-node) { stroke-width: 2 }
svg .nk-equity { stroke: var(--k-equity) } svg .nk-debt { stroke: var(--k-debt) } svg .nk-hybrid { stroke: var(--k-hybrid) } svg .nk-public { stroke: var(--k-public) } svg .nk-deal { stroke: var(--k-deal) } svg .nk-exit { stroke: var(--k-exit) }
svg .ndt { fill: var(--ink); font-size: 13px; font-weight: 600 } svg .nds { fill: var(--muted); font-size: 11px; font-weight: 400 }
svg .edge { fill: none; stroke: var(--muted); stroke-width: 1.4 } svg .edge.dash { stroke-dasharray: 5 4 }
svg .ek-equity { stroke: var(--k-equity) } svg .ek-debt { stroke: var(--k-debt) } svg .ek-hybrid { stroke: var(--k-hybrid) } svg .ek-public { stroke: var(--k-public) } svg .ek-deal { stroke: var(--k-deal) } svg .ek-exit { stroke: var(--k-exit) }
svg .am { fill: var(--muted) } svg .ak-equity { fill: var(--k-equity) } svg .ak-debt { fill: var(--k-debt) } svg .ak-hybrid { fill: var(--k-hybrid) } svg .ak-public { fill: var(--k-public) } svg .ak-deal { fill: var(--k-deal) } svg .ak-exit { fill: var(--k-exit) }
svg .elb { fill: var(--card) } svg .elt { fill: var(--ink-2); font-size: 11px }
svg .ekt-equity { fill: var(--k-equity) } svg .ekt-debt { fill: var(--k-debt) } svg .ekt-hybrid { fill: var(--k-hybrid) } svg .ekt-public { fill: var(--k-public) }
/* term sheet */
.tsheet { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px }
.tsheet th, .tsheet td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--grid); vertical-align: top }
.tsheet thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--rule) }
.tsheet tbody th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted); width: 28%; padding-top: 11px; text-transform: uppercase; letter-spacing: .04em }
.tsheet.two tbody th { width: 22% }
.tsheet tr.chg td.new { background: color-mix(in srgb, var(--signal) 10%, transparent); box-shadow: inset 3px 0 0 var(--signal) }
.tskey { font-size: 12px; color: var(--muted); margin-top: 10px } .tskey i { display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: -1px; background: color-mix(in srgb, var(--signal) 18%, transparent); box-shadow: inset 3px 0 0 var(--signal) }
@media (max-width: 640px) { .tsheet { font-size: 13px } .tsheet tbody th { width: auto } }
/* moves */
.moves { margin: 34px 0 } .moves > .ft { font-weight: 600; font-size: 15px; margin-bottom: 12px }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px }
.mv { background: var(--card); border-radius: 14px; padding: 16px 16px 14px; border-top: 3px solid var(--mvc, var(--muted)) }
.mv-smart { --mvc: var(--k-public) } .mv-misstep { --mvc: var(--signal) } .mv-lesson { --mvc: var(--teal) } .mv-watch { --mvc: var(--k-hybrid) } .mv-luck { --mvc: var(--k-exit) }
.mv-k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--mvc); display: flex; gap: 7px; align-items: center }
.mv-k span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--mvc); color: var(--card); font-size: 11px; letter-spacing: 0 }
.mv b { display: block; font-family: var(--serif); font-weight: 700; font-size: 16.5px; line-height: 1.3; margin: 9px 0 6px }
.mv p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2) }
/* radar */
svg .rg { fill: none; stroke: var(--grid) } svg .rax { fill: var(--ink-2); font-size: 12.5px; font-weight: 600 }
svg .s-quiet { stroke: var(--muted) } svg .rpoly.s-quiet { stroke-dasharray: 4 3; fill: var(--muted) } svg circle.f-quiet { fill: var(--muted) }
svg .rpoly { fill-opacity: .16; stroke-width: 2; stroke-linejoin: round }
.rnotes { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; margin: 14px 0 0 } .rnotes dt { font-weight: 600 } .rnotes dd { margin: 0; color: var(--ink-2) }
@media (max-width: 640px) { .rnotes { grid-template-columns: 1fr } .rnotes dd { margin-bottom: 6px } }
/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 30px 0 } .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.stats .st { background: var(--card); border-radius: 14px; padding: 16px 16px 14px; display: grid; gap: 6px; align-content: start }
.stats .st b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1; letter-spacing: -.01em }
.stats .st span { font-size: 13.5px; line-height: 1.4; color: var(--ink-2) }
@media (max-width: 640px) { .stats, .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
/* stack, as one bar */
.stk .sbar { display: flex; height: 54px; border-radius: 10px; overflow: hidden; gap: 2px }
.stk .sbar span { display: flex; align-items: flex-end; padding: 8px 10px; min-width: 4px; color: #F4F1EA }
.stk .sbar em { font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.stk .sax { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 7px }
/* photo covers with a short name, like a film title */
.card.named .cover .over h3.lbl { font-size: clamp(30px, 3.4vw, 44px); max-width: 11em }
.card.wide.named .cover .over h3.lbl { font-size: clamp(38px, 4.6vw, 62px) }
.card .ct { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.22; margin: 0; text-wrap: balance; color: var(--ink) }
.card.named p { margin-top: -2px }
.card.named .cover.pic img, .piece-cover.pic img { filter: none }
.card.named .cover.pic::after { background: radial-gradient(ellipse at center, rgba(6,14,18,.34), rgba(6,14,18,.1) 72%) }
.piece-cover.pic::after { background: linear-gradient(180deg, rgba(6,14,18,0) 55%, rgba(6,14,18,.4)) }
.pcred { position: absolute; right: 14px; bottom: 10px; z-index: 2; font-size: 11px; color: rgba(244,241,234,.78) } .pcred a { color: inherit }
.fig.gfx { overflow-x: auto; overflow-y: hidden }
@media (max-width: 640px) { .gtab .n { white-space: normal } .gtab th, .gtab td { padding: 8px 5px } .gtab th:first-child, .gtab td:first-child { padding-left: 0 } .tsheet th, .tsheet td { padding: 8px 6px } }
.gtab th.n { font-family: var(--text); font-size: 11px }
@media (max-width: 720px) {
  .gscroll::before { content: "Swipe sideways to see the whole chart \2192"; display: block; font-size: 11.5px; color: var(--muted); margin: -4px 0 8px; position: sticky; left: 0 }
  .gtab .tnote { padding-left: 0; font-size: 12px }
  .gtab .n { font-size: 12px }
}

/* labels sit on a halo of the card colour, so stems and lines pass behind them */
svg .evd, svg .evl, svg .pv { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round }
