/* Instrument components. Every color, space, radius and family comes from tokens.css. */

body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: var(--link); }

/* ---------- type roles ---------- */
.in-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* Large figures use the text face with tabular digits: B612 Mono's wide period reads as "$5. 80T" at display sizes. */
.in-figure { font-family: var(--font-text); font-variant-numeric: tabular-nums lining-nums; font-size: 34px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.in-figure-s { font-family: var(--font-text); font-variant-numeric: tabular-nums lining-nums; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.in-label { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.in-caption { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.in-eyebrow { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-2); }
.in-h2 { font-family: var(--font-display); font-size: 36px; line-height: 42px; font-weight: 500; letter-spacing: -0.01em; margin: 0; text-wrap: balance; color: var(--ink); }
.in-lead { font-size: 20px; line-height: 32px; color: var(--ink-2); margin: var(--space-2) 0 0; max-width: 62ch; text-wrap: pretty; }
.in-link { color: var(--link); font-size: 15px; line-height: 22px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: var(--space-1); }
.in-link .in-icon { width: 16px; height: 16px; }
.in-quiet-link { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--ink-2); font-size: 15px; line-height: 22px; font-weight: 600; text-decoration: none; }
.in-quiet-link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.in-quiet-link .in-icon { width: 16px; height: 16px; }
.in-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- band color carriers (marks only, never text) ---------- */
.in-fill-ef { fill: var(--band-ef); } .in-fill-f { fill: var(--band-f); } .in-fill-n { fill: var(--band-n); } .in-fill-g { fill: var(--band-g); } .in-fill-eg { fill: var(--band-eg); }
.in-stroke-ef { stroke: var(--band-ef); } .in-stroke-f { stroke: var(--band-f); } .in-stroke-n { stroke: var(--band-n); } .in-stroke-g { stroke: var(--band-g); } .in-stroke-eg { stroke: var(--band-eg); }
.in-bg-ef { background: var(--band-ef); } .in-bg-f { background: var(--band-f); } .in-bg-n { background: var(--band-n); } .in-bg-g { background: var(--band-g); } .in-bg-eg { background: var(--band-eg); }

/* ---------- icons ---------- */
.in-icon { flex: none; display: inline-block; vertical-align: middle; }
.in-icon .in-icon-fill { fill: currentColor; stroke: none; }

/* ---------- Dial ---------- */
.in-dial { display: block; width: 100%; height: auto; overflow: visible; }
.in-dial .in-arc { fill: none; stroke-linecap: butt; }
.in-dial .in-tick-minor { stroke: var(--ink-3); stroke-width: 1; }
.in-dial .in-tick-major { stroke: var(--ink-2); stroke-width: 1.5; }
.in-dial .in-word { font-family: var(--font-text); font-size: 14px; font-weight: 600; fill: var(--ink-2); }
.in-dial .in-end-num { font-family: var(--font-mono); font-size: 13px; fill: var(--ink-3); }
.in-dial .in-needle, .in-dial .in-hub { fill: var(--steel); }
.in-dial .in-hub-dot { fill: var(--ground); }
.in-dial .in-prior { fill: var(--ground); stroke: var(--ink-3); stroke-width: 1.25; stroke-linejoin: round; }
.in-dial .in-window { fill: var(--plate); stroke: var(--rule); stroke-width: 1; }
.in-dial .in-dial-num { font-family: var(--font-mono); font-weight: 700; fill: var(--ink); letter-spacing: -0.02em; }
.in-dial .in-dial-band { font-family: var(--font-text); font-size: 18px; font-weight: 600; fill: var(--ink); }
.in-dial-card { max-width: var(--dial-card); }
.in-dial-mark { width: 32px; }
.in-sweep { animation: in-needle 700ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes in-needle { from { transform: rotate(var(--in-from)); } to { transform: rotate(var(--in-to)); } }
@media (prefers-reduced-motion: reduce) { .in-sweep { animation: none; } }

.in-dial-legend { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; justify-content: center; gap: var(--space-6); font-size: 14px; line-height: 20px; color: var(--ink-3); }
.in-dial-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.in-key-needle { width: 18px; height: 3px; border-radius: 2px; background: var(--steel); }
.in-key-prior { width: 16px; height: 4px; border-radius: 2px; border: 1.25px solid var(--ink-3); background: var(--ground); }
.in-dial .in-trail { fill: var(--ink-2); }
.in-key-trail { display: inline-flex; gap: 3px; }
.in-key-trail i { width: 5px; height: 5px; border-radius: var(--radius-pill); background: var(--ink-2); }
.in-key-trail i:nth-child(1) { opacity: .25; } .in-key-trail i:nth-child(2) { opacity: .5; }

/* ---------- BandChip / BandScale ---------- */
.in-chip { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.in-dot { width: 10px; height: 10px; border-radius: var(--radius-pill); flex: none; }
.in-scale { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.in-scale li { display: inline-flex; align-items: baseline; gap: var(--space-2); }

/* ---------- BandStrip ---------- */
.in-strip { position: relative; height: 22px; margin-inline: 7px; }
.in-strip-track { position: absolute; left: 0; right: 0; top: 8px; height: 6px; }
.in-strip-track span { position: absolute; top: 0; bottom: 0; border-radius: 1px; }
.in-strip-mark, .in-strip-prior { position: absolute; top: 11px; transform: translate(-50%, -50%); border-radius: var(--radius-pill); box-sizing: border-box; }
.in-strip-mark { width: 13px; height: 13px; background: var(--ink); box-shadow: 0 0 0 2px var(--ground); }
.in-strip-prior { width: 11px; height: 11px; background: var(--ground); border: 1.5px solid var(--ink-3); box-shadow: 0 0 0 2px var(--ground); }

/* ---------- Sparkline ---------- */
.in-spark { display: block; width: 100%; max-width: 160px; height: auto; overflow: visible; }
.in-spark path { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.in-spark circle { fill: var(--steel); stroke: var(--ground); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* ---------- Freshness ---------- */
.in-fresh { display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px 12px; border-radius: var(--radius-pill); background: var(--plate); color: var(--ink-2); font-size: 14px; line-height: 20px; white-space: nowrap; }
.in-live-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--steel); }
.in-fresh-delayed { background: var(--delayed-soft); color: var(--delayed); font-weight: 600; }
.in-fresh .in-icon { width: 16px; height: 16px; }

/* ---------- Reading (hero) ---------- */
.in-reading { container-type: inline-size; }
.in-reading-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-12); align-items: center; }
.in-reading-dial { max-width: var(--dial-hero); width: 100%; justify-self: center; }
.in-reading-text { min-width: 0; }
.in-reading-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.in-reading-id { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); }
.in-mood { font-family: var(--font-display); font-size: 60px; line-height: 64px; font-weight: 500; letter-spacing: -0.015em; margin: 0; text-wrap: balance; color: var(--ink); }
.in-mood-word { font-style: italic; text-decoration-line: underline; text-decoration-thickness: 0.085em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.in-u-ef { text-decoration-color: var(--band-ef); } .in-u-f { text-decoration-color: var(--band-f); } .in-u-n { text-decoration-color: var(--band-n); } .in-u-g { text-decoration-color: var(--band-g); } .in-u-eg { text-decoration-color: var(--band-eg); }
.in-change { font-size: 20px; line-height: 32px; color: var(--ink); margin: var(--space-4) 0 0; max-width: 40ch; }
.in-reading-note { font-size: 17px; line-height: 28px; color: var(--ink-2); margin: var(--space-3) 0 0; max-width: 52ch; }
.in-snaps { margin-top: var(--space-8); }
.in-log { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-3); position: relative; }
.in-log::before { content: ""; position: absolute; left: 0; width: 75%; top: 6px; height: 1px; background: var(--edge); }
.in-log-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; position: relative; }
.in-log-entry .in-caption { order: 2; }
.in-log-mark { order: -1; width: 3px; height: 13px; border-radius: 1px; margin-left: 1px; position: relative; }
.in-log-now .in-caption { color: var(--ink); font-weight: 600; }
.in-log-now .in-log-mark { width: 4px; height: 17px; margin-top: -2px; margin-bottom: -2px; box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--steel); }
.in-log-pace { margin: var(--space-4) 0 0; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.in-log-pace .in-num { font-weight: 700; color: var(--ink); }
.in-snap-cell { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.in-snap-val { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
@container (max-width: 760px) {
  .in-reading-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .in-reading-dial { max-width: 360px; }
  .in-mood { font-size: 40px; line-height: 44px; }
  .in-change { font-size: 18px; line-height: 28px; }
  .in-log .in-caption { font-size: 14px; }
}

/* ---------- SectionHead ---------- */
.in-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-4) var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--rule); margin-bottom: var(--space-8); }
.in-sec-text { min-width: 0; flex: 1 1 420px; }
.in-sec-eyebrow { margin: 0 0 var(--space-2); }
/* Info: the longer explanation, one tap away, so sections lead with data */
.in-info { margin-top: var(--space-3); }
.in-info summary { list-style: none; display: inline-flex; align-items: center; gap: var(--space-1); cursor: pointer; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-2); }
.in-info summary::-webkit-details-marker { display: none; }
.in-info summary:hover { color: var(--link); }
.in-info summary .in-icon { width: 18px; height: 18px; }
.in-info[open] summary { color: var(--ink); }
.in-info-body { margin-top: var(--space-3); padding: var(--space-4) var(--space-6); border-left: 2px solid var(--steel); background: var(--plate); border-radius: 0 var(--radius-m) var(--radius-m) 0; color: var(--ink-2); max-width: var(--measure); font-size: 16px; line-height: 26px; }
.in-info-body p { margin: 0 0 var(--space-3); } .in-info-body p:last-child { margin-bottom: 0; }
.in-info-body dl { margin: 0; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-2) var(--space-4); }
.in-info-body dt { font-weight: 600; color: var(--ink); } .in-info-body dd { margin: 0; }
@media (max-width: 640px) { .in-info-body dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .in-info-body dd { margin-bottom: var(--space-2); } }

/* ---------- DriverRow ---------- */
.in-drivers { container-type: inline-size; border-top: 1px solid var(--rule); }
.in-driver { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr) 10.5rem; grid-template-areas: "name strip val" "name weight val"; column-gap: var(--space-8); row-gap: 0; align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.in-driver-name { grid-area: name; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.in-driver-detail { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.in-driver-strip { grid-area: strip; min-width: 0; }
.in-driver-weight { grid-area: weight; }
.in-driver-val { grid-area: val; display: flex; align-items: baseline; gap: var(--space-2); justify-content: flex-start; }
.in-driver-val .in-figure-s { min-width: 2.2ch; text-align: right; }
@container (max-width: 640px) {
  .in-driver { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "strip strip" "weight weight"; row-gap: var(--space-2); }
}
a.in-driver { color: var(--ink); text-decoration: none; }
.in-driver-link:hover .in-driver-name .in-label { text-decoration: underline; text-underline-offset: 3px; }
.in-driver-arrow { width: 16px; height: 16px; margin-left: var(--space-1); color: var(--ink-3); vertical-align: -2px; }

/* ---------- ReadingCard ---------- */
.in-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--space-4); }
.in-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-l); background: var(--ground); color: var(--ink); text-decoration: none; transition: border-color 120ms ease; min-width: 0; }
.in-card:hover { border-color: var(--edge); }
.in-card-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.in-card-body { display: flex; align-items: center; gap: var(--space-4); }
.in-card-visual { flex: 0 0 96px; display: flex; align-items: center; justify-content: center; min-height: 56px; }
.in-card-read { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.in-card-label { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.in-card-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); color: var(--ink-3); margin-top: auto; }
.in-card-foot .in-icon { width: 16px; height: 16px; }
.in-card-note { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.in-card-trend { display: flex; flex-direction: column; gap: 4px; }
.in-spark.in-spark-wide { max-width: none; }
.in-spark .in-spark-fill { fill: var(--steel); stroke: none; opacity: .08; }
.in-card-trend .in-spark path:not(.in-spark-fill) { stroke: var(--steel); }
.in-card-trend-cap { display: flex; justify-content: space-between; gap: var(--space-2); }
.in-card-bars { display: flex; flex-direction: column; gap: var(--space-2); }
.in-card-bar { display: grid; grid-template-columns: minmax(0, 1fr) 72px 2.5ch; align-items: center; gap: var(--space-3); }
.in-card-bar-track { height: 6px; border-radius: 3px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.in-card-bar-track span { display: block; height: 100%; background: var(--steel); border-radius: 3px; }
.in-card-bar-v { font-size: 15px; font-weight: 700; text-align: right; color: var(--ink); }
.in-card-link { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--link); }
.in-card:hover .in-card-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- MeasureTile ---------- */
.in-measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-8) var(--space-12); }
.in-measure { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding-top: var(--space-4); border-top: 1px solid var(--rule); }
.in-measure-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.in-measure-about { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.in-measure-read { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: auto; }
.in-measure-signal { display: inline-flex; align-items: center; gap: var(--space-3); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.in-lean { display: inline-flex; gap: 3px; }
.in-lean span { width: 14px; height: 6px; border-radius: 2px; background: var(--rule); }
.in-lean span.in-on { width: 22px; }
.in-lean span.in-bg-f { background: var(--band-f); } .in-lean span.in-bg-n { background: var(--edge); } .in-lean span.in-bg-g { background: var(--band-g); }
.in-tally { margin: 0 0 var(--space-8); }
.in-tally-bar { display: flex; gap: 3px; height: 10px; }
.in-tally-bar span { border-radius: 3px; }
.in-tally-keys { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-3); font-size: 15px; line-height: 22px; color: var(--ink-2); }
.in-tally-keys > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.in-tally-keys .in-num { font-weight: 700; color: var(--ink); }

/* ---------- Spectrum ---------- */
.in-spectrum { width: 100%; }
.in-spectrum-track { position: relative; height: 6px; margin: 10px 0 12px; border-radius: var(--radius-pill); background: var(--plate); box-shadow: inset 0 0 0 1px var(--rule); }
.in-spectrum-mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: var(--edge); }
.in-spectrum-mark { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--steel); box-shadow: 0 0 0 3px var(--ground); transform: translate(-50%, -50%); }
.in-spectrum-labels { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 14px; line-height: 20px; color: var(--ink-3); }

/* ---------- EventStrip ---------- */
.in-events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--space-4) var(--space-6); }
.in-event { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: var(--space-3); border-top: 1px solid var(--rule); }
.in-event-date { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.in-event-name { font-size: 15px; line-height: 22px; color: var(--ink); }

/* ---------- StatTile ---------- */
.in-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-8) var(--space-6); }
.in-tile { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.in-tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.in-tile-delta { display: flex; align-items: center; gap: var(--space-2); font-size: 16px; line-height: 24px; color: var(--ink); }
.in-delta-icon { width: 14px; height: 14px; color: var(--ink-2); }

/* ---------- LineChart ---------- */
.in-chart { margin: 0; position: relative; }
.in-chart:focus-visible { outline-offset: 6px; }
.in-chart-plot { position: relative; }
.in-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.in-zone { opacity: 0.1; }
.in-grid { stroke: var(--rule); stroke-width: 1; }
.in-tick { font-family: var(--font-mono); font-size: 13px; fill: var(--ink-3); }
.in-line { fill: none; stroke: var(--steel); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.in-line-2 { stroke: var(--ink-3); }
.in-end { fill: var(--steel); stroke: var(--ground); stroke-width: 2; }
.in-end-2 { fill: var(--ink-3); }
.in-end-label { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: var(--ink); }
.in-cross-line { stroke: var(--ink-3); stroke-width: 1; }
.in-cross-dot { fill: var(--steel); stroke: var(--ground); stroke-width: 2; }
.in-cross-dot.in-end-2 { fill: var(--ink-3); }
.in-line-ov { stroke: var(--ink); stroke-width: 1.5px; stroke-dasharray: 5 3; opacity: .75; }
.in-end-ov { fill: var(--ink); opacity: .7; }
.in-tick-ov { fill: var(--ink-2); }
.in-hit { fill: transparent; cursor: crosshair; }
.in-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: 14px; line-height: 20px; color: var(--ink-2); margin-bottom: var(--space-3); }
.in-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.in-legend i, .in-tip i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--steel); }
.in-legend i.in-key-2, .in-tip i.in-key-2 { background: var(--ink-3); }
.in-legend i.in-key-ov, .in-tip i.in-key-ov { background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 8px); opacity: .75; height: 2px; }
.in-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--ground); border: 1px solid var(--rule); border-radius: var(--radius-m); box-shadow: var(--shadow-pop); padding: var(--space-2) var(--space-3); font-size: 14px; line-height: 20px; min-width: 200px; }
.in-tip-date { color: var(--ink-3); margin-bottom: 2px; }
.in-tip-row { display: grid; grid-template-columns: 16px 1fr auto auto; align-items: center; gap: var(--space-2); }
.in-tip-row b { font-size: 16px; }
.in-tip-band { color: var(--ink-2); }
.in-chart figcaption { margin-top: var(--space-2); }
.in-chart-table { margin-top: var(--space-3); }
.in-chart-table summary { font-size: 15px; font-weight: 600; color: var(--link); cursor: pointer; width: fit-content; }
.in-chart-table .in-table-wrap { max-height: 320px; overflow: auto; margin-top: var(--space-2); }

/* ---------- DataTable ---------- */
.in-table-wrap { overflow-x: auto; }
.in-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.in-table caption { caption-side: bottom; text-align: left; font-size: 14px; line-height: 20px; color: var(--ink-3); padding-top: var(--space-3); }
.in-table thead th { background: var(--plate); font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: left; padding: 10px 16px; white-space: nowrap; }
.in-table td, .in-table tbody th { padding: 12px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.in-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.in-table tbody tr:hover { background: var(--plate); }
.in-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.in-table thead th.num { font-family: var(--font-text); }

/* ---------- Controls ---------- */
.in-btn { font: inherit; font-size: 15px; line-height: 20px; font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-2); padding: 9px 16px; border-radius: var(--radius-m); border: 1px solid var(--edge); background: var(--ground); color: var(--ink); cursor: pointer; transition: background 120ms ease; white-space: nowrap; }
.in-btn:hover { background: var(--plate); }
.in-btn .in-icon { width: 18px; height: 18px; }
.in-btn-primary { background: var(--steel); border-color: var(--steel); color: var(--on-steel); }
.in-btn-primary:hover { background: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.in-btn-quiet { border-color: transparent; background: transparent; color: var(--link); padding-inline: 4px; }
.in-btn-quiet:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.in-btn-icon { padding: 8px; color: var(--ink-2); }
.in-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--edge); border-radius: var(--radius-m); background: var(--ground); }
.in-tab { font: inherit; font-family: var(--font-mono); font-size: 14px; line-height: 20px; padding: 5px 12px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--ink-2); cursor: pointer; }
.in-tab:hover { color: var(--ink); }
.in-tab[aria-selected="true"] { background: var(--steel-soft); color: var(--steel); font-weight: 700; }

/* ---------- Disclosure ---------- */
.in-disclosure { border-bottom: 1px solid var(--rule); }
.in-disclosure:first-of-type { border-top: 1px solid var(--rule); }
.in-disclosure summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 18px 0; cursor: pointer; font-size: 17px; line-height: 26px; font-weight: 600; color: var(--ink); }
.in-disclosure summary::-webkit-details-marker { display: none; }
.in-disclosure summary .in-icon { color: var(--ink-3); transition: transform 120ms ease; }
.in-disclosure[open] summary .in-icon { transform: rotate(180deg); }
.in-disclosure-body { padding: 0 0 var(--space-6); color: var(--ink-2); max-width: var(--measure); }
.in-disclosure-body p { margin: 0 0 var(--space-3); }

/* ---------- AdSlot ---------- */
.in-ad { margin: 0; }
.in-ad-label { display: block; font-size: 14px; line-height: 20px; color: var(--ink-3); margin-bottom: 6px; }
.in-ad-box { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--edge); border-radius: var(--radius-m); background: var(--plate); color: var(--ink-3); font-size: 14px; line-height: 20px; }

/* ---------- SiteHeader ---------- */
.in-skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 16px; border-radius: var(--radius-m); background: var(--steel); color: var(--on-steel); font-size: 15px; font-weight: 600; text-decoration: none; }
.in-skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.in-header-wrap { container-type: inline-size; border-bottom: 1px solid var(--rule); }
.in-header { display: flex; align-items: center; gap: var(--space-8); min-height: 64px; }
.in-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.in-wordmark { font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.in-property { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--rule); }
.in-nav { display: flex; gap: var(--space-6); flex: 1; min-width: 0; }
.in-nav a { color: var(--ink-2); text-decoration: none; font-size: 16px; line-height: 24px; font-weight: 500; padding: 20px 0 18px; border-bottom: 2px solid transparent; }
.in-nav a:hover { color: var(--ink); }
.in-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--steel); }
.in-header-tools { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.in-menu-btn { display: none; }
.in-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-6); padding: var(--space-6) 0 var(--space-8); border-top: 1px solid var(--rule); }
.in-menu[hidden] { display: none; }
.in-menu h3 { margin: 0 0 var(--space-2); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.in-menu a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: 16px; }
.in-menu a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@container (max-width: 900px) {
  .in-header { gap: var(--space-4); }
  .in-header-tools { gap: var(--space-1); }
  .in-nav { display: none; }
  .in-menu-btn { display: inline-flex; }
  .in-btn-alerts span { display: none; }
  .in-btn-alerts { padding: 8px; }
}
@container (max-width: 480px) {
  .in-share-btn { display: none; }
  .in-wordmark { font-size: 22px; }
}

/* ---------- SiteFooter ---------- */
.in-footer { border-top: 1px solid var(--rule); padding: var(--space-12) 0 var(--space-8); color: var(--ink-2); font-size: 15px; line-height: 22px; }
.in-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-8); }
.in-footer h3 { font-family: var(--font-text); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); margin: 0 0 var(--space-3); }
.in-footer-grid a { display: block; padding: 3px 0; color: var(--ink-2); text-decoration: none; }
.in-footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.in-footer-grid a.in-footer-noted { padding: 4px 0; }
.in-footer-noted span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.in-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-8); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; color: var(--ink-3); }
.in-footer-legal p { margin: 0; max-width: 72ch; }
.in-footer-legal a { color: var(--ink-2); }

/* ---------- Page scaffolding ---------- */
.in-page { max-width: var(--content-max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.in-section { margin-top: var(--space-24); }
@media (max-width: 640px) { .in-section { margin-top: var(--space-16); } .in-h2 { font-size: 28px; line-height: 34px; } .in-lead { font-size: 18px; line-height: 28px; } body { font-size: 16px; line-height: 26px; } }

/* ---------- ScaleBar: a value on a labeled own-scale (insider, liquidity), in steel tints, not band colors ---------- */
.in-scale-bar { width: 100%; }
.in-scale-track { position: relative; display: flex; gap: 3px; height: 10px; }
.in-scale-track > span { flex: 1; border-radius: 3px; background: var(--steel); }
.in-scale-track > .in-scale-mark { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--ground); border: 4px solid var(--ink); transform: translate(-50%, -50%); }
.in-scale-labels { display: flex; gap: 3px; margin-top: var(--space-2); }
.in-scale-labels > span { flex: 1; font-size: 14px; line-height: 18px; color: var(--ink-3); text-align: center; }
.in-scale-labels > span.in-on { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .in-scale-labels > span:not(.in-on):not(:first-child):not(:last-child) { visibility: hidden; } }
