/* Printers, printersfx.com
   One stylesheet for every page. Colours, type and spacing live in the
   tokens below; components only ever read the tokens. */

@font-face { font-family: "EB Garamond"; src: url("/static/fonts/garamond-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/static/fonts/garamond-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* light, the default: ink on cream paper, gold foil on night */
  --bg: #f8f6f1;
  --bg-2: #f1ede5;
  --surface: #ffffff;
  --line: #e6e0d5;
  --line-2: #d2c9b9;
  --text: #17150f;
  --muted: #57514a;
  --faint: #6f675b;
  --bronze: #a37a3a;
  --bronze-ink: #7a5a22;
  --bronze-wash: #f4ecdd;
  --wash: var(--bronze-wash);
  --bronze-line: #e3d2b2;
  --neg: #a8452a;
  --neg-wash: #f7e7e0;
  --neg-line: #ecc9bc;
  --pos: #3d6b40;
  --pos-dot: #4d7a4f;
  --input-line: #a89d8b;
  --hover: rgba(23, 21, 15, .04);
  --head-bg: rgba(248, 246, 241, .96);
  --head-bg-blur: rgba(248, 246, 241, .86);
  --btn-ink-bg: #141310;
  --btn-ink-fg: #f2eee6;
  --btn-ink-hover: #2a2722;
  --gold-hover: #e2cba3;
  /* night bands keep their look in both themes */
  --risk: #0d0c0a;
  --night: #141310;
  --night-2: #1e1c18;
  --gold: #d6bb8c;
  --on-ink: #f2eee6;
  --on-ink-2: #bdb8af;
  --on-ink-3: #8f8a81;
  --neg-on-ink: #e3896d;
  --on-ink-muted: var(--on-ink-2);
  --on-ink-faint: var(--on-ink-3);
  --on-ink-line: rgba(242, 238, 230, .16);
  --radius: 3px;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  --gutter: 24px;
  --head-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171612; --bg-2: #1e1c18; --surface: #22201b; --line: rgba(242, 238, 230, .12); --line-2: rgba(242, 238, 230, .2);
    --text: #f2eee6; --muted: #bdb8af; --faint: #8f8a81; --bronze: #d6bb8c; --bronze-ink: #d6bb8c; --bronze-wash: #24211b;
    --bronze-line: rgba(214, 187, 140, .35); --neg: #e3896d; --neg-wash: #3a231c; --neg-line: rgba(227, 137, 109, .4);
    --pos: #8fc28f; --pos-dot: #8fc28f; --input-line: rgba(242, 238, 230, .35); --hover: rgba(242, 238, 230, .06);
    --head-bg: rgba(23, 22, 18, .96); --head-bg-blur: rgba(23, 22, 18, .86);
    --btn-ink-bg: #f2eee6; --btn-ink-fg: #141310; --btn-ink-hover: #ffffff; --night: #0e0d0b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171612; --bg-2: #1e1c18; --surface: #22201b; --line: rgba(242, 238, 230, .12); --line-2: rgba(242, 238, 230, .2);
  --text: #f2eee6; --muted: #bdb8af; --faint: #8f8a81; --bronze: #d6bb8c; --bronze-ink: #d6bb8c; --bronze-wash: #24211b;
  --bronze-line: rgba(214, 187, 140, .35); --neg: #e3896d; --neg-wash: #3a231c; --neg-line: rgba(227, 137, 109, .4);
  --pos: #8fc28f; --pos-dot: #8fc28f; --input-line: rgba(242, 238, 230, .35); --hover: rgba(242, 238, 230, .06);
  --head-bg: rgba(23, 22, 18, .96); --head-bg-blur: rgba(23, 22, 18, .86);
  --btn-ink-bg: #f2eee6; --btn-ink-fg: #141310; --btn-ink-hover: #ffffff; --night: #0e0d0b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
/* the phone join bar is fixed to the bottom: keep focused links and anchors clear of it */
@media (max-width: 720px) { html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 17px; } }
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0 0 1em; text-wrap: pretty; }
b, strong { font-weight: 600; }
figure { margin: 0; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--bronze-ink); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--bronze-wash); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--night); color: var(--on-ink); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
/* a narrow column keeps the page's left edge */
.wrap.narrow > * { max-width: 760px; }

/* ---------- type ---------- */
/* Small print for the few places a label still carries a fact (a date, a status). Never above a heading. */
.eyebrow {
  display: block;
  font: 500 .875rem/1.4 var(--sans);
  color: var(--faint);
  margin-bottom: 10px;
}
.display, .h1, .h2, .h3 { font-family: var(--serif); color: var(--text); text-wrap: balance; }
.display { font-size: clamp(2.6rem, 5.8vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 400; }
.h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -.016em; font-weight: 400; }
.h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.01em; }
.h3 { font-size: 1.4rem; line-height: 1.22; }
.h4 { font: 600 1rem/1.4 var(--sans); }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.serif-num { font-family: var(--serif); font-variant-numeric: lining-nums; }
.neg { color: var(--neg); }
.measure { max-width: 66ch; }

/* ---------- risk bar + header: night on every page, the masthead continues it ---------- */
@media (min-width: 721px) { :root { --head-h: 76px; } }
.riskbar { background: var(--risk); color: var(--on-ink-2); font-size: .78rem; line-height: 1.5; text-align: center; padding: 8px var(--gutter); }
.riskbar b { color: var(--on-ink); font-weight: 600; }
.riskbar a { color: var(--on-ink-2); }
.riskbar a:hover { color: var(--on-ink); }
.rb-short { display: none; }
@media (max-width: 640px) {
  .riskbar { font-size: .72rem; padding: 7px 12px; }
  .rb-long { display: none; }
  .rb-short { display: inline; }
}

.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--night); color: var(--on-ink); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(214, 187, 140, .5); }
.brand span { font: 600 .82rem/1 var(--sans); letter-spacing: .3em; color: var(--on-ink); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--on-ink-2); font-size: .94rem; font-weight: 500; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover { color: var(--on-ink); background: rgba(242, 238, 230, .07); }
.nav a[aria-current="page"] { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 8px; }
.head-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.site-head .btn-line { color: var(--on-ink); border-color: rgba(242, 238, 230, .3); background: transparent; }
.site-head .btn-line:hover { border-color: var(--on-ink); }
.site-head .btn-line[aria-current="page"] { border-color: var(--gold); }
.acct-link { text-decoration: none; font-size: .94rem; font-weight: 500; color: var(--on-ink); padding: 10px 6px; white-space: nowrap; }
.acct-link:hover { color: var(--gold); }
.menu-btn { display: none; }
.nav .nav-acct { display: none; }
main:focus { outline: none; }
.site-head :focus-visible, .masthead :focus-visible, .site-foot :focus-visible, .join-bar :focus-visible, .riskbar :focus-visible { outline-color: var(--gold); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .head-actions { margin-left: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px;
    background: transparent; color: var(--on-ink); border: 1px solid rgba(242, 238, 230, .3); border-radius: var(--radius);
    padding: 8px 12px; font: 500 .88rem/1 var(--sans); cursor: pointer;
  }
  .menu-btn svg { width: 16px; height: 16px; }
  .site-head.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--night); border-top: 1px solid var(--on-ink-line); border-bottom: 1px solid var(--on-ink-line);
    padding: 8px var(--gutter) 18px; margin: 0; max-height: calc(100dvh - var(--head-h)); overflow-y: auto;
  }
  .site-head.open .nav a { padding: 14px 4px; border-bottom: 1px solid var(--on-ink-line); border-radius: 0; font-size: 1.02rem; color: var(--on-ink); }
  .site-head.open .nav a:last-child { border-bottom: 0; }
  .site-head.open .nav .nav-acct { display: block; }
  .site-head.open .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; text-decoration: none; }
}
@media (max-width: 560px) {
  .acct-link { display: none; }
  .head-row { gap: 12px; }
  .head-actions { gap: 8px; }
  .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand span { letter-spacing: .22em; }
}
@media (max-width: 400px) {
  .brand { gap: 9px; }
  .brand span { letter-spacing: .14em; font-size: .76rem; }
  .head-actions .btn { padding: 10px 12px; font-size: .86rem; }
}

/* ---------- masthead: the poster headline and the page's key figures ---------- */
.masthead { background: var(--night); color: var(--on-ink); padding-block: 64px 76px; }
.masthead.has-figs { padding-bottom: 0; }
.mast-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .88rem; color: var(--on-ink-3); margin-bottom: 36px; }
.mast-crumbs a { color: var(--on-ink-2); }
.mast-crumbs a:hover { color: var(--on-ink); }
.mast-crumbs .sep { color: var(--on-ink-3); }
.mast-kicker { font-size: 1.06rem; line-height: 1.5; color: var(--on-ink-2); margin: 0 0 26px; max-width: 46ch; }
.mast-title { font: 400 clamp(min(56px, 14.5vw), 9.4vw, 140px)/.94 var(--serif); letter-spacing: -.03em; margin: 0; color: var(--on-ink); max-width: 12ch; text-wrap: balance; overflow-wrap: break-word; }
.mast-title.md { font-size: clamp(min(52px, 15vw), 8vw, 116px); max-width: 13ch; }
.mast-title.sm { font-size: clamp(min(44px, 13vw), 6.4vw, 92px); max-width: 16ch; }
.mast-emblem-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.mast-emblem { width: 120px; height: 120px; flex: none; }
.mast-lead { font-size: 1.14rem; line-height: 1.6; color: var(--on-ink-2); margin: 28px 0 0; max-width: 40em; }
.mast-lead a { color: var(--on-ink); text-decoration-color: var(--gold); }
.mast-actions { display: flex; gap: 14px 26px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.masthead .figs { margin-top: 72px; }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--on-ink-line); }
.fig { padding: 28px 24px 32px 0; border-right: 1px solid var(--on-ink-line); min-width: 0; }
.fig + .fig { padding-left: 24px; }
.fig:last-child { border-right: 0; }
.fig-v { font: 400 clamp(40px, 4.4vw, 60px)/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.fig-v .neg, .fig-v.neg { color: var(--neg-on-ink); }
.fig-v.txt { font: 400 1rem/1.6 var(--sans); color: var(--on-ink); padding-top: 6px; }
.fig-l { font-size: .92rem; line-height: 1.45; color: var(--on-ink-2); margin-top: 10px; }
.fig-s { font-size: .84rem; line-height: 1.45; color: var(--on-ink-3); margin-top: 4px; }
@media (max-width: 900px) {
  .masthead { padding-block: 40px 56px; }
  .masthead .figs { margin-top: 48px; }
  .mast-emblem { width: 88px; height: 88px; }
  .mast-emblem-row { gap: 20px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig, .fig + .fig { padding: 22px 16px 24px 0; border-right: 0; border-bottom: 1px solid var(--on-ink-line); }
  .fig:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--on-ink-line); }
}

/* ---------- the phone join bar ---------- */
.join-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--night); color: var(--on-ink-2); border-top: 1px solid rgba(214, 187, 140, .3); font-size: .86rem; line-height: 1.4;
}
.join-bar p { margin: 0; }
.join-bar .btn { margin-left: auto; flex: none; }
.join-bar[hidden] { display: none; }
@media (min-width: 721px) { .join-bar { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 .95rem/1.1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
.btn-ink { background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.btn-ink:hover { background: var(--btn-ink-hover); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--text); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost-ink { background: transparent; color: var(--on-ink); border-color: var(--on-ink-line); }
.btn-ghost-ink:hover { border-color: var(--on-ink-muted); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 420px) { .page-head .btn-row > .btn, .section.ink .btn-row > .btn, .hero .btn-row > .btn, .auth-card .btn-row > .btn { flex: 1 1 100%; } }
.text-link { font-weight: 600; font-size: .95rem; color: var(--text); text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- sections ---------- */
.section { padding-block: 104px; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section.tight { padding-block: 64px; }
.section.ink { background: var(--night); color: var(--on-ink); border-top: 0; }
.section.ink + .section { border-top: 0; }
main > .section.ink:last-child { border-bottom: 1px solid var(--on-ink-line); }
.section.ink .h1, .section.ink .h2, .section.ink .h3, .section.ink .display { color: var(--on-ink); }
.section.ink .eyebrow { color: var(--gold); }
.section.ink .lede, .section.ink .muted { color: var(--on-ink-muted); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 720px; }
.section-head .lede { margin: 0; }
.page-head { padding-block: 96px 64px; border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 20px; }
.page-head .btn-row { margin-top: 32px; }
@media (max-width: 720px) {
  .section { padding-block: 64px; }
  .page-head { padding-block: 52px 40px; }
  .section-head { margin-bottom: 32px; }
}

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card.flat { background: transparent; }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .card { padding: 22px; } }

.rule-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.rule-list li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rule-list li > b { font-weight: 600; }
.rule-list li > span { color: var(--muted); }
@media (max-width: 640px) { .rule-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.rule-list.compact li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }

.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px; border-left: 1.6px solid var(--bronze); border-bottom: 1.6px solid var(--bronze); transform: rotate(-45deg); }
.section.ink .ticks li { color: var(--on-ink-muted); }
.dashes { list-style: none; display: grid; gap: 8px; }
.dashes li { position: relative; padding-left: 20px; color: var(--muted); }
.dashes li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--bronze); }

/* ---------- hero ---------- */
.hero { padding-block: 64px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: start; }
.hero .lede { margin-top: 22px; }
.hero .btn-row { margin-top: 30px; }
.portals-line { margin-top: 26px; font-size: .88rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.portals-line a { color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding-block: 44px 56px; } }

/* ---------- the ledger (results tables) ---------- */
.ledger-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ledger-card .lc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.ledger-card .lc-title { font: 500 1.5rem/1.2 var(--serif); }
.ledger-card .lc-when { font-size: .84rem; color: var(--faint); }
.ledger-card .lc-foot { padding: 14px 26px 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .88rem; color: var(--muted); }
.room-rows { list-style: none; }
.room-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 26px; border-bottom: 1px solid var(--line); }
.room-row:last-child { border-bottom: 0; }
.room-row img { width: 40px; height: 40px; }
.room-row .rn { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.room-row .rs { display: block; font-size: .84rem; color: var(--faint); font-weight: 400; }
.room-row .pips { font: 400 2.1rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; min-width: 96px; text-align: right; white-space: nowrap; }
.room-row.total { background: var(--bg); padding-block: 20px; }
.room-row.total .pips { font-size: 2.7rem; font-weight: 500; }
@media (max-width: 460px) {
  .room-row { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 13px 18px; gap: 12px; }
  .room-row img { width: 34px; height: 34px; }
  .room-row .pips { font-size: 1.75rem; min-width: 0; }
  .room-row.total .pips { font-size: 2.2rem; }
  .ledger-card .lc-head, .ledger-card .lc-foot { padding-inline: 18px; }
}
.legend-note { font-size: .78rem; color: var(--faint); line-height: 1.5; }
.ledger-card .kv { border-top: 0; }
.ledger-card .kv li { padding-inline: 24px; }
.ledger-card .kv li:last-child { border-bottom: 0; }
@media (max-width: 460px) { .ledger-card .kv li { padding-inline: 18px; } }

.tag {
  display: inline-block;
  font: 600 .78rem/1 var(--sans);
  padding: 5px 8px;
  border-radius: 2px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}
.tag.W { color: var(--bronze-ink); border-color: var(--bronze-line); background: var(--bronze-wash); }
.tag.on { color: var(--text); border-color: var(--text); }
.tag.L { color: var(--neg); border-color: var(--neg-line); background: var(--neg-wash); }
.tag.BE { color: var(--muted); background: var(--bg-2); }
.tag.C { color: var(--text); }
.tag.O { color: var(--text); border-style: dashed; }
.tag.NR, .tag.X, .tag.V { color: var(--faint); border-style: dashed; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.log { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 680px; }
table.log th { text-align: left; font: 500 .82rem/1.2 var(--sans); color: var(--faint); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
table.log td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.log tr:last-child td { border-bottom: 0; }
table.log td.day { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
table.log td.day i { display: block; font-style: normal; font-size: .78rem; color: var(--faint); }
table.log td.sig b { font-weight: 600; display: block; }
table.log td.sig span { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }
table.log td.room { white-space: nowrap; color: var(--muted); font-size: .84rem; }
table.log td.p { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
table.log th.p { text-align: right; }
@media (max-width: 640px) {
  table.log.trades { min-width: 0; }
  table.log.trades thead { display: none; }
  table.log.trades tbody { display: block; }
  table.log.trades tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "day room . res p" "sig sig sig sig sig"; align-items: center; gap: 8px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.log.trades tr:last-child { border-bottom: 0; }
  table.log.trades td { display: block; padding: 0; border: 0; }
  table.log.trades td.day { grid-area: day; }
  table.log.trades td.day i { display: inline; margin-left: 6px; }
  table.log.trades td.room { grid-area: room; }
  table.log.trades td.sig { grid-area: sig; }
  table.log.trades td.res { grid-area: res; }
  table.log.trades td.p { grid-area: p; min-width: 44px; }
  table.log.trades tr.week-row { display: block; padding: 10px 16px; background: var(--bg); }
  table.log.trades tr.week-row td { background: transparent; padding: 0; }
  .table-wrap.trades-wrap { overflow-x: visible; }
}

/* summary figures */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.figures > div { padding: 18px 20px; border-right: 1px solid var(--line); min-height: 86px; }
.chart-host { min-height: 230px; }
@media (max-width: 520px) { .chart-host { min-height: 200px; } }
.figures > div:last-child { border-right: 0; }
.figures b { display: block; font: 400 2.3rem/1.05 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.figures span { display: block; font-size: .78rem; color: var(--faint); margin-top: 6px; }
@media (max-width: 760px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .figures > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .figures > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* controls */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  border: 1px solid var(--line-2); background: transparent; border-radius: var(--radius);
  padding: 8px 12px; font-size: .86rem; font-weight: 500; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.seg button:hover { color: var(--text); border-color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--on-ink); }
.seg button img { width: 20px; height: 20px; }
.seg-label { font: 500 .88rem/1.2 var(--sans); color: var(--faint); margin-bottom: 8px; }

/* weekly bars */
.bars { width: 100%; height: auto; }
.bars text { font-family: var(--sans); font-size: 13px; fill: var(--faint); }
.bars .lbl { fill: var(--muted); font-weight: 600; }
.bars .bar-up { fill: var(--bronze); }
.bars .bar-down { fill: var(--neg); }
.bars .axis { stroke: var(--line-2); stroke-width: 1; }

/* ---------- room cards ---------- */
.room-card { display: grid; gap: 18px; align-content: start; }
.room-card .rc-top { display: flex; gap: 16px; align-items: center; }
.room-card .rc-top img { width: 64px; height: 64px; flex: 0 0 auto; }
.room-card .rc-top .h3 { margin: 0; }
.room-card .rc-top small { display: block; font-size: .8rem; color: var(--faint); margin-top: 2px; }
.rc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rc-stats > div { padding: 14px 0 0; }
.rc-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.rc-stats b { display: block; font: 500 1.45rem/1.15 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.rc-stats span { display: block; font-size: .78rem; color: var(--faint); }
.rc-stats em { font-style: normal; display: block; font-size: .84rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- routes on home ---------- */
.route { display: flex; flex-direction: column; gap: 14px; }
.route .h3 { margin: 0; }
.route p { margin: 0; }
.route .meta { font-size: .84rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.route .btn-row { margin-top: 6px; }
.route.dark { background: var(--night); border-color: var(--night); color: var(--on-ink); }
.route.dark .h3 { color: var(--on-ink); }
.route.dark p { color: var(--on-ink-muted); }
.route.dark .meta { color: var(--on-ink-faint); border-color: var(--on-ink-line); }
.route.dark .eyebrow { color: var(--gold); }
.route .route-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.route .route-top .eyebrow { margin: 0; }
.route .mark { width: 40px; height: 40px; border-radius: 50%; margin: -8px 0; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.steps.row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps.row.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center;
  font: 500 1.05rem/1 var(--serif); color: var(--bronze-ink);
}
.steps li .h4 { margin-bottom: 6px; }
.steps:not(.row) { gap: 20px; }
.steps:not(.row) li { padding: 4px 0 0 50px; min-height: 34px; }
.steps li p { color: var(--muted); margin: 0; }
.section.ink .steps li::before { border-color: var(--on-ink-line); color: var(--gold); }
.section.ink .steps li p { color: var(--on-ink-muted); }
@media (max-width: 1000px) { .steps.row.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 860px) { .steps.row, .steps.row.c4 { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- split media ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.top { align-items: start; }
.portrait { border-radius: var(--radius); overflow: hidden; background: var(--night); aspect-ratio: 4 / 5; max-width: 100%; max-height: min(68vh, 640px); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-cap { margin-top: 12px; font-size: .85rem; color: var(--faint); }
.portrait-cap b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: minmax(0, 1fr); gap: 32px; } .portrait { max-width: 420px; } }

.roles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.roles li { padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 1.25rem/1.25 var(--serif); }
.roles li:nth-child(odd) { padding-right: 16px; }
.roles small { display: block; font: 400 .85rem/1.4 var(--sans); color: var(--faint); margin-top: 2px; }

blockquote.pull { margin: 0; font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.3 var(--serif); color: var(--text); max-width: 26ch; text-wrap: balance; }

/* ---------- PRINTSYNC ---------- */
.ps-status { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ps-status .ps-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.ps-status .ps-head img { width: 46px; height: 46px; border-radius: 50%; }
.ps-status .ps-head b { display: block; font: 500 1.3rem/1.15 var(--serif); }
.ps-status .ps-head small { display: block; font-size: .8rem; color: var(--faint); }
.ps-rows { list-style: none; }
.ps-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ps-rows li span:first-child { color: var(--muted); }
.ps-rows li span:last-child { font-weight: 600; text-align: right; }
.state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--line-2); }
.state.on::before { background: var(--pos-dot); }
.state.none::before { background: var(--line-2); }
.state.wait::before { background: var(--bronze); }
.state.off::before { background: var(--line-2); }
.ps-source { padding: 12px 22px 16px; font-size: .78rem; color: var(--faint); line-height: 1.5; }
.ps-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ps-price > div { padding: 18px 22px; }
.ps-price > div + div { border-left: 1px solid var(--line); }
.ps-price b { display: block; font: 500 2rem/1 var(--serif); font-variant-numeric: lining-nums; }
.ps-price b small { font: 400 .85rem var(--sans); color: var(--faint); margin-left: 4px; }
.ps-price > div > span { display: block; font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }

.strategy { display: grid; gap: 12px; align-content: start; }
.strategy .s-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.strategy .h3 { font-size: 1.35rem; }
.strategy .s-n { font-size: .8rem; color: var(--faint); white-space: nowrap; }
.strategy .s-default { font: 600 .78rem/1 var(--sans); color: var(--bronze-ink); border: 1px solid var(--bronze-line); background: var(--bronze-wash); padding: 5px 7px 4px; border-radius: 2px; white-space: nowrap; }
.legs { list-style: none; display: grid; gap: 8px; }
.legs li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: .9rem; color: var(--muted); }
.legs li i { font-style: normal; font: 600 .78rem/1.6 var(--sans); color: var(--bronze-ink); font-variant-numeric: tabular-nums; }
.settings-table { width: 100%; border-collapse: collapse; }
.settings-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.settings-table td:first-child { color: var(--muted); padding-right: 24px; }
.settings-table td:last-child { font-weight: 600; text-align: right; white-space: nowrap; }

/* ---------- notices ---------- */
.notice { border: 1px solid var(--line); border-left: 3px solid var(--bronze); background: var(--surface); padding: 16px 20px; border-radius: var(--radius); color: var(--muted); font-size: .94rem; }
.notice b { color: var(--text); }
.notice.ink { background: var(--night-2); border-color: var(--on-ink-line); border-left-color: var(--gold); color: var(--on-ink-muted); }
.notice.ink b { color: var(--on-ink); }
.notice.warn { border-left-color: var(--neg); }
.notice.ok { border-left-color: var(--pos-dot); }
.server-notice { margin-bottom: 18px; }
.server-notice-slot .notice { margin-top: 24px; margin-bottom: 0; }

/* ---------- education ---------- */
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.vol { display: grid; gap: 12px; align-content: start; }
.vol .cover { aspect-ratio: 520 / 736; border-radius: 2px; overflow: hidden; background: var(--night); box-shadow: 0 0 0 1px var(--line); }
.vol .cover img { width: 100%; height: 100%; object-fit: cover; }
.vol b { display: block; font: 500 1.15rem/1.2 var(--serif); }
.vol span { display: block; font-size: .82rem; color: var(--faint); }
@media (max-width: 980px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.shelf.mini { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .shelf.mini { gap: 8px; } }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.doc-row:first-child { border-top: 1px solid var(--line); }
.doc-row .h3 { font-size: 1.4rem; margin-bottom: 6px; }
.doc-row p { color: var(--muted); margin: 0; max-width: 64ch; }
.doc-row .pages { font: 500 1.1rem/1 var(--serif); color: var(--bronze-ink); white-space: nowrap; padding-top: 6px; }
.doc-row .by { display: block; font: 500 .875rem/1.3 var(--sans); color: var(--faint); margin-bottom: 6px; }
.sessions { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sessions th { text-align: left; font: 500 .82rem/1.2 var(--sans); color: var(--faint); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.sessions td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sessions td:first-child { font: 500 1.1rem/1.2 var(--serif); color: var(--bronze-ink); width: 44px; }
.sessions td.d { color: var(--faint); white-space: nowrap; }
@media (max-width: 600px) {
  table.sessions { min-width: 0; }
  table.sessions thead { display: none; }
  table.sessions tbody, table.sessions tr, table.sessions td { display: block; }
  table.sessions tr { padding: 12px 16px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 10px; }
  table.sessions tr:last-child { border-bottom: 0; }
  table.sessions td { padding: 0; border: 0; }
  table.sessions td:first-child { grid-row: 1 / span 3; width: auto; }
  table.sessions td.d { font-size: .8rem; }
  table.sessions td:nth-child(3)::before { content: "Education: "; color: var(--faint); }
  table.sessions td:nth-child(4)::before { content: "Psychology: "; color: var(--faint); }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font: 500 1.22rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid var(--bronze-ink); border-bottom: 1.5px solid var(--bronze-ink); transform: rotate(45deg) translate(-3px, -3px); flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span, .field legend { font: 500 .92rem/1.3 var(--sans); color: var(--text); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--input-line); border-radius: var(--radius);
  padding: 11px 13px; font-size: 1rem; line-height: 1.4;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--bronze); outline-offset: 0; border-color: var(--bronze); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-block; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 9px 13px; font-size: .9rem; color: var(--muted); background: var(--surface); cursor: pointer; }
.choices input:checked + span { background: var(--night); border-color: var(--night); color: var(--on-ink); }
.choices input:focus-visible + span { outline: 2px solid var(--bronze-ink); outline-offset: 2px; }
.preview { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .92rem; color: var(--text); min-height: 74px; }
.form-status { font-size: .88rem; color: var(--muted); min-height: 1.4em; }

.contact-card { display: grid; gap: 6px; }
.contact-card .big { font: 500 1.5rem/1.2 var(--serif); }
.contact-card .big a { text-decoration: none; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }

/* ---------- account + status ---------- */
.kv { list-style: none; border-top: 1px solid var(--line); }
.kv li { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv li > span:first-child { color: var(--muted); }
.kv li > span:last-child { font-weight: 600; overflow-wrap: anywhere; }
.kv li > span.fine { font-weight: 400; color: var(--muted); }
@media (max-width: 600px) { .kv li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.portal-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.portal-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.portal-list .h3 { font-size: 1.35rem; margin-bottom: 4px; }
.portal-list p { margin: 0; color: var(--muted); font-size: .94rem; }
.portal-list small { display: block; font-size: .8rem; color: var(--faint); margin-top: 4px; }
@media (max-width: 600px) { .portal-list li { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.check-list { list-style: none; border-top: 1px solid var(--line); }
.check-list li { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.check-list li > span:first-child { color: var(--muted); }
.check-list .res { font-weight: 600; }
.check-list .res small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 3px; }
@media (max-width: 600px) { .check-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; padding: 1px 5px; overflow-wrap: anywhere; }


/* ---------- members area ---------- */
.auth { padding-block: 64px 88px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.auth-card { padding: 34px; }
.auth-card .h2 { margin-bottom: 8px; }
.auth-card .form { margin-top: 26px; }
.auth-aside { padding-top: 8px; }
.auth-aside .ticks { margin-top: 18px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; margin-top: 18px; }
.auth-links a { color: var(--muted); }
@media (max-width: 860px) { .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .auth-card { padding: 24px; } .auth { padding-block: 40px 64px; } }
.field input.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
/* 24px boxes: a tick box is a target in its own right (WCAG 2.2, 2.5.8), even in a stack of three */
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .92rem; color: var(--muted); }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--night); }
/* alerts on this device (site/src/alerts.js) */
.alerts { display: grid; gap: 12px; max-width: 720px; }
.alerts .h3, .alerts-line { margin: 0; }
.alerts-ios { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.alerts-form { display: grid; gap: 14px; }
.alerts-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.alerts-form legend { font-weight: 600; padding: 0; margin-bottom: 10px; }
.alerts-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; }
.alerts-form .btn-row { margin: 0; }
html:not(.js) [data-module="alerts"] [data-alerts-state] { display: none; }
.form-status.ok { color: var(--pos); }
.form-status.err { color: var(--neg); }
.grid > .card[hidden] + .card { grid-column: 1 / -1; }
.access-card { display: flex; flex-direction: column; gap: 14px; }
.access-card .a-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.access-card .a-top .h3 { margin: 0; }
.access-card p { margin: 0; }
.access-card .btn-row { margin-top: auto; padding-top: 6px; }
.big-line { font: 500 1.35rem/1.25 var(--serif); color: var(--text); margin: 0 0 6px; }
.price-big { font: 500 2.6rem/1 var(--serif); font-variant-numeric: lining-nums; margin: 6px 0 8px; }
.price-big small { font: 400 .95rem var(--sans); color: var(--faint); margin-left: 6px; }
.tg-flow { display: grid; gap: 22px; }
.tg-steps { list-style: none; display: grid; gap: 14px; counter-reset: tg; }
.tg-steps li { counter-increment: tg; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); }
.tg-steps li::before { content: counter(tg); width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font: 500 .95rem/1 var(--serif); color: var(--bronze-ink); }
.tg-steps b { color: var(--text); }
.tg-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.tg-open .qr { width: 148px; height: 148px; display: block; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
@media (max-width: 680px) { .tg-open { grid-template-columns: minmax(0, 1fr); } .tg-open [data-tg="qr"] { display: none; } }
.tg-result { border-left: 3px solid var(--bronze); background: var(--bg); padding: 18px 20px; border-radius: var(--radius); display: grid; gap: 10px; }
.tg-result.ok { border-left-color: var(--pos-dot); }
.tg-result:focus { outline: none; }
.tg-result.warn { border-left-color: var(--neg); }
.tg-result p { margin: 0; color: var(--muted); }
.code-big { font: 600 1.15rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; overflow-wrap: anywhere; margin: 4px 0 10px; color: var(--text); }
.mono-cell { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; overflow-wrap: anywhere; }
.fresh-code { border: 1px solid var(--bronze-line); background: var(--bronze-wash); padding: 18px 20px; border-radius: var(--radius); }
.members-error { margin-top: 18px; }
.kv.compact li { padding: 9px 0; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
@media (max-width: 600px) { .kv.compact li { grid-template-columns: minmax(0, 1fr); } }
table.reqs { min-width: 640px; }
table.reqs td { vertical-align: middle; }
table.reqs td b { display: block; font-weight: 600; }
table.reqs td .sub { display: block; font-size: .8rem; color: var(--faint); overflow-wrap: anywhere; }
table.reqs .copy-row { margin-top: 6px; gap: 8px; }
.btn.copy-inline { min-height: 32px; padding: 6px 10px; font-size: .82rem; }
.approval { display: grid; gap: 14px; }
.approval .a-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.approval .a-top .h3 { margin: 0; }
.approval textarea.reason { min-height: 70px; }
.approval.done { background: var(--bg); border-style: dashed; }
.approval.done p { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  table.reqs { min-width: 0; }
  table.reqs thead { display: none; }
  table.reqs tbody, table.reqs tr, table.reqs td { display: block; }
  table.reqs tr { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
  table.reqs tr:last-child { border-bottom: 0; }
  table.reqs td { padding: 0; border: 0; }
}

/* ---------- legal prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font: 500 1.65rem/1.2 var(--serif); margin: 44px 0 14px; }
.prose h3 { font: 600 1rem/1.4 var(--sans); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--bronze); }
.prose strong { color: var(--text); }
.prose .updated { font-size: .88rem; color: var(--faint); }
.toc { list-style: none; display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .92rem; margin-top: 28px; }
.toc a { color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: var(--on-ink-2); padding-block: 56px 32px; font-size: .9rem; }
.site-foot a { color: var(--on-ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--gold); }
.site-foot .brand span { color: var(--on-ink); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding-bottom: 30px; border-bottom: 1px solid var(--on-ink-line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: .98rem; }
.site-foot .foot-links a { color: var(--on-ink); }
.foot-legal { padding-block: 26px; display: grid; gap: 10px; font-size: .8rem; line-height: 1.6; color: var(--on-ink-3); }
.foot-legal p { max-width: 112ch; margin: 0; }
.foot-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; font-size: .84rem; color: var(--on-ink-3); }
.foot-small { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-end { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--on-ink-line); }
/* the install offer (site.js): a text button, or the iPhone steps */
.foot-app { margin: 0 auto 0 0; color: var(--on-ink-2); }
.link-btn { background: none; border: 0; padding: 0; min-height: 24px; font: inherit; color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }
.theme-switch { border: 0; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.theme-switch legend { float: left; padding: 0; margin-right: 10px; font-size: .84rem; color: var(--on-ink-3); }
.theme-switch label { position: relative; display: inline-flex; }
.theme-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.theme-switch span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--on-ink-line); border-radius: var(--radius); color: var(--on-ink-2); font-size: .84rem; }
.theme-switch input:checked + span { color: var(--night); background: var(--gold); border-color: var(--gold); font-weight: 600; }
.theme-switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.site-foot.slim { padding-block: 26px 22px; }
.site-foot.slim .foot-bottom { padding-bottom: 16px; border-bottom: 1px solid var(--on-ink-line); }
.site-foot.slim .foot-legal { padding-block: 16px 0; font-size: .76rem; }
@media (max-width: 640px) { .site-foot { padding-block: 40px 26px; } .foot-links { gap: 10px 20px; } .foot-legal { font-size: .76rem; } .foot-end { justify-content: flex-start; } }

/* ---------- misc ---------- */
.ico { width: 14px; height: 14px; flex: 0 0 auto; display: inline-block; vertical-align: -2px; }
a .ico-ext { width: 11px; height: 11px; margin-left: 5px; opacity: .75; vertical-align: 0; }
table.log tr.week-row td { background: var(--bg); font-size: .85rem; padding-block: 10px; }
table.log tr.more-row td { text-align: center; padding-block: 14px; }
@media (max-width: 640px) { table.log.trades tr.more-row { display: block; padding: 12px 16px; text-align: center; } }
.gap-top { margin-top: 24px; }
.gap-top-lg { margin-top: 40px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 40px 0; }
.loading { color: var(--faint); font-size: .9rem; padding: 18px 24px; }
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 32px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.only-mobile { display: none; }
@media (max-width: 560px) { .hide-sm { display: none; } }
@media (max-width: 680px) { .only-mobile { display: initial; } .hide-mobile { display: none; } }

/* ---------- scroll scenes (site/src/motion.js, site/scenes.py) ----------
   A scene's markup is its finished state, in the flow: that's what shows without JavaScript, with
   reduced motion and in print. With JavaScript (html.js, set in the head before the first paint) and
   motion allowed, a pinned scene's track and sticky stage are sized here, so nothing shifts when the
   engine starts, and only where the screen is tall enough (PRINTSYNC's, data-pin="wide", only where
   it's wide enough too). The engine marks the scenes it plays with data-live and writes --p (0 to 1)
   and data-step on them; whatever a scene hides or moves part way through is styled under data-live.
   A stage that can't hold its content (larger text) gets data-tall from the engine and isn't pinned. */
[data-scene] { position: relative; }
@media screen and (prefers-reduced-motion: no-preference) and (min-height: 560px) {
  html.js [data-scene]:not([data-run]):not([data-pin="wide"]):not([data-tall]) {
    height: calc(var(--track, 2.5) * (100vh - var(--head-h) - env(safe-area-inset-top, 0px)));
    height: calc(var(--track, 2.5) * (100svh - var(--head-h) - env(safe-area-inset-top, 0px)));
  }
  html.js [data-scene]:not([data-run]):not([data-pin="wide"]):not([data-tall]) > [data-stage] {
    position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px));
    height: calc(100vh - var(--head-h) - env(safe-area-inset-top, 0px));
    height: calc(100svh - var(--head-h) - env(safe-area-inset-top, 0px));
    overflow: clip; display: flex; flex-direction: column; justify-content: center;
  }
}
@media screen and (prefers-reduced-motion: no-preference) and (min-height: 560px) and (min-width: 900px) {
  html.js [data-scene][data-pin="wide"]:not([data-run]):not([data-tall]) {
    height: calc(var(--track, 2.5) * (100vh - var(--head-h) - env(safe-area-inset-top, 0px)));
    height: calc(var(--track, 2.5) * (100svh - var(--head-h) - env(safe-area-inset-top, 0px)));
  }
  html.js [data-scene][data-pin="wide"]:not([data-run]):not([data-tall]) > [data-stage] {
    position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px));
    height: calc(100vh - var(--head-h) - env(safe-area-inset-top, 0px));
    height: calc(100svh - var(--head-h) - env(safe-area-inset-top, 0px));
    overflow: clip; display: flex; flex-direction: column; justify-content: center;
  }
}
/* the kit's test scene */
[data-scene="demo"] { --track: 3; }
.demo-bar { height: 4px; background: var(--line); margin-top: 18px; }
.demo-bar span { display: block; height: 100%; background: var(--bronze); transform-origin: left center; }
.demo-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; font-family: var(--serif); font-size: 1.4rem; }
@media screen and (prefers-reduced-motion: no-preference) {
  [data-scene="demo"][data-live] .demo-bar span { transform: scaleX(var(--p, 1)); }
  [data-scene="demo"][data-live][data-step="0"] .demo-steps li:nth-child(n+2),
  [data-scene="demo"][data-live][data-step="1"] .demo-steps li:nth-child(n+3),
  [data-scene="demo"][data-live][data-step="2"] .demo-steps li:nth-child(n+4) { visibility: hidden; }
}

/* Home: the coin beside the headline (under it on phones), turning to face-on as the hero scrolls
   away; the first frame is a plain picture until the frames have loaded, and reduced motion, no
   JavaScript and print get the face-on still */
.hero-coin { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 480px); gap: 48px; align-items: center; }
.coin { position: relative; margin: 0; width: 100%; aspect-ratio: 1; }
.coin picture, .coin img, .coin canvas { display: block; width: 100%; height: 100%; }
.coin canvas { position: absolute; inset: 0; visibility: hidden; }
html:not(.js) .coin picture { display: none; }
[data-scene="coin"][data-live] .coin[data-ready] canvas { visibility: visible; }
[data-scene="coin"][data-live] .coin[data-ready] .coin-img { visibility: hidden; }
@media (min-width: 961px) { .hero-coin .mast-title { font-size: clamp(56px, 7.4vw, 108px); } }
@media (max-width: 960px) {
  .hero-coin { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .coin { width: min(64vw, 300px); justify-self: center; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  /* the headline settles a little behind the coin as it turns: a transform, so nothing reflows */
  [data-scene="coin"][data-live] .mast-copy { transform: translate3d(0, calc(var(--p, 0) * 22px), 0); }
}

/* the Trading Floor: an example sell that plays as you scroll, pinned in How a trade is counted */
[data-scene="sell"] { --track: 2.6; margin-top: 40px; }
.sell-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; width: 100%; }
.sell-fig { margin: 0; }
.sell-chart { display: block; width: 100%; height: auto; max-width: 560px; max-height: 58vh; overflow: visible; }
.sell-chart .zone.lose { fill: var(--neg-line); fill-opacity: .55; }
.sell-chart .zone.win { fill: var(--bronze-line); fill-opacity: .6; }
.sell-chart .axis { stroke: var(--line-2); stroke-width: 1; }
.sell-chart .lv { stroke: var(--line-2); stroke-width: 1; }
.sell-chart .lv.entry { stroke: var(--text); }
.sell-chart .lv.entry2 { stroke: var(--muted); stroke-dasharray: 4 4; }
.sell-chart .lv.stop { stroke: var(--neg); stroke-width: 1.5; }
.sell-chart .lv.target { stroke: var(--bronze); stroke-width: 1.5; }
.sell-chart .lv.target.todo { stroke-dasharray: 3 4; stroke-width: 1; }
.sell-chart text { font-family: var(--sans); font-size: 12.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.sell-chart .px { fill: var(--text); font-size: 13px; }
.sell-chart .px.stop, .sell-chart .lb.stop { fill: var(--neg); }
.sell-chart .px.target, .sell-chart .lb.target { fill: var(--bronze-ink); }
.sell-chart .lb.entry { fill: var(--text); }
.sell-chart .price { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sell-chart .dot { fill: var(--bronze); stroke: var(--wash); stroke-width: 2.5; }
.sell-fig figcaption { font-size: .86rem; line-height: 1.5; color: var(--muted); margin-top: 14px; max-width: 56ch; }
.sell-pips { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; }
.sell-pips b { font: 400 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); color: var(--bronze-ink); font-variant-numeric: lining-nums tabular-nums; min-width: 3.4ch; }
.sell-pips span { font-size: .92rem; color: var(--muted); }
.calls { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.calls li { position: relative; padding-left: 30px; font-size: .95rem; line-height: 1.45; }
.calls li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid var(--bronze); border-radius: var(--radius); background: var(--bronze); transition: background-color .2s, border-color .2s; }
.calls li::after { content: ""; position: absolute; left: 6.5px; top: calc(.2em + 3px); width: 5px; height: 9px; border: solid var(--wash); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: opacity .2s; }
.calls li.todo::before { background: transparent; border-color: var(--line-2); }
.calls li.todo::after { opacity: 0; }
.sell-count { margin: 20px 0 0; font-weight: 600; transition: opacity .25s; }
.sell-count.todo { opacity: 0; }
@media (max-width: 760px) {
  [data-scene="sell"] { margin-top: 28px; }
  .sell-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sell-chart { max-height: 36vh; max-height: 36svh; }
  .sell-fig figcaption { font-size: .78rem; margin-top: 8px; }
  .sell-pips { margin-bottom: 10px; }
  .sell-pips b { font-size: 2.2rem; }
  .calls { gap: 6px; }
  .calls li { font-size: .88rem; padding-left: 26px; }
  .calls li::before { width: 16px; height: 16px; }
  .calls li::after { left: 5.5px; top: calc(.2em + 2.5px); width: 4.5px; height: 8px; }
  .sell-count { margin-top: 10px; font-size: .9rem; }
}
@media (max-width: 760px) and (max-height: 720px) { .sell-chart { max-height: 30vh; max-height: 30svh; } }

/* a room's trade ladder draws itself as it comes up the screen */
@media screen and (prefers-reduced-motion: no-preference) {
  [data-scene="ladder"][data-live] [data-part] { transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transform-box: fill-box; transform-origin: left center; }
  [data-scene="ladder"][data-live] [data-part].later { opacity: 0; }
  [data-scene="ladder"][data-live] line[data-part].later { transform: scaleX(0); }
}

/* PRINTSYNC: how it works, pinned on wide screens while the card walks the four steps */
[data-scene="steps"] { --track: 2.4; }
.ps-how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; width: 100%; }
.term { background: var(--night); color: var(--on-ink); border-radius: var(--radius); padding: 22px 26px 26px; }
.term-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--on-ink-line); }
.term-head b { font-size: .82rem; font-weight: 600; color: var(--gold); }
.term-head span { font-size: .82rem; color: var(--on-ink-3); }
.term-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.term-log li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 14px; font-size: .92rem; line-height: 1.45; color: var(--on-ink-2); }
.term-k { color: var(--gold); font-weight: 600; }
@media (min-width: 900px) {
  .ps-how-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
  .ps-how .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 900px) and (min-height: 560px) {
  [data-scene="steps"][data-live][data-step="0"] .term-log li:nth-child(n+2),
  [data-scene="steps"][data-live][data-step="1"] .term-log li:nth-child(n+3),
  [data-scene="steps"][data-live][data-step="2"] .term-log li:nth-child(n+4) { visibility: hidden; }
  [data-scene="steps"][data-live] .seq li { transition: border-color .3s, box-shadow .3s; }
  [data-scene="steps"][data-live][data-step="0"] .seq li:nth-child(1),
  [data-scene="steps"][data-live][data-step="1"] .seq li:nth-child(2),
  [data-scene="steps"][data-live][data-step="2"] .seq li:nth-child(3),
  [data-scene="steps"][data-live][data-step="3"] .seq li:nth-child(4) { border-top-color: var(--bronze); box-shadow: 0 -1px 0 var(--bronze); }
}
@media print { .coin { display: none; } }

/* page transitions (Chrome, Edge, Safari 18.2 and later; other browsers load pages as usual): a quiet
   cross-fade, and the room emblem travels from the Trading Floor's list into the room's own page */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
[data-vt="em-swing"] { view-transition-name: em-swing; }
[data-vt="em-zerox"] { view-transition-name: em-zerox; }
[data-vt="em-scalp"] { view-transition-name: em-scalp; }
[data-vt="em-inhouse"] { view-transition-name: em-inhouse; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
@media print {
  .riskbar, .site-head, .site-foot, .btn-row, .menu-btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- loading and server notices on members' pages ---------- */
.members-loading { display: none; color: var(--muted); }
html.js .members-loading { display: grid; gap: 2px; }
.members-loading .eyebrow { margin-bottom: 6px; }
.members-loading p { margin: 0; }
.members-loading.card-pad { padding: 28px; }

/* ---------- the week band on the account page ---------- */
.week-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.wb-item { padding: 20px 22px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.wb-item:last-child { border-right: 0; }
.wb-item .eyebrow { margin-bottom: 6px; }
.wb-main { margin: 0; font: 500 1.2rem/1.3 var(--serif); color: var(--text); text-wrap: balance; }
.wb-main.neg { color: var(--neg); }
.wb-sub { margin: 0; font-size: .85rem; color: var(--muted); }
.wb-sub a { color: var(--text); }
@media (max-width: 980px) {
  .week-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-item { border-bottom: 1px solid var(--line); }
  .wb-item:nth-child(2n) { border-right: 0; }
  .wb-item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .week-band { grid-template-columns: minmax(0, 1fr); }
  .wb-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .wb-item:last-child { border-bottom: 0; }
}

/* ---------- the trading floor ---------- */
.fl-list { display: grid; gap: 12px; }
.fl-day { display: flex; align-items: center; gap: 14px; margin: 14px 0 2px; font: 500 .875rem/1.2 var(--sans); color: var(--faint); }
.fl-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fl-day:first-child { margin-top: 0; }
.fl-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.fl-item.fl-signal { border-left: 3px solid var(--bronze); }
.fl-item.fl-signal .fl-body > p:first-of-type:not(.fl-quote) { font-weight: 600; color: var(--text); }
.fl-item.fl-studio { background: var(--bg-2); }
.fl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fl-emblem { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; }
.fl-room { font-weight: 600; font-size: .92rem; }
.fl-author { font-size: .86rem; color: var(--muted); }
.fl-author::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); margin: 0 8px 3px 0; }
.fl-time { color: var(--faint); font-size: .82rem; font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.fl-edited { font-size: .76rem; color: var(--faint); font-style: italic; }
.fl-body p { margin: 0 0 .6em; white-space: normal; overflow-wrap: anywhere; }
.fl-body p:last-child { margin-bottom: 0; }
.fl-quote { border-left: 2px solid var(--line-2); padding: 2px 0 2px 12px; color: var(--muted); font-size: .88rem; }
.fl-quote-label { color: var(--faint); }
.fl-media { font-style: italic; }
.fl-empty b { display: block; margin-bottom: 4px; }
.fl-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 560px) {
  .fl-item { padding: 14px 14px; }
  .fl-head { gap: 8px; margin-bottom: 8px; }
  .fl-emblem { width: 24px; height: 24px; }
  .fl-author { display: none; }
  .fl-tools .seg button { padding: 7px 10px; font-size: .82rem; }
}

/* ---------- Studio ---------- */
.st-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .9rem; }
.field-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
/* Studio's signal forms: prices three to a row, a choice beside its select */
.field-row.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-row.pair, .field-row.thirds { align-items: end; }
.field-row.pair .field select, .field-row.thirds .field input { width: 100%; }
.field-row .field input[type="number"] { width: 100%; background: var(--surface); border: 1px solid var(--input-line); border-radius: var(--radius); padding: 11px 13px; font-size: 1rem; line-height: 1.4; }
@media (max-width: 480px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.st-nav a { color: var(--muted); }
.st-grid { display: block; }
.st-section { display: grid; gap: 14px; scroll-margin-top: calc(var(--head-h) + 20px); }
.st-section .section-head { margin-bottom: 0; }
.st-section .form { max-width: 620px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.copy-row input[type=text] { min-width: 160px; flex: 1; }
.week-preview { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.week-preview:focus { outline: none; }
.wp-head .eyebrow { margin-bottom: 6px; }
.wp-title { margin: 0; font: 500 1.25rem/1.3 var(--serif); }
table.log.preview { min-width: 0; }
table.log.preview td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.log.preview td.p { text-align: right; font-weight: 600; }
table.log.preview th.p { text-align: right; }
table.log.preview tr.total td { background: var(--bg); font-weight: 600; }
.changes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.changes li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.changes li span:first-child { color: var(--faint); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .changes li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- the members' areas: Printers VIP and the IB area ---------- */
.area-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 44px 84px; }
.area-full { padding-block: 32px 84px; }
.area-main { min-width: 0; }
.area-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.area-head .lede { margin-top: 16px; }
.area-head .btn-row { margin-top: 18px; }
.area-section { padding-block: 44px; border-top: 1px solid var(--line); }
.area-section .section-head { margin-bottom: 28px; }
.area-h2 { margin: 52px 0 18px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.area-h2 + .lede { margin-bottom: 22px; }
.area-side { align-self: start; position: sticky; top: calc(var(--head-h) + 24px); }
.area-side .group { display: grid; gap: 2px; padding-bottom: 14px; }
.area-side .g { font: 500 .84rem/1.3 var(--sans); color: var(--faint); margin: 12px 0 4px 10px; }
.area-side a { text-decoration: none; color: var(--muted); padding: 7px 10px; border-radius: var(--radius); font-size: .92rem; }
.area-side a:hover { color: var(--text); background: var(--hover); }
.area-side a[aria-current="page"] { color: var(--text); background: var(--bg-2); box-shadow: inset 3px 0 0 var(--bronze); }
.area-menu-btn { display: none; }
@media (max-width: 1040px) {
  .area-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px 64px; }
  .area-side { position: static; }
  .area-menu-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 14px; font-size: .85rem; font-weight: 500; cursor: pointer; }
  .area-menu-btn svg { width: 16px; height: 16px; }
  .area-side.has-js .area-menu { display: none; }
  .area-side.has-js.open .area-menu { display: grid; }
  .area-menu { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 4px; background: var(--surface); margin-top: 10px; }
  .area-side .group { padding-bottom: 8px; }
}

/* pillars on the VIP home */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 44px; }
.pillar { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; position: relative; }
.pillar:hover { border-color: var(--line-2); }
.pillar .eyebrow { margin-bottom: 4px; }
.pillar b { font: 500 1.35rem/1.2 var(--serif); }
.pillar p { margin: 0; font-size: .9rem; color: var(--muted); }
.pillar .go { position: absolute; right: 18px; top: 18px; color: var(--bronze-ink); }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* this week in the rooms */
.wk-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.wk-room { display: grid; gap: 4px; padding: 16px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.wk-room:hover { background: var(--bg); }
.wk-name { font-weight: 600; font-size: .9rem; }
.wk-pips { font: 500 1.7rem/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.wk-rec { font-size: .8rem; color: var(--faint); }
.wk-rooms .loading { grid-column: 1 / -1; }

/* room panels and their results */
.room-panels { display: grid; gap: 24px; }
.rp-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.rp-top img { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; }
.rp-top > div { flex: 1 1 260px; }
.rp-top > div .eyebrow { margin-bottom: 4px; }
.rp-top > div .h3 { margin-bottom: 4px; }
.rp-top > div p { margin: 0; font-size: .92rem; }
.rp-top .btn { margin-left: auto; }
.res-panel { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; display: grid; gap: 14px; }
.rs-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.rs-head .eyebrow { margin: 0; }
.rs-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
.rs-stats > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.rs-stats > div:last-child { border-right: 0; }
.rs-stats b { display: block; font: 500 1.5rem/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.rs-stats span { display: block; font-size: .74rem; color: var(--faint); margin-top: 4px; }
@media (max-width: 600px) { .rs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rs-stats > div { border-bottom: 1px solid var(--line); } .rs-stats > div:nth-child(3n) { border-right: 0; } .rs-stats > div:nth-last-child(-n+2) { border-bottom: 0; } }
.rs-run { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.rs-line { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.rs-line .eyebrow { margin: 0; }
.rs-tot { font-size: .92rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); border-radius: 2px; padding: 4px 8px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.chip i { font-style: normal; color: var(--faint); margin-right: 6px; }
.chip.neg { color: var(--neg); border-color: var(--neg-line); }
.rs-log summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 6px 0; }
.rs-log[open] summary { margin-bottom: 10px; }
.up { color: var(--text); }

/* the library */
.vol-link { text-decoration: none; color: inherit; }
.vol-link:hover .cover { box-shadow: 0 0 0 1px var(--bronze); }
.vol-text { display: grid; gap: 2px; }
.vol-text > span { font-size: .8rem; color: var(--faint); }
.cover.cover-type { display: grid; align-content: end; gap: 6px; padding: 18px; color: var(--on-ink); }
.ct-by { font: 500 .8rem/1.3 var(--sans); color: var(--gold); }
.ct-title { font: 500 1.3rem/1.15 var(--serif); }
.ct-pages { font-size: .78rem; color: var(--on-ink-faint); }

/* sessions */
.session-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 900px) { .session-cols { grid-template-columns: minmax(0, 1fr); } }
.session-card .series { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.session-card .series .eyebrow { margin: 0; }
.session-card .series .by { font-size: .85rem; color: var(--faint); }
.session-card .h3 { margin: 14px 0 12px; }
.prose-sm p, .prose-sm li { font-size: .97rem; }
.prose-sm p { margin-bottom: .9em; }
.closing { font: 400 1.2rem/1.4 var(--serif); color: var(--bronze-ink); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.gallery button { padding: 0; border: 1px solid var(--line); background: var(--bg-2); border-radius: 2px; overflow: hidden; cursor: zoom-in; display: block; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.session-list { list-style: none; border-top: 1px solid var(--line); }
.session-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 14px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.session-list a:hover b { text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 3px; }
.session-list .sn { font: 500 1.5rem/1 var(--serif); color: var(--bronze-ink); font-variant-numeric: lining-nums; }
.session-list .st b { display: block; font-weight: 600; }
.session-list .st span { display: block; font-size: .85rem; color: var(--muted); }
.session-list .sd { font-size: .82rem; color: var(--faint); white-space: nowrap; }
.session-list .tick { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); }
.session-list a.read .tick { background: var(--bronze); border-color: var(--bronze); }
.session-list li.fresh a { background: var(--bronze-wash); margin: 0 -10px; padding-inline: 10px; }
@media (max-width: 560px) { .session-list a { grid-template-columns: 36px minmax(0, 1fr) 14px; } .session-list .sd { display: none; } }

/* the chart viewer */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 19, 16, .95); color: var(--on-ink); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; font-size: .9rem; }
.lb-bar button, .lb-nav button { background: transparent; color: var(--on-ink); border: 1px solid var(--on-ink-line); border-radius: var(--radius); padding: 8px 14px; font: 600 .88rem/1 var(--sans); cursor: pointer; }
.lb-bar button:hover, .lb-nav button:hover { border-color: var(--on-ink-muted); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 20px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
.no-scroll { overflow: hidden; }

/* the document reader */
.reader-bar { position: sticky; top: var(--head-h); z-index: 5; background: var(--head-bg); display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.reader-bar .eyebrow { margin-bottom: 2px; }
.reader-bar .h3 { font-size: 1.2rem; }
.reader-count { margin-left: auto; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reader-pages { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.reader-pages img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
@media (max-width: 560px) { .reader-bar { flex-wrap: wrap; gap: 8px 12px; } .reader-bar .btn { order: 3; } }

/* the position sizer */
.sizer { display: grid; gap: 22px; }
.sz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sz-grid .field input[type="number"] { width: 100%; background: var(--surface); border: 1px solid var(--input-line); border-radius: var(--radius); padding: 11px 13px; font-size: 1rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sz-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sz-hero { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; background: var(--bg); }
.sz-hero .eyebrow { margin-bottom: 4px; }
.sz-hero b { font: 500 2.2rem/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.sz-table { min-width: 0; }
.sz-table td { font-variant-numeric: tabular-nums; }
.sz-dd { display: grid; gap: 10px; }
.sz-dd .eyebrow { margin: 0; }
.sz-dd-row { display: flex; flex-wrap: wrap; gap: 28px; }
.sz-dd-row b { display: block; font: 500 1.35rem/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.sz-dd-row span { font-size: .8rem; color: var(--faint); }
@media (max-width: 720px) { .sz-grid, .sz-out { grid-template-columns: minmax(0, 1fr); } }
.standard-rules { max-width: 640px; }

/* the IB manual */
.doc-card .closing { margin-top: 20px; }
.doc-card .btn-row { margin-top: 18px; }
.doc-card .rule-list { margin-top: 14px; }
.doc-card .rule-list li { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); padding: 12px 0; }
@media (max-width: 640px) { .doc-card .rule-list li { grid-template-columns: minmax(0, 1fr); } }
.hooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.hook-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.hook-card .eyebrow { margin: 0; }
.hook { margin: 0; font: 400 1.15rem/1.4 var(--serif); color: var(--text); }
.why { margin: 0; font-size: .88rem; color: var(--muted); }
.manual-steps { margin-top: 14px; }
.manual-steps li p { color: var(--muted); }
.manual-steps li .aside { color: var(--bronze-ink); font-size: .92rem; margin-top: 8px; }
.manual-steps .rule-list { margin-top: 10px; border-top: 0; }
.manual-steps .rule-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0; }
.manual-steps .rule-list li > b { font-weight: 600; color: var(--text); }
.rules-list li .h4 { font-size: 1.1rem; }
.formula { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .95rem; color: var(--muted); margin: 0; }
.formula em { font-style: normal; color: var(--bronze-ink); font-family: var(--serif); font-size: 1.3rem; }
.formula .out { font-weight: 600; color: var(--text); }
table.log.maths { min-width: 0; }
table.log.maths td { font-variant-numeric: tabular-nums; }
.chain { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .9rem; color: var(--muted); margin: 16px 0; }
.chain span { font-weight: 600; color: var(--text); }
.chain .ico { color: var(--bronze); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.media-grid figure { margin: 0; }
.media-grid video, .media-grid img { width: 100%; border-radius: 2px; background: var(--night); display: block; }
.media-grid figcaption { font-size: .82rem; color: var(--faint); margin-top: 6px; }
.contents-group { padding-block: 36px; border-top: 1px solid var(--line); }
.contents-group:first-of-type { border-top: 0; padding-top: 0; }
.contents-group .section-head { margin-bottom: 18px; }
.portal-list .eyebrow { margin-bottom: 6px; }
.session-card .btn, .doc-row .btn, .area-head .btn { white-space: normal; text-align: center; max-width: 100%; }
.area-head + .area-section { border-top: 0; padding-top: 0; }

/* =====================================================================
   The rebuild: quiet, editorial components. Hairlines and type do the work;
   the live count is the one framed, bold thing.
   ===================================================================== */

/* section titles without a label above them */
.sec-title { margin-bottom: 36px; max-width: 26ch; }
.sec-sub { margin: -22px 0 28px; max-width: 60ch; }
.lead-p { font-size: 1.12rem; line-height: 1.6; color: var(--text); max-width: 62ch; }
.one-line { font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.one-line b { color: var(--text); }
.quote-by { color: var(--faint); font-size: .95rem; margin: 0; }
.link-line { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; }
@media (max-width: 720px) { .sec-title { margin-bottom: 26px; } .sec-sub { margin: -14px 0 22px; } }

/* rows: one item per line, a hairline between */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: center; padding: 24px 0; }
.row .h3 { margin: 0; }
.row p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.row .btn-row { justify-content: flex-end; }
.row .side { color: var(--faint); font-size: .92rem; white-space: nowrap; text-align: right; }
.row .side-note { color: var(--faint); font-size: .88rem; margin-top: 6px; }
a.row { color: inherit; text-decoration: none; }
a.row:hover .h3, a.row:focus-visible .h3 { text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 5px; }
/* a contents list: title on the left, what it is on the right */
.rows.pairs .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; padding: 26px 0; }
.rows.pairs .row p { margin: 0; font-size: 1.02rem; }
/* plain facts, one per line */
.rows.plain > li { padding: 16px 0; color: var(--text); font-size: 1.05rem; }
@media (max-width: 680px) {
  .row, .rows.pairs .row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0; }
  .rows.pairs .row p { margin-top: 2px; }
  .row .btn-row { justify-content: flex-start; }
  .row .side { text-align: left; }
}

/* step sequences (a real order, so the numbers stay) */
.seq { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: seq; }
.seq li { counter-increment: seq; border-top: 1px solid var(--line-2); padding-top: 18px; }
.seq li::before { content: counter(seq); display: block; font: 400 2rem/1 var(--serif); color: var(--bronze-ink); font-variant-numeric: lining-nums; margin-bottom: 14px; }
.seq li .h4 { margin-bottom: 6px; }
.seq li p { color: var(--muted); margin: 0; }
.section.ink .seq li { border-color: var(--on-ink-line); }
.section.ink .seq li::before { color: var(--gold); }
.section.ink .seq li p { color: var(--on-ink-muted); }
@media (max-width: 900px) { .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
@media (max-width: 560px) {
  .seq { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .seq li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 16px 0; }
  .seq li::before { grid-row: 1 / span 2; font-size: 1.5rem; margin: 0; }
}

/* the home hero */
.hero { padding-block: 80px; }
.hero + .section { border-top: 1px solid var(--line); }
.hero-grid { align-items: center; gap: 64px; }
.hero-copy .lede { margin-top: 24px; }
.hero-copy .btn-row { margin-top: 32px; gap: 24px; }
.hero-count .legend-note { margin-top: 14px; }
@media (max-width: 960px) { .hero { padding-block: 44px 64px; } .hero-grid { gap: 40px; } }

/* the closing band */
.section.band { padding-block: 80px; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band-row .h2 { max-width: 22ch; }
.band-line { color: var(--on-ink-muted); margin: 10px 0 0; max-width: 52ch; }
.band .btn-row { gap: 22px; }
.ink-link { color: var(--on-ink); font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-color: rgba(214, 187, 140, .6); text-underline-offset: 4px; }
.ink-link:hover { text-decoration-color: var(--gold); }
@media (max-width: 720px) { .section.band { padding-block: 56px; } }

/* a section closed until opened: the counting rules, the PRINTSYNC details */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 11px; height: 11px; border-right: 1.5px solid var(--bronze-ink); border-bottom: 1.5px solid var(--bronze-ink); transform: rotate(45deg) translate(-3px, -3px); flex: 0 0 auto; transition: transform .15s ease; }
.fold[open] > summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.fold > summary .h2, .fold > summary .h3 { margin: 0; }
.fold > summary:hover .h2, .fold > summary:hover .h3 { text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.fold-body { padding-top: 28px; }

/* rooms page */
.room-list { list-style: none; border-top: 1px solid var(--line); }
.room-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 340px); gap: 8px 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.room-item > img { width: 56px; height: 56px; }
.room-item .h3 { margin: 0 0 6px; }
.ri-text p { margin: 0 0 8px; color: var(--muted); max-width: 52ch; }
.room-item.closed .ri-text .h3, .room-item.closed .room-figs b { color: var(--muted); }
.room-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.room-figs > div { display: grid; gap: 4px; align-content: start; }
.room-figs > div:only-child { grid-column: 2; }
.room-figs span { font-size: .84rem; color: var(--faint); }
.room-figs b { font: 400 2.2rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.room-figs em { font-style: normal; font-size: .86rem; color: var(--muted); }
@media (max-width: 820px) {
  .room-item { grid-template-columns: 48px minmax(0, 1fr); }
  .room-item > img { width: 48px; height: 48px; }
  .room-figs { grid-column: 2; margin-top: 10px; }
  .room-figs > div:only-child { grid-column: 1; }
}

/* results page */
.chart-block { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.log-title { margin-top: 44px; }
table.log td.sig details summary { list-style: none; cursor: pointer; display: inline; }
table.log td.sig details summary::-webkit-details-marker { display: none; }
table.log td.sig details summary b { display: inline; }
table.log td.sig details summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 9px; border-right: 1.5px solid var(--bronze-ink); border-bottom: 1.5px solid var(--bronze-ink); transform: rotate(45deg); vertical-align: 3px; transition: transform .15s ease; }
table.log td.sig details[open] summary::after { transform: rotate(225deg); vertical-align: 0; }
table.log td.sig details summary:hover b { text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 3px; }
table.log td.sig details > span { display: block; color: var(--muted); font-size: .86rem; margin-top: 6px; }

/* PRINTSYNC price inside the status panel */
.ps-price { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 22px; border-top: 1px solid var(--line); }
.ps-price b { display: block; font: 400 2.3rem/1 var(--serif); font-variant-numeric: lining-nums; }
.ps-price b small { font: 400 .88rem var(--sans); color: var(--faint); margin-left: 8px; letter-spacing: 0; }
.ps-price > span { font-size: .88rem; color: var(--muted); }

/* the account page */
.hub-rows .hub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: center; padding: 22px 0; }
.hub-row .h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
.hub-row .h3 .tag { font-family: var(--sans); }
.hub-row p { margin: 4px 0 0; max-width: 62ch; }
.hub-row > .btn-row { justify-content: flex-end; }
.hub-price { color: var(--text); }
.hub-price b { font: 500 1.35rem/1 var(--serif); font-variant-numeric: lining-nums; }
.hub-row .kv { margin-top: 10px; max-width: 520px; }
.hub-row [data-hub="price-actions"]:not(:empty) { margin-top: 12px; }
@media (max-width: 680px) { .hub-rows .hub-row { grid-template-columns: minmax(0, 1fr); } .hub-row > .btn-row { justify-content: flex-start; } }

/* log-in pages: the form is the page */
.auth { padding-block: 72px 96px; }
.auth-card { max-width: 440px; margin: 0 auto; padding: 0; }
.auth-card .h2 { margin-bottom: 10px; }
.auth-card > .muted { margin: 0; }
.auth-card .form { margin-top: 30px; }
@media (max-width: 720px) { .auth { padding-block: 40px 56px; } }

/* side notes next to members' forms */
.tg-notes { display: grid; gap: 10px; align-content: start; padding-top: 6px; max-width: 46ch; }
.tg-notes p { margin: 0; }

/* Studio tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.tabs button { background: none; border: 0; padding: 12px 0 13px; font: 500 1rem/1 var(--sans); color: var(--muted); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--bronze); }
.st-section[hidden] { display: none; }
.st-section > .h3 { margin-bottom: 6px; }
.st-section .form { max-width: 620px; margin-top: 8px; }

/* the IB manual and VIP: plain sections instead of boxes */
.doc-block { display: block; }
.doc-block > .h3 { margin-bottom: 12px; }
.doc-block p { max-width: 66ch; }
.doc-block + .doc-block { margin-top: 40px; }
.grid > .doc-block + .doc-block { margin-top: 0; }
.quotes { list-style: none; border-top: 1px solid var(--line); margin: 22px 0 8px; }
.quotes li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.quotes .hook { margin: 0; font: 400 1.25rem/1.4 var(--serif); color: var(--text); }
.quotes .why { margin: 0; font-size: .92rem; color: var(--muted); max-width: 66ch; }
ol.chain { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin: 16px 0; padding: 0; counter-reset: ch; }
ol.chain li { counter-increment: ch; font-weight: 600; font-size: .92rem; padding-right: 22px; }
ol.chain li::before { content: counter(ch) " "; color: var(--bronze-ink); font: 400 1.05rem var(--serif); margin-right: 4px; }
.room-panel { border-top: 1px solid var(--line); padding-top: 24px; }
.room-panels { gap: 36px; }

.h2 + .lede, .h1 + .lede { margin-top: 18px; }
.split > div > .h2 + .lede { margin-top: 16px; }

/* PRINTSYNC: what it can and can't do, and the set-up guide */
.can-cant { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 64px; }
.can-cant .h3 { margin-bottom: 18px; }
.can-cant li { font-size: 1.02rem; }
.crosses { list-style: none; display: grid; gap: 10px; }
.crosses li { position: relative; padding-left: 24px; color: var(--muted); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 2px; top: .78em; width: 11px; height: 1.6px; background: var(--neg); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
@media (max-width: 720px) { .can-cant { grid-template-columns: minmax(0, 1fr); } }
.steps.guide { gap: 30px; }
.steps.guide li .h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps.guide li p a { color: var(--text); text-decoration-color: var(--bronze); }
.book-call { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.book-call p { margin-bottom: 12px; }

/* =====================================================================
   Components: foil and ink. Night bands carry the count in gold; cream
   sections carry the ledgers in ink. Every page is built from these.
   ===================================================================== */
.btn-sm { min-height: 44px; }
.btn-line { border-color: var(--text); }
.btn-line:hover { background: var(--hover); }
.link { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { color: var(--bronze-ink); }
.masthead .link, .band-close .link, .sec.night .link { color: var(--on-ink); text-decoration-color: var(--gold); }
.masthead .link:hover, .band-close .link:hover, .sec.night .link:hover { color: var(--gold); }
.seg button[aria-pressed="true"] { background: var(--btn-ink-bg); border-color: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.seg button { min-height: 44px; }

/* sections */
.sec { padding-block: 104px; }
.sec.flush { padding-top: 0; }
.sec.paper2 { background: var(--bg-2); }
.sec.wash { background: var(--wash); }
.sec.night { background: var(--night); color: var(--on-ink); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.sec-h { font: 400 clamp(34px, 4vw, 56px)/1.05 var(--serif); letter-spacing: -.01em; margin: 0; max-width: 16ch; text-wrap: balance; }
.sec-h.wide { max-width: 22ch; }
.sec-p { font-size: 1.12rem; line-height: 1.55; color: var(--muted); margin: 0; max-width: 28em; }
.sec-p b { color: var(--text); font-weight: 600; }
.sec.night .sec-p { color: var(--on-ink-2); }
.sec-note { font-size: .86rem; line-height: 1.55; color: var(--faint); margin: 20px 0 0; max-width: 70ch; }
@media (max-width: 720px) { .sec { padding-block: 64px; } .sec-head { margin-bottom: 30px; } }

/* the latest-trades strip */
.strip-band { background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; padding-top: 30px; }
.strip-head h2 { font: 400 1.75rem/1.2 var(--serif); margin: 0; }
.strip-head .when { font: 400 .88rem/1.4 var(--sans); color: var(--muted); margin-left: 10px; }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 8px 0 0; padding: 0; list-style: none; }
.strip .tick { padding: 20px 18px 24px; border-left: 1px solid var(--line-2); min-width: 0; }
.strip .tick:first-child { padding-left: 0; border-left: 0; }
.tick-room { display: flex; align-items: center; gap: 8px; font-size: .82rem; line-height: 1.3; color: var(--muted); min-width: 0; }
.tick-room img { width: 22px; height: 22px; flex: none; }
.tick-sig { font-size: .95rem; font-weight: 500; margin-top: 14px; white-space: nowrap; }
.tick-res { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.tick-res b { font: 400 1.9rem/1 var(--serif); color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.tick-res b.neg { color: var(--neg); }
@media (max-width: 1100px) {
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .strip .tick { flex: 0 0 168px; scroll-snap-align: start; }
}

/* ledgers */
.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.ledger caption { text-align: left; }
.ledger th { font-weight: 500; font-size: .82rem; color: var(--muted); text-align: right; padding: 0 0 12px 18px; border-bottom: 1px solid var(--text); white-space: nowrap; }
.ledger td { text-align: right; padding: 15px 0 15px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger th:first-child, .ledger td:first-child { text-align: left; padding-left: 0; }
.ledger .l { text-align: left; }
.ledger .note { white-space: normal; min-width: 220px; max-width: 430px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.ledger tr.total td { border-bottom: 0; border-top: 1px solid var(--text); font-weight: 600; }
.ledger .neg { color: var(--neg); }
.ledger .faint { color: var(--faint); font-size: .8rem; }
.ledger .strong { font-weight: 600; }
.ledger .rn { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ledger .rn img { width: 28px; height: 28px; flex: none; }
.ledger a { color: inherit; text-decoration-color: var(--line-2); }
.ledger a:hover { text-decoration-color: var(--bronze); }
.ledger-foot { font-size: .9rem; color: var(--muted); margin: 18px 0 0; }

/* bar charts (drawn by site.js as SVG on one scale) */
svg.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--text); stroke-width: 1; }
.chart .bar { fill: var(--text); }
.chart .bar.latest { fill: var(--bronze); }
.chart .bar.neg { fill: var(--neg); }
.chart .gl { fill: var(--faint); font-family: var(--sans); font-size: 12px; }
.chart .vl { fill: var(--text); font-family: var(--serif); font-size: 20px; }
.chart .vl.small { font-size: 15px; }
.chart .vl.latest { font-weight: 600; }
.chart .vl.neg { fill: var(--neg); }
.chart .xl { fill: var(--muted); font-family: var(--sans); font-size: 13px; }
.chart .xl.latest { fill: var(--text); font-weight: 600; }

/* the price ladder: one real trade drawn to scale */
.ladder-fig { margin: 0; }
.ladder-fig figcaption { font-size: .95rem; line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.ladder-fig figcaption b { color: var(--text); font-weight: 600; }
svg.ladder { display: block; width: 100%; height: auto; max-width: 640px; overflow: visible; }
.ladder .win { fill: var(--wash); }
.ladder .lose { fill: var(--neg-wash); }
.ladder .lv { stroke: var(--text); stroke-width: 1; }
.ladder .lv.hit { stroke-width: 2; }
.ladder .lv.entry2 { stroke: var(--muted); stroke-dasharray: 5 4; }
.ladder .lv.stop { stroke: var(--neg); stroke-width: 2; }
.ladder .axis { stroke: var(--text); stroke-width: 1; }
.ladder .px { fill: var(--text); font-family: var(--sans); font-size: 14px; }
.ladder .px.strong { font-weight: 600; }
.ladder .px.stop { fill: var(--neg); font-weight: 600; }
.ladder .lb { fill: var(--text); font-family: var(--sans); font-size: 15px; }
.ladder .lb.muted { fill: var(--muted); }
.ladder .lb.stop { fill: var(--neg); }
.ladder .lb.strong { font-weight: 600; }

/* rules, habits and the three ways in */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; padding: 0; list-style: none; }
.rules.one { grid-template-columns: minmax(0, 1fr); }
.rule { padding: 20px 0 22px; border-top: 1px solid var(--line-2); }
.rule h3 { font: 600 1rem/1.4 var(--sans); margin: 0; }
.rule p { font-size: 1rem; line-height: 1.6; color: var(--muted); margin: 6px 0 0; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.way { border-top: 2px solid var(--text); padding-top: 22px; }
.way h3 { font: 400 2rem/1.15 var(--serif); margin: 0; }
.way p { color: var(--muted); font-size: 1.06rem; line-height: 1.6; margin: 12px 0 18px; }
@media (max-width: 900px) { .ways { grid-template-columns: minmax(0, 1fr); gap: 32px; } .way h3 { font-size: 1.75rem; } }
@media (max-width: 720px) { .rules { grid-template-columns: minmax(0, 1fr); } }

/* the covers and the closing band */
.covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.covers img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 736; object-fit: cover; border-radius: 2px; }
@media (max-width: 720px) { .covers { gap: 10px; } }
.band-close { background: var(--night); color: var(--on-ink); padding-block: 96px; }
.band-close .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.band-close h2 { font: 400 clamp(40px, 5vw, 72px)/1 var(--serif); margin: 0; color: var(--on-ink); }
.band-close p { font-size: 1.06rem; color: var(--on-ink-2); margin: 18px 0 0; }
@media (max-width: 720px) { .band-close { padding-block: 64px; } }

/* controls and states */
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); padding: 0; cursor: pointer; }
.iconbtn:hover { border-color: var(--text); }
.iconbtn[disabled] { color: var(--faint); cursor: default; opacity: .55; }
.iconbtn svg { width: 14px; height: 14px; }
.controls { background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.controls .wrap { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding-block: 16px; }
.empty { padding: 26px 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: 1rem; line-height: 1.6; }
.empty a { color: var(--text); }

/* Home: the four rooms in the masthead */
.mast-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 88px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--on-ink-line); }
.mroom a { display: block; height: 100%; padding: 30px 24px 34px 0; color: inherit; text-decoration: none; border-right: 1px solid var(--on-ink-line); }
.mroom + .mroom a { padding-left: 24px; }
.mroom:last-child a { border-right: 0; }
.mroom img { display: block; width: 64px; height: 64px; }
.mroom-n { display: block; font-weight: 600; font-size: .95rem; margin-top: 18px; color: var(--on-ink); }
.mroom a:hover .mroom-n { text-decoration: underline; text-decoration-color: var(--gold); }
.mroom-v { display: block; min-height: 1em; font: 400 3.4rem/1 var(--serif); color: var(--gold); margin-top: 10px; font-variant-numeric: lining-nums tabular-nums; }
.mroom-v.neg { color: var(--neg-on-ink); }
.mroom-r { display: block; font-size: .84rem; color: var(--on-ink-3); margin-top: 8px; }
.mast-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding: 22px 0 30px; margin: 0; border-top: 1px solid var(--on-ink-line); font-size: .92rem; color: var(--on-ink-2); }
@media (max-width: 900px) {
  .mast-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .mroom a, .mroom + .mroom a { padding: 22px 12px 24px 0; border-right: 0; border-bottom: 1px solid var(--on-ink-line); }
  .mroom:nth-child(2n) a { padding-left: 16px; border-left: 1px solid var(--on-ink-line); }
  .mroom img { width: 48px; height: 48px; }
  .mroom-v { font-size: 2.6rem; }
}

/* masthead variants: a page with a side panel (PRINTSYNC status) and small notes */
.mast-note { font-size: .92rem; color: var(--on-ink-2); }
.masthead .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .masthead .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.masthead .ps-status { background: var(--night-2); border-color: var(--on-ink-line); color: var(--on-ink); }
.masthead .ps-status .ps-head, .masthead .ps-rows li, .masthead .ps-price, .masthead .ps-price > div + div { border-color: var(--on-ink-line); }
.masthead .ps-status .ps-head small, .masthead .ps-source, .masthead .ps-price b small { color: var(--on-ink-3); }
.masthead .ps-rows li span:first-child, .masthead .ps-price > div > span, .masthead .ps-price > span { color: var(--on-ink-2); }
.masthead .ps-price b { color: var(--gold); }
.masthead .state.wait::before { background: var(--gold); }
.masthead .state.off::before, .masthead .state.none::before { background: var(--on-ink-3); }
.masthead .state.on::before { background: #8fc28f; }

/* log-in pages: the card sits on the night band that runs on from the header */
.auth { background: var(--night); }
main:has(> .auth) { background: var(--night); }
.auth-card { background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--on-ink-line); padding: 40px 36px 36px; }
@media (max-width: 560px) { .auth-card { padding: 28px 22px 24px; } }
/* text sections: a heading then paragraphs with room between them */
.sec-h + .sec-p { margin-top: 22px; }
.sec-p + .sec-p { margin-top: 14px; }

/* room pages */
.room-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.room-weeks { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
@media (max-width: 960px) { .room-how, .room-weeks { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.ps-band-l { display: flex; align-items: center; gap: 24px; }
.ps-band-l img { width: 56px; height: 56px; flex: none; }
.ps-band h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; max-width: 24ch; }
.room-way a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); }
.room-way img { width: 56px; height: 56px; flex: none; }
.room-way .rw-n { font: 400 1.75rem/1.15 var(--serif); }
.room-way a:hover .rw-n { text-decoration: underline; text-decoration-color: var(--bronze); }
.room-way p { margin-top: 14px; }

/* Results: one week at a time */
.masthead.has-figs:has(.rs-figs[hidden]) { padding-bottom: 76px; }
.rs-controls .wrap { justify-content: space-between; }
@media (min-width: 1000px) { .rs-controls { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h)); z-index: 5; } }
.week-nav { display: flex; align-items: center; gap: 12px; }
.week-now { font: 400 1.4rem/1.2 var(--serif); margin: 0; min-width: 11.5em; text-align: center; font-variant-numeric: lining-nums; }
.rs-tools { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-left: auto; }
.copy-status { font-size: .86rem; color: var(--muted); }
.copy-status:empty { display: none; }
.ledger tbody th { font-weight: 500; font-size: inherit; color: var(--text); text-align: left; padding: 15px 0 15px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger tbody th:first-child { padding-left: 0; }
.ledger tr.total th { border-bottom: 0; border-top: 1px solid var(--text); font-weight: 600; }
.ledger tr.total.rate th, .ledger tr.total.rate td { border-top: 0; padding-top: 0; font-weight: 500; color: var(--muted); }
.ledger.rs tr > :first-child { padding-left: 10px; }
.ledger.rs tr > :last-child { padding-right: 10px; }
.ledger tr.on > * { background: var(--wash); }
.ledger [aria-current="true"] { font-weight: 600; text-decoration-color: var(--bronze); }
.rs-more { margin-top: 22px; }
.rules-sub { font: 400 1.75rem/1.2 var(--serif); margin: 64px 0 18px; }
@media (max-width: 720px) {
  .rs-controls .wrap { gap: 14px; }
  .week-nav { width: 100%; justify-content: space-between; }
  .week-now { min-width: 0; font-size: 1.2rem; }
  .rs-tools { margin-left: 0; }
}

/* trader tools */
.ways.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.way .way-h { font: 400 2rem/1.15 var(--serif); margin: 0; }
.way .way-h a { color: inherit; text-decoration: none; }
.way .way-h a:hover { text-decoration: underline; text-decoration-color: var(--bronze); }
@media (max-width: 900px) { .way .way-h { font-size: 1.75rem; } }
@media (max-width: 900px) { .ways.two { grid-template-columns: minmax(0, 1fr); } }
.calc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.calc-form { gap: 22px; max-width: 36rem; }
.calc-note { font-size: .92rem; color: var(--muted); margin: 0; }
.calc-form .hint { display: block; font-size: .86rem; line-height: 1.5; color: var(--faint); }
.calc-form fieldset.field legend { margin-bottom: 9px; }
.calc-form .choices input:checked + span { background: var(--btn-ink-bg); border-color: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.calc-form .choices span { min-height: 44px; display: inline-flex; align-items: center; }
.calc-more summary { cursor: pointer; font-weight: 500; font-size: .95rem; padding: 6px 0; }
.calc-more[open] summary { margin-bottom: 14px; }
.calc-out { background: var(--night); color: var(--on-ink); border-radius: var(--radius); padding: 36px 36px 32px; }
@media (min-width: 961px) { .calc-out { position: sticky; top: calc(var(--head-h) + 24px); } }
.calc-k { font-size: .92rem; color: var(--on-ink-2); margin: 0; }
.calc-lots { margin: 10px 0 0; font: 400 clamp(64px, 8vw, 104px)/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.calc-lots .unit { font-size: .32em; color: var(--on-ink-2); letter-spacing: 0; }
.calc-lines { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--on-ink-line); }
.calc-lines li { padding: 14px 0; border-bottom: 1px solid var(--on-ink-line); font-size: .98rem; line-height: 1.55; color: var(--on-ink-2); }
.calc-lines li b { color: var(--on-ink); font-weight: 600; }
.calc-err, .calc-nojs { margin: 14px 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--on-ink); }
.steps-sum { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; }
.steps-sum li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 18px; }
.steps-sum li::before { content: counter(step); display: block; font: 400 2.4rem/1 var(--serif); color: var(--bronze-ink); margin-bottom: 12px; }
.steps-sum h3 { font: 600 1rem/1.4 var(--sans); margin: 0; }
.steps-sum p { font-size: 1rem; line-height: 1.6; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 900px) { .steps-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-sum { grid-template-columns: minmax(0, 1fr); } }
/* market hours: a 24-hour line from six hours ago, on the visitor's clock */
.mh-line { margin: 0 0 44px; }
.mh-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mh-svg .grid { stroke: var(--line); stroke-width: 1; }
.mh-svg .tick { fill: var(--faint); font-family: var(--sans); font-size: 12px; font-variant-numeric: tabular-nums; }
.mh-svg .city { fill: var(--text); font-family: var(--sans); font-size: 13px; font-weight: 500; }
.mh-svg .mh-bar { fill: var(--line-2); }
.mh-svg .mh-bar.on { fill: var(--bronze); }
.mh-svg .mh-now { stroke: var(--text); stroke-width: 1.5; }
.mh-svg .now-l { fill: var(--text); font-family: var(--sans); font-size: 12px; font-weight: 600; }
.ledger .mh-open { color: var(--text); font-weight: 600; }
/* the glossary: letters down the side, one anchor per term */
.gloss-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 56px; align-items: start; }
.gloss-jump { position: sticky; top: calc(var(--head-h) + 24px); display: flex; flex-wrap: wrap; gap: 4px; }
.gloss-jump a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; font: 400 1.3rem/1 var(--serif); color: var(--text); text-decoration: none; border: 1px solid var(--line-2); border-radius: var(--radius); }
.gloss-jump a:hover { border-color: var(--text); }
.gloss-group + .gloss-group { margin-top: 56px; }
.gloss-letter { font: 400 3.2rem/1 var(--serif); color: var(--bronze-ink); margin: 0 0 14px; scroll-margin-top: calc(var(--head-h) + 20px); }
.gloss { margin: 0; border-top: 1px solid var(--line-2); }
.gloss dt { font: 600 1.06rem/1.4 var(--sans); padding-top: 18px; scroll-margin-top: calc(var(--head-h) + 20px); }
.gloss-body { max-width: 760px; }
.gloss dd { margin: 6px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1rem; line-height: 1.6; }
.gloss dt:target { color: var(--bronze-ink); }
@media (max-width: 800px) { .gloss-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } .gloss-jump { position: static; } }
/* Join: the route finder */
.route { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
@media (max-width: 960px) { .route { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.route-q { gap: 24px; }
.route-q fieldset.field legend { margin-bottom: 9px; }
.route-q .choices input:checked + span { background: var(--btn-ink-bg); border-color: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.route-q .choices span { min-height: 44px; display: inline-flex; align-items: center; }
.route-note { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }
.route-note:empty { display: none; }
.route-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 32px 30px; }
.route-card + .route-card { margin-top: 20px; }
.route-card h3 { font: 400 2rem/1.15 var(--serif); margin: 0; }
.route-card > p { color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
.route-card .seq { margin-top: 22px; grid-template-columns: minmax(0, 1fr); gap: 0; }
.route-card .seq li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 16px 0; }
.route-card .seq li::before { grid-row: 1 / span 2; font-size: 1.5rem; margin: 0; }
.route-card .btn-row { margin-top: 26px; }
.route-new { background: var(--wash); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0 0; font-size: .95rem; line-height: 1.55; color: var(--text); }
@media (max-width: 560px) { .route-card { padding: 24px 20px; } }
/* members' pages: a slim night masthead under the header, then the working area */
.masthead.slim { padding-block: 44px 52px; }
.mast-title.xs { font-size: clamp(38px, 4.8vw, 64px); max-width: 24ch; }
.masthead .notice { background: var(--night-2); border-color: var(--on-ink-line); color: var(--on-ink); }
.masthead .notice b { color: var(--on-ink); }
.masthead .notice a { color: var(--on-ink); text-decoration-color: var(--gold); }
.masthead .btn-line { color: var(--on-ink); border-color: var(--on-ink-line); background: transparent; }
.masthead .btn-line:hover { border-color: var(--on-ink); }
.masthead .members-loading .mast-lead, .masthead.members-loading .mast-lead { margin-top: 18px; }
.masthead form .btn-line { margin-top: 8px; }
.ledger.text th, .ledger.text td { text-align: left; }
.ledger.text td { white-space: normal; }
.ledger.text .faint { font-size: .9rem; }
/* VIP and the IB area: the heading as a slim masthead, results as ledgers */
.area-mast .mast-actions { margin-top: 24px; }
.area-mast .small, .area-mast .muted { color: var(--on-ink-2); }
.area-layout { padding-block: 40px 84px; }
.area-side a { font-size: .94rem; padding: 8px 12px; }
.area-side a[aria-current="page"] { color: var(--text); background: transparent; box-shadow: inset 2px 0 0 var(--bronze); font-weight: 600; }
.area-side .g { margin-left: 12px; }
.wk-rooms { display: block; padding: 6px 26px 4px; }
.wk-ledger th a.wk-room { display: inline; padding: 0; border: 0; color: inherit; font-weight: 500; }
.wk-ledger .total th { font-weight: 600; }
.res-panel .ledger-wrap { margin-top: 4px; }
.rs-weeks { font-size: .9rem; }
.rs-weeks td { padding-block: 10px; }
.rs-stats { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; }
.rs-stats > div { padding: 14px 16px 6px 0; border-right: 0; }
.rs-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.rs-stats b { font: 400 2rem/1 var(--serif); }
.rs-stats span { font-size: .82rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .wk-rooms { padding: 4px 16px; } .rs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rs-stats > div:nth-child(4) { padding-left: 0; border-left: 0; } }
/* Studio: the share kit */
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 20px; }
@media (max-width: 860px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }
.share-preview canvas { display: block; width: 100%; max-width: 300px; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
[data-st=share-form] .choices input:checked + span { background: var(--btn-ink-bg); border-color: var(--btn-ink-bg); color: var(--btn-ink-fg); }
[data-st=share-form] fieldset.field legend { margin-bottom: 9px; }
/* covers come as <picture>: AVIF, WebP, then JPEG */
.covers picture, .cover picture { display: block; }
/* Results while the count loads: the figure row and the page below hold their place */
html.js .rs-figs[hidden] { display: block !important; visibility: hidden; }
html.js [data-module="results"]:not(.ready) { min-height: 100vh; }
