/* Northline chart styles. Every colour is a theme token, so a theme switch repaints charts in place. */

/* ---------- the field ---------- */
svg.field { width: 100%; height: auto; overflow: visible; margin: 0 auto; }
.fld-band { pointer-events: none; fill-opacity: .07; }
:root[data-theme="dark"] .fld-band { fill-opacity: .1; }
.fld-div { stroke: var(--card); stroke-width: 2; pointer-events: none; }
.fld-hit { fill: transparent; cursor: pointer; }
.fld-hit:hover { fill: var(--ink); fill-opacity: .04; }
.fld-sel { fill: var(--red); fill-opacity: .06; stroke: var(--red); stroke-width: 1.5; pointer-events: none; }
.fld-brush { fill: var(--focus); fill-opacity: .08; stroke: var(--focus); stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; }
.fld-sel--pulse { animation: fade 400ms var(--ease) both; }
.fld-dot { fill-opacity: .38; cursor: pointer; transition: fill-opacity 180ms var(--ease), opacity 180ms var(--ease); }
:root[data-theme="dark"] .fld-dot { fill-opacity: .42; }
.fld-dot.is-active { fill-opacity: 1; }
.fld-dot.is-off { opacity: .13; }
.fld-dot:hover { stroke: var(--ink); stroke-width: 1.2; }
.is-entering .fld-dot { animation: travel 380ms var(--ease) both; }
@keyframes travel { from { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.is-entering .fld-band { animation: fade 300ms var(--ease) both; }
.fld-core { fill: var(--card); stroke: var(--line-2); stroke-width: 1; }
.fld-n { font: 600 24px var(--display); fill: var(--ink); letter-spacing: -.02em; }
.field--md .fld-n { font-size: 19px; }
.field--sm .fld-n { font-size: 17px; }
.fld-nl { font: 500 12px var(--sans); fill: var(--ink-3); }
.fld-rl, .fld-wl { cursor: pointer; outline: none; }
.fld-rl text { font-family: var(--sans); font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 3.5px; stroke-linejoin: round; }
.fld-rl__hit { fill: transparent; }
.fld-rl:hover .fld-rl__hit, .fld-rl:focus-visible .fld-rl__hit { fill: var(--sunk); }
.fld-rl.is-sel text { fill: var(--red-ink); font-weight: 600; }
.fld-wl text { font-family: var(--sans); font-weight: 400; fill: var(--ink-2); }
.fld-wl__n { font-family: var(--mono); font-weight: 500; fill: var(--ink); }
.fld-wl:hover text, .fld-wl:focus-visible text { fill: var(--ink); text-decoration: underline; }
.fld-wl.is-sel text { fill: var(--red-ink); font-weight: 600; }
.is-brushable { cursor: crosshair; touch-action: pan-y; }

.fleg { display: grid; gap: 10px; }
.fleg__key { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.fleg__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); display: inline-block; }
.fleg__dot--pale { background: var(--ink-2); opacity: .38; }
.fleg__k { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fleg__rings { display: flex; flex-wrap: wrap; gap: 6px; }
.fleg__ring { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 500; color: var(--ink); }
.fleg__ring i { width: 8px; height: 8px; border-radius: 50%; }
.fleg__ring b { font-family: var(--mono); font-weight: 400; color: var(--ink-2); font-size: 12.5px; }
.fleg__ring:hover { border-color: var(--ink-3); }
.fleg__ring[aria-pressed="true"] { border-color: var(--red); background: var(--sel); }

/* ---------- heatmap: one sequential ramp, figures in cells ---------- */
.heat { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.heat__t { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 13px; min-width: 600px; }
.heat__t th { font-weight: 500; color: var(--ink-2); text-align: center; padding: 2px 2px 6px; white-space: nowrap; font-size: 12.5px; }
.heat__t thead a, .heat__t tbody th a { text-decoration: none; color: inherit; }
.heat__t thead a:hover, .heat__t tbody th a:hover { color: var(--ink); text-decoration: underline; }
.heat__t tbody th, .heat__t tfoot th { text-align: left; padding: 0 10px 0 0; font-weight: 400; color: var(--ink); font-size: 13px; }
.heat__corner { text-align: left !important; color: var(--ink-3) !important; }
.heat__t td { padding: 0; }
.heat__c { display: grid; place-items: center; height: 32px; border-radius: 4px; text-decoration: none; font: 500 13px var(--mono); transition: box-shadow 140ms var(--ease); animation: fade 240ms var(--ease) both; animation-delay: calc(var(--i, 0) * 12ms); }
.heat__c:hover { box-shadow: 0 0 0 1.5px var(--ink); position: relative; z-index: 1; }
.heat__tot { text-align: center; color: var(--ink-3); font: 400 12.5px var(--mono); }
.heat__t tfoot td, .heat__t tfoot th { padding-top: 4px; }
.heat__key { display: flex; align-items: center; gap: 3px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.heat__key i { width: 22px; height: 10px; border-radius: 2px; display: inline-block; }
.heat__key span:first-child { margin-right: 6px; }
.heat__key span:last-child { margin-left: 6px; }

/* ---------- horizontal bars ---------- */
.hb { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hb__r { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr 48px; align-items: center; gap: 12px; min-height: 34px; padding: 3px 8px; margin: 0 -8px; border-radius: 6px; text-decoration: none; color: var(--ink); }
a.hb__r:hover { background: var(--hover); }
a.hb__r:hover .hb__lt { text-decoration: underline; }
.hb__l { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13.5px; }
.hb__lt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb__l small { color: var(--ink-3); font-size: 12px; margin-left: auto; white-space: nowrap; }
.hb__track { height: 8px; background: var(--track); border-radius: 2px; overflow: hidden; }
.hb__bar { display: block; height: 100%; background: var(--bar); border-radius: 2px; }
.hb__v { text-align: right; font: 400 13px var(--mono); color: var(--ink); }
.hb--teal .hb__bar { background: var(--bar-2); }
.hb--stack .hb__r { grid-template-columns: 1fr 48px; grid-template-areas: 'l v' 't t'; row-gap: 5px; padding: 6px 8px; }
.hb--stack .hb__l { grid-area: l; } .hb--stack .hb__v { grid-area: v; } .hb--stack .hb__track { grid-area: t; }

/* ---------- vertical bars ---------- */
.vb { width: 100%; height: auto; overflow: visible; }
.vb__bar { fill: var(--bar); }
.vb__a:hover .vb__bar { fill: var(--ink-2); }
.vb__a:hover .vb__l { fill: var(--ink); text-decoration: underline; }
.vb__v { font: 500 13px var(--mono); fill: var(--ink); }
.vb__l { font: 400 12.5px var(--sans); fill: var(--ink-2); }
.vb__base { stroke: var(--line-2); stroke-width: 1; }

/* ---------- daily ---------- */
.dl, .db { width: 100%; height: auto; overflow: visible; }
.dl__grid { stroke: var(--line); stroke-width: 1; }
.dl__ax { font: 400 12.5px var(--mono); fill: var(--ink-3); }
.dl__area { fill: var(--bar); fill-opacity: .08; animation: fade 400ms var(--ease) both; }
.dl__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 560ms var(--ease) both; }
.dl__line--v { stroke: var(--bar); }
.dl__line--u { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: none; animation: fade 560ms var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.dl__lab { font: 500 12.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.dl__lab--u { fill: var(--ink-2); }
.dl__cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.dl__pt { fill: var(--bar); stroke: var(--card); stroke-width: 2; }
.dl__pt--u { fill: var(--ink-2); }
.dl__hit { fill: transparent; }
.db__bar { fill: var(--bar); fill-opacity: .8; }

/* ---------- deal timeline ---------- */
.tl { width: 100%; height: auto; overflow: visible; }
.tl__base { stroke: var(--line-2); stroke-width: 1; }
.tl__tick { stroke: var(--line-2); }
.tl__ax { font: 400 12.5px var(--mono); fill: var(--ink-3); }
.tl__d circle { fill: var(--bar); stroke: var(--card); stroke-width: 2; }
.tl__stem { stroke: var(--line-2); stroke-width: 1; }
.tl__lab { font: 500 12.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }

/* ---------- match orbit ---------- */
.om { width: 100%; height: auto; overflow: visible; }
.om-band--strong { stroke: var(--t-strong-tint); }
.om-band--good { stroke: var(--t-good-tint); }
.om-band--possible { stroke: var(--t-poss-tint); }
.om-ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.om-wild { fill: var(--card); stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.om-div { stroke: var(--card); stroke-width: 2; }
.om-tl rect { fill: var(--card); stroke: var(--line); }
.om-tl text { font-family: var(--sans); font-weight: 500; fill: var(--ink-2); }
.om-tl__n { font-family: var(--mono); font-weight: 500; fill: var(--ink); }
.om-gl { font-family: var(--sans); font-weight: 400; fill: var(--ink-2); }
.om-gl--w { fill: var(--ink); font-weight: 500; }
.om-m { cursor: pointer; outline: none; }
.om-in { transition: opacity 160ms var(--ease); }
.is-entering .om-in { animation: travel 320ms var(--ease) both; }
.om-halo { fill: transparent; stroke: transparent; stroke-width: 2; transition: stroke 140ms var(--ease), fill 140ms var(--ease); }
.om-shape { stroke: var(--card); stroke-width: 1.5; }
.om-m--strong .om-sh { fill: var(--t-strong); }
.om-m--good .om-sh { fill: var(--t-good); }
.om-m--possible .om-sh { fill: var(--t-poss); }
.om-wring { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 2.5 2.5; }
.om-rank { font-family: var(--mono); font-weight: 500; fill: #fff; pointer-events: none; }
:root[data-theme="dark"] .om-rank { fill: #0d1117; }
.om-m.is-hov .om-halo, .om-m:focus-visible .om-halo { fill: var(--ink); fill-opacity: .06; stroke: var(--ink-3); }
.om-m.is-sel .om-halo { fill: var(--red); fill-opacity: .08; stroke: var(--red); stroke-width: 2; }
.om-m.is-dim .om-in { opacity: .35; }
.om-lab rect { fill: var(--card); stroke: var(--line-2); }
.om-lab text { font-family: var(--sans); font-weight: 500; fill: var(--ink); }
.om-lab.is-hov rect { stroke: var(--ink-3); }
.om-lab.is-sel rect { stroke: var(--red); fill: var(--sel); }
.om-you__c { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.om-you__n { font-family: var(--display); font-weight: 600; fill: var(--ink); letter-spacing: -.01em; }
.om-you__s { font-family: var(--sans); font-weight: 400; fill: var(--ink-3); }
.om-path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 420ms var(--ease) both; }
.om-path--strong { stroke: var(--red); stroke-width: 2; }
.om-node circle { fill: var(--card); stroke: var(--ink-2); stroke-width: 1.5; }
.om-node text { font-family: var(--sans); font-weight: 600; fill: var(--ink); }
.om-node--strong circle { stroke: var(--red); stroke-width: 2; }
.om-node__l { font: 500 12.5px var(--sans) !important; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }

/* ---------- network ---------- */
.nw { width: 100%; height: auto; overflow: visible; }
.nw-line { fill: none; stroke-width: 1.5; stroke-dasharray: 1; animation: draw 480ms var(--ease) both; }
.nw-line--sim { stroke: var(--c-seed); }
.nw-line--co { stroke: var(--c-a); stroke-width: 1.75; }
.nw-line--port { stroke: var(--muted-mark); stroke-width: 1; }
.nw-tile rect { fill: #fff; stroke: var(--line-2); stroke-width: 1; }
.nw-tile text { font-family: var(--display); font-weight: 600; fill: #3d3f45; }
.nw-tile--sim rect { stroke: var(--c-seed); stroke-width: 1.5; }
.nw-tile--co rect { stroke: var(--c-a); stroke-width: 1.5; }
.nw-tile--core rect { stroke: var(--ink-2); stroke-width: 1.5; }
.nw-core__ring { fill: var(--sunk); stroke: var(--line-2); stroke-width: 1; }
.nw-lab { font: 500 13.5px var(--sans); fill: var(--ink); }
.nw-lab--p { font-weight: 400; font-size: 13px; fill: var(--ink-2); }
.nw-sub { font: 400 12px var(--sans); fill: var(--ink-3); }
.nw-a { cursor: pointer; }
.nw-a:hover .nw-lab { text-decoration: underline; }

/* ---------- your orbit (investors) ---------- */
.io { width: 100%; height: auto; overflow: visible; }
.io-band--strong { stroke: var(--t-strong-tint); }
.io-band--good { stroke: var(--t-good-tint); }
.io-band--possible { stroke: var(--t-poss-tint); }
.io-div line { stroke: var(--card); stroke-width: 2.5; }
.io-dot--strong { fill: var(--t-strong); }
.io-dot--good { fill: var(--t-good); }
.io-dot--possible { fill: var(--t-poss); }
.is-entering .io-dot { animation: travel 340ms var(--ease) both; }
.io-labs text { font-family: var(--sans); font-weight: 400; fill: var(--ink-2); }
.io-lab__n { font-family: var(--mono); font-weight: 500; fill: var(--ink); }
.io-core { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.io-core__n { font-family: var(--display); font-weight: 600; fill: var(--ink); }
.io-core__s { font-family: var(--sans); font-weight: 400; fill: var(--ink-3); }
.io-optin > rect { fill: var(--ink); stroke: var(--card); stroke-width: 2; }
.io-optin__bg { fill: var(--card); stroke: var(--ink-3); stroke-width: 1; }
.io-optin text { font: 500 12.5px var(--sans); fill: var(--ink); }

.spark { width: 100%; height: auto; }
.spark__a { fill: var(--bar); fill-opacity: .1; }
.spark__l { fill: none; stroke: var(--bar); stroke-width: 1.75; stroke-dasharray: 1; animation: draw 560ms var(--ease) both; }
