/* =============================================================
   AUTO-GENERATED — DO NOT EDIT BY HAND
   Built by _lib/ui/build.py for site=strc
   Generated at 2026-04-28T20:29:49+00:00
   Source files: tokens.css + components.css + chart.css + sites/strc.css
   ============================================================= */

/* ----- tokens.css ----- */

/* =============================================================
   _lib/ui/tokens.css — design tokens for the mNAV platform
   =============================================================
   Shared :root variables consumed by components.css + chart-svg.css.
   Per-site stylesheets MUST define --accent and --accent-dim before
   importing this file (or after, since :root cascades). Everything
   else is platform-wide and should change in lockstep across all
   dashboards.

   Token groups:
     surfaces   — bg, panel, panel-2, line, grid (dark dashboard palette)
     text       — text, muted, dim, faint (4-step hierarchy)
     status     — green, amber, red (state pills, alerts)
     accent     — accent, accent-dim (per-site override; default = pink)
     other      — btc (universal Bitcoin orange), purple, gold (chart axes)
   ============================================================= */

:root {
  /* ---------------------- Surfaces (dark theme) ---------------------- */
  --bg:        #0B0D10;
  --panel:     #11141A;
  --panel-2:   #161A21;
  --line:      #1F242C;
  --grid:      #232932;

  /* ---------------------- Text hierarchy ---------------------- */
  --text:      #FFFFFF;
  --muted:     #B8BEC6;
  --dim:       #8A8F99;
  --faint:     #5A606A;

  /* ---------------------- Status colors ---------------------- */
  --green:     #2EC07A;
  --amber:     #F5C518;
  --red:       #FF4D4D;

  /* ---------------------- Other accents (chart axes, callouts) ---------------------- */
  --btc:       #F7931A;   /* universal Bitcoin orange */
  --purple:    #A985F5;
  --gold:      #E5A12C;

  /* ---------------------- Accent (per-site override) ---------------------- */
  /* Default = STRC pink. SATA and other dashboards override these. */
  --accent:     #E84B8A;
  --accent-dim: #6B2845;

  color-scheme: dark;
}

/* ----- components.css ----- */

/* =============================================================
   _lib/ui/components.css — shared chrome for mNAV dashboards
   =============================================================
   Consumes tokens from tokens.css. Sections (separated by /* === */
   comments) are independently usable. The accent color comes from
   var(--accent) so each site can theme without forking these rules.

   Sections:
     1. Reset + base
     2. Layout: wrap, top, title, share, chip
     3. Hero + tile system
     4. Info icon + popover
     5. Pills (state indicators) + pulse keyframe
     6. Section blocks (h2, lede, post-note, ai-comment)
     7. Section head + range toggle
     8. Cycle bar
     9. Filings table (issuance ledger variant)
     10. Dividend table (preferred-stack variant)
     11. Mcap tiles
     12. Details/explainer (collapsible)
     13. Banners (v0 stage indicator etc.)
     14. Foot
     15. Responsive breakpoints
   ============================================================= */

/* ---------- 1. Reset + base ---------- */
*{box-sizing:border-box}
html,body{
  background:var(--bg);
  color:var(--text);
  margin:0; padding:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* ---------- 2. Layout ---------- */
.wrap{max-width:1180px;margin:0 auto;padding:44px 24px 80px}
.top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px}
.title{font-size:28px;font-weight:800;letter-spacing:-0.01em}
.sub{color:var(--dim);font-size:13px;margin-top:4px;letter-spacing:0.02em}
.share{display:flex;gap:8px}
.chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 12px;border-radius:999px;
  background:var(--panel);border:1px solid var(--line);
  color:var(--muted);font-size:12px;font-weight:500;cursor:pointer;
}
.chip:hover{background:var(--panel-2)}

/* ---------- 3. Hero + tile ---------- */
.hero{
  background:var(--panel);border:1px solid var(--line);border-radius:16px;
  padding:24px;margin-bottom:24px;position:relative;
}
.hero-row{
  display:grid;gap:14px;
  grid-template-columns:repeat(5,1fr);   /* per-site can override columns */
  align-items:stretch;
}
.tile{
  background:var(--panel-2);border:1px solid var(--line);border-radius:12px;
  padding:16px;position:relative;
}
.tile.cycle-tile{display:flex;flex-direction:column}
.tile.cycle-tile .cycle-bar{margin-top:auto}
.tile-label-row{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.tile-label-row .tile-label{margin-bottom:0}
.tile-label{
  color:var(--dim);font-size:10px;font-weight:700;
  letter-spacing:0.08em;text-transform:uppercase;margin-bottom:10px;
}
.tile-big{font-size:24px;font-weight:800;letter-spacing:-0.01em;line-height:1.1}
.tile-sub{color:var(--dim);font-size:11px;margin-top:6px;line-height:1.4}

/* Accent number color. .accent-num is the canonical platform class.
   .strc-num and .sata-num are kept as backward-compat aliases for
   existing dashboard HTML — both resolve to var(--accent), which the
   per-site stylesheet sets to the dashboard's accent color.
   .btc-num remains universal Bitcoin orange. */
.accent-num,
.strc-num,
.sata-num{color:var(--accent)}
.btc-num{color:var(--btc)}

/* ---------- 4. Info icon + popover ---------- */
.info-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:14px;height:14px;border-radius:50%;
  border:1px solid var(--dim);color:var(--dim);
  font-size:9px;font-weight:700;font-family:Georgia,serif;
  cursor:pointer;flex-shrink:0;font-style:italic;line-height:1;
  user-select:none;transition:border-color 0.15s,color 0.15s;
}
.info-icon:hover{border-color:var(--text);color:var(--text)}
.info-icon.open{
  border-color:var(--accent);color:var(--accent);
  background:color-mix(in srgb, var(--accent) 10%, transparent);
}
.info-popover{
  position:absolute;top:calc(100% + 8px);left:0;
  width:300px;background:#0B0D10;
  border:1px solid var(--line);border-radius:8px;
  padding:13px 15px;
  font-size:11px;line-height:1.55;color:var(--muted);
  text-transform:none;letter-spacing:normal;font-weight:400;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-style:normal;text-align:left;
  z-index:200;display:none;
  box-shadow:0 8px 24px rgba(0,0,0,0.6);
}
.info-icon.right .info-popover{left:auto;right:0}
.info-icon.open .info-popover{display:block}
.info-popover strong{color:var(--text);font-weight:600}
.info-popover code{
  background:var(--panel-2);padding:1px 5px;border-radius:3px;
  font-size:10px;color:var(--accent);
  font-family:ui-monospace,"SF Mono",Menlo,monospace;
}
.info-popover .ip-h{
  color:var(--text);font-weight:700;display:block;
  margin-top:10px;margin-bottom:4px;
  font-size:10px;text-transform:uppercase;letter-spacing:0.06em;
}
.info-popover .ip-h:first-child{margin-top:0}
.info-popover ul{margin:4px 0;padding-left:16px}
.info-popover li{margin:2px 0}

/* ---------- 5. Pills ---------- */
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:5px 10px;border-radius:999px;
  font-size:11px;font-weight:700;
  letter-spacing:0.06em;text-transform:uppercase;
}
.pill .dot{width:8px;height:8px;border-radius:50%}
.pill.paused{background:rgba(255,77,77,0.10);color:#FF7575}
.pill.paused .dot{background:var(--red)}
.pill.armed{background:rgba(245,197,24,0.10);color:var(--amber)}
.pill.armed .dot{background:var(--amber)}
.pill.active{background:rgba(46,192,122,0.10);color:var(--green)}
.pill.active .dot{background:var(--green);animation:pulse 2.0s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.45}}

/* ---------- 6. Section blocks ---------- */
.section{
  background:var(--panel);border:1px solid var(--line);border-radius:16px;
  padding:24px;margin-bottom:22px;
}
.section h2{font-size:16px;font-weight:700;letter-spacing:0.02em;margin:0 0 6px}
.section .lede{color:var(--dim);font-size:12px;margin-bottom:16px}
.section .post-note{
  color:var(--muted);font-size:12px;line-height:1.6;
  margin-top:12px;padding:10px 14px;
  background:var(--panel-2);
  border-left:3px solid var(--accent);border-radius:6px;
}
.ai-comment{
  display:flex;gap:10px;align-items:flex-start;
  color:var(--muted);font-size:12px;line-height:1.55;
  margin-top:12px;padding:10px 14px;
  background:var(--panel-2);
  border-left:3px solid var(--gold);border-radius:6px;
}
.ai-comment .ai-tag{
  flex-shrink:0;color:var(--gold);
  font-size:10px;font-weight:700;letter-spacing:0.08em;
  padding:2px 7px;border-radius:6px;
  background:rgba(229,161,44,0.10);
  text-transform:uppercase;margin-top:1px;
}

/* ---------- 7. Section head + range toggle ---------- */
.section-head{
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:12px;margin-bottom:6px;
}
.section-head>.head-titles{flex:1;min-width:0}
.range-toggle{
  display:inline-flex;gap:2px;
  background:var(--panel-2);border:1px solid var(--line);
  border-radius:8px;padding:2px;flex-shrink:0;
}
.range-toggle button{
  background:transparent;border:0;color:var(--dim);
  font-size:11px;font-weight:600;letter-spacing:0.04em;
  padding:5px 10px;border-radius:6px;cursor:pointer;font-family:inherit;
}
.range-toggle button:hover{color:var(--text)}
.range-toggle button.active{background:var(--accent);color:#FFFFFF}

/* ---------- 8. Cycle bar ---------- */
.cycle-bar{
  background:var(--panel-2);border-radius:999px;height:14px;
  position:relative;overflow:hidden;margin-top:14px;
}
.cycle-bar .fill{
  background:linear-gradient(90deg,var(--accent-dim),var(--accent));
  height:100%;transition:width 0.4s ease;
}

/* ---------- 9. Filings table (issuance ledger) ---------- */
table.filings{width:100%;border-collapse:collapse;font-size:12px}
table.filings th{
  text-align:center;color:var(--dim);font-weight:600;
  letter-spacing:0.04em;padding:10px 12px;
  border-bottom:1px solid var(--line);
  font-size:11px;text-transform:uppercase;
}
table.filings td{
  padding:11px 12px;border-bottom:1px solid var(--line);
  color:var(--text);text-align:center;
}
table.filings tr.ipo{background:rgba(245,197,24,0.04)}
table.filings tr.total td{
  color:var(--btc);font-weight:700;
  border-bottom:0;background:rgba(247,147,26,0.04);
}
table.filings .pill-type{
  display:inline-block;padding:2px 8px;border-radius:6px;
  font-size:10px;font-weight:700;letter-spacing:0.04em;
}
table.filings .pill-atm{background:rgba(46,192,122,0.12);color:var(--green)}
table.filings .pill-ipo{background:rgba(245,197,24,0.12);color:var(--amber)}
table.filings td.proceeds{color:var(--green);font-variant-numeric:tabular-nums}
table.filings td.btc{color:var(--btc);font-variant-numeric:tabular-nums}
table.filings td.muted{color:var(--dim);font-variant-numeric:tabular-nums}
table.filings td.num{font-variant-numeric:tabular-nums}

/* ---------- 10. Dividend table (preferred-stack variant) ---------- */
.divs-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:6px}
.divs-table th{
  text-align:left;color:var(--dim);font-weight:600;
  letter-spacing:0.04em;padding:8px 12px;
  border-bottom:1px solid var(--line);
  font-size:11px;text-transform:uppercase;
}
.divs-table td{
  padding:9px 12px;border-bottom:1px solid var(--line);
  color:var(--text);font-variant-numeric:tabular-nums;
}
.divs-table td.cash{color:var(--btc)}
.divs-table td.rate{color:var(--accent)}
.divs-table tr:last-child td{border-bottom:0}
.rate-callout{
  margin-top:12px;padding:10px 14px;
  background:var(--panel-2);
  border-left:3px solid var(--gold);border-radius:6px;
  font-size:12px;color:var(--muted);line-height:1.55;
}
.rate-callout strong{color:var(--gold)}
.rate-callout a{color:var(--accent);font-size:11px}

/* ---------- 11. Mcap tiles ---------- */
.mcap-row{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px}
.mcap-tile{
  background:var(--panel-2);border:1px solid var(--line);
  border-radius:10px;padding:10px 8px;text-align:center;
}
.mcap-tile .lbl{
  color:var(--dim);font-size:11px;font-weight:600;
  letter-spacing:0.04em;margin-bottom:4px;
}
.mcap-tile .val{font-size:17px;font-weight:700}

/* ---------- 12. Details / explainer (collapsible) ---------- */
details.expl{
  background:var(--panel);border:1px solid var(--line);
  border-radius:16px;padding:18px 24px;margin-bottom:22px;
}
details.expl summary{font-size:16px;font-weight:700;cursor:pointer;list-style:none}
details.expl summary::-webkit-details-marker{display:none}
details.expl summary::after{content:"—";float:right;color:var(--dim)}
details.expl:not([open]) summary::after{content:"+"}
details.expl p{color:var(--muted);font-size:13px;line-height:1.7}
details.expl h3{
  font-size:13px;font-weight:700;color:var(--accent);
  margin:14px 0 6px;letter-spacing:0.04em;text-transform:uppercase;
}

/* ---------- 13. Banners (stage indicators) ---------- */
.banner-v0{
  background:linear-gradient(90deg,rgba(245,197,24,0.10),rgba(245,197,24,0.02));
  border:1px solid rgba(245,197,24,0.3);
  border-left:4px solid var(--amber);border-radius:10px;
  padding:14px 18px;margin-bottom:22px;
  font-size:13px;color:var(--muted);line-height:1.55;
}
.banner-v0 strong{color:var(--amber)}
.banner-v0 .v0-tag{
  display:inline-block;font-size:10px;font-weight:700;
  letter-spacing:0.08em;color:var(--amber);
  background:rgba(245,197,24,0.15);
  padding:2px 7px;border-radius:5px;
  text-transform:uppercase;margin-right:8px;
}

/* ---------- 14. Foot ---------- */
.foot{
  color:var(--faint);font-size:11px;
  text-align:center;margin-top:30px;line-height:1.6;
}

/* ---------- 15. Responsive ---------- */
@media (max-width:1100px){
  .hero-row{grid-template-columns:repeat(3,1fr)}
  .tile-big{font-size:22px}
  .info-popover{width:260px}
}
/* mcap-row breakpoint pushed lower (880px) so 5 tiles stay in one row at
   moderate viewports — was collapsing too eagerly to 3 cols at 1100px. */
@media (max-width:880px){
  .mcap-row{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:768px){
  .wrap{padding:18px 14px 60px}
  .top{flex-direction:column;gap:10px}
  .title{font-size:22px}
  .hero-row{grid-template-columns:repeat(2,1fr)}
  .tile-big{font-size:20px}
  .mcap-row{grid-template-columns:repeat(2,1fr)}
  .info-popover{width:240px}
}

/* ----- chart.css ----- */

/* =============================================================
   _lib/ui/chart.css — chart chrome + SVG primitive class library
   =============================================================
   Two layers:

     1. Chart chrome (.chart-wrap, .chart-tip, .legend) — the HTML/CSS
        wrapper around an SVG chart, with crosshair + tooltip.
     2. SVG primitives — named classes that JS adds to <line>, <rect>,
        <text> elements instead of inline fill/stroke. Lets us tune
        colors and strokes from one place.

   Pattern lifted from the SATA dashboard's deliberate split — see the
   inline comment in strive_atm_model/sata-dashboard/style.css for the
   original explanation. Generalised to var(--accent) so each site
   themes without forking these rules.

   In SVG: dynamic things (opacity-by-data, positions) stay in JS;
   static styling (stroke color, stroke width, dash pattern) lives here.
   ============================================================= */

/* ---------- 1. Chart chrome ---------- */
.chart-wrap{position:relative}
.chart-wrap svg{width:100%;height:auto;display:block}
.chart-wrap .crosshair{
  position:absolute;top:0;bottom:0;width:1px;
  background:rgba(255,255,255,0.25);
  pointer-events:none;display:none;
}
.chart-tip{
  position:absolute;background:#0B0D10;
  border:1px solid var(--line);border-radius:8px;
  padding:8px 11px;font-size:11px;color:var(--text);
  pointer-events:none;display:none;white-space:nowrap;
  z-index:50;box-shadow:0 4px 12px rgba(0,0,0,0.4);
}
.chart-tip .row{display:flex;align-items:center;gap:8px;margin-top:3px}
.chart-tip .lbl{color:var(--dim)}
.chart-tip .swatch{width:8px;height:8px;border-radius:50%;display:inline-block}

/* ---------- 2. SVG primitives ---------- */
/* Axes + grid */
.chart-wrap svg .ax-grid    {stroke:var(--grid);stroke-width:1;fill:none}
.chart-wrap svg .ax-label   {fill:var(--faint);font-size:10px}
.chart-wrap svg .ax-title   {
  fill:var(--dim);font-size:10px;font-weight:600;
  letter-spacing:0.04em;text-transform:uppercase;
}
.chart-wrap svg .ax-note    {fill:var(--muted);font-size:11px}

/* Axis-label color helpers (multi-axis charts) */
.chart-wrap svg .ax-label-vol    {fill:var(--purple)}
.chart-wrap svg .ax-label-sharpe {fill:var(--gold)}
.chart-wrap svg .ax-label-decl   {fill:var(--btc)}

/* Lines */
.chart-wrap svg .line-accent  {stroke:var(--accent);fill:none;stroke-width:2}
.chart-wrap svg .line-decl    {stroke:var(--btc);fill:none;stroke-width:1.5;opacity:0.85}
.chart-wrap svg .line-vol     {stroke:var(--purple);fill:none;stroke-width:2}
.chart-wrap svg .line-sharpe  {stroke:var(--gold);fill:none;stroke-width:2}

/* Threshold + ex-div markers */
.chart-wrap svg .threshold-line  {stroke:var(--btc);stroke-width:1.5;stroke-dasharray:4,3;opacity:0.7;fill:none}
.chart-wrap svg .threshold-label {fill:var(--btc);font-size:10px}
.chart-wrap svg .exdiv-line      {stroke:rgba(255,255,255,0.35);stroke-width:1;stroke-dasharray:2,3;fill:none}
.chart-wrap svg .exdiv-line-soft {stroke:rgba(255,255,255,0.30);stroke-width:1;stroke-dasharray:2,3;fill:none}
.chart-wrap svg .next-ex-line    {stroke:rgba(229,161,44,0.65);stroke-width:1.5;stroke-dasharray:4,3;fill:none}
.chart-wrap svg .next-ex-label   {fill:var(--gold);font-size:10px;font-weight:600}
.chart-wrap svg .next-ex-badge   {fill:#0B0D10;stroke:rgba(229,161,44,0.6);stroke-width:1}

/* Bars */
.chart-wrap svg .bar-eligible {fill:var(--accent);opacity:0.55}
.chart-wrap svg .bar-paused   {fill:var(--faint);opacity:0.35}
.chart-wrap svg .bar-baseline {fill:var(--faint);opacity:0.55}
.chart-wrap svg .bar-current  {fill:var(--accent);opacity:0.9}

/* Dots / spotlights */
.chart-wrap svg .last-dot     {fill:var(--accent);stroke:var(--bg);stroke-width:2}

/* Forward-prediction overlay */
.chart-wrap svg .forward-zone        {fill:color-mix(in srgb, var(--accent) 5%, transparent);stroke:none}
.chart-wrap svg .forward-step-flat   {stroke:var(--btc);fill:none;stroke-width:1.5;opacity:0.55;stroke-dasharray:3,3}
.chart-wrap svg .forward-step-up     {stroke:var(--btc);fill:none;stroke-width:1.8;opacity:0.85;stroke-dasharray:3,3}
.chart-wrap svg .forward-dot         {fill:var(--btc);stroke:var(--bg);stroke-width:1.5}
.chart-wrap svg .forward-label       {fill:var(--btc);font-size:11px;font-weight:700}

/* ---------- Legend (lives outside the SVG) ---------- */
.legend{
  display:flex;gap:16px;
  font-size:11px;color:var(--dim);
  margin-top:8px;flex-wrap:wrap;
}
.legend-dot{
  width:8px;height:8px;border-radius:50%;
  display:inline-block;margin-right:6px;vertical-align:middle;
}
.legend-line{
  width:14px;height:2px;
  display:inline-block;margin-right:6px;vertical-align:middle;
}

/* ----- site/strc.css (overrides) ----- */

/* =============================================================
   _lib/ui/sites/strc.css — STRC dashboard accent + tweaks
   =============================================================
   STRC inherits all chrome from tokens.css + components.css + chart.css.
   This file only adjusts what makes STRC visually distinct from the
   generic platform default.
   ============================================================= */

:root {
  --accent:     #E84B8A;   /* STRC pink */
  --accent-dim: #6B2845;
}

/* STRC's hero ships 5 KPI tiles — matches the platform default
   set in components.css (.hero-row { grid-template-columns: repeat(5,1fr) }).
   No override needed here, but we declare it explicitly so a future
   change in the lib default doesn't silently break STRC's layout. */
.hero-row{grid-template-columns:repeat(5,1fr)}

/* ---------- Group dividers ---------- */
.group-head{
  display:flex;align-items:baseline;gap:14px;
  margin:32px 4px 14px;padding:0 4px 10px;
  border-bottom:1px solid var(--line);
}
.group-head:first-of-type{margin-top:8px}
.group-head .group-label{
  font-size:11px;font-weight:700;
  letter-spacing:0.12em;text-transform:uppercase;
  color:var(--text);margin:0;flex-shrink:0;
}
.group-head .group-tag{
  font-size:11px;color:var(--dim);
  margin:0;line-height:1.4;
}
@media (max-width:560px){
  .group-head{flex-direction:column;gap:2px;align-items:flex-start;margin:24px 4px 10px}
}
