/* Glass House Insiders — disclosure-terminal theme */
:root {
  --bg: #0B0F14;
  --surface: #141A22;
  --surface-2: #1B2330;
  --ink: #E8ECEF;
  --blue: #7CC4FF;
  --red: #E0625C;
  --tan: #C7A876;
  --muted: #7A8591;
  --line: rgba(232, 236, 239, 0.08);
  --grid: rgba(232, 236, 239, 0.08);
  --serif: 'Source Serif 4', Charter, Georgia, serif;
  --sans: 'Inter Tight', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.7; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.notice-bar {
  background: #14202b; color: var(--blue); font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 1px; text-transform: uppercase; text-align: center; padding: 6px 12px;
}
header.masthead { position: sticky; top: 0; z-index: 50; background: rgba(11,15,20,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.masthead-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 26px; padding: 13px 24px; }
.brand { font-family: var(--sans); font-weight: 800; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.brand .tick { color: var(--blue); font-family: var(--mono); font-size: 11px; vertical-align: 2px; margin-left: 6px; }
nav.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
nav.tabs a { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 7px 10px; border-radius: 4px; }
nav.tabs a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
nav.tabs a.active { color: var(--blue); background: var(--surface); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; margin: 0 auto; }
section.view { display: none; padding: 44px 0 90px; }
section.view.active { display: block; }

/* hero */
.hero { padding: 76px 0 28px; max-width: 900px; }
.hero h1 { font-family: var(--sans); font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.8px; margin-bottom: 24px; }
.hero .sub { font-size: 18px; color: var(--muted); line-height: 1.75; margin-bottom: 30px; }
.hero .sub .mono { font-family: var(--mono); font-size: 15px; color: var(--tan); }
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--bg); background: var(--blue); border-radius: 4px; padding: 12px 24px; }
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.tagline { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1.5px; margin-top: 18px; }

/* gap counter strip */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 44px 0; }
.counter { background: var(--bg); padding: 24px 22px; }
.counter .days { font-family: var(--sans); font-weight: 800; font-size: 44px; color: var(--red); line-height: 1; }
.counter .days .unit { font-size: 14px; color: var(--muted); font-weight: 600; }
.counter .lbl { font-family: var(--sans); font-weight: 700; font-size: 14px; margin: 10px 0 4px; }
.counter .ob { font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.7; }
.counter .trig { font-family: var(--mono); font-size: 11px; color: var(--tan); margin-top: 6px; }

/* section heads */
.section-head { margin-bottom: 30px; }
.section-head h1 { font-family: var(--sans); font-weight: 800; font-size: 34px; letter-spacing: -0.4px; margin-bottom: 8px; }
.section-head p.sub { color: var(--muted); font-size: 16px; max-width: 820px; }
.section-head .src { font-family: var(--mono); font-size: 11px; color: var(--tan); margin-top: 8px; }

/* toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar select, .toolbar input[type="search"] {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--mono); font-size: 12.5px; border-radius: 4px; padding: 8px 12px;
}
.toolbar label { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.toolbar .spacer { flex: 1; }
.csv-link { font-family: var(--mono); font-size: 12px; color: var(--blue); cursor: pointer; }

/* ledger table */
.ledger-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table.ledger { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; min-width: 980px; }
table.ledger th {
  font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--grid);
  cursor: pointer; user-select: none; white-space: nowrap; position: sticky; top: 0; background: var(--surface-2);
}
table.ledger th .arrow { color: var(--blue); }
table.ledger td { padding: 9px 12px; border-bottom: 1px solid var(--grid); white-space: nowrap; vertical-align: top; }
table.ledger td.num { text-align: right; }
table.ledger td.neg { color: var(--red); text-align: right; }
table.ledger td.pos { color: #7fd8a8; text-align: right; }
table.ledger td.late { color: var(--red); font-weight: 700; text-align: right; }
table.ledger td.ok-late { color: var(--muted); text-align: right; }
table.ledger tr:hover td { background: rgba(124, 196, 255, 0.04); }
.tbl-note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.8; }

/* recent strip on home */
.recent h2 { font-family: var(--sans); font-weight: 800; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; margin: 36px 0 14px; color: var(--ink); }

/* timeline */
.tl { position: relative; margin-left: 12px; padding-left: 32px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before { content: ''; position: absolute; left: -39px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid var(--bg); }
.tl-item.adverse::before { background: var(--red); }
.tl-item.insider::before { background: var(--tan); }
.tl-date { font-family: var(--mono); font-size: 12px; color: var(--tan); letter-spacing: 1px; }
.tl-item h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 700; margin: 4px 0 6px; }
.tl-item p { font-size: 14.5px; color: var(--muted); line-height: 1.65; max-width: 720px; }
.tl-item .cite { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 5px; }

/* prose pages */
.prose h2 { font-family: var(--sans); font-weight: 800; font-size: 22px; margin: 36px 0 14px; }
.prose p, .prose li { font-size: 16px; margin-bottom: 16px; color: var(--ink); }
.prose ul { margin-left: 22px; }
.prose .box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px 26px; margin: 22px 0; }
.prose .box .h { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tan); margin-bottom: 10px; }

/* chart */
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px 12px; margin-bottom: 36px; }
.chart-title { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .5px; margin-bottom: 12px; line-height: 1.7; }
#price-chart { width: 100%; display: block; }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; margin-top: 30px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); line-height: 1.8; }
footer .disc { max-width: 880px; margin-bottom: 16px; }
footer .meta { font-family: var(--mono); font-size: 11px; }

@media (max-width: 760px) {
  .masthead-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
  .hero h1 { font-size: 34px; }
}
