/* The faces, served from this site (owner, 2026-11-05: no Google Fonts request, so no visitor address goes to a third
   party). EB Garamond as one variable file, weights 400 to 700; Courier Prime regular and bold. Latin subsets in WOFF2,
   made from the OFL files in static/fonts with fontTools. */
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Design v2: dark frame in gold and cream (design/cyclemetry/v2/HANDOFF_DESIGN_V2.md, sections 3 to 6).
   Type sizes two steps under the handoff's section 5 since 2026-10-30 (owner): body 16, notes 16, lead 17 to 19, plate titles 20,
   H2 26 to 34, H1 36 to 60 (hero 64); the Courier labels, tables and chart text keep their 11 to 13 px. */
:root {
  --bg: #0B0906;
  --panel: #110D08;
  --panel-hi: #1A140A;
  --panel-alt: #120E08;
  --rule: #3A2F1C;
  --grid: #2A2218;
  --text: #F1E6CC;
  --text-soft: #D9CBAA;
  --muted: #B9A88A;
  --axis: #9C8C70;
  --cream: #EDE3CC;
  --gold: #E2B04A;
  --gold-hi: #FFE3A3;
  --gold-soft: #B98F3A;
  --ep2012: #5B8FD6;   /* the epochs, as cm.js C (owner, 2026-11-04) */
  --ep2016: #B0507F;
  --ep2016-text: #B9658E;   /* the rose as type: a cycle's name in its colour (cm.js cycleText; 4.9 to 1 on the panel) */
  --ep2020: #45AA8B;
  --tan: #76654C;      /* the old browns, for what is not an epoch */
  --wood: #8C7A5C;
  --sand: #B3A285;
  --violet: #8C7BD6;   /* the categorical palette after the epochs' three (cm.js C.cat) */
  --copper: #C47F45;
  --cyan: #3E9FCB;
  --up: #86B88F;
  --up-hi: #B5DDBA;
  --down: #D2604A;
  --down-hi: #E8907C;
  --temp-cold: #6F93B0;
  --serif: "EB Garamond", Georgia, serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --wrap: 1320px;
  /* v1 names kept until each page is restyled; they now point at v2 colors */
  --paper: var(--bg);
  --ink: var(--text);
  --red: var(--down);
  --green: var(--up);
  --blue: var(--temp-cold);
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none; /* no faux italic or bold: the owner has ruled out italics */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
i, em, cite, address, dfn, var { font-style: normal; }

a { color: var(--gold); }
a:hover { color: var(--gold-hi); }

@keyframes cmpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 227, 163, 0.55); } 60% { box-shadow: 0 0 0 9px rgba(255, 227, 163, 0); } }
@keyframes cmrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pulse { animation: cmpulse 2.4s ease-out infinite; }
.rise { animation: cmrise 0.9s ease-out both; }
@media (prefers-reduced-motion: reduce) { .pulse, .rise { animation: none; } }

/* masthead: logo, day counter and the barcode underneath; the menu is the column on the left */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-in { padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }  /* wraps at every width: between about 720 and 1300 px the counter and the clock did not fit one line and pushed the page sideways (found 2026-11-04) */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand img { display: block; width: 80px; height: 80px; }
.brand span { font-size: 28px; font-weight: 600; letter-spacing: 0.4px; }
.daycount { font-family: var(--mono); font-size: 13px; letter-spacing: 1.2px; color: var(--gold); text-transform: uppercase; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.daycount[hidden] { display: none; }
.daycount .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); }
/* the clock (owner 2026-10-30): Copenhagen date, time to the second and zone, at the right end of the masthead */
.clock { margin-left: auto; font-family: var(--mono); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-soft); display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.clock[hidden] { display: none; }
.clock .t { color: var(--gold-hi); font-size: 15px; font-variant-numeric: tabular-nums; }
.clock .z { color: var(--muted); }
.stripe { position: relative; width: 100%; height: 8px; background: var(--panel); }
.stripe canvas { display: block; width: 100%; height: 8px; cursor: crosshair; }
.stripe-tip { position: absolute; top: 12px; transform: translateX(-50%); z-index: 20; background: var(--panel); color: var(--text); border: 1px solid var(--gold-soft); padding: 2px 8px; font-family: var(--mono); font-size: 12px; white-space: nowrap; pointer-events: none; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: transparent; color: var(--text); border: 1px solid var(--gold-soft); font-family: var(--mono); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 16px; height: 1.5px; background: var(--gold); position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; } .menu-btn .bars::after { top: 5px; }

/* page shell: menu column on the left, content on the right */
.shell { flex: 1 0 auto; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidenav { border-right: 1px solid var(--rule); }
.sidenav nav { position: sticky; top: var(--mast-h, 0px); max-height: calc(100vh - var(--mast-h, 0px) - var(--foot-h, 0px));  /* below the pinned masthead */ overflow-y: auto; padding: 32px 20px 40px 24px; display: flex; flex-direction: column; gap: 26px; }
.nav-group { display: flex; flex-direction: column; }
.nav-h { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
/* one line per section (owner, 2026-11-10): the sections read as the menu's headings did, each a link */
.sidenav a.nav-top { padding: 8px 0 8px 12px; color: var(--gold); letter-spacing: 1.6px; }
.sidenav a.nav-top:hover { color: var(--gold-hi); }
.sidenav a { display: block; padding: 7px 0 7px 12px; margin-left: -12px; border-left: 2px solid transparent; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.sidenav a:hover { color: var(--text); }
.sidenav a.on { color: var(--gold-hi); border-left-color: var(--gold); background: linear-gradient(90deg, var(--panel-hi), transparent); }

main { width: 100%; max-width: var(--wrap); padding: 40px 32px 64px; }

/* narrow screens: the menu becomes a drawer behind the Menu button */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); background: var(--bg); border-right: 1px solid var(--rule); transform: translateX(-102%); transition: transform 0.2s ease-out; visibility: hidden; }
  .sidenav nav { top: 0; max-height: none; height: 100%; padding-top: 28px; }
  body.nav-open .sidenav { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(5, 4, 2, 0.6); }
  main { padding: 32px 24px 56px; }
}
@media (max-width: 720px) {
  .masthead-in { flex-wrap: wrap; padding: 12px 16px; gap: 10px 14px; }
  .brand img { width: 64px; height: 64px; }
  .brand span { font-size: 26px; }
  .menu-btn { order: 2; }
  .daycount { order: 3; flex-basis: 100%; white-space: normal; letter-spacing: 1px; }  /* the longer counter wraps on a phone */
  .clock { order: 4; flex-basis: 100%; margin-left: 0; gap: 10px; font-size: 12px; }
  .clock .d { display: none; }
  main { padding: 28px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) { .sidenav { transition: none; } }

/* footer */
.sitefoot { border-top: 1px solid var(--rule); }
.sitefoot-in { padding: 28px 24px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.5; }
.sitefoot-in img { display: block; width: 40px; height: 40px; }
.sitefoot-in .grow { flex: 1 1 420px; margin: 0; }
/* the footer links (owner, 2026-11-05): one row on the right, level with the disclaimer, instead of a loose line under it */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; letter-spacing: 1.2px; text-transform: uppercase; }
.sitefoot-in .foot-links a { color: var(--text-soft); text-decoration: none; }
.sitefoot-in .foot-links a:hover { color: var(--gold); }
@media (max-width: 720px) { .foot-links { justify-content: flex-start; flex-basis: 100%; } }
/* the pinned footer of public and free (owner, 2026-11-13: "lav footeren fast, ligesom header"): it stays at the foot of
   the window as the masthead stays at the top, compact, so the ways in are always in sight; on a phone the links run in
   one row that scrolls sideways inside the footer, never the page */
.sitefoot.pinned { position: sticky; bottom: 0; z-index: 40; background: var(--bg); margin-top: auto; }   /* on a short page too: body is a column as tall as the window */
.sitefoot.pinned .sitefoot-in { padding: 10px 24px; gap: 6px 28px; }
.sitefoot.pinned .sitefoot-in img { width: 28px; height: 28px; }
.sitefoot.pinned .grow { flex-basis: 360px; }
@media (max-width: 720px) {
  .sitefoot.pinned .sitefoot-in { padding: 8px 16px 10px; gap: 6px; }
  .sitefoot.pinned .sitefoot-in img, .sitefoot.pinned .foot-src { display: none; }
  .sitefoot.pinned .grow { flex-basis: 100%; font-size: 11px; }
  .sitefoot.pinned .foot-links { flex-wrap: nowrap; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .sitefoot.pinned .foot-links::-webkit-scrollbar { display: none; }
  .sitefoot.pinned .foot-links a { white-space: nowrap; }
}

/* hero and type (sizes from handover section 5) */
.kicker, .caps, .section, .flabel, legend {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 700;
}
.kicker { margin: 0 0 14px; font-weight: 400; font-size: 13px; letter-spacing: 2px; color: var(--gold); }
h1 { font-weight: 500; font-size: clamp(36px, 6vw, 60px); line-height: 1.02; letter-spacing: -1px; margin: 0 0 18px; }
h2 { font-weight: 500; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; margin: 0 0 12px; }
h3 { font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; color: var(--text-soft); margin: 0 0 28px; max-width: 760px; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0 0 24px; }
.why { max-width: 820px; margin: 0 0 20px; }
.section { margin: 28px 0 8px; color: var(--gold); }
.muted { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.caps.red { color: var(--red); }
.note { font-family: var(--mono); font-size: 13px; color: var(--red); }

/* buttons: primary gold with dark text, secondary with a gold frame, at least 44 px */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; font-family: var(--mono); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; background: var(--gold); color: var(--bg); border: 1px solid var(--gold); cursor: pointer; }
.btn:hover { background: var(--gold-hi); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--gold-soft); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-hi); }


/* ---- shared components (handover section 6) ---- */

/* the readout on the hand-drawn charts (cm.js showTip): the ECharts tooltip's twin */
.cm-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--panel-hi); border: 1px solid var(--gold-soft); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); padding: 8px 12px; color: var(--text); max-width: 340px; font-family: var(--serif); font-size: 14px; line-height: 1.4; }
.cm-tip[hidden] { display: none; }
.cm-tip .k { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cm-tip .v { font-size: 24px; line-height: 1.15; color: var(--text); }
.cm-tip .t { color: var(--text-soft); }
.cm-tip b { color: var(--text); font-weight: 600; }
.cm-tip .up { color: var(--up); } .cm-tip .down { color: var(--down); }

/* chart plate: dark panel, 1 px frame, small gold corners top left and bottom right, legend underneath */
.chart-plate { position: relative; margin: 0 0 28px; padding: 20px 20px 16px; background: var(--panel); border: 1px solid var(--rule); }
.chart-plate::before, .chart-plate::after { content: ""; position: absolute; width: 28px; height: 28px; pointer-events: none; }
.chart-plate::before { top: -1px; left: -1px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.chart-plate::after { right: -1px; bottom: -1px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.plate-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 0 0 12px; }
.plate-h h2, .plate-h h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.2; }
.plate-h .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
/* the key of a chart of one line a cycle stands above it (owner, 2026-11-22; _components.html key_top, epochs.js lines) */
.chart-plate .legend.top { margin: 0 0 10px; padding: 0 0 8px; border-top: 0; border-bottom: 1px solid var(--grid); }
/* a cycle's name in the cycle's colour wherever it stands (owner, 2026-11-22; cm.js cycleTextClass): the name alone,
   whatever the row, the bar or the cell beside it is coloured for */
.cy-ep2012 { color: var(--ep2012) !important; } .cy-ep2016 { color: var(--ep2016-text) !important; } .cy-ep2020 { color: var(--ep2020) !important; }
.cy-violet { color: var(--violet) !important; } .cy-gold { color: var(--gold) !important; } .cy-none { color: var(--text-soft, #D9CBAA); }
/* a page drawn for X (cm.js FOR_X, plate.js exportX; PERSPECTIVE_BRIEF 20.3, X-V1): a plate made for the phone (data-x)
   has a content 300 px wide in any window, so its chart draws as on a phone and is saved at 10/3 of that size, where
   12 px of type is 40 px. A plate without the mark is saved as the site's wide plate, as before. */
.for-x .chart-plate[data-x], .for-x .vis-card[data-x] { box-sizing: content-box; width: 300px; max-width: none; }
.chart-plate .legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--grid); font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--axis); }
.chart-plate .legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.chart-plate .legend i.dash { border-top-style: dashed; }
.chart-plate .legend i.dots { border-top-style: dotted; border-top-width: 2px; }
.chart-plate .legend i.ramp { width: 30px; height: 10px; border: 0; border-radius: 2px; }
/* a spiral's marks in its legend (cm.js cycleRings): a dot at a cycle's high, a ring at the low after it */
.chart-plate .legend i.mark { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #FFE3A3; background: #FFE3A3; }
.chart-plate .legend i.mark.low { background: var(--bg, #0B0906); }
.chart-plate .legend i.sand { color: var(--sand); }
.chart-plate .legend i.dot { width: 9px; height: 9px; border: 0; border-radius: 50%; background: currentColor; }
.chart-plate .legend i.sq { width: 10px; height: 10px; border: 0; border-radius: 2px; background: currentColor; }
.chart-plate .legend i.gold-ramp { background: linear-gradient(90deg, rgb(255,239,176), rgb(246,194,76), rgb(227,138,38), rgb(180,74,28), rgb(118,36,26), rgb(62,18,24)); }
.chart-plate .legend .cream { color: var(--cream); } .chart-plate .legend .ep2012 { color: var(--ep2012); } .chart-plate .legend .ep2016 { color: var(--ep2016); } .chart-plate .legend .ep2020 { color: var(--ep2020); } .chart-plate .legend .sand { color: var(--sand); } .chart-plate .legend .blue { color: var(--ep2012); } .chart-plate .legend .rose { color: var(--ep2016); } .chart-plate .legend .teal { color: var(--ep2020); } .chart-plate .legend .violet { color: var(--violet); } .chart-plate .legend .copper { color: var(--copper); } .chart-plate .legend .cyan { color: var(--cyan); } .chart-plate .legend .wood { color: var(--wood); } .chart-plate .legend .tan { color: var(--tan); } .chart-plate .legend .gold { color: var(--gold); } .chart-plate .legend .up { color: var(--up); } .chart-plate .legend .down { color: var(--down); }
.chart-plate .legend span { color: var(--axis); }
.chart-plate .legend i.g-top, .chart-plate .legend i.g-bot { width: auto; height: auto; border: 0; margin-right: 6px; font-style: normal; font-size: 11px; }
.chart-plate .legend i.g-top::before { content: "\25B2"; color: var(--cream); }
.chart-plate .legend i.g-bot::before { content: "\25BD"; color: var(--sand); }
.chart-plate .legend .cold { color: #6F93B0; }
.chart-plate .legend i.g-dia { width: auto; height: auto; border: 0; margin-right: 6px; font-style: normal; font-size: 11px; }
.chart-plate .legend i.g-dia::before { content: "\25C6\25C6"; letter-spacing: 2px; background: linear-gradient(90deg, var(--down) 50%, var(--up) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chart-plate .legend i.g-hollow { width: 9px; height: 9px; border: 1.5px solid var(--sand); border-radius: 50%; }
.chart-plate .legend i.g-sq { width: 9px; height: 9px; border: 0; background: var(--gold-soft); box-shadow: 13px 0 0 -1px var(--panel), 13px 0 0 0 var(--gold-soft); margin-right: 19px; }
.chart-plate .legend i.box { width: 16px; height: 10px; border: 1px dashed var(--gold-soft); background: rgba(226, 176, 74, 0.12); }
.chart-plate .legend i.span-box { width: 16px; height: 10px; border: 1px dashed rgba(237, 227, 204, 0.5); background: rgba(237, 227, 204, 0.13); }  /* CM.C.span */
.chart-plate .src { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; color: var(--axis); }
@media (max-width: 720px) { .chart-plate { padding: 14px 10px 12px; margin-left: -4px; margin-right: -4px; } }

/* enlarge (owner 2026-10-29): the button in every plate header and view card; the layer covers the content area,
   the masthead and the menu stay, the plate on the left and its notes in a column on the right (plate.js) */
.plate-h .tag { margin-left: auto; }
.plate-max { margin-left: 12px; min-height: 32px; padding: 0 10px; background: transparent; color: var(--gold); border: 1px solid var(--gold-soft); font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer; }
.plate-max:hover, .plate-max:focus-visible { color: var(--gold-hi); border-color: var(--gold); }
.vis-card header .plate-max { position: absolute; top: 18px; right: 18px; margin: 0; }
/* the PNG button (2026-10-30) sits before Forstør and stays in the enlarged view */
.plate-png { margin-left: 12px; min-height: 32px; padding: 0 10px; background: transparent; color: var(--muted); border: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer; }
.plate-png:hover, .plate-png:focus-visible { color: var(--gold-hi); border-color: var(--gold); }
.plate-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: 12px; }
.plate-btns .plate-png { margin-left: 0; }
.csv-lock { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--text-soft); }  /* what a subscription adds (plate.js) */
.csv-lock a { color: var(--gold); }
.vis-card header .plate-btns { position: absolute; top: 18px; right: 118px; margin: 0; }
/* a choice in a plate's head, beside its tag (owner, 2026-11-14: the staircase on a linear or a log scale): two or
   three joined buttons, the pressed one is what is drawn. Not part of a photographed plate (chart_png.py hides it) */
.plate-pick { display: inline-flex; margin-left: 12px; }
.plate-pick button { min-height: 32px; padding: 0 10px; background: transparent; color: var(--muted); border: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer; }
.plate-pick button + button { margin-left: -1px; }
.plate-pick button:hover, .plate-pick button:focus-visible { position: relative; color: var(--gold-hi); border-color: var(--gold); }
.plate-pick button[aria-pressed="true"] { position: relative; color: var(--bg); background: var(--gold); border-color: var(--gold); }
.plate-layer { position: fixed; z-index: 55; top: var(--layer-top, 0px); left: 232px; right: 0; bottom: 0; background: var(--bg); overflow: auto; padding: 20px 32px 48px; }
.plate-layer[hidden] { display: none; }
.plate-layer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 16px; }
.plate-layer-bar .kicker { margin: 0; }
.plate-layer-close small { font-size: 11px; color: var(--muted); margin-left: 8px; letter-spacing: 1px; }
/* the plate fills the width and the chart the height of the screen; the notes follow under it (owner 2026-10-30) */
.plate-layer-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.plate-layer-in.one .plate-layer-side { display: none; }
.plate-layer .chart-plate { margin: 0; }
.plate-layer .chart-plate .plate-max { display: none; }
.plate-layer .chart { height: calc(100vh - var(--layer-top, 0px) - 236px) !important; min-height: 320px; }
.plate-layer .notes { margin: 0; }
.plate-layer .note-text, .plate-layer .kf-meta { max-width: none; margin: 0 0 14px; }
.plate-layer .vis-card .plate-max { display: none; }
.plate-layer .vis-card dl { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; gap: 4px 36px; }
body.plate-max-open { overflow: hidden; }
@media (max-width: 1100px) { .plate-layer { left: 0; } }
@media (max-width: 980px) { .plate-layer { padding: 16px 16px 40px; } .plate-layer .vis-card dl { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } .plate-layer .chart { height: 60vh !important; min-height: 280px; } }

/* notes beside every chart: why, how to read it, what it says about the cycle */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 36px; margin: 8px 0 40px; }
.note-c { border-left: 1px solid var(--gold-soft); padding: 2px 0 2px 18px; }
.note-c h4 { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.note-c p { margin: 0 0 10px; font-size: 16px; line-height: 1.45; color: var(--text-soft); }
.note-c p:last-child { margin-bottom: 0; }

/* key-figure strip: label, big number, source or date */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 0 0 36px; }
.kpi { padding: 22px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-k { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.kpi-v { font-size: clamp(28px, 2.6vw, 34px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }
.kpi-v.up { color: var(--up); } .kpi-v.down { color: var(--down); }
.kpis.dense .kpi-v { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.15; }
.kpi-s { font-family: var(--mono); font-size: 12px; color: var(--muted); }
/* the live card (owner 2026-10-30): a pulsing dot before the label, the value coloured by its last move */
.kpi.live .kpi-k::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); margin-right: 8px; vertical-align: 1px; animation: cmpulse 2.4s ease-out infinite; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { padding: 16px 14px; } .kpi-v { font-size: 28px; } .kpi-k { letter-spacing: 1.2px; } }

/* card: 1 px frame and a faint gradient */
.tile { display: block; padding: 20px 22px; border: 1px solid var(--rule); background: linear-gradient(180deg, var(--panel-alt), var(--bg)); color: var(--text); text-decoration: none; min-width: 0; }
a.tile:hover { border-color: var(--gold-soft); color: var(--text); }
.tile .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.tile h3 { margin: 6px 0 8px; font-size: 20px; font-weight: 500; line-height: 1.2; }
.tile p { margin: 0; color: var(--text-soft); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* hypothesis field (forecasts): gold 12 % fill, dashed frame */
.hyp { background: rgba(226, 176, 74, 0.12); border: 1px dashed var(--gold-soft); padding: 12px 14px; }

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: end;
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.filters.layers { align-items: center; border-bottom: 1px solid var(--rule); }
.filters label { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
.filters select { max-width: 100%; }  /* a long option (a series name on /price) never widens the page on a phone */
.filters label.chk { flex-direction: row; align-items: center; gap: 6px; }
.filters .pair { display: flex; align-items: center; gap: 6px; }
.filters .pair input { width: 6em; }
.filters select, .filters input[type=date] {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); padding: 4px 6px; border-radius: 0;
}
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; align-items: end; }
.seg legend { padding: 0; margin-bottom: 4px; width: 100%; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.seg button {
  font: inherit; background: var(--panel); color: var(--ink); border: 1px solid var(--rule); padding: 4px 10px; cursor: pointer; margin-left: -1px;
}
.seg button.on { background: var(--gold); color: var(--bg); border-color: var(--gold); }
button.link { font: inherit; background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.sw { display: inline-block; width: 14px; height: 0; border-top: 3px solid; }
.sw.gold { border-color: var(--gold); }
.sw.red { border-color: var(--red); }
.sw.blue { border-color: var(--blue); }
.sw.dash { border-top-style: dashed; border-top-width: 2px; }
.sw.ink { border-color: var(--ink); }
.sw.tri, .sw.dia { width: auto; border: 0; font-style: normal; font-size: 11px; }
.sw.tri::before { content: "\25B2\25BD"; color: var(--cream); letter-spacing: 2px; }
.sw.dia::before { content: "\25C6\25C6"; letter-spacing: 2px; background: linear-gradient(90deg, var(--down) 50%, var(--up) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
details.types summary { cursor: pointer; }
details.types[open] > div { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }

/* charts */
/* three chart heights (owner 2026-10-30): s for a strip or a row's history, m for a plate, l for the overlays and the zoomed views */
.chart { width: 100%; }
.chart.s { height: 260px; }
.chart.m { height: 360px; }
.chart.l { height: 460px; }
@media (max-width: 720px) { .chart.s { height: 220px; } .chart.m { height: 280px; } .chart.l { height: 380px; } }
.range-label { margin: -4px 0 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.source, .foot { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.notice { font-family: var(--mono); font-size: 13px; color: var(--red); margin: 8px 0 0; }

/* tables (v2): Courier headings in gold, alternating rows, a "today" row; wide tables scroll in .table-wrap */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; border-bottom: 1px solid var(--gold-soft); padding: 8px 10px; white-space: nowrap; }
td { border-bottom: 1px solid var(--grid); padding: 7px 10px; white-space: nowrap; }
tbody tr:nth-child(even) td { background: var(--panel-alt); }
tr.now td, tr.open td { background: var(--panel-hi); color: var(--gold-hi); }
th.n, td.n { text-align: right; }
/* the reply scout's accounts (Studio): fits the page without a sideways scroll; the text columns wrap */
table.xacc { table-layout: fixed; }
table.xacc td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
table.xacc td.n:not(.state) { white-space: nowrap; }
table.xacc td.state { text-align: left; }
table.xacc th:nth-child(1) { width: 17%; } table.xacc th:nth-child(2) { width: 5%; } table.xacc th:nth-child(3) { width: 10%; }
table.xacc th:nth-child(4) { width: 11%; } table.xacc th:nth-child(5) { width: 15%; } table.xacc th:nth-child(7) { width: 15%; }
table.xacc th { white-space: normal; vertical-align: bottom; }
table.xacc th.xf, table.xacc td.xf { text-align: center; }
table.xacc .xf-yes { color: var(--up); } table.xacc .xf-no { color: var(--down); }
table.xacc .xf svg { vertical-align: -3px; }
table.xacc td.act .btn { margin: 0 4px 6px 0; }
@media (max-width: 900px) {
  table.xacc, table.xacc tbody, table.xacc tr, table.xacc td { display: block; width: auto; }
  table.xacc thead { display: none; }
  table.xacc tr { border-bottom: 1px solid var(--grid); padding: 10px 0; }
  table.xacc td { border: 0; padding: 3px 0; text-align: left; }
  table.xacc td.fol::before { content: "Followers "; color: var(--axis); } table.xacc td.ppd::before { content: "Posts a day "; color: var(--axis); }
  table.xacc td.xf { text-align: left; } table.xacc td.xf::before { content: "Followed on X "; color: var(--axis); }
}
td.up, .up { color: var(--up); } td.down, .down { color: var(--down); }
tr.now td.up, tr.open td.up { color: var(--up-hi); } tr.now td.down, tr.open td.down { color: var(--down-hi); }

/* texts */
.texts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.texts p { margin: 0 0 12px; }

/* noegletal (v2): week calendar cards, then every figure; changes green when up and red when down */
#week p { margin: 0; }
#week strong { color: var(--text); font-weight: 500; }
.kf-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 36px; }
.kf-day { border: 1px solid var(--rule); padding: 18px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, var(--panel-alt), var(--bg)); }
.kf-day.now { border-color: var(--gold); background: var(--panel-hi); }
.kf-day .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.kf-day .t { font-size: 20px; font-weight: 500; line-height: 1.15; }
.kf-day .s { font-family: var(--mono); font-size: 12px; color: var(--axis); }
table.kf { font-size: 15px; }
table.kf tr.grp th { font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); padding-top: 22px; border-bottom: 1px solid var(--gold-soft); background: var(--bg); }
table.kf tr.row { cursor: pointer; } table.kf tr.row:hover td { background: var(--panel-hi); }
table.kf td { font-family: var(--serif); }
table.kf td.n { font-family: var(--mono); font-size: 13px; }
table.kf td.v { font-weight: 700; color: var(--text); }
table.kf td.v.up { color: var(--up); } table.kf td.v.down { color: var(--down); }
table.kf td.src { font-family: var(--mono); font-size: 11px; color: var(--muted); }
table.kf tr.miss td { color: var(--muted); }
table.kf tr.hist td { background: var(--panel); white-space: normal; padding: 12px 14px; }
table.kf td:first-child, table.kf td:nth-child(7) { white-space: normal; }
table.kf td:first-child { min-width: 230px; } table.kf td:nth-child(7) { min-width: 150px; }
.kf-meta { margin: 2px 0 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 1240px) { table.kf th:nth-child(8), table.kf tr.row td:nth-child(8) { display: none; } }
@media (max-width: 1000px) { table.kf th:nth-child(4), table.kf tr.row td:nth-child(4), table.kf th:nth-child(5), table.kf tr.row td:nth-child(5) { display: none; } }
@media (max-width: 680px) { table.kf th:nth-child(3), table.kf tr.row td:nth-child(3), table.kf th:nth-child(7), table.kf tr.row td:nth-child(7) { display: none; } table.kf { font-size: 14px; } table.kf td, table.kf th { white-space: normal; } table.kf td:first-child { min-width: 0; } .kf-cal { grid-template-columns: 1fr 1fr; } .kf-day { padding: 14px; } .kf-day .t { font-size: 19px; } }
.kf-grain { margin: 4px 0 8px; } .kf-grain button { font: 12px var(--mono); background: var(--panel); color: var(--text); border: 1px solid var(--rule); padding: 4px 10px; margin-right: -1px; cursor: pointer; }
.kf-grain button.on { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* visninger (v2): group headers, dark cards with the letter and source as the tag */
/* the Views gallery (owner, 2026-11-03): ten cards alike, the texts in the enlarged view only */
.vis-gallery { margin-top: 32px; }
/* The overview pages behind The clock, Bitcoin Stats and Series (owner, 2026-11-10): three cards to a row as on Views,
   each with the page's own picture on top */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 16px 20px; background: var(--panel); border: 1px solid var(--rule); color: var(--text); text-decoration: none; transition: border-color 0.15s; }
.hub-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 28px; height: 28px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.hub-card:hover { border-color: var(--gold-soft); }
.hub-card .hub-pic { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 628; object-fit: cover; border: 1px solid var(--rule); background: var(--bg); margin-bottom: 6px; }
.hub-card .hub-words { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px; text-align: center; font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--gold-hi); }
.hub-card .hub-words small { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.hub-card .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.hub-card h3 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.2; }
.hub-card p { margin: 0; color: var(--text-soft); }
.hub-card .hub-lock { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.vis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }  /* 340: the drawings stay legible */
.vis-grid.gallery .vis-card { cursor: pointer; gap: 10px; transition: border-color 0.15s; }
.vis-grid.gallery .vis-card:hover { border-color: var(--gold-soft); }
.vis-grid.gallery .vis-card dl, .vis-grid.gallery .vis-credit, .vis-grid.gallery .vis-card .plate-png { display: none; }  /* PNG from the enlarged view */
.vis-grid.gallery .vis-card header { padding-right: 96px; }  /* room for the Enlarge button */
.vis-grid.gallery #vis-P .vis-art { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }  /* the letter is long; the card shows its start */
/* one view on its own page (owner, 2026-11-17): the three texts side by side under the drawing, as in the enlarged view */
.vis-grid.single { grid-template-columns: minmax(0, 1fr); }
.vis-grid.single .vis-teaser { display: none; }
.vis-grid.single .vis-card dl { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; gap: 4px 36px; }
@media (max-width: 980px) { .vis-grid.single .vis-card dl { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.vis-teaser { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-soft); }
.vis-credit { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.plate-layer .vis-teaser { display: none; }
.vis-card { position: relative; background: var(--panel); border: 1px solid var(--rule); padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.vis-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 28px; height: 28px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.vis-card header { display: flex; flex-direction: column; gap: 4px; }
.vis-card header .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.vis-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0; }
.vis-art { margin: 4px 0 6px; }
.vis-card dl { display: grid; grid-template-columns: 1fr; gap: 4px 16px; margin: 0; padding-top: 12px; border-top: 1px solid var(--grid); font-size: 15px; line-height: 1.5; }
.vis-card dt { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); padding-top: 8px; }
.vis-card dd { margin: 0; color: var(--text-soft); }
.vis-card dd .vis-figs { display: block; margin: 0 0 6px; font-variant-numeric: tabular-nums; }  /* a figure a line (owner, 2026-11-18) */
.vis-card dd .vis-figs > span { display: block; }
.letter { border: 1px dashed var(--gold-soft); background: var(--panel-alt); padding: 14px 18px; font-size: 16px; line-height: 1.8; color: var(--text); }
.letter .caps { font-size: 10px; color: var(--gold); margin: 0 0 6px; }
.letter svg.spark { display: inline-block; vertical-align: middle; height: auto; }
.letter .legend { display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px dashed var(--rule); margin: 8px 0 0; padding-top: 6px; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--axis); }
@media (max-width: 720px) { .vis-grid { grid-template-columns: 1fr; } .vis-card { padding: 16px 12px; } }

/* prognose (v2): every window is a hypothesis field; the first card is "now" */
.kpis.windows { background: rgba(226, 176, 74, 0.06); }
.kpis.windows .kpi { border-style: dashed; border-color: var(--gold-soft); }
.kpis.windows .kpi:first-child { background: var(--panel-hi); }
.kpis.windows .kpi-v { color: var(--gold-hi); }
.kpis.windows .kpi-s { font-family: var(--serif); font-size: 15px; line-height: 1.4; color: var(--text-soft); }
.prog-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.prog-card { border: 1px solid var(--rule); background: linear-gradient(180deg, var(--panel-alt), var(--bg)); padding: 20px 22px; font-size: 15px; line-height: 1.5; color: var(--text-soft); min-width: 0; }
.prog-card.now { background: var(--panel-hi); border-color: var(--gold-soft); }
.prog-card.hyp { background: rgba(226, 176, 74, 0.12); border: 1px dashed var(--gold-soft); }
.prog-card p { margin: 0 0 10px; }
.prog-card b { color: var(--text); font-weight: 600; }
.prog-card .caps { margin: 0 0 8px; color: var(--gold); }
.prog-head { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.2; margin: 0 0 12px; color: var(--gold-hi); }
.prog-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.caps.green { color: var(--up); }
sup.dag { color: var(--gold-hi); font-weight: 700; cursor: help; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0; border-bottom: 1px solid var(--grid); font-size: 15px; color: var(--text-soft); }
.checks li small { display: block; color: var(--muted); font-family: var(--mono); font-size: 12px; margin-left: 98px; }
.checks .st { display: inline-block; width: 86px; margin-right: 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 2px 0; border: 1px solid currentColor; }
.checks li.ok .st { color: var(--up); } .checks li.wait .st { color: var(--muted); } .checks li.bad .st { color: var(--down); }
@media (max-width: 720px) { .prog-two, .prog-cards { grid-template-columns: 1fr; } .checks li small { margin-left: 0; } }

/* fakta */
.clock-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 8px 0 12px; }
.clock-strip > div { padding: 10px 12px 10px 0; display: flex; flex-direction: column; gap: 2px; }
.clock-strip .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.clock-strip .v { font-size: 18px; font-weight: 700; }
.clock-strip .s { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.note-text { max-width: 820px; font-size: 15px; color: var(--text-soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.card { background: var(--panel); border: 1px solid var(--rule); padding: 10px 12px; font-family: var(--mono); font-size: 13px; }
.card h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.card p { margin: 0; }
.muted-k { color: var(--muted); }
section { margin-bottom: 8px; }

/* plancher (v2): three plates on the dark frame; rises green, falls red, epochs bronze to gold */
.plate-art svg { display: block; }
.plate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
.notes.one { grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 980px) { .plate-row { grid-template-columns: 1fr; } }

/* seismograf (v2): the sheet on a chart plate, the shock list in the shared type */
.seis-sheet { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; padding: 0 8px; }
.seis-sheet > div { min-width: 760px; }
/* the shocks' reading above, the strikes below at the page's full width (owner, 2026-11-17: the list grows with every strike) */
.seis-shocks { margin-top: 8px; } .seis-shocks .note-c { max-width: 960px; }
.seis-strikes { margin-top: 28px; }
.meteors { list-style: none; padding: 0; margin: 8px 0 0; font-size: 15px; }
.meteors li { display: grid; grid-template-columns: 28px 92px 1fr 150px 110px; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.meteors-head { display: grid; grid-template-columns: 28px 92px 1fr 150px 110px; gap: 8px; align-items: end; padding: 10px 0 8px; margin-top: 12px; border-bottom: 1px solid var(--gold-soft); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.meteors-head b { font-weight: 400; }
.meteors-head small { display: block; margin-top: 3px; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.3; }
.meteors-head .p, .meteors-head .r { text-align: right; }
.meteors .n { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; color: var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 700; align-items: center; justify-content: center; background: var(--down); }
.meteors .n.up { background: var(--up); }
.meteors .n.ring { background: transparent; border: 2px solid var(--down); width: 16px; height: 16px; }
.meteors .n.ring.up { border-color: var(--up); }
.meteors .rec-tag { margin-left: 6px; font-family: var(--mono); font-size: 11px; color: var(--gold); text-decoration: none; border: 1px solid var(--gold-soft); border-radius: 3px; padding: 0 5px; }
.meteor-pick { display: inline-flex; margin: 6px 0 0; }
.chart-plate .legend i.ring { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; background: transparent; }
.meteors .d, .meteors .r { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.meteors i { font-style: normal; color: var(--gold); font-family: var(--mono); font-size: 12px; }
.meteors .t { color: var(--text); }
.meteors .t a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-soft); }
.meteors .t small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.meteors .meteor-video { margin-left: 8px; padding: 1px 8px; font-size: 11px; vertical-align: baseline; }
.meteors .meteor-video.made { background: transparent; color: var(--up-hi); border-color: var(--up); }
.meteors .meteor-video.busy { background: transparent; color: var(--gold-hi); border-color: var(--gold); }
.meteors .p { text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; } .meteors .p.down { color: var(--down); } .meteors .p.up { color: var(--up); }
.meteors .r { text-align: right; }
.meteors .p small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; } .meteors .p small.down { color: var(--down); } .meteors .p small.up { color: var(--up); }
#shock-text .small { font-size: 15px; color: var(--muted); }
@media (max-width: 820px) { .meteors li, .meteors-head { grid-template-columns: 24px 82px 1fr 80px; } .meteors .r, .meteors-head .r { grid-column: 3 / 5; text-align: left; } .meteors-head small { display: none; } }

/* almanak (v2): the tide tables on the dark frame; green up and red down only where a price moved */
.alm-art svg { display: block; }
.alm-table tr.ev td { color: var(--gold-hi); }
.alm-table tr.el td { color: var(--gold); }
.alm-table tr.wk td { border-bottom-color: var(--rule); }
.alm-table td.bar { width: 90px; } .alm-table td.bar i { display: block; height: 6px; background: var(--gold-soft); }
.alm-table td.lo { color: var(--gold-hi); font-weight: 700; }
.alm-moon-wrap { margin: 8px 0 40px; padding: 22px; border: 1px solid var(--rule); background: linear-gradient(180deg, var(--panel-alt), var(--bg)); }
.alm-moon { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; }
.alm-moon-text { margin: 0 0 14px; font-size: 16px; color: var(--text-soft); }
.alm-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 12px; }
.alm-numbers div { display: flex; flex-direction: column; gap: 2px; }
.alm-numbers span { font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; } .alm-numbers span.gold { color: var(--gold-hi); }
.alm-numbers small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.alm-saying { margin: 0; padding: 4px 0 4px 16px; border-left: 1px solid var(--gold); font-size: 18px; color: var(--text); }
.heat-wrap { overflow-x: auto; }
.heat { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: separate; border-spacing: 1px; font-family: var(--mono); }
.heat col.labc { width: 96px; }
.heat th { font-weight: 400; font-size: 10px; color: var(--axis); padding: 0; overflow: hidden; border: 0; letter-spacing: 0; text-transform: none; }
.heat th.yr { text-align: left; font-size: 12px; color: var(--gold); border-left: 1px solid var(--gold-soft); padding-left: 4px; white-space: nowrap; }
.heat th.lab { text-align: right; padding-right: 8px; font-size: 12px; color: var(--text); white-space: nowrap; }
.heat th.lab small { display: block; font-size: 10px; color: var(--gold); }
.heat td { height: 26px; padding: 0; text-align: center; font-size: 9px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); border: 0; border-radius: 1px; overflow: hidden; white-space: nowrap; cursor: default; background: transparent; }
.heat tbody tr:nth-child(even) td { background: transparent; }
.heat td.dk { color: var(--bg); font-weight: 700; }
.heat td.ys, .heat th.ys { box-shadow: inset 1px 0 0 var(--gold-soft); }
.heat td.v:hover { outline: 2px solid var(--gold-hi); position: relative; z-index: 2; }
.heat td.now { outline: 2px solid var(--gold); outline-offset: -2px; }
.heat tr.med th.lab, .heat tr.med td { font-weight: 700; }
.heat tr.med td, .heat tr.med th { border-top: 5px solid transparent; }
@media (max-width: 980px) { .heat td { font-size: 0; height: 22px; } .heat th.m { font-size: 0; } .heat th.m.ys { font-size: 9px; } }
.heat-now { font-family: var(--mono); font-size: 12px; color: var(--gold); margin: 8px 0 0; }
.chart-plate .legend i.g-bar { width: 8px; height: 12px; border: 0; background: var(--sand); opacity: 0.75; }
@media (max-width: 720px) { .alm-moon { grid-template-columns: 1fr; gap: 12px; } #moon { width: 104px; } .alm-moon-wrap { padding: 16px; } .alm-numbers span { font-size: 28px; } }

/* forside (design v2): hero with the epoch bar, key figures, top multiples, cards to the views */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding: 8px 0 48px; border-bottom: 1px solid var(--rule); margin-bottom: 40px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text .kicker, .hero-text .hero-h, .hero-text .lead { margin: 0; }
/* the hero's heading by its class: an h1 where it opens the page, an h2 on /welcome, which has its own h1 */
.hero .hero-h { font-weight: 500; font-size: clamp(40px, 5.6vw, 64px); line-height: 0.98; letter-spacing: -1px; }
.hero .lead { max-width: 560px; }
/* the bitcoin mark after the day count (owner, 2026-11-05), small beside the heading */
.hero .hero-h .btc-mark { width: 0.62em; height: 0.62em; margin-left: 0.22em; vertical-align: 0.04em; }
.hero-text .hero-what { margin: 0; max-width: 560px; color: var(--text-soft); font-size: 17px; line-height: 1.5; }
.hero-logo { flex: 0 1 300px; min-width: 0; max-width: 300px; margin: 0; }  /* small: the epoch bar is the hero's figure (owner, 2026-11-03) */
.hero-logo { position: relative; }
.hero-logo img { display: block; width: 100%; height: auto; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.gauge { flex-basis: 100%; max-width: none; }
.gauge[hidden] { display: none; }
/* the epoch bar is drawn by index.js in the element's own width (owner, 2026-11-03) */
.epoch-bar { width: 100%; }
.epoch-bar svg { width: 100%; height: auto; }
.epoch-bar svg text { font-family: var(--mono); }
.rhythm { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; margin: 8px 0 72px; }
.rhythm[hidden] { display: none; }
.rhythm-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.rhythm-text > * { margin: 0; }
.rhythm-text h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.05; }
.rhythm-bars { flex: 1 1 440px; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 14px; align-items: end; height: 290px; border-bottom: 1px solid var(--rule); }
.rhythm-bars .bar { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rhythm-bars i { display: block; width: 100%; background: linear-gradient(180deg, var(--up), #1E2A21); }
.rhythm-bars .bar-v { font-size: 24px; font-variant-numeric: tabular-nums; }
.rhythm-bars .bar-y { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.rhythm-bars .open i { background: linear-gradient(180deg, var(--up-hi), var(--up)); }
.rhythm-bars .open .bar-v { color: var(--up-hi); } .rhythm-bars .open .bar-y { color: var(--gold); }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.forside-kurs { margin: 0 0 56px; }
.forside-kurs .chart-plate { margin-bottom: 0; }
.instruments { margin-bottom: 24px; }
.instruments .tiles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.instruments .tile { min-height: 130px; display: flex; flex-direction: column; gap: 8px; }
.instruments .tile h3 { margin: 0; }
.instruments .tile p { font-size: 15px; line-height: 1.35; color: var(--muted); }
@media (max-width: 720px) { .hero { padding-bottom: 32px; } .hero-logo { max-width: 220px; margin: 0 auto; order: 3; } .hero-bar { order: 2; } .rhythm-bars .bar-v { font-size: 22px; } }

@media (max-width: 720px) {
  .texts { grid-template-columns: 1fr; }
}

/* makro (v2): today's state as JA/NEJ cards; table cells green for a median above zero, red below */
.mk-box { border: 1px solid var(--rule); background: var(--panel); padding: 20px 22px; margin: 0 0 22px; }
.mk-box > p { max-width: 900px; }
.mk-h { font-family: var(--mono); font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
/* a page's head with numbers in its top right corner (owner, 2026-11-15: subscribers on Newsletters, followers on the X queue) */
.head-split { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.head-split .head-main { flex: 1 1 auto; min-width: 0; }
.head-stats { flex: 0 0 auto; display: flex; gap: 10px; }
.head-stats .mk-chip { min-width: 150px; background: var(--panel); }
.head-stats .mk-chip .t { font-size: 30px; }
@media (max-width: 820px) { .head-split { flex-direction: column; gap: 4px; } .head-split .head-stats { order: -1; width: 100%; } .head-stats .mk-chip { flex: 1 1 0; min-width: 0; } }
.mk-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.mk-chip { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--rule); }
.mk-chip .yn { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; color: var(--axis); }
.mk-chip .t { font-size: 18px; font-weight: 500; line-height: 1.15; }
.mk-chip .s { font-family: var(--mono); font-size: 12px; color: var(--axis); }
.mk-chip .s.up { color: var(--up); } .mk-chip .s.down { color: var(--down); }
.mk-chip.on { border-color: var(--gold); background: var(--panel-hi); } .mk-chip.on .yn { color: var(--gold-hi); }
.mk-chip.miss { opacity: 0.6; }
table.mk td, table.mk th { white-space: normal; }
table.mk th.c, table.mk td.c { text-align: center; }
table.mk td.lab b, table.mk td.lab small { display: block; }
table.mk td.lab b { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--text); }
table.mk td.lab small { color: var(--muted); font-size: 11px; }
table.mk td.mk-c { text-align: center; border: 2px solid transparent; border-bottom-color: var(--grid); min-width: 96px; }
table.mk td.mk-c b { display: block; font-weight: 700; font-size: 14px; }
table.mk td.mk-c small { display: block; font-size: 11px; opacity: 0.9; white-space: nowrap; }
table.mk td.mk-c.now { border: 2px solid var(--gold); }
table.mk td.sig { font-size: 15px; color: var(--gold); }
/* the channel marks on the owner's lists of Research and the Cycles studio (owner, 2026-11-10): five narrow columns,
   a green check where an item has been out (PUB, X, News, Vid, Tube) and an empty cell where it has not */
table.mk th.ch, table.mk td.ch { text-align: center; width: 46px; padding-left: 4px; padding-right: 4px; white-space: nowrap; }
table.mk td.ch-title { min-width: 210px; }     /* the title keeps its width on a phone; the table scrolls sideways */
table.mk .ch-yes { color: var(--up); }
table.mk.xown th.n, table.mk.xown td.n { text-align: right; white-space: nowrap; }     /* X's numbers per post, Studio X */
table.mk .ch-yes svg { vertical-align: -3px; }
.ch-legend b { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.mk-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.mk-pairs h3 { margin: 6px 0; font-size: 12px; color: var(--gold); }
.mk-read { margin-top: 14px; }
.mk-vals { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mk-warn { color: var(--down-hi); }
/* Today (owner, 2026-11-11): one meter per goal of the day, counted from X; green when the goal is met */
.td-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 4px 0 14px; }
.td-goal { border: 1px solid var(--rule); background: var(--panel-hi); padding: 16px 18px; min-width: 0; }
.td-goal .td-label { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--axis); margin: 0 0 6px; }
.td-goal .td-count { margin: 0 0 10px; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.td-goal .td-count b { font-size: 38px; font-weight: 500; color: var(--gold-hi); }
.td-goal .td-count small { display: inline-block; margin-left: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.td-goal .kf-meta { margin: 0; }
.td-bar { height: 8px; margin: 0 0 12px; background: var(--grid); }
.td-bar i { display: block; height: 100%; background: var(--gold); }
table.mk td.td-acc small { display: block; }     /* the followers under the name, so the counts stay in view on a phone */
table.mk td.td-when { white-space: nowrap; }
table.mk tr.td-old td { opacity: 0.62; }     /* from before 08:00: yesterday's plan */
/* Today, the week's newsletter (step 5): one box per edition, drawn as the goals are */
.td-ed .td-state { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.td-ed .td-subject { margin: 0 0 10px; }
/* Decisions and Agents (owner, 2026-11-11): a desk as a chip that links to its lines; an entry of the Chief's as a box */
a.mk-chip { text-decoration: none; color: inherit; }
a.mk-chip:hover { border-color: var(--gold-soft); }
.ag-need h3 { margin: 0 0 6px; }
.ag-need .ag-prop { margin-top: 14px; background: var(--panel-hi); }
.td-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 0; }
.td-period { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }     /* the period of the list of our posts: 24 hours, 7 days, all */
.td-gap { margin-top: 18px; }     /* a second table in one box: the accounts under the openings */
@media (max-width: 520px) {     /* a phone: the numbers of how the replies did stay in view beside the name */
  table.mk.td-tight th, table.mk.td-tight td { font-size: 12px; padding-left: 4px; padding-right: 4px; letter-spacing: 0; }
  table.mk.td-tight th.n, table.mk.td-tight td.n { white-space: normal; }
  table.mk.td-tight td.td-acc { word-break: break-word; }
  table.mk.td-tight td.n small { display: none; }     /* whom the most read reply answered: the accounts' table says it */
}
/* the visits from X, a column per day: narrow columns so seven days stand beside the page, today's in gold */
table.mk.td-week th.n, table.mk.td-week td.n { padding-left: 6px; padding-right: 6px; width: 9%; }
table.mk.td-week th.n small { display: block; font-size: inherit; opacity: 0.75; }     /* the day of the month under the weekday */
table.mk.td-week .td-now { color: var(--gold-hi); font-weight: 700; }
table.mk.td-week tr.td-sum td { border-bottom: 1px solid var(--gold); font-weight: 700; }
table.mk.td-week td.ch-title { min-width: 130px; word-break: break-word; }
@media (max-width: 520px) {     /* a phone: the seven days stay in view beside the page */
  table.mk.td-week th.n, table.mk.td-week td.n { padding-left: 3px; padding-right: 3px; letter-spacing: 0; }
  table.mk.td-week td.ch-title, table.mk.td-week tr.td-sum td:first-child, table.mk.td-week th:first-child { min-width: 84px; padding-left: 4px; padding-right: 4px; font-size: 12px; }
}
@media (max-width: 820px) { #posts th:nth-child(7), #posts td:nth-child(7) { display: none; } }     /* Quotes, the rarest number, gives way so the others stay in view */
.td-goal.met { border-color: var(--up); }
.td-goal.met .td-bar i { background: var(--up); }
.td-goal.met .td-count small { color: var(--up-hi); }
@media (max-width: 820px) { .mk-pairs { grid-template-columns: 1fr; } .mk-box { padding: 16px 12px; } table.mk td.mk-c { min-width: 0; } .mk-chips { grid-template-columns: 1fr 1fr; } .mk-chip .t { font-size: 17px; } }

/* likviditet (v2): the gauge and the eleven bars on top, balances as one stacked bar, the chain as cards with lamps */
.lq-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 40px; align-items: center; padding: 24px; border: 1px solid var(--rule); background: var(--panel); margin: 0 0 24px; position: relative; }
.lq-now::before { content: ""; position: absolute; top: -1px; left: -1px; width: 28px; height: 28px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.lq-chg { display: flex; justify-content: center; gap: 24px; margin: 6px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lq-chg b { font-weight: 700; color: var(--text); } .lq-chg b.up { color: var(--up); } .lq-chg b.down { color: var(--down); }
.lq-parts .kicker { margin-bottom: 10px; }
.lq-part { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(80px, 1fr) 34px 18px; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--grid); font-size: 15px; }
.lq-part .l { color: var(--text-soft); line-height: 1.25; }
.lq-part .b { height: 10px; background: var(--grid); position: relative; }
.lq-part .b i { position: absolute; left: 0; top: 0; bottom: 0; }
.lq-part .v { font-family: var(--mono); font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.lq-part .a { font-family: var(--mono); text-align: center; }
.lq-grain { margin: 0 0 8px; }
.chart-plate .legend i.g-temp { width: 18px; height: 8px; border: 0; background: linear-gradient(90deg, #6F93B0, #B3A285, #D2604A); }
.lq-stack { margin: 0 0 16px; }
.lq-stack .bar { display: flex; height: 22px; border: 1px solid var(--rule); }
.lq-stack .bar i { display: block; height: 100%; }
.lq-stack .keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lq-stack .keys i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.lq-stack .keys b { color: var(--text); } .lq-stack .tot { margin-left: auto; }
.lq-chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.lq-node { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--rule); background: var(--panel-alt); }
.lq-node > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lq-node .lamp { width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; background: var(--grid); border: 1px solid var(--axis); }
.lq-node.warn .lamp { background: var(--gold-soft); border-color: var(--gold); }
.lq-node.alarm { border-color: rgba(210, 96, 74, 0.6); } .lq-node.alarm .lamp { background: var(--down); border-color: var(--down-hi); box-shadow: 0 0 8px rgba(210, 96, 74, 0.7); }
.lq-node .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); overflow-wrap: anywhere; }
.lq-node .raw { font-family: var(--mono); font-size: 12px; color: var(--text); }
.lq-node .sm { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lq-node.alarm .sm { color: var(--down-hi); }
.lq-node.btc { grid-template-columns: 1fr; border-color: var(--gold); background: var(--panel-hi); align-items: center; }
.lq-heat svg { display: block; }
.chart-plate .legend i.g-lamp { width: 10px; height: 10px; border: 1px solid var(--axis); border-radius: 50%; background: var(--grid); }
.chart-plate .legend i.g-lamp.warn { background: var(--gold-soft); border-color: var(--gold); }
.chart-plate .legend i.g-lamp.alarm { background: var(--down); border-color: var(--down-hi); }
@media (max-width: 900px) { .lq-now { grid-template-columns: 1fr; padding: 16px; } .lq-part { grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 30px 16px; font-size: 14px; } .lq-stack .tot { margin-left: 0; } }

/* etf (v2): key figures, the quarters on a plate, buying green and selling red */
table.etf-q td.c small, table.etf-q td.c b { display: block; }
table.etf-q td.c small { color: var(--muted); font-size: 11px; }
table.etf-q tr.etf-tot td { border-top: 1px solid var(--gold-soft); background: var(--panel-hi); }
table.mk td.n { font-family: var(--mono); font-size: 13px; }
.etf-sel { font: 13px var(--mono); padding: 6px 8px; margin-left: 8px; background: var(--panel); color: var(--text); border: 1px solid var(--rule); min-height: 36px; }
.etf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.etf-tag { font: 11px var(--mono); border: 1px solid var(--rule); padding: 0 5px; margin-left: 6px; color: var(--muted); }
.etf-tag.new { color: var(--up); border-color: var(--up); } .etf-tag.out { color: var(--down); border-color: var(--down); }
table.mk caption.foot { caption-side: bottom; text-align: left; }
table.mk td.hi { color: var(--gold-hi); font-weight: 700; }
@media (max-width: 820px) { .etf-two { grid-template-columns: 1fr; } }

/* /agents (v2): status colours as the lamps (ok neutral, gold for late or manual, red for failed) */
.ag-gate { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 14px; font-family: var(--mono); color: var(--muted); }
.ag-big { font-family: var(--serif); font-size: 64px; font-weight: 500; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.ag-big.ag-pass { color: var(--gold-hi); } .ag-big.ag-bad { color: var(--down); }
.ag-ok { color: var(--text); } .ag-warn { color: var(--gold); font-weight: 700; } .ag-bad { color: var(--down); font-weight: 700; }
.ag-sum { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.ag-sum b { color: var(--text); }
table.ag td.lab b { font-family: var(--mono); font-size: 13px; }
table.ag tr.ag-grp th { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); padding-top: 18px; border-bottom: 1px solid var(--gold-soft); text-align: left; background: var(--bg); }
.ag-all { margin-top: 14px; }
.ag-all summary { cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--gold); padding: 8px 0; }
.ag-tiles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 8px; }
.ag-agent h3 { margin: 6px 0; }
.ag-agent p { font-size: 16px; line-height: 1.4; color: var(--muted); }
.ag-findings { margin: 8px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.ag-findings li { margin: 0 0 6px; }
.ag-findings .ag-fix { color: var(--muted); }

/* research (owner-only): the pairing form and the register and resolve forms */
.rs-form p { margin: 0 0 14px; }
.rs-form .row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 14px; }
.rs-form select, .rs-form input[type=text], .rs-form input[type=number], .rs-form input[type=date], .rs-form textarea { background: var(--panel-hi); color: var(--text); border: 1px solid var(--rule); padding: 8px 10px; font-family: var(--mono); font-size: 13px; min-height: 40px; max-width: 100%; }
.rs-form textarea { font-family: var(--serif); font-size: 17px; }
.rs-plain { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
/* the public forecast page (owner, 2026-11-03): the answer in three lines, a text column the eye can follow, the
   method folded under a summary line. Research keeps its own density. */
.pub-answer { display: grid; gap: 18px; padding: 24px 26px; }
.pub-answer .mk-h { margin: 0 0 4px; }
.pub-big { margin: 0; font-size: 21px; line-height: 1.4; max-width: 70ch; }
#research[data-mode="public"] .pub-text, #research[data-mode="public"] .pub-box p { font-size: 18px; line-height: 1.45; max-width: 70ch; margin: 0 0 12px; }
#research[data-mode="public"] .pub-box p:last-child { margin-bottom: 0; }
#research[data-mode="public"] p.kf-meta.pub-text { font-size: 16px; color: var(--muted); }
.pub-list { margin: 0 0 14px; padding-left: 22px; max-width: 70ch; }
.pub-list li { font-size: 18px; line-height: 1.45; margin: 0 0 10px; }
.pub-method { border-top: 1px solid var(--rule); margin: 8px 0 24px; }
.pub-method > summary { cursor: pointer; padding: 18px 0; font-family: var(--mono); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); list-style: none; }
.pub-method > summary::before { content: "\25B8  "; } .pub-method[open] > summary::before { content: "\25BE  "; }
.pub-method > summary::-webkit-details-marker { display: none; }
#research[data-mode="public"] .pub-method .kf-meta { font-size: 16px; }
@media (max-width: 820px) { .pub-answer { padding: 18px 14px; } .pub-big { font-size: 19px; } }
.rs-script { border-top: 1px solid var(--rule); padding: 14px 0 6px; }
.rs-script.new { border-left: 4px solid var(--up); padding-left: 14px; }
.rs-script .kf-meta .new { color: var(--up-hi); font-family: var(--mono); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
/* the chosen draft of a channel (owner, 2026-11-02): gold edge and mark; the earlier drafts fold under a summary line */
.rs-script.chosen { border-left: 4px solid var(--gold); padding-left: 14px; }
.rs-script .kf-meta .chosen { color: var(--gold-hi); font-family: var(--mono); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.rs-earlier { border-top: 1px solid var(--rule); }
.rs-earlier > summary { cursor: pointer; padding: 12px 0; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.rs-earlier[open] > summary { color: var(--text); }
.rs-earlier .rs-script { margin-left: 18px; }
/* the system is working (research.js working()): a bar at the top of the viewport while a model call runs, and a state
   line in the box: gold with a pulsing dot and a clock while working, green Done or red Stopped with the time taken after. */
/* the zoom hint under a chart (cm.js zoomHint): Shift on the page, the plain wheel in the enlarged view */
.zoom-hint { margin: 4px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.6px; color: var(--muted); text-align: right; }
.zoom-hint[hidden], .zoom-hint .zh-big, .plate-layer .zoom-hint .zh-page { display: none; }
.plate-layer .zoom-hint .zh-big { display: inline; }
@media (hover: none) { .zoom-hint { display: none; } }
#cm-busy { position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 60; background: rgba(226, 176, 74, 0.3); overflow: hidden; }
#cm-busy[hidden] { display: none; }
#cm-busy::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); animation: cmbusy 1.4s linear infinite; }
@keyframes cmbusy { to { left: 100%; } }
.rs-state { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; max-width: 900px; border: 1px solid var(--rule); border-left: 4px solid var(--rule); background: var(--panel-hi); font-family: var(--mono); font-size: 14px; color: var(--muted); }
.rs-state[hidden] { display: none; }
.rs-state .what { flex: 1 1 auto; }
.rs-state .t { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.rs-state .check { flex: none; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.rs-state.working { border-left-color: var(--gold); color: var(--gold-hi); }
.rs-state.working .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-hi); animation: cmpulse 1.2s ease-out infinite; }
.rs-state.done { border-left-color: var(--up); color: var(--text); }
.rs-state.done .check { color: var(--up-hi); } .rs-state.done .check::before { content: "\2713  "; }
.rs-state.failed { border-left-color: var(--down); color: var(--text); }
.rs-state.failed .check { color: var(--down-hi); }
.btn:disabled { opacity: 0.45; cursor: progress; }
@media (prefers-reduced-motion: reduce) { #cm-busy::after { animation: none; left: 0; width: 100%; } .rs-state.working .dot { animation: none; } }
.rs-script textarea[readonly] { background: var(--panel); color: var(--text-soft, var(--text)); }
.rs-script textarea { width: 100%; max-width: 100%; box-sizing: border-box; background: var(--panel-hi); color: var(--text); border: 1px solid var(--rule); padding: 10px 12px; font-family: var(--serif); font-size: 17px; line-height: 1.4; }

/* the agent board (Event curator step 4, 2026-10-31): the badge on Agenter, the proposal cards for the owner */
.badge { display: inline-block; margin-left: 8px; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--gold); color: var(--bg); font: 11px var(--mono); line-height: 18px; text-align: center; vertical-align: 1px; }
.ag-prop { border: 1px solid var(--rule); background: var(--panel); padding: 16px 18px; margin: 0 0 14px; }
.ag-prop h3 { margin: 0 0 4px; }
.ag-prop .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.ag-prop .meta b { color: var(--text); }
.ag-prop .rs-form p { margin: 8px 0; }
.ag-prop .rs-form input[type=text], .ag-prop .rs-form textarea { width: 100%; max-width: 760px; box-sizing: border-box; }
.ag-prop .rs-form textarea { min-height: 80px; }
.ag-prop details { margin: 8px 0; }
.ag-prop details summary, .ag-q summary { cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--gold); padding: 4px 0; }
.ag-prop pre, .ag-q pre { font: 12px var(--mono); white-space: pre-wrap; background: var(--panel-hi); border: 1px solid var(--rule); padding: 10px; margin: 6px 0; overflow: auto; }
.ag-prop .act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.ag-status-open { color: var(--gold); font-weight: 700; } .ag-status-approved { color: var(--text); } .ag-status-rejected { color: var(--muted); }

/* the front page band (PERSPECTIVE_BRIEF 18.4): the sentence and the record side by side */
.band { border-top: 1px solid var(--rule); padding: 28px 0 8px; margin: 0 0 36px; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.band-say .lead { margin: 0 0 18px; }
.band-rec { border: 1px solid var(--rule); background: var(--panel); padding: 20px 22px; }
.band-rec .mk-chips { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.band-rec .kf-meta { margin: 0 0 6px; }
/* the call to action above the key figures (owner, 2026-11-05) */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  border: 1px solid var(--gold-soft); background: var(--panel); padding: 16px 20px; margin: 8px 0 22px; }
.cta-strip p { margin: 0; max-width: 640px; }
.cta-strip strong { color: var(--gold); font-weight: 500; }
/* What Cyclemetry does, with the rings (landing page) */
.what h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); }
.rings-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rings { width: 100%; max-width: 460px; }
.rings svg { margin: 0 auto; }
.rings-fig figcaption { max-width: 460px; margin: 0; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; } .band-rec { padding: 16px 12px; } .band-rec .mk-chips { grid-template-columns: 1fr 1fr; } }
/* the topic filter on Tests: the pressed topic is lit */
.btn.ghost[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); background: var(--panel-hi); }

/* the Journal marks in the drafts drawer (18.5) */
.rs-posted { color: var(--text-soft); }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
/* a hidden button stays hidden: .btn sets display, which beats the browser rule for [hidden] */
.btn[hidden], .linkish[hidden] { display: none; }
/* tests with these series (18.6) */
.tests-with .tw-row { margin: 0 0 8px; }
.tests-with .tw-pair { margin: 14px 0 0; }
/* the windows' record on Prognose (note step 7) */
.verdict { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border: 1px solid currentColor; white-space: nowrap; }
.verdict.ok { color: var(--up); } .verdict.bad { color: var(--down); } .verdict.wait { color: var(--muted); }

/* sign in and sign up (GO_TO_MARKET A1) */
.auth-body { display: flex; flex-direction: column; min-height: 100vh; }
.auth-main { flex: 1 0 auto; width: 100%; max-width: 640px; margin: 0 auto; padding: 48px 24px 64px; }
.auth-card h1 { font-size: 30px; line-height: 1.15; margin: 0 0 14px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 18px; }
.auth-form label { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.auth-form label.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 15px; color: var(--text-soft); line-height: 1.45; }
.auth-form label.check input { margin-top: 4px; accent-color: var(--gold); }
.auth-form input[type=email], .auth-form input[type=text] { background: var(--panel-hi); color: var(--text); border: 1px solid var(--rule); padding: 10px 12px; font-family: var(--mono); font-size: 16px; min-height: 44px; }
.auth-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.auth-form .btn { align-self: flex-start; }
.auth-small { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.5; }
.auth-small a { color: var(--gold); }

/* pricing and account (GO_TO_MARKET A2) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 18px; }
.plan { background: var(--panel); border: 1px solid var(--rule); padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.plan-price { font-family: var(--serif); font-size: 32px; margin: 0; color: var(--text); }
.plan-price span { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.plan-blurb { font-family: var(--serif); font-size: 15px; color: var(--text-soft); margin: 0 0 6px; line-height: 1.45; }
.plan .btn, .plan form { margin-top: auto; }
.plan .btn[disabled] { opacity: 0.5; cursor: default; }

/* the decision page (GO_TO_MARKET 7.4), the welcome page (7.5) and the name page (7.6) */
.pricing { max-width: 760px; }
.auth-main:has(.pricing) { max-width: 820px; }
.plan { position: relative; }
.plan.best { border-color: var(--gold); background: var(--panel-hi); }
.plan-mark { position: absolute; top: -12px; left: 18px; margin: 0; padding: 3px 10px; background: var(--gold); color: var(--bg); font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.plan-per { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.checklist { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; font-family: var(--serif); font-size: 16px; color: var(--text-soft); line-height: 1.45; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.proof { border: 1px solid var(--rule); background: var(--panel); padding: 18px 20px 16px; margin: 0 0 28px; }
.proof .mk-chips { margin: 10px 0 12px; }
.faq { margin: 0 0 28px; }
.faq details { border-top: 1px solid var(--rule); padding: 10px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 18px; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 22px; color: var(--gold); font-family: var(--mono); }
.faq details[open] summary::before { content: "-"; }
.faq p { margin: 8px 0 4px 22px; color: var(--text-soft); line-height: 1.5; }
.faq-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 10px 0 4px 22px; }
.faq-compare > div { border: 1px solid var(--rule); padding: 12px 16px; background: var(--panel); }
.faq-compare > div:last-child { border-color: var(--gold-soft); }
.faq-compare p { margin: 6px 0; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 12px; }
.plan-mark.quiet { background: var(--panel); color: var(--gold); border: 1px solid var(--gold-soft); }
.privacy-note { margin: 22px 0 14px; padding: 14px 18px; border-left: 2px solid var(--gold); background: var(--panel); }
.privacy-note .mk-h { margin: 0 0 6px; }
.privacy-note p { margin: 0; color: var(--text-soft); line-height: 1.5; }
.privacy-note a { color: var(--gold); }
.free-list { margin: 4px 0 14px; }
.welcome-head h1 { font-size: clamp(36px, 5vw, 56px); }
.welcome-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0 36px; }
.welcome-sub { margin-top: 28px; }

.sitefoot-in a { color: var(--muted); }
.sitefoot-in a:hover { color: var(--gold); }
table.mk.invoices td a { color: var(--gold); margin-right: 8px; }

/* the public front (GO_TO_MARKET A3): the landing page, terms and privacy */
main.public { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 40px 32px 64px; }
.pubnav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
.pubnav a { color: var(--muted); text-decoration: none; }
.pubnav a:hover { color: var(--gold-hi); }
.pubnav .btn.small { min-height: 34px; padding: 0 14px; font-size: 12px; color: var(--bg); }
.pubnav { gap: 10px; }
.pubnav .btn.small.ghost { color: var(--text); }
.pubnav:empty { display: none; }
@media (min-width: 1101px) { .masthead .clock + .pubnav { margin-left: 0; } }   /* beside the clock on a wide screen; wrapped, it keeps to the right */
@media (max-width: 720px) { .masthead .clock + .pubnav { order: 5; margin-left: 0; } }
/* the menu's Account group (owner, 2026-11-08): Sign out reads as one of the links, Upgrade in gold for Free */
.sidenav .nav-form { margin: 0; }
.sidenav .nav-signout { display: block; width: 100%; text-align: left; padding: 7px 0 7px 12px; margin-left: -12px; border: 0; border-left: 2px solid transparent; background: none; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.sidenav .nav-signout:hover { color: var(--text); }
.sidenav a.nav-upgrade { color: var(--gold); }
.offer { padding: 40px 0 8px; border-top: 1px solid var(--rule); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin: 12px 0 18px; }
.offer h2 { margin: 0 0 12px; font-size: 24px; font-weight: 500; }
.offer-inline { padding: 8px 0 8px; border-top: 0; }   /* under a box on /cycles and a study's preview (owner, 2026-11-05) */
.previews { padding: 40px 0 8px; border-top: 1px solid var(--rule); }
.previews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 12px; }
.previews-grid h3 { margin: 0 0 10px; font-size: 20px; font-weight: 500; }
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 28px 0 8px; }
.legal p { line-height: 1.55; color: var(--text-soft); }
/* the public masthead holds Sign in only (owner, 2026-11-05: Cycles, Pricing and About are in the footer); on a phone it
   stays beside the wordmark */
@media (max-width: 720px) { .pubnav { order: 2; } main.public { padding: 24px 16px 48px; } }

/* The masthead stays at the top while a page scrolls (owner, 2026-11-05 public pages, 2026-11-07 every page), the barcode with it. Once scrolled,
   masthead.js marks it compact: a smaller wordmark, and on a phone the day count and the clock fold away so the page
   keeps its room; at the top of the page it is whole again. */
.masthead.pinned { position: sticky; top: 0; z-index: 40; background: var(--bg); }
.masthead.pinned .brand img, .masthead.pinned .brand span, .masthead.pinned .masthead-in { transition: width .2s ease, height .2s ease, font-size .2s ease, padding .2s ease; }
.masthead.pinned.compact .masthead-in { padding-top: 8px; padding-bottom: 8px; }
.masthead.pinned.compact .brand img { width: 44px; height: 44px; }
.masthead.pinned.compact .brand span { font-size: 22px; }
@media (max-width: 720px) {
  .masthead.pinned.compact .daycount, .masthead.pinned.compact .clock { display: none; }
  .masthead.pinned.compact .brand img { width: 36px; height: 36px; }
  .masthead.pinned.compact .brand span { font-size: 20px; }
}

.explain { padding: 36px 0 8px; border-top: 1px solid var(--rule); }
.explain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 10px; }
.explain h2 { margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.explain p { margin: 0; color: var(--text-soft); line-height: 1.5; }

.mfa-qr img { display: block; background: #fff; padding: 8px; margin: 12px 0; }

/* the weekly made hard to miss (GO_TO_MARKET A4): its own box at sign-up, a second chance on the welcome page */
.weekly-box { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--gold); background: var(--panel); }
.weekly-box legend, .weekly-box .mk-h { color: var(--gold-hi); font-family: var(--mono); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; padding: 0 6px; }
.weekly-box .weekly-in { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.weekly-box img { width: 240px; max-width: 100%; height: auto; border: 1px solid var(--rule); }
.weekly-box ul { margin: 0; padding-left: 18px; line-height: 1.6; flex: 1 1 220px; }
.weekly-box .check.big { font-size: 17px; margin-top: 8px; }
.weekly-box .check.big input { width: 20px; height: 20px; }
.weekly-box.second form { margin-top: 10px; }
/* the weekly's state (owner, 2026-11-08): a lamp and a sentence say whether it comes, one button changes it */
.weekly-state { scroll-margin-top: 24px; }
.weekly-state p { max-width: 780px; }
.weekly-state .weekly-now { display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--text); }
.weekly-state .lamp { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--gold); }
.weekly-state.is-on { border-color: var(--up); }
.weekly-state.is-on .mk-h { color: var(--up-hi); }
.weekly-state.is-on .lamp { border-color: var(--up); background: var(--up); box-shadow: 0 0 8px var(--up); }
.weekly-state form { margin: 14px 0 6px; }
.welcome-head .weekly-state { margin: 18px 0 22px; }

/* leaving: the question why, optional (owner, 2026-11-08); the cancel page, the weekly's dialog and its page */
.plan-box { scroll-margin-top: 24px; }
.plan-box .weekly-now { margin: 6px 0 10px; font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--up-hi); }
.plan-card { margin: 0 0 4px; font-family: var(--mono); font-size: 14px; color: var(--text-soft); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.plan-actions form { margin: 0; }
.leave-form { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.leave-form p { margin: 0; }
.leave-reasons { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.leave-reasons legend, .leave-say { padding: 0; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.leave-reasons label.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--serif); font-size: 17px; color: var(--text-soft); line-height: 1.4; cursor: pointer; }
.leave-reasons label.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.leave-form textarea { width: 100%; box-sizing: border-box; background: var(--panel-hi); color: var(--text); border: 1px solid var(--rule); padding: 10px 12px; font-family: var(--serif); font-size: 17px; line-height: 1.4; min-height: 84px; }
.leave-form textarea:focus-visible, .leave-reasons input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.leave-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.leave-dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; overflow: auto; margin: auto; padding: 20px 20px 22px; background: var(--panel); color: var(--text); border: 1px solid var(--gold); }
.leave-dialog::backdrop { background: rgba(5, 4, 2, 0.72); }
.leave-dialog .mk-h, .weekly-state.is-on .leave-dialog .mk-h { color: var(--gold-hi); }
.leave-page .leave-form .mk-h { color: var(--gold-hi); }
.plan-vat { margin: -6px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }

/* Epochs public (EPOCH_BRIEF 9, E5): the chart as a picture for a visitor without an account, the study cards */
.ep-cards { display: grid; gap: 14px; }
/* the owner's page of the PDF books (2026-11-16) */
.book-t { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 6px; }
.book table.mk td.n, .book table.mk th.n { white-space: nowrap; }
/* the use line (owner, 2026-11-16, VOICE.md V3): the reader's own question that a study answers, above its title */
.use-line { margin: 0 0 12px; max-width: 62ch; font-family: var(--serif); font-size: clamp(18px, 1.9vw, 22px); line-height: 1.35; color: var(--gold-hi); }
.ep-card .use-line { margin: 8px 0 2px; font-size: 17px; }
.ep-card h3 { margin: 4px 0 6px; font-size: 22px; }
.ep-card h3 a { color: var(--text); text-decoration: none; }
.ep-card h3 a:hover { color: var(--gold-hi); }

/* One card list for Forecasts and Cycles (owner, 2026-11-08): the same filters, the same card and the same type sizes on
   both pages; a meta line, the title, one sentence, and a status line at the foot */
.cm-filters { display: grid; gap: 8px; margin: 0 0 16px; }
.cm-filters .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cm-filters .row[hidden] { display: none; }
.cm-filters .btn { min-height: 36px; padding: 0 14px; font-size: 12px; white-space: nowrap; flex: none; }
@media (max-width: 640px) {   /* a phone: each row slides sideways instead of stacking the topics down the screen */
  .cm-filters .row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .cm-filters .flabel { flex: none; min-width: 0; }
  #plate-rings .cm-filters .row { flex-wrap: wrap; overflow: visible; }   /* the rings' two lanes fit on two lines, never cut */
}
.cm-filters .flabel { align-self: center; min-width: 64px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ep-card .card-meta { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .6px; color: var(--muted); }
.ep-card .card-meta .stage { color: var(--gold); } .ep-card .card-meta .stage.test { color: var(--test); }
.ep-card .card-meta .stage.held { color: var(--up); } .ep-card .card-meta .stage.missed { color: var(--down); }
.new-tag { display: inline-block; padding: 0 7px; border-radius: 9px; background: var(--gold); color: var(--bg); font: 11px/18px var(--mono); letter-spacing: .5px; text-transform: uppercase; vertical-align: 1px; }
.ep-card .card-meta .stage.cand { color: var(--muted); font-style: italic; }
.ep-card .card-text { margin: 0; font-size: 16px; color: var(--text-soft); max-width: 75ch; }
.ep-card .card-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .4px; color: var(--muted); }
.card-bar { flex: 1 1 140px; max-width: 240px; height: 6px; background: var(--panel-hi); border: 1px solid var(--rule); }
.card-bar span { display: block; height: 100%; min-width: 3px; background: var(--gold); }
.card-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; vertical-align: -1px; border-radius: 50%; border: 1px solid var(--muted); }
.card-dot.agree { background: var(--up); border-color: var(--up); }
.card-dot.partly { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); border-color: var(--gold); }
.card-dot.disagree { background: var(--down); border-color: var(--down); }
.cm-more { margin: 14px 0 0; }
/* What's new (owner, 2026-11-08): one dated line per item, the new ones lit in gold */
.news-readall { margin: 0; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.news-row { display: grid; grid-template-columns: 110px 90px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.news-date, .news-kind { font-family: var(--mono); font-size: 12px; letter-spacing: .6px; color: var(--muted); padding-top: 3px; }
.news-kind { text-transform: uppercase; }
.news-row.is-new .news-kind { color: var(--gold); }
.news-what a { color: var(--text); font-size: 18px; text-decoration: none; }
.news-what a:hover { color: var(--gold-hi); }
.news-what b { font-size: 18px; font-weight: 500; }
.news-line { color: var(--text-soft); font-size: 15px; }
@media (max-width: 640px) { .news-row { grid-template-columns: auto 1fr; } .news-what { grid-column: 1 / -1; } }
/* the whole card is the link (owner, 2026-11-08), as on the landing page; a calm gold edge here instead of its glow */
.ep-cards.linked .ep-card { position: relative; transition: border-color .15s ease-out; }
.ep-cards.linked .ep-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ep-cards.linked .ep-card:hover, .ep-cards.linked .ep-card:focus-within { border-color: var(--gold-soft); }
.ep-cards.linked .ep-card:hover h3 a { color: var(--gold-hi); }
@media (prefers-reduced-motion: reduce) { .ep-cards.linked .ep-card { transition: none; } }
/* Cycles and Forecasts in the overview pages' cards (owner, 2026-11-17): three to a row, the page's own picture on top,
   the hub card's frame and type; the filters, the status line and the bar stay */
.ep-cards.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .ep-cards.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ep-cards.card-grid { grid-template-columns: 1fr; } }
.card-grid .ep-card h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.card-grid .ep-card .use-line { margin: 0; font-size: 16px; }
.card-grid .ep-card .card-text { font-size: 15px; }
.card-grid .ep-card .card-status { margin-top: auto; padding-top: 4px; }
.card-grid .ep-card .hub-words { font-size: 19px; }
.card-grid > p { grid-column: 1 / -1; }

/* Epochs drafts (EPOCH_BRIEF 9): an X draft as cards to copy, and the posting guide */
.ep-x { display: grid; gap: 12px; margin: 8px 0 12px; }
.ep-x-card { border: 1px solid var(--rule); padding: 12px 14px; background: var(--panel); }
.ep-x-text { white-space: pre-wrap; word-wrap: break-word; font-family: var(--serif, Georgia, serif); font-size: 16px; line-height: 1.5; margin: 6px 0 10px; color: var(--text); }
.ep-howto { margin: 8px 0 14px; }
.ep-howto ol { margin: 8px 0 0 18px; padding: 0; line-height: 1.55; max-width: 820px; }
.ep-howto li { margin: 0 0 6px; }
.ep-plain { margin: 12px 0 0; max-width: 900px; line-height: 1.55; }
.ep-plain p { margin: 0 0 8px; }

/* Newsletters (owner, NEWSLETTER_BRIEF): each edition read in its mail look */
.nl-frame { width: 100%; max-width: 680px; height: 620px; border: 1px solid var(--rule); background: #0B0906; display: block; margin: 10px 0; }
.nl-text { width: 100%; max-width: 680px; font-family: var(--mono); font-size: 13px; background: var(--panel); color: var(--cream, inherit); border: 1px solid var(--rule); padding: 10px; }

/* an anchor on a page with the pinned masthead lands below it, not under it (owner, 2026-11-05) */
html:has(.masthead.pinned) { scroll-padding-top: 120px; }

/* what a series is, in plain words (owner, 2026-11-05): the explainer on a study's page and a forecast's page */
.about-box .about-h { margin: 14px 0 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.about-box p { max-width: 72ch; }

/* the glossary at the foot of a series page (owner, 2026-11-05): every series the page draws, in plain words */
#glossary .gloss { border-top: 1px solid var(--rule); padding: 10px 0; }
#glossary .gloss summary { cursor: pointer; line-height: 1.5; }
#glossary .gloss summary .muted { display: block; font-size: 15px; }
#glossary .gloss p, .kf-about p { max-width: 72ch; }
.about-h { margin: 12px 0 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.kf-short { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; max-width: 46ch; }

/* the owner's explainers page (owner, 2026-11-05), shaped for a public reference work later */
.badge.warn { background: var(--down, #c0533a); color: #fff; }
.explain-missing { border-color: var(--down, #c0533a); }
.ex-search { width: 100%; max-width: 560px; margin: 6px 0 14px; }
.ex-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.ex-toc a { text-decoration: none; }
/* a link to one entry (#key) lands with its heading clear of the sticky masthead and the barcode (2026-11-17) */
.ex-entry, .ex-group { scroll-margin-top: 150px; }
.ex-entry h3 { margin: 0 0 4px; font-size: 24px; font-weight: 500; }
.ex-entry h3 a { color: inherit; text-decoration: none; }
.ex-entry h3 a:hover { text-decoration: underline; }
/* the Lexicon as an overview (owner, 2026-11-17): one card per entry, the whole card opens the entry's own page */
.ex-group .ex-card { display: block; margin: 0 0 10px; padding: 14px 18px; border: 1px solid var(--rule); background: var(--panel);
  text-decoration: none; color: inherit; max-width: 80ch; }
.ex-group .ex-card[hidden] { display: none; }   /* the search hides a card: display:block above must not undo it */
.ex-group .ex-card:hover, .ex-group .ex-card:focus-visible { border-color: var(--gold); }
.ex-card-name { display: block; font-size: 21px; color: var(--gold-hi); }
.ex-card:hover .ex-card-name { text-decoration: underline; }
.ex-card-short { display: block; margin: 4px 0 6px; }
.ex-card-go { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
/* Explained's Videos (owner, 2026-11-17, step E3): the 9:16 videos in a row, each with its question under it */
.exv-item { margin: 0; }
.exv-item video.hub-pic { object-fit: contain; background: #000; }
.exv-q { font-size: 20px; font-weight: 500; margin: 6px 0 4px; }
.exv-links a { white-space: nowrap; }
.exv-on-entry video { max-width: 300px; margin: 8px 0; }
.ex-related { list-style: none; padding: 0; margin: 6px 0 12px; }   /* an entry's page: the others of its subject */
.ex-related li { margin: 0 0 8px; max-width: 74ch; }
.ex-related .muted { display: block; font-size: 15px; }
.ex-entry p { max-width: 74ch; }
.ex-short { color: var(--text-soft); font-style: italic; }
.ex-checks { margin-top: 10px; }
.ex-checks summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.ex-checks li { margin: 8px 0; font-size: 15px; }

/* Cycles in the menu (owner, 2026-11-06): the newest studies by name, their date, a lock where Free cannot read, and a
   gold mark on the ones this browser has not opened */
.sidenav a.sub { padding-left: 12px; line-height: 1.3; }   /* the menu's own 13px, as every other item (owner, 2026-11-08) */
.sidenav a.sub small { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .5px; white-space: nowrap; }
/* a forecast's stage (owner, 2026-11-10): under test in blue, neutral beside green for held and red for did not hold */
:root { --test: #7FA7E3; }
.sidenav a.sub small.stage-registered { color: var(--test); }
.stage-test-word { color: var(--test); }
.sidenav a.sub .lock { font-size: 11px; opacity: .7; }
/* the gold dot on any menu entry with something new for this reader (owner, 2026-11-08) */
.sidenav a.fresh::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); margin: 0 6px 2px -12px; }
.nav-new { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--gold); color: var(--bg); font: 11px var(--mono); line-height: 18px; text-align: center; vertical-align: 1px; letter-spacing: 0; }
.nav-new[hidden] { display: none; }

/* the landing of a post (owner, 2026-11-06): two lines on where the reader is, and one big call to action */
.landing-intro { margin: 0 0 18px; padding: 10px 14px; border-left: 2px solid var(--gold); color: var(--text-soft); font-size: 17px; max-width: 70ch; }
#gate:has(.landing-cta), #gate-again:has(.landing-cta) { border-color: var(--gold); }
.landing-cta .mk-h { font-size: 15px; }
.landing-cta p { max-width: 64ch; }
.btn.big { min-height: 54px; padding: 0 30px; font-size: 16px; letter-spacing: 1.4px; }

/* the previews of forecasts and paid pages (owner, 2026-11-06) */
.landing-box { border-color: var(--gold); }
.landing-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.preview-notes .note-c p { margin: 0; }
.locked-plate { margin: 18px 0; min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  border: 1px solid var(--rule); background: repeating-linear-gradient(90deg, rgba(236,201,120,.10) 0 6px, rgba(18,15,10,.6) 6px 14px); }
.locked-plate p { background: var(--bg); padding: 10px 16px; border: 1px solid var(--gold-soft); max-width: 46ch; }

/* the library's buttons (owner, 2026-11-06) */
.lib-act { white-space: nowrap; }
.lib-act .btn.small { margin: 2px 0; }
/* the Library's channel cells read at a glance (owner, 2026-11-19): a check and the day, or a dash */
table.mk td.lib-ch { width: 72px; font-family: var(--mono); font-size: 12px; }
table.mk td.lib-ch.yes, table.mk td.lib-ch.yes a { color: var(--up); text-decoration: none; }
table.mk td.lib-ch.no { color: var(--muted); }
.lib-make { display: inline-block; }
.lib-make > summary { list-style: none; cursor: pointer; }
.lib-make > summary::-webkit-details-marker { display: none; }
.lib-make[open] > summary { margin-bottom: 4px; }
.lib-make[open] { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

/* the owner's Forms page (owner, 2026-11-07): one table per kind, the text cells wrap; on a phone each row is a card */
.fm-group { margin: 0 0 36px; }
.fm-table td { white-space: normal; vertical-align: top; font-family: var(--serif); font-size: 15px; line-height: 1.4; }
.fm-table td.fm-name { width: 32%; }
.fm-table td.fm-name b { font-weight: 500; color: var(--text); }
.fm-table td.fm-n { font-family: var(--mono); font-size: 18px; color: var(--gold); }
.fm-where { list-style: none; margin: 6px 0 0; padding: 0; font: 12px/1.5 var(--mono); color: var(--axis); }
@media (max-width: 640px) {   /* a phone: each form as a card, the column names as labels */
  .fm-table thead { display: none; }
  .fm-table, .fm-table tbody, .fm-table tr, .fm-table td { display: block; width: auto; }
  .fm-table tr { border-bottom: 1px solid var(--grid); padding: 10px 0; }
  .fm-table td, .fm-table td.fm-name { border: 0; padding: 3px 0; width: auto; }
  .fm-table td[data-label]::before { content: attr(data-label); display: block; font: 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
  .fm-table td.fm-n { text-align: left; }
  .fm-table tbody tr:nth-child(even) td { background: none; }
}

/* the owner's quiz page (owner, 2026-11-07) */
.qz-q .qz-text { font-size: 22px; line-height: 1.35; color: var(--text); margin: 6px 0 14px; max-width: 60ch; }
.qz-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.qz-form .flabel { flex-basis: 100%; }
.qz-form input { flex: 1 1 220px; max-width: 420px; }
.qz-result { margin: 14px 0 6px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--panel-hi); max-width: 74ch; }
.qz-rules { max-width: 80ch; padding-left: 22px; }
.qz-rules li { margin: 0 0 8px; }
.qz-board td, .qz-board th { white-space: nowrap; }
.fm-table td.qz-k { width: 3em; }

/* ---- Bitcoin Stats: Records and the collector's cards (STATS_BRIEF sections 5 and 6, step S3) ---- */
.rc-lead { margin-bottom: 18px; }
.rc-explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 32px; margin: 8px 0 26px; }
.rc-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--mono); }
.rc-switch-k { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-right: 4px; }
.rc-switch button { min-height: 40px; padding: 0 14px; background: transparent; color: var(--text-soft); border: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; }
.rc-switch button:hover, .rc-switch button:focus-visible { border-color: var(--gold); color: var(--gold-hi); }
.rc-switch button[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.rc-h { margin: 26px 0 12px; font-size: 21px; }
.rc-rest-h { margin: 22px 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px 18px; align-items: start; }
.rc-card { margin: 0; min-width: 0; }
.rc-card.rc-big { grid-column: span 2; }
@media (max-width: 600px) { .rc-card.rc-big { grid-column: auto; } }
.rc-art { cursor: pointer; }
.rc-art svg, .rc-card-host svg { display: block; }
.rc-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 2px 0; font-family: var(--mono); font-size: 12px; }
.rc-flip { min-height: 32px; padding: 0; background: none; border: 0; color: var(--gold); font: inherit; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.rc-flip:hover, .rc-flip:focus-visible { color: var(--gold-hi); }
.rc-links a { color: var(--text-soft); }
.rc-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 8px 28px; }
.rc-tables caption, #rc-milestones caption { caption-side: top; text-align: left; padding: 0 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
table.mk.rc-top td, table.mk.rc-top th, table.mk.rc-months td, table.mk.rc-months th { white-space: nowrap; }
.rc-end { margin: 40px 0 6px; font-size: 20px; font-style: italic; color: var(--text); }
.rc-parts { margin: 36px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); }
.rc-parts-k { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.rc-parts ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.rc-parts a { color: var(--text); }
#rc-falls-table tr.open td { color: var(--gold-hi); }
/* the weigh-in (owner, 2026-11-13): larger type in the site's two faces, the menu's mono for the labels */
.by-weigh { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: end; margin: 8px 0 40px; padding: 28px 0 30px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.by-k { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.by-big { margin: 0 0 16px; line-height: 1; }
#by-oz { font-size: clamp(56px, 6vw, 84px); font-weight: 500; color: var(--gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.by-unit { display: block; margin-top: 10px; font-size: clamp(22px, 2vw, 28px); color: var(--text); }
.by-line { font-size: 19px; line-height: 1.5; color: var(--text-soft); margin: 0; max-width: 34em; }
.by-line b { font-weight: 600; } .by-line b.down { color: var(--down-hi); }
.by-stacks { min-width: 0; }
/* Bitcoin futures (owner, 2026-11-13): the same weigh-in line as What bitcoin buys, in one column */
.fu-weigh { margin: 8px 0 40px; padding: 28px 0 30px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
#fu-btc { font-size: clamp(56px, 6vw, 84px); font-weight: 500; color: var(--gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fu-weigh .by-line { max-width: 44em; }
@media (max-width: 860px) { .by-weigh { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 720px) { .by-line { font-size: 17px; } .by-k { letter-spacing: 1.2px; } }
.by-amount, .by-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--mono); }
.by-dates { margin: 4px 0 16px; }
.by-dates-k { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 0 2px 0 10px; }
.by-dates-k:first-child { margin-left: 0; }
.by-amount button, .by-dates button { min-height: 36px; padding: 0 12px; background: transparent; color: var(--text-soft); border: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer; }
.by-amount button:hover, .by-dates button:hover, .by-amount button:focus-visible, .by-dates button:focus-visible { border-color: var(--gold); color: var(--gold-hi); }
.by-amount button[aria-pressed="true"], .by-dates button[aria-pressed="true"] { border-color: var(--gold); color: var(--bg); background: var(--gold); }
.rc-day { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; align-items: start; }
.rc-title { font-size: 26px; margin: 2px 0 10px; }
.rc-cause > p { font-size: 17px; line-height: 1.5; }
.rc-sources { margin: 2px 0 0; padding-left: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.rc-facts { margin: 0; }
.rc-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.rc-facts div:last-child { border-bottom: 0; }
.rc-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.rc-facts dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.rc-facts dd.up { color: var(--up); } .rc-facts dd.down { color: var(--down); }
.rc-nav { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; font-family: var(--mono); font-size: 13px; }
.rc-top .num, .rc-months .num { text-align: right; font-variant-numeric: tabular-nums; }
.rc-flip[hidden] { display: none; }

/* On this day (STATS_BRIEF 8, step S4): what happened on the date, year by year, and the picker of every date */
.otd-events { list-style: none; margin: 0 0 12px; padding: 0; }
.otd-event { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); gap: 0 24px; padding: 16px 0 4px; border-top: 1px solid var(--rule); }
.otd-when { grid-column: 1; grid-row: 1; margin: 2px 0 8px; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--gold); }
.otd-item { grid-column: 2; margin: 0 0 14px; min-width: 0; }
.otd-kind { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.otd-title { margin: 2px 0 4px; font-size: 19px; line-height: 1.35; }
.otd-text { margin: 0 0 4px; font-size: 16px; line-height: 1.5; color: var(--text-soft); }
.otd-cycle { margin: 30px 0 22px; }
.otd-studies { margin: 4px 0 0; padding-left: 20px; line-height: 1.7; }
.otd-pick { margin: 18px 0 0; font-family: var(--mono); font-size: 13px; }
.otd-pick p { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.otd-pick a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 36px; padding: 0 6px; border: 1px solid var(--grid); color: var(--text-soft); text-decoration: none; }
.otd-pick a:hover, .otd-pick a:focus-visible { border-color: var(--gold); color: var(--gold-hi); }
.otd-pick a[aria-current] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
@media (max-width: 600px) {
  .otd-event { grid-template-columns: minmax(0, 1fr); }
  .otd-when, .otd-item { grid-column: 1; grid-row: auto; }
}
.stats-teaser .st-tile { padding: 18px 20px; border: 1px solid var(--rule); }
.stats-teaser .st-tile p { margin: 0 0 8px; font-size: 17px; line-height: 1.5; color: var(--text-soft); }
.stats-teaser .st-tile h3 a { color: var(--text); text-decoration: none; }
.stats-teaser .st-tile h3 a:hover, .stats-teaser .st-tile h3 a:focus-visible { color: var(--gold-hi); }

/* The landing page's cards light up once under the pointer (owner, 2026-11-08): about a second up to a gold glow and
   back down, so a visitor sees there is something to open; the whole card is the link. Calm when motion is reduced. */
.previews .ep-card, .stats-teaser .st-tile { position: relative; }
.previews .ep-card h3 a::after, .stats-teaser .st-tile h3 a::after { content: ""; position: absolute; inset: 0; }
@keyframes card-glow {        /* the border starts and ends at the element's own colour */
  0% { box-shadow: 0 0 0 0 rgba(226, 176, 74, 0), inset 0 0 0 0 rgba(226, 176, 74, 0); }
  40% { border-color: var(--gold); box-shadow: 0 0 36px 2px rgba(226, 176, 74, 0.36), inset 0 0 60px 0 rgba(226, 176, 74, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(226, 176, 74, 0), inset 0 0 0 0 rgba(226, 176, 74, 0); }
}
.previews .ep-card:hover, .previews .ep-card:focus-within, .stats-teaser .st-tile:hover, .stats-teaser .st-tile:focus-within {
  animation: card-glow 2.4s ease-in-out 1;
}
@media (prefers-reduced-motion: reduce) {
  .previews .ep-card:hover, .previews .ep-card:focus-within, .stats-teaser .st-tile:hover, .stats-teaser .st-tile:focus-within {
    animation: none; border-color: var(--gold-soft);
  }
}

/* the short call to action high on the Bitcoin Stats pages for a visitor (_cta_band.html, owner 2026-11-08) */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 6px 0 32px;
            padding: 16px 20px; border: 1px solid var(--gold-soft); background: var(--panel-hi); }
.cta-band p { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.45; }
.cta-band .cta-band-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Owner, 2026-11-08: in the visitor's frames (the public pages, and pricing and sign-up in the auth frame) every way to
   a free account, the plans or a subscription lights up once under the pointer or the keyboard, as the front page's
   cards do: the buttons, the offer bar and the plan cards. Never on its own, and calm when motion is reduced. Inside
   the site, for a reader, nothing glows. */
@keyframes btn-glow {
  0% { box-shadow: 0 0 0 0 rgba(226, 176, 74, 0); }
  40% { box-shadow: 0 0 24px 3px rgba(226, 176, 74, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(226, 176, 74, 0); }
}
:is(main.public, main.auth-main) :is(a.btn[href^="/free"], a.btn[href^="/pricing"], a.btn[href^="/login?next=/billing/start"], a.btn[href="#plans"]):is(:hover, :focus-visible) {
  animation: btn-glow 2.4s ease-in-out 1;
}
:is(main.public, main.auth-main) .cta-band:is(:hover, :focus-within), main.auth-main .plan:is(:hover, :focus-within) {
  animation: card-glow 2.4s ease-in-out 1;
}
@media (prefers-reduced-motion: reduce) {
  :is(main.public, main.auth-main) :is(a.btn[href^="/free"], a.btn[href^="/pricing"], a.btn[href^="/login?next=/billing/start"], a.btn[href="#plans"]):is(:hover, :focus-visible),
  :is(main.public, main.auth-main) .cta-band:is(:hover, :focus-within), main.auth-main .plan:is(:hover, :focus-within) {
    animation: none; box-shadow: 0 0 0 1px var(--gold-soft);
  }
}

/* the Studio's video queue: a bar that moves while a video waits for the video job (owner, 2026-11-10) */
.vid-wait { height: 10px; border: 1px solid var(--gold); overflow: hidden; position: relative; }
.vid-wait > div { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--gold); opacity: 0.55;
  animation: vid-wait 1.8s ease-in-out infinite; }
@keyframes vid-wait { 0% { left: -30%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .vid-wait > div { animation: none; left: 0; width: 100%; opacity: 0.25; } }

/* the videos' overview (owner, 2026-11-11): one small card per video, as wide as the cards of /clock, with what the
   video is made from, when it was started and how far it is; the card opens the video's own page */
.vid-h { margin: 34px 0 14px; font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.vid-h span { color: var(--muted); }
.vid-arch > summary { cursor: pointer; }
.vid-arch .kf-meta { margin: 18px 0 10px; }
.vid-card { gap: 6px; padding: 16px 16px 14px; }
.vid-card h3 { font-size: 20px; overflow-wrap: anywhere; }
.vid-card .vid-from { font-size: 15px; line-height: 1.35; color: var(--text-soft); overflow-wrap: anywhere; }
.vid-card .vid-when { margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.6px; color: var(--muted); }
.vid-card .vid-when span { white-space: nowrap; }      /* the start and the shape each stay whole when the line breaks */
.vid-card .vid-status { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text); }
.vid-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--muted); }
.vid-status.good { color: var(--up-hi); }
.vid-status.good .vid-dot { background: var(--up); border-color: var(--up); }
.vid-status.done .vid-dot { background: var(--muted); }
.vid-status.busy { color: var(--gold-hi); }
.vid-status.busy .vid-dot { background: var(--gold); border-color: var(--gold); animation: vid-pulse 1.4s ease-in-out infinite; }
.vid-status.bad { color: var(--down-hi); }
.vid-status.bad .vid-dot { background: var(--down); border-color: var(--down); }
.vid-made { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap; }
.vid-card[data-status="failed"] { border-color: var(--down); }
@keyframes vid-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .vid-status.busy .vid-dot { animation: none; } }
/* a note on a video's own page: why Render waits, or why the render failed */
.vid-note { max-width: 900px; margin: 10px 0; padding: 10px 14px; border-left: 2px solid var(--gold); color: var(--text-soft); }
.vid-note.bad { border-left-color: var(--down); }

/* the videos shown on the page they were made from (owner, 2026-11-11) */
.vid-strip { position: relative; margin: 0 0 28px; padding: 20px 20px 16px; background: var(--panel); border: 1px solid var(--rule); }
.vid-row { display: flex; flex-wrap: wrap; gap: 18px; }
.vid-item { margin: 0; width: 220px; max-width: 100%; }
.vid-item.wide { width: 400px; }
.vid-item video { display: block; width: 100%; background: #000; border: 1px solid var(--grid); }
.vid-item figcaption { margin-top: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--axis); }

/* each reply to handle as one clearly bounded card (owner, 2026-11-11: hard to see where one reply ends) */
.mk-box.reply-card { border: 2px solid var(--gold); margin: 0 0 40px; padding-top: 0; }
.mk-box.reply-card > .mk-h:first-child { max-width: none; margin: 0 0 16px; padding: 14px 0 10px; border-bottom: 2px solid var(--gold); }

/* the series picker on /sorting: the page's one control, a gold-edged panel with a large select (owner, 2026-11-14) */
.sorting-pick { margin: 20px 0 22px; padding: 16px 18px 18px; background: var(--panel-hi); border: 1px solid var(--gold); border-radius: 6px; }
.sorting-pick-h { display: block; font-family: var(--serif); font-size: 21px; color: var(--text); margin: 0 0 4px; }
.sorting-pick-sub { margin: 0 0 12px; font-size: 14px; color: var(--axis); }
.sorting-pick select { width: 100%; font-family: var(--mono); font-size: 17px; color: var(--text); background: var(--panel);
  border: 2px solid var(--gold); border-radius: 4px; padding: 12px 44px 12px 14px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%; background-size: 7px 7px; background-repeat: no-repeat; }
.sorting-pick select:hover, .sorting-pick select:focus { border-color: var(--gold-hi); outline: none; box-shadow: 0 0 0 3px rgba(226, 176, 74, 0.25); }
@media (max-width: 560px) { .sorting-pick select { font-size: 14px; padding: 11px 38px 11px 10px; } .sorting-pick-h { font-size: 19px; } }
.sorting-search { width: 100%; font-family: var(--mono); font-size: 16px; color: var(--text); background: var(--panel); border: 1px solid var(--gold-soft);
  border-radius: 4px; padding: 10px 12px; margin: 0 0 6px; }
.sorting-search:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(226, 176, 74, 0.25); }
.sorting-search-n { margin: 0 0 10px; font-size: 13px; color: var(--gold); min-height: 1em; }

/* Fear and Greed (owner, 2026-11-17): the gauge and the five bands' colours, the same as fear_greed.js BANDS */
.fg-b0 { color: #D2604A; } .fg-b1 { color: #E39A5B; } .fg-b2 { color: #C8B88E; } .fg-b3 { color: #9CC48A; } .fg-b4 { color: #4E9E6B; }
.fg-today { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.fg-line { font-size: 21px; line-height: 1.45; color: var(--text-soft); margin: 0 0 18px; }
.fg-line b { font-weight: 600; }
.fg-k { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.fg-back { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grid); }
.fg-back li { display: grid; grid-template-columns: 9em 3em 1fr; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--grid); }
.fg-when { font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--axis); }
.fg-val { font-family: var(--serif); font-size: 26px; line-height: 1; text-align: right; }
.fg-band { color: var(--text-soft); }
.fg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: currentColor; margin-right: 6px; vertical-align: middle; }
@media (max-width: 860px) { .fg-today { grid-template-columns: 1fr; gap: 20px; } }

.vid-board td { vertical-align: top; }
.vid-board td .btn { white-space: nowrap; }
[role="tab"] span { margin-left: 4px; }
/* where a made video is published: its page, X, YouTube (owner, 2026-11-17) */
.vid-ch { font-family: var(--mono); font-size: 12px; letter-spacing: 0.6px; color: var(--muted); white-space: nowrap; }
.vid-ch.on { color: var(--up-hi); text-decoration: none; }
.vid-ch.on:hover { text-decoration: underline; }
.vid-ch.na { opacity: 0.6; }
.vid-chs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.vid-board td > a:not(.vid-ch):not(.vid-made) { display: inline-block; min-width: 200px; }
.vid-ch.on { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* the Seismograph's strike videos (owner, 2026-11-18): small under the strike's text in the hover box, large on a click */
.cm-tip video.tip-video { display: block; width: 180px; height: 320px; margin: 8px 0 4px; background: #000; border: 1px solid var(--grid); object-fit: cover; }
.tip-watch { color: var(--gold-hi); }
.meteors .meteor-watch { margin-left: 6px; }
.strike-big { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .82); }
.strike-big[hidden] { display: none; }
.strike-big figure { position: relative; margin: 0; max-width: 100%; }
.strike-big video { display: block; height: min(80vh, 900px); max-width: calc(100vw - 32px); aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--rule); }
.strike-big figcaption { max-width: min(80vh * .5625, calc(100vw - 32px)); margin-top: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--axis); }
.strike-big .sb-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--panel-hi); border: 1px solid var(--gold-soft); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 600px) { .strike-big .sb-close { top: 6px; right: 6px; } }
/* the Newsletters page (owner, 2026-11-18): the process in steps, and every week as a line of three hub cards */
.nl-steps { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 6px; max-width: 75ch; }
.nl-steps .nl-soon { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nl-weeks { margin-top: 28px; }
.nl-week { margin: 22px 0 8px; }
.nl-card h3 { overflow-wrap: anywhere; }
.nl-card .nl-read { margin-top: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
.nl-card.nl-none { opacity: 0.55; }
.nl-card.nl-none .hub-words { color: var(--muted); }
/* the weekly's Public cut as an X Article to paste (newsletter_x_article.html) */
.xa-steps { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.xa-pic { display: block; width: 100%; height: auto; border: 1px solid var(--rule); margin: 8px 0; }
.xa-text { background: var(--panel); border: 1px solid var(--rule); padding: 12px 16px; max-width: 70ch; }
.xa-text h2 { font-size: 20px; margin: 14px 0 6px; }
.xa-text p { margin: 0 0 10px; }
.xa-text a { color: var(--gold); }
.xa-cap p { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }
.xa-steps .xa-done { border-color: var(--gold); }

/* the weekly long read's charts (NEWSLETTER_BRIEF 8): a page's own card, its caption in the page's words */
.wk-fig { margin: 6px 0 22px; }
.wk-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.wk-fig figcaption { margin-top: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--axis); }
