/* All-In Alpha — extracted from base.html so 3k static pages share one cached file
   instead of inlining ~19KB each. Edit here, not in the template. */
  :root {
    color-scheme: dark;
    --plane: #07080d; --surface: rgba(22, 25, 38, 0.62); --surface-solid: #14171f;
    --ink: #f2f4ff; --ink-2: #aab3cf; --muted: #6b7490;
    --grid: rgba(255,255,255,0.05); --border: rgba(140,160,255,0.14);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70;            /* validated data hues */
    --cyan: #22d3ee; --violet: #8b5cf6; --neon: #38f2a8;
    --good: #2ee06a; --warn: #fab219; --serious: #ec835a; --crit: #ff5a5a; --down: #ff7b7b;
    --glow-blue: 0 0 18px rgba(57,135,229,.35);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--plane); color: var(--ink);
         font: 14px/1.55 "Space Grotesk", system-ui, sans-serif; overflow-x: hidden; }

  /* ── animated nebula backdrop ─────────────────────────────── */
  .bg { position: fixed; inset: -20%; z-index: -2; pointer-events: none;
        background:
          radial-gradient(38% 45% at 18% 12%, rgba(57,135,229,.16), transparent 65%),
          radial-gradient(34% 40% at 85% 8%,  rgba(139,92,246,.13), transparent 65%),
          radial-gradient(45% 50% at 70% 95%, rgba(34,211,238,.08), transparent 65%);
        animation: drift 26s ease-in-out infinite alternate; }
  .bg2 { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
         background:
           linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
           linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
         background-size: 44px 44px;
         mask-image: radial-gradient(75% 60% at 50% 30%, #000 30%, transparent 100%); }
  @keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); }
                     to   { transform: translate3d(2%, 2%, 0) scale(1.06); } }

  a { color: var(--cyan); text-decoration: none; }
  a:hover { text-shadow: 0 0 12px rgba(34,211,238,.6); }

  /* ── header + ticker tape ─────────────────────────────────── */
  header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px);
           background: rgba(7,8,13,.72); border-bottom: 1px solid var(--border); }
  .navrow { display: flex; align-items: center; gap: 26px; padding: 13px 26px; }
  .brand { font-weight: 700; font-size: 17px; letter-spacing: .4px;
           background: linear-gradient(90deg, var(--cyan), var(--s1), var(--violet), var(--cyan));
           background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
           color: transparent; animation: sheen 7s linear infinite; }
  @keyframes sheen { to { background-position: 300% 0; } }
  nav a { color: var(--ink-2); margin-right: 20px; font-weight: 600; font-size: 13px;
          letter-spacing: .6px; text-transform: uppercase; }
  nav a.active { color: var(--ink); border-bottom: 2px solid var(--cyan);
                 padding-bottom: 3px; text-shadow: 0 0 14px rgba(34,211,238,.5); }
  .livedot { margin-left: auto; color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; }
  .livedot::before { content: ""; width: 8px; height: 8px; border-radius: 50%;
                     background: var(--neon); box-shadow: 0 0 10px var(--neon);
                     animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

  main { max-width: 1160px; margin: 0 auto; padding: 26px 26px 80px; }
  h1 { font-size: 26px; margin: 10px 0 4px; letter-spacing: .3px; }
  h2 { font-size: 13px; margin: 34px 0 12px; color: var(--cyan); text-transform: uppercase;
       letter-spacing: 2.2px; font-weight: 600; }
  h2::before { content: "▮ "; color: var(--violet); }
  .sub { color: var(--muted); margin: 0 0 20px; }

  /* ── glass cards ──────────────────────────────────────────── */
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
          padding: 18px 20px; margin: 14px 0; backdrop-filter: blur(10px);
          transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .card.hoverable:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.4);
                          box-shadow: 0 12px 34px rgba(0,0,0,.5), var(--glow-blue); }
  .rise { opacity: 0; transform: translateY(14px); animation: rise .55s ease forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }

  /* ── stat tiles ───────────────────────────────────────────── */
  .statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
             gap: 14px; margin: 18px 0 8px; }
  .stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
          padding: 16px 18px; position: relative; overflow: hidden; backdrop-filter: blur(10px); }
  .stat::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
                 background: linear-gradient(90deg, transparent, var(--cyan), transparent);
                 opacity: .7; }
  .stat .v { font: 800 28px/1.15 "JetBrains Mono", monospace; letter-spacing: -.5px; }
  .stat .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; margin-top: 3px; }

  /* ── tables / chips / bars ────────────────────────────────── */
  table { border-collapse: collapse; width: 100%; }
  th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px;
       text-transform: uppercase; letter-spacing: 1.2px; padding: 8px 12px;
       border-bottom: 1px solid var(--border); }
  td { padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: middle;
       font-variant-numeric: tabular-nums; }
  tr:last-child td { border-bottom: none; }
  .num { text-align: right; font-family: "JetBrains Mono", monospace; }
  .mono { font-family: "JetBrains Mono", monospace; }
  .chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px;
          font-weight: 700; letter-spacing: .6px; border: 1px solid var(--border); }
  .chip.green   { color: var(--good); border-color: rgba(46,224,106,.55); background: rgba(46,224,106,.08); box-shadow: 0 0 12px rgba(46,224,106,.18); }
  .chip.watch   { color: var(--warn); border-color: rgba(250,178,25,.5);  background: rgba(250,178,25,.07); }
  .chip.ember   { color: var(--serious); border-color: rgba(236,131,90,.45); background: rgba(236,131,90,.06); }
  .chip.dormant { color: var(--muted); }
  .chip.flag    { color: var(--cyan); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.07); }
  .chip.contested { color: var(--crit); border-color: rgba(255,90,90,.5); background: rgba(255,90,90,.07); }
  .chip.new { color: var(--violet); border-color: rgba(139,92,246,.55); background: rgba(139,92,246,.1); }
  /* peak-conviction marker on a .track bar — shows where an idea's high-water mark sat,
     so decay doesn't erase the fact that it once crossed the green line. */
  .track { position: relative }
  .peak-mark { position:absolute; top:-2px; bottom:-2px; width:2px; background:var(--cyan);
               opacity:.75; box-shadow:0 0 6px var(--cyan); pointer-events:none; z-index:2 }

  /* ── data-hint popups: definitions for abstract terms (R, alpha, bands, flags…).
     The popup itself is a body-level floating div (#hintpop, see script below), NOT a
     ::after inside the card — cards are stacking contexts and would paint over it. ── */
  .hint { cursor: help; }
  .hint:not(.chip) { border-bottom: 1px dotted rgba(255,255,255,.4); }
  .tk { cursor: help; }  /* ticker symbols — hover shows the /hover/ticker/ card */
  .epsum { cursor: help; }  /* episode-list chips — hover shows /hover/episode/ summary */
  .up { color: var(--good); } .down { color: var(--down); }
  .muted { color: var(--muted); } .ink2 { color: var(--ink-2); }

  .track { position: relative; height: 8px; border-radius: 6px; background: rgba(255,255,255,.06);
           overflow: hidden; min-width: 90px; }
  .fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; width: 0;
          background: linear-gradient(90deg, var(--s1), var(--cyan));
          box-shadow: 0 0 12px rgba(34,211,238,.45); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
  .fill.hot { background: linear-gradient(90deg, #14b86a, var(--neon)); box-shadow: 0 0 14px rgba(56,242,168,.5); }

  .glowpulse { animation: glowpulse 2.2s ease-in-out 4; }
  /* both classes set the `animation` property, and .glowpulse is declared later — so on an
     element with BOTH it clobbered .rise, leaving opacity:0 forever and rendering newly-green
     rows as blank space (found 2026-08-31). Declare both animations for the combined case. */
  .rise.glowpulse { animation: rise .55s ease forwards, glowpulse 2.2s ease-in-out 4; }
  @keyframes glowpulse { 50% { box-shadow: 0 0 0 3px rgba(46,224,106,.25), 0 0 30px rgba(46,224,106,.35); } }

  .spark { filter: drop-shadow(0 0 4px rgba(34,211,238,.55)); }

  blockquote { margin: 8px 0 0; padding: 8px 14px; border-left: 2px solid var(--violet);
               color: var(--ink-2); font-size: 13px; border-radius: 0 8px 8px 0;
               background: rgba(139,92,246,.05); }

  /* ── expression memo (derived · ours · never scored) ──────── */
  .memo-body { color: var(--ink-2); max-width: 860px; }
  .memo-body h1 { display: none; }                     /* file title — card header owns it */
  .memo-body h2 { margin: 22px 0 8px; font-size: 12px; color: var(--violet); }
  .memo-body h2::before { content: "◆ "; color: var(--cyan); }
  .memo-body h3 { font-size: 13px; color: var(--ink); margin: 14px 0 6px; }
  .memo-body ul { margin: 6px 0; padding-left: 22px; }
  .memo-body li { margin: 5px 0; }
  .memo-body strong { color: var(--ink); }
  .memo-body code { font-family: "JetBrains Mono", monospace; font-size: 12px;
                    background: rgba(34,211,238,.08); border-radius: 5px; padding: 1px 6px;
                    color: var(--cyan); }
  .memo-body table { margin: 8px 0; }
  .memo-body hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
  select { background: var(--surface-solid); color: var(--ink); border: 1px solid var(--border);
           border-radius: 8px; padding: 7px 10px; font-family: inherit; }
  button { background: linear-gradient(90deg, var(--s1), var(--violet)); color: #fff; border: 0;
           border-radius: 8px; padding: 8px 18px; font-weight: 700; cursor: pointer;
           font-family: inherit; letter-spacing: .5px; transition: filter .2s, transform .2s; }
  button:hover { filter: brightness(1.2); transform: translateY(-1px); }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
  .avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
            border-radius: 50%; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
  .avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none;
                transition: transform .25s ease; }
  .avatar-img:hover { transform: scale(1.12); }
  canvas { max-width: 100%; }

/* sitewide footer — the not-affiliated note, on every page */
footer.legal { max-width: 1180px; margin: 54px auto 30px; padding: 18px 22px 0;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px;
  line-height: 1.75; display: flex; gap: 24px; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; }
footer.legal span:first-child { max-width: 720px; }
footer.legal strong { color: var(--ink-2); font-weight: 600; }
footer.legal a { color: var(--ink-2); text-decoration: none; }
footer.legal a:hover { color: var(--cyan); }
footer.legal .foot-links { white-space: nowrap; }
