/* BeCrypto News — Financial Journal. A restrained, source-first publication
   system. Rules, type and proportion establish hierarchy; decoration does not. */

:root {
  /* colour tokens (light) */
  --paper: #f4f1ea;           /* warm page */
  --surface: #fffdf8;         /* reading surface */
  --sunk: #e9e5dc;            /* quiet fills */
  --ink: #131722;             /* editorial ink */
  --ink-2: #3f434c;           /* secondary text */
  --muted: #6d7078;           /* meta, captions */
  --line: #e3dfd5;            /* dividers, panel borders */
  --line-2: #c8c2b6;          /* input borders */
  --accent: #2f55d4;          /* restrained cobalt */
  --accent-hover: #2448b9;
  --accent-ink: #ffffff;      /* text on cobalt */
  --accent-soft: #e8ecfb;     /* cobalt tint: selected states */
  --accent-text: #2446b8;     /* cobalt for small text on white */
  --up: #087346;
  --down: #bb252b;
  --watch: #a86400;
  --board: #11141a;           /* price strip, market board, footer */
  --board-2: #1b2029;         /* raised rows inside the board */
  --board-ink: #eef0f6;
  --board-muted: #9aa2b6;
  --board-line: rgba(238, 240, 246, .12);
  --board-accent: #8ea2ff;    /* chart line on dark */
  --board-up: #4fd6a0;
  --board-down: #ff8a8e;

  /* type tokens */
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --reading: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* layout tokens */
  --gutter: 16px;
  --max: 1320px;
  --r-lg: 12px;
  --r-md: 8px;
  --r-sm: 5px;
  --shadow-major: 0 16px 42px rgba(29, 33, 43, .065);
  --shadow-control: 0 1px 2px rgba(21, 24, 31, .14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0f13; --surface: #15181d; --sunk: #1d2127; --ink: #f0eee8; --ink-2: #cbc8c1; --muted: #9c9991;
    --line: #2a2e35; --line-2: #3c4149; --accent: #7890ff; --accent-hover: #93a5ff; --accent-ink: #0d0f13; --accent-soft: #20294a; --accent-text: #a8b6ff;
    --up: #3fd09a; --down: #ff7a80; --watch: #f0b54a; --board: #080a0e; --board-2: #15191f; --shadow-major: 0 18px 48px rgba(0, 0, 0, .24); --shadow-control: 0 1px 2px rgba(0, 0, 0, .32);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d0f13; --surface: #15181d; --sunk: #1d2127; --ink: #f0eee8; --ink-2: #cbc8c1; --muted: #9c9991;
  --line: #2a2e35; --line-2: #3c4149; --accent: #7890ff; --accent-hover: #93a5ff; --accent-ink: #0d0f13; --accent-soft: #20294a; --accent-text: #a8b6ff;
  --up: #3fd09a; --down: #ff7a80; --watch: #f0b54a; --board: #080a0e; --board-2: #15191f; --shadow-major: 0 18px 48px rgba(0, 0, 0, .24); --shadow-control: 0 1px 2px rgba(0, 0, 0, .32);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 680px; }
.num, .pegbar, .peg, .board, .tile b, .pager, .wire__t, .table, .tier__price { font-variant-numeric: tabular-nums; }
.ic { flex: none; }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- price strip ---------- */
.pegbar { background: var(--board); color: var(--board-ink); font: 500 13px var(--text); }
.pegbar__row { display: flex; align-items: center; gap: 24px; min-height: 36px; white-space: nowrap; overflow: hidden; }
.pegbar__item { display: inline-flex; align-items: baseline; gap: 6px; }
.pegbar__name { font-weight: 700; color: #ffffff; }
.pegbar__price { color: var(--board-ink); }
.pegbar__item b { font-weight: 700; }
.pegbar .num--up { color: var(--board-up); }
.pegbar .num--down { color: var(--board-down); }
.pegbar__muted { color: var(--board-muted); }
.pegbar__note { margin-left: auto; color: var(--board-muted); overflow: hidden; text-overflow: ellipsis; }
.peg-dot { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 719px) { .pegbar__wide, .pegbar__note { display: none; } .pegbar__row { gap: 16px; } }

/* ---------- header & nav ---------- */
.masthead { background: var(--surface); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid var(--line); }
.masthead__row { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { color: var(--accent); display: flex; --mark-ink: #ffffff; }
.brand__mark svg { border-radius: 8px; }
.brand__name { font: 800 23px/1 var(--display); letter-spacing: -.03em; }
.brand__name b { font-weight: 500; color: var(--ink-2); }
.find { flex: 1; max-width: 420px; margin-left: auto; position: relative; display: none; }
.find input { width: 100%; height: 42px; border: 1px solid transparent; background: var(--sunk); border-radius: 999px; padding: 0 44px 0 18px; font: 400 15px var(--text); color: var(--ink); }
.find input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.find button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.masthead__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.find + .masthead__tools { margin-left: 4px; }
.tool-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 15px var(--text); padding: 8px 12px; border-radius: 999px; }
.tool-link:hover { background: var(--sunk); color: var(--ink); }
.tool-link .ic { display: none; }
.tool-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.tool-btn:hover { background: var(--sunk); color: var(--ink); }
@media (min-width: 900px) { .find { display: block; } .tool-search { display: none; } }
@media (max-width: 560px) {
  .masthead__row { gap: 4px; min-height: 58px; }
  .tool-link { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .tool-link .ic { display: block; }
  .tool-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .masthead__tools .btn { padding: 0 14px; }
  .brand__name { font-size: 20px; }
  .brand__mark svg { width: 26px; height: 26px; }
}

/* ---------- buttons, labels, meta ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--surface);
  font: 700 14.5px var(--text); cursor: pointer; white-space: nowrap;
}
.btn:hover { color: var(--surface); background: var(--ink-2); border-color: var(--ink-2); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn--line, .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover, .btn--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 13.5px; }
.btn--wide { width: 100%; min-height: 52px; font-size: 16px; }
.btn--danger { background: transparent; color: var(--down); border-color: currentColor; }
.btn[disabled] { opacity: .55; cursor: wait; }

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font: 700 12.5px/1.3 var(--text); }
a.chip:hover { color: var(--accent-ink); background: var(--accent); }
.chip--community { background: var(--sunk); color: var(--ink-2); }

.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; font: 500 13px var(--text); color: var(--muted); }
.meta__src { font-weight: 700; color: var(--ink-2); }
.meta__more { color: var(--accent-text); }
.num--up { color: var(--up); }
.num--down { color: var(--down); }
.more { display: inline-flex; margin-top: 12px; font: 700 14px var(--text); color: var(--accent-text); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: 4px; font: 600 14px var(--text); color: var(--muted); }
.back:hover { color: var(--ink); }

/* ---------- pictures ---------- */
.pic { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); background: var(--sunk); }
.pic img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.pic__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px 12px; font: 700 14px/1.2 var(--display); color: var(--muted); background: var(--sunk); }
.pic--sq { aspect-ratio: 1; border-radius: var(--r-sm); }
.pic--sq .pic__ph { font-size: 10.5px; padding: 6px; }

/* ---------- home: top section ---------- */
.top { display: grid; gap: 24px; padding: 24px 0 8px; }
@media (min-width: 1000px) { .top { grid-template-columns: minmax(0, 1fr) 356px; gap: 24px; padding-top: 28px; align-items: start; } }
/* The lead story and its list share one white surface. */
.top__main { display: grid; gap: 24px; min-width: 0; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
@media (min-width: 720px) { .top__main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; } }

.hero { display: grid; gap: 14px; align-content: start; }
.hero__body { display: grid; gap: 10px; justify-items: start; }
.hero__title { font: 800 clamp(1.85rem, 1.2rem + 1.9vw, 2.65rem)/1.1 var(--display); letter-spacing: -.025em; }
.hero__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.hero__dek { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.hero--text .hero__title { font-size: clamp(2rem, 1.3rem + 2.3vw, 3rem); }

.rail { display: grid; gap: 20px; align-content: start; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.panel__h { font: 700 18px/1.25 var(--display); margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.panel__h small { font: 500 12.5px var(--text); color: var(--muted); letter-spacing: 0; }
.panel .rows__item:last-child { border-bottom: 0; padding-bottom: 0; }
.top__main .panel__h { margin-bottom: 4px; }

/* ---------- market board: the one dark card ---------- */
.peg { background: var(--board); color: var(--board-ink); border-color: var(--board); }
.peg .panel__h { color: #ffffff; }
.peg .panel__h small { color: var(--board-muted); }
.peg__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; }
.peg__usd { font: 800 40px/1 var(--display); letter-spacing: -.03em; color: #ffffff; }
.peg .peg-dot { padding: 3px 10px; border-radius: 999px; background: var(--board-2); font: 700 13px var(--text); }
.peg-dot--up { color: var(--board-up) !important; }
.peg-dot--down { color: var(--board-down) !important; }
.peg__dev { margin: 8px 0 14px; color: var(--board-muted); font: 500 13.5px var(--text); }
.peg__wait { color: var(--board-muted); margin: 0; }
.peg__spark { margin: 0 0 14px; padding: 10px 12px 8px; border-radius: var(--r-md); background: var(--board-2); }
.peg__spark svg { width: 100%; height: 56px; display: block; }
.peg__line { fill: none; stroke: var(--board-accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.peg__one { stroke: var(--board-line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.peg__spark figcaption { display: flex; justify-content: space-between; font: 500 11.5px var(--text); color: var(--board-muted); margin-top: 4px; }
.board { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14px; }
.board th, .board td { padding: 8px 0; border-top: 1px solid var(--board-line); text-align: right; font-weight: 600; }
.board tr:first-child th, .board tr:first-child td { border-top: 0; }
.board th { text-align: left; font-weight: 400; color: var(--board-muted); }
.board th b { font-weight: 700; color: #ffffff; margin-right: 4px; }
.board td:last-child { width: 72px; }
.peg .num--up { color: var(--board-up); }
.peg .num--down { color: var(--board-down); }
.peg__src { margin: 0; font: 500 12px var(--text); color: var(--board-muted); }

/* ---------- headline rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows__item { display: flex; gap: 14px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows__item:first-child { padding-top: 6px; }
.rows__text { display: grid; gap: 6px; align-content: start; justify-items: start; min-width: 0; }
.rows__title { font: 700 16.5px/1.32 var(--display); letter-spacing: -.01em; }
.rows__title a:hover { color: var(--accent-text); }
.rows__dek { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.rows__pic { flex: none; width: 88px; }
@media (min-width: 720px) { .rows--thumbs .rows__pic { width: 124px; } .rows--thumbs .pic--sq { aspect-ratio: 16 / 11; } }

.wire { list-style: none; margin: 0; padding: 0; }
.wire__item { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wire__item:last-child { border-bottom: 0; }
.wire__t { align-self: start; justify-self: start; padding: 1px 7px; border-radius: 999px; background: var(--sunk); font: 700 12px var(--text); color: var(--ink-2); }
.wire__h { display: block; font: 600 15px/1.4 var(--display); }
.wire__s { font: 500 12.5px var(--text); color: var(--muted); }

/* ---------- story columns: picture then words, no boxes ---------- */
.cards { display: grid; gap: 28px 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__body { display: grid; gap: 7px; justify-items: start; align-content: start; }
.card__title { font: 700 18px/1.3 var(--display); letter-spacing: -.015em; }
.card__title a:hover { color: var(--accent-text); }
.card__dek { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- home blocks ---------- */
.block { padding: 40px 0 8px; }
.block-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; font: 800 26px/1.15 var(--display); letter-spacing: -.025em; }
.block-h small { font: 500 14px var(--text); color: var(--muted); letter-spacing: 0; }
.block-h .more { margin: 0 0 0 auto; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--ink); }
.block-h .more:hover { border-color: var(--ink); text-decoration: none; }
.pair { display: grid; gap: 24px; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair > * { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; min-width: 0; }
.pair .block-h { font-size: 21px; }
.split { display: grid; gap: 24px; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) 356px; } }

.band { background: var(--surface); padding: 44px 0 48px; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.invite { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--accent); color: var(--accent-ink); }
.invite h2 { font: 800 24px/1.2 var(--display); letter-spacing: -.02em; color: var(--accent-ink); }
.invite p { margin: 0; color: var(--accent-ink); opacity: .92; max-width: 56ch; }
.invite__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.invite .btn--accent { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.invite .btn--accent:hover { opacity: .9; }
.invite .btn--line { border-color: var(--accent-ink); color: var(--accent-ink); }
.invite .btn--line:hover { background: transparent; border-color: var(--accent-ink); color: var(--accent-ink); text-decoration: underline; }
.invite :focus-visible { outline-color: var(--accent-ink); }
.how { font-size: 14.5px; color: var(--ink-2); }
.how p { margin-bottom: .7em; }

.sponsor { margin: 24px 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.sponsor__label { margin: 0 0 8px; font: 500 12px var(--text); color: var(--muted); }
.sponsor img { margin: 0 auto; height: auto; border-radius: var(--r-sm); }

/* ---------- section fronts ---------- */
.front-head { padding: 28px 0 22px; display: grid; gap: 10px; margin-bottom: 4px; }
@media (min-width: 900px) { .front-head { grid-template-columns: 1fr minmax(0, 440px); align-items: end; gap: 32px; } }
.front-head__title { font: 800 clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem)/1.02 var(--display); letter-spacing: -.035em; }
.front-head p { margin: 0; color: var(--ink-2); }
.tally { display: inline-block; margin: 10px 0 0 !important; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); font: 600 13px var(--text); color: var(--ink-2) !important; }
.tally b { color: var(--accent-text); }
.front { display: grid; gap: 24px; }
@media (min-width: 1000px) { .front { grid-template-columns: minmax(0, 1fr) 340px; } }
.front > div:first-child { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; align-self: start; }
.front__lead { display: grid; gap: 28px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .front__lead .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; } .front__lead .hero--text { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .front__lead .hero:not(:has(.hero__media)) { grid-template-columns: minmax(0, 780px); } }
.day { display: inline-flex; font: 700 13px var(--text); margin: 26px 0 6px; padding: 4px 12px; border-radius: 999px; background: var(--sunk); color: var(--ink); }
.day:first-child { margin-top: 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 28px 0 4px; font: 700 14px var(--text); }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; background: var(--sunk); }
.pager a:hover { background: var(--line); color: var(--ink); }
.pager [aria-current] { background: var(--ink); color: var(--surface); }
.pager [aria-disabled] { opacity: .45; }
.pager .pager__gap { background: none; min-width: 18px; padding: 0; }
.empty { padding: 18px; border-radius: var(--r-md); background: var(--sunk); color: var(--muted); }
.empty--cta { display: grid; gap: 12px; justify-items: start; }
.empty--cta p { margin: 0; }
.note-box { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: 14.5px; color: var(--ink-2); }
.note-box h3 { font: 700 16px var(--display); margin-bottom: 6px; }
.note-box p { margin: 0 0 .6em; }
.note-box p:last-child { margin: 0; }

/* ---------- story page ---------- */
.trail { display: flex; align-items: center; gap: 16px; padding: 20px 0 6px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 8px; font: 500 13.5px var(--text); color: var(--muted); }
.story { display: grid; gap: 24px; padding-bottom: 40px; }
@media (min-width: 1000px) { .story { grid-template-columns: minmax(0, 1fr) 340px; } }
.story__main { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); align-self: start; }
.story__head { display: grid; gap: 14px; justify-items: start; margin-bottom: 22px; max-width: 780px; }
.story__title { font: 800 clamp(2rem, 1.3rem + 2.3vw, 3rem)/1.08 var(--display); letter-spacing: -.03em; }
.story__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font: 500 14px var(--text); color: var(--muted); }
.story__meta b { color: var(--ink); font-weight: 700; }
.credit { font: 500 12.5px var(--text); color: var(--muted); margin: 8px 0 0; }
.story__body { margin-top: 24px; display: grid; gap: 18px; max-width: 700px; }
.story__excerpt { font: 400 19px/1.7 var(--text); color: var(--ink); margin: 0; }
.story__note { margin: -6px 0 0; font: 500 13px var(--text); color: var(--muted); }
.also { padding: 16px 18px; border-radius: var(--r-md); background: var(--sunk); }
.also__h { font: 700 15px var(--display); margin-bottom: 8px; }
.also__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.also__list li { padding: 4px 12px; border-radius: 999px; background: var(--surface); font: 600 13px var(--text); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 28px 0; }
.share__label { font: 700 13.5px var(--text); margin-right: 4px; }
.share a, .share button { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font: 600 13.5px var(--text); color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.story__more { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.story__more .block-h { font-size: 21px; }

/* ---------- long reads (community) ---------- */
.longread { max-width: 760px; margin: 0 auto 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 48px); }
.longread__head { display: grid; gap: 14px; margin: 0 0 24px; justify-items: start; }
.longread__dek { font: 400 20px/1.5 var(--text); color: var(--ink-2); margin: 0; }
.longread__pic { margin-bottom: 24px; }
.longread__note { margin-top: 32px; padding: 14px 16px; border-radius: var(--r-md); background: var(--accent-soft); font-size: 14px; color: var(--ink-2); }
.longread__note p { margin: 0; }
.prose { font: 400 18px/1.75 var(--text); }
.prose h2 { font: 800 25px/1.2 var(--display); margin: 1.5em 0 .45em; }
.prose h3 { font: 700 20px/1.25 var(--display); margin: 1.3em 0 .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose code { font-size: .88em; background: var(--sunk); padding: 1px 6px; border-radius: 4px; }

/* ---------- documents, forms, tables ---------- */
.doc { max-width: 820px; padding-top: 28px; padding-bottom: 56px; }
.doc--wide { max-width: var(--max); }
.page-title { font: 800 clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem)/1.05 var(--display); letter-spacing: -.035em; margin: 6px 0 16px; }
.lede { font: 400 19px/1.6 var(--text); color: var(--ink-2); max-width: 62ch; }
.doc h2 { font: 800 23px/1.2 var(--display); letter-spacing: -.02em; margin: 36px 0 10px; }
.doc h3 { font: 700 17px var(--display); margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin-bottom: .35em; }
.doc p, .doc li { max-width: 68ch; }
.notice { padding-top: 56px; padding-bottom: 72px; }
.page-back { padding-top: 16px; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 22px 0; }
.tile { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 2px; }
.tile:first-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile:first-child span { color: var(--accent-ink); opacity: .9; }
.tile b { font: 800 26px var(--display); letter-spacing: -.02em; }
.tile span { font: 500 13px var(--text); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font: 700 13px var(--text); color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.td-date { white-space: nowrap; color: var(--muted); }
.state, .pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font: 700 12.5px var(--text); white-space: nowrap; background: var(--sunk); }
.state::before, .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state--ok, .pill--approved { color: var(--up); }
.state--bad, .pill--rejected { color: var(--down); }
.pill--pending { color: var(--watch); }

form.panel, .panel.form { display: grid; gap: 16px; padding: 24px; }
.panel > h2, .form-stack > h2 { font: 800 21px var(--display); letter-spacing: -.02em; margin: 0; }
.field { display: grid; gap: 6px; }
.field label, .label { font: 700 14px var(--text); }
.hint { font: 400 13px var(--text); color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font: 400 16px var(--text);
}
textarea { line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--down) !important; }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-msg:empty { display: none; }
.form-msg { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--down) 9%, var(--surface)); color: var(--down); font-size: 14.5px; }
.form-msg[data-kind="ok"] { background: color-mix(in srgb, var(--up) 10%, var(--surface)); color: var(--up); }
.field-note { margin: 4px 0 0; font-size: 13.5px; color: var(--down); }
.form-foot { margin: 0; font-size: 14px; color: var(--muted); }
.form-foot a, .doc p a, .doc li a, .how a, .note-box a:not(.more), .lede a, .hint a, .writer__note a, .verify-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.auth { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 56px; align-items: start; }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 440px; gap: 64px; padding-top: 48px; } }
.auth__copy h1 { font: 800 clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem)/1.05 var(--display); letter-spacing: -.035em; margin-bottom: 14px; }
.auth__copy > p { font: 400 18px/1.6 var(--text); color: var(--ink-2); max-width: 52ch; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font: 800 14px var(--display); }
.steps b { color: var(--ink); }

.verify-note { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 0 0 20px; border-radius: var(--r-md); background: color-mix(in srgb, var(--watch) 12%, var(--surface)); font-size: 14.5px; }
.verify-note p { margin: 0; }

/* writer */
.writer { display: grid; gap: 24px; padding-top: 16px; padding-bottom: 56px; }
@media (min-width: 1100px) { .writer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.writer__form { display: grid; gap: 16px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.writer__note { color: var(--ink-2); margin: 0; }
.writer__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.writer__bar .more { margin: 0; }
.writer__count { font: 600 14px var(--text); color: var(--muted); }
.writer__preview { align-self: start; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.writer__preview .story__title { font-size: 30px; margin: 6px 0 10px; }
.preview-label { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--sunk); font: 700 12.5px var(--text); color: var(--muted); margin: 0; justify-self: start; }
.mdhelp { font-size: 13.5px; color: var(--muted); margin: 0; }
.mdhelp code { background: var(--sunk); padding: 0 5px; border-radius: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 0; padding: 6px; margin: 0; border-radius: var(--r-md); background: var(--sunk); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--muted); }
.seg b { font: 700 15px var(--text); color: var(--ink); }
.seg input:checked + span { background: var(--surface); outline: 1px solid var(--line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* admin desk */
.desk-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.queue { display: grid; gap: 16px; }
.queue-item { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.queue-item h3 { font-size: 22px; }
.queue-item .prose { font-size: 16px; max-height: 340px; overflow: auto; padding: 14px; background: var(--sunk); border-radius: var(--r-md); }
.queue-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.queue-actions input { flex: 1; min-width: 200px; }
.list__dek { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.ad-row { display: grid; gap: 10px; padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ad-row img { max-height: 120px; width: auto; border-radius: var(--r-sm); }
.ad-row__meta { font-size: 14px; color: var(--ink-2); }
.ad-row__acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag-live { color: var(--up); font-weight: 800; }
.desk-section { margin-top: 40px; }

/* advertise */
.tiers { display: grid; gap: 14px; margin: 18px 0 32px; }
@media (min-width: 820px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: grid; gap: 12px; align-content: start; padding: 24px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tier h3 { font: 800 18px var(--display); margin: 0; }
.tier__price { margin: 0; color: var(--muted); font: 500 15px var(--text); }
.tier__price b { font: 800 34px var(--display); letter-spacing: -.03em; color: var(--ink); }
.tier ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; color: var(--ink-2); }
.tier--on { border-color: var(--accent); }
.tier--on .btn--line { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.picked { padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); margin: 0; }
.book--flash { animation: flash 1s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 6px var(--accent-soft); } to { box-shadow: 0 0 0 0 transparent; } }
.terms-list { font-size: 14.5px; color: var(--ink-2); }

/* search, large */
.find--big { display: flex; gap: 8px; max-width: 640px; margin: 8px 0 18px; }
.find--big input { flex: 1; min-height: 50px; border-radius: 999px; padding-inline: 20px; }
.find--big .btn { min-height: 50px; }

/* ---------- footer ---------- */
.footer { margin-top: 56px; background: var(--board); color: var(--board-ink); padding: 48px 0 30px; font-size: 14.5px; }
.footer .brand, .footer .brand:hover { color: #ffffff; }
.footer .brand__name b { color: var(--board-muted); }
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer__about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer__about { grid-column: auto; } }
.footer__about p { color: var(--board-ink); max-width: 46ch; margin: 14px 0 0; }
.footer__h { font: 700 14px var(--display); color: #ffffff; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a { color: var(--board-ink); }
.footer a:hover { color: #ffffff; }
.footer__legal { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--board-line); font-size: 13px; color: var(--board-muted); max-width: 110ch; }
.footer__copy { margin: 10px 0 0; font-size: 13px; color: var(--board-muted); }

/* ---------- shared editorial component refinements ---------- */
::selection { background: var(--accent-soft); color: var(--ink); }
body { letter-spacing: -.003em; }

.masthead { box-shadow: 0 1px 0 rgba(23, 25, 31, .035); }
.masthead__row { min-height: 70px; }
.brand { gap: 9px; }
.brand__mark svg { border-radius: 6px; box-shadow: var(--shadow-control); }
.brand__name { letter-spacing: -.035em; }
.find { max-width: 440px; }
.find input { height: 44px; padding-inline: 16px 44px; border-color: var(--line); border-radius: 10px; background: var(--surface); }
.find input:hover { border-color: var(--line-2); }
.find input:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.tool-link, .tool-btn { border-radius: 8px; }

.nav { border-top: 0; }
.nav__row { min-height: 50px; gap: 20px; }
.nav__link {
  position: relative; padding: 13px 2px 11px; border-bottom: 2px solid transparent;
  border-radius: 6px; color: var(--muted); letter-spacing: -.005em;
}
.nav__link:hover { background: transparent; color: var(--ink); border-bottom-color: var(--line-2); }
.nav__link[aria-current="page"] { background: transparent; color: var(--ink); border-bottom-color: var(--accent); }
.nav__fresh { font-size: 12.5px; }

.btn {
  min-height: 44px; border-radius: 10px; box-shadow: var(--shadow-control);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--line, .btn--ghost, .btn--danger { box-shadow: none; }
.btn--sm { min-height: 44px; }
.btn--wide { min-height: 52px; }

.chip {
  padding: 1px 0 1px 9px; border-left: 3px solid var(--accent); border-radius: 0;
  background: transparent; color: var(--accent-text); font-size: 12px; letter-spacing: .035em; text-transform: uppercase;
}
a.chip:hover { background: transparent; color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.chip--community { background: transparent; color: var(--ink-2); }

.pic { border-radius: var(--r-md); border: 1px solid var(--line); }
.pic--sq { border-radius: 5px; }
.top { gap: 28px; padding-top: 32px; }
.top__main {
  gap: 30px; padding: clamp(20px, 2.2vw, 30px); border-color: var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-major);
}
.hero { gap: 17px; }
.hero__body { gap: 12px; }
.hero__title { font-size: clamp(2rem, 1.2rem + 2.1vw, 2.85rem); line-height: 1.06; letter-spacing: -.035em; }
.hero__title a:hover { text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero__dek { font-family: var(--reading); font-size: 18px; line-height: 1.55; letter-spacing: 0; }

.panel { border-radius: 10px; }
.panel__h { letter-spacing: -.018em; }
.peg { border-radius: var(--r-lg); box-shadow: 0 14px 34px rgba(8, 10, 14, .16); }
.peg__spark { border-radius: 7px; }
.rows__item { padding-block: 15px; }
.rows__title { line-height: 1.3; }
.wire__t { border-radius: 4px; }

.card { gap: 14px; }
.card__title { line-height: 1.27; }
.card__title a:hover, .rows__title a:hover, .wire__h:hover { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.block { padding-top: 52px; }
.block-h { position: relative; gap: 10px; font-size: 27px; }
.block-h::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--accent); flex: none; }
.block-h .more { padding: 4px 0; border: 0; border-radius: 0; color: var(--accent-text); }
.block-h .more:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.pair { gap: 34px; }
.pair > * { padding: 20px 0 0; border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: transparent; }

.band { margin-top: 52px; padding-block: 52px; background: color-mix(in srgb, var(--surface) 78%, var(--paper)); }
.invite {
  gap: 16px; padding: 28px 30px; border: 1px solid var(--board-line); border-left: 5px solid var(--accent);
  border-radius: var(--r-lg); background: var(--board-2); color: var(--board-ink); box-shadow: 0 12px 30px rgba(8, 10, 14, .12);
}
.invite h2, .invite p { color: var(--board-ink); }
.invite .btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.invite .btn--line { border-color: var(--board-muted); color: var(--board-ink); }
.invite .btn--line:hover { border-color: var(--board-ink); color: #fff; }
.invite :focus-visible { outline-color: #fff; }

.front-head { padding-top: 40px; padding-bottom: 26px; }
.front-head__title { letter-spacing: -.045em; }
.tally { border-radius: 5px; }
.front > div:first-child, .story__main, .longread {
  border-color: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-major);
}

.story { gap: 30px; }
.story__main { padding: clamp(24px, 4vw, 46px); }
.story__head { gap: 16px; margin-bottom: 28px; }
.story__title { line-height: 1.03; letter-spacing: -.042em; }
.story__body { max-width: 680px; gap: 20px; }
.story__excerpt { font-family: var(--reading); font-size: 20px; line-height: 1.62; letter-spacing: 0; }
.story__body .btn--wide { min-width: 0; height: auto; padding-block: 10px; line-height: 1.3; text-align: center; white-space: normal; }
.longread { padding: clamp(24px, 4vw, 52px); }
.longread__dek, .prose { font-family: var(--reading); letter-spacing: 0; }
.longread__dek { font-size: 21px; line-height: 1.5; }
.prose { max-width: 680px; font-size: 18.5px; line-height: 1.78; }
.prose h2, .prose h3 { font-family: var(--display); letter-spacing: -.02em; }
.prose blockquote { padding-left: 22px; border-left-width: 4px; font-size: 1.06em; }
.lede { font-family: var(--reading); font-size: 18px; line-height: 1.6; letter-spacing: 0; }

.page-title, .auth__copy h1 { letter-spacing: -.045em; }
.form-stack, .writer__form, .writer__preview, .queue-item, .tier { border-radius: 10px; }
.auth .panel, .form-stack { box-shadow: 0 10px 30px rgba(29, 33, 43, .05); }
input, select, textarea { border-radius: 8px; }
.find--big input { border-radius: 10px; }
.seg, .seg span { border-radius: 7px; }

.footer { margin-top: 72px; padding-top: 54px; }
.footer__h { letter-spacing: .025em; text-transform: uppercase; font-size: 12px; }
.footer ul { gap: 9px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 719px) {
  .masthead__row { min-height: 62px; }
  .nav__row { gap: 18px; }
  .top { padding-top: 20px; }
  .top__main { padding: 18px; box-shadow: 0 10px 28px rgba(29, 33, 43, .05); }
  .block { padding-top: 42px; }
  .block-h { font-size: 23px; }
  .pair { gap: 28px; }
  .invite { padding: 24px 22px; }
  .front-head { padding-top: 28px; }
  .story__main, .longread { box-shadow: none; }
}

/* ---------- front page ---------- */
.edition-label, .desk-label { margin: 0; color: var(--accent-text); font: 700 11px/1.2 var(--text); letter-spacing: .13em; text-transform: uppercase; }
.home-page main { overflow: clip; }
.front-page { padding-block: 42px 72px; }
.front-page__heading { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); align-items: end; gap: 4px 40px; padding-bottom: 22px; border-bottom: 3px double var(--ink); }
.front-page__heading .edition-label { grid-column: 1 / -1; margin: 0; font: 700 11px/1 var(--text); letter-spacing: .13em; color: var(--accent-text); text-transform: uppercase; }
.front-page__heading h1 { font-size: clamp(42px,6vw,78px); line-height: .94; letter-spacing: -.045em; }
.front-page__heading > p:last-child { margin: 0; max-width: 45ch; font: 400 18px/1.45 var(--reading); color: var(--ink-2); }
.front-lead { display: grid; grid-template-columns: minmax(0,6fr) minmax(260px,3fr) minmax(280px,3fr); gap: 0; padding: 30px 0; border-bottom: 1px solid var(--ink); }
.front-lead > * { min-width: 0; padding-inline: 24px; border-right: 1px solid var(--line-2); }
.front-lead > :first-child { padding-left: 0; }
.front-lead > :last-child { padding-right: 0; border-right: 0; }
.front-lead .hero { display: block; background: transparent; border: 0; box-shadow: none; }
.front-lead .hero__media { margin-bottom: 20px; }
.front-lead .hero__title { font-size: clamp(34px,4.1vw,58px); line-height: .98; }
.front-lead .hero__dek { max-width: 58ch; font-family: var(--reading); font-size: 19px; line-height: 1.45; }
.module-heading, .section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.module-heading .desk-label, .section-heading .desk-label { flex-basis: 100%; }
.module-heading h2, .section-heading h2 { font-size: clamp(25px,3vw,36px); }
.section-heading .more { margin: 0 0 0 auto; }
.latest-timeline .rows__item { padding-block: 14px; }
.latest-timeline .rows__title { font-family: var(--reading); font-size: 18px; line-height: 1.17; }
.market-snapshot .panel { height: 100%; border-radius: 0; box-shadow: none; }
.peg--compact .peg__spark { margin-block: 16px; }
.peg--compact .board th span { display: none; }
.supporting-strip { padding: 34px 0 44px; border-bottom: 1px solid var(--ink); }
.supporting-strip .cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
.supporting-strip .card { border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; padding-right: 18px; }
.supporting-strip .card:last-child { border-right: 0; }
.desk-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 52px 44px; padding-top: 48px; }
.desk-section--feature { grid-column: 1 / -1; }
.desk-section--ledger { grid-column: 1 / -1; }
.desk-section--ledger .wire { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 28px; }
.desk-section--ledger .wire__item { border-top: 1px solid var(--line); }
.desk-section--feature .cards { grid-template-columns: 2fr repeat(3,1fr); }
.desk-section .card { box-shadow: none; border-radius: 0; background: transparent; border: 0; }
.community-notebook { padding: 52px 0; background: var(--ink); color: #f4f1ea; border-top: 5px solid var(--accent); }
.community-notebook h2, .community-notebook h3, .community-notebook a { color: inherit; }
.community-notebook__grid { display: grid; grid-template-columns: 3fr 6fr 3fr; gap: 40px; align-items: start; }
.community-notebook__grid > * + * { border-left: 1px solid rgba(255,255,255,.22); padding-left: 40px; }
.community-notebook__lede { color: #c7cad2; font-family: var(--reading); }
.community-notebook__invite .btn { margin: 8px 0; color: white; }
.community-notebook .meta, .community-notebook .meta__src { color: #bbc0cb; }
@media (max-width: 1023px) {
  .front-lead { grid-template-columns: minmax(0,2fr) minmax(280px,1fr); }
  .market-snapshot { grid-column: 1 / -1; border-top: 1px solid var(--line-2); border-right: 0; padding: 24px 0 0; margin-top: 24px; }
  .market-snapshot .panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .market-snapshot .panel__h, .market-snapshot .peg__src { grid-column: 1 / -1; }
  .community-notebook__grid { grid-template-columns: 1fr 2fr; }
  .community-notebook__invite { grid-column: 1 / -1; border: 0 !important; border-top: 1px solid rgba(255,255,255,.22) !important; padding: 24px 0 0 !important; }
}
@media (max-width: 719px) {
  .front-page { padding-block: 28px 44px; }
  .front-page__heading { display: block; }
  .front-page__heading h1 { margin: 8px 0 12px; font-size: 45px; }
  .front-lead { display: block; padding-top: 22px; }
  .front-lead > * { padding: 0; border: 0; }
  .front-lead > * + * { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-2); }
  .front-lead .hero__title { font-size: 37px; }
  .market-snapshot .panel { display: block; }
  .supporting-strip .cards, .desk-section--feature .cards { grid-template-columns: 1fr 1fr; }
  .desk-grid, .community-notebook__grid { display: block; }
  .desk-section--ledger .wire { grid-template-columns: 1fr; }
  .desk-section + .desk-section { margin-top: 42px; }
  .community-notebook__grid > * + * { border: 0; border-top: 1px solid rgba(255,255,255,.22); padding: 24px 0 0; margin-top: 24px; }
}
@media (max-width: 430px) {
  .supporting-strip .cards, .desk-section--feature .cards { grid-template-columns: 1fr; }
  .journal-masthead__row { gap: 2px; }
  .journal-masthead .brand { grid-template-columns: 30px auto; column-gap: 7px; }
  .journal-masthead .brand__mark { width: 30px; height: 30px; }
  .journal-masthead .brand__name { font-size: 18px; }
  .masthead__tools { gap: 0; }
  .tool-btn, .tool-link { width: 44px; height: 44px; }
  .masthead__tools .btn { width: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 0; }
  .masthead__tools .btn .ic { display: block; }
}

/* ---------- section desks ---------- */
.desk-intro { margin-top: 34px; padding: 30px 0 24px; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; }
.desk-intro .front-head__title { font-size: clamp(48px,7vw,86px); line-height: .88; letter-spacing: -.045em; }
.desk-intro > div { max-width: 62ch; justify-self: end; }
.desk-intro > div > p:first-child { font: 400 19px/1.45 var(--reading); }
.desk-intro .tally { display: inline-block; margin: 5px 0 0; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 12px; letter-spacing: .02em; }
.section-front { grid-template-columns: minmax(0,8fr) minmax(280px,4fr); gap: 48px; padding-block: 34px 72px; }
.news-stream { min-width: 0; }
.front.section-front > .news-stream { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.desk-lead { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 3px double var(--ink); }
.desk-lead .hero { box-shadow: none; border: 0; border-radius: 0; background: transparent; }
.desk-lead .hero__title { font-size: clamp(34px,4vw,56px); }
.desk-lead .cards { padding-top: 26px; grid-template-columns: repeat(3,1fr); }
.desk-lead .card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.context-rail { border-left: 1px solid var(--line-2); padding-left: 28px; }
.context-rail > * { border-radius: 0 !important; box-shadow: none !important; }
.context-rail .note-box { border: 0; border-top: 1px solid var(--ink); padding: 18px 0; }
.sec--regulation .desk-intro { border-top-color: var(--accent); }
.sec--regulation .context-rail::before { content: "Policy briefing"; display: block; margin-bottom: 12px; font: 700 11px/1 var(--text); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); }
.sec--markets .desk-lead .hero__media { max-height: 330px; overflow: hidden; }
.sec--altcoins .desk-intro { grid-template-columns: 7fr 5fr; }
.sec--community .news-stream .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sec--community .news-stream .card { border-radius: 0; box-shadow: none; border: 0; border-top: 1px solid var(--ink); padding-top: 18px; }
.community-lead .rows__item { border: 0; padding-top: 0; }
.community-lead .rows__title { max-width: 22ch; font-size: clamp(32px,4vw,52px); line-height: 1.02; }
.community-lead .rows__dek { max-width: 58ch; font: 400 19px/1.5 var(--reading); }
.community-lead:has(.empty) { margin-bottom: 0; border-bottom: 0; }
@media (max-width: 900px) {
  .desk-intro { grid-template-columns: 1fr; gap: 16px; }
  .desk-intro > div { justify-self: start; }
  .section-front { grid-template-columns: 1fr; }
  .context-rail { border: 0; border-top: 3px double var(--ink); padding: 28px 0 0; }
}
@media (max-width: 600px) {
  .desk-intro { margin-top: 20px; padding-block: 22px; }
  .desk-intro .front-head__title { font-size: 52px; }
  .desk-lead .cards, .sec--community .news-stream .cards { grid-template-columns: 1fr; }
}

/* ---------- story reading ---------- */
.story { grid-template-columns: minmax(0,8fr) minmax(280px,4fr); gap: 64px; align-items: start; }
.article-reading { max-width: 820px; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.article-header { padding: 30px 0 26px; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); }
.article-header .chip { padding: 0; border-radius: 0; background: transparent; color: var(--accent-text); text-transform: uppercase; letter-spacing: .09em; }
.article-header .story__title { margin-top: 16px; font-size: clamp(42px,6vw,76px); line-height: .96; letter-spacing: -.043em; }
.article-header .story__meta { padding-top: 20px; font-family: var(--text); }
.article-source { font-weight: 600; color: var(--ink); }
.story__media { margin-top: 28px; }
.story__pic { border-radius: 0; }
.story__body { max-width: 68ch; margin: 0 auto; padding: 34px 0 0; font-family: var(--reading); }
.story__excerpt { font-size: clamp(21px,2.3vw,27px); line-height: 1.45; color: var(--ink-2); }
.source-action { margin-block: 24px 10px; border-radius: 2px; font-family: var(--text); }
.story__note { font: 400 12px/1.5 var(--text); color: var(--muted); }
.coverage-context { margin-top: 30px; padding: 20px 0; border-block: 1px solid var(--line-2); font-family: var(--text); }
.article-rail { border-left: 1px solid var(--line-2); padding-left: 28px; }
.article-rail .panel { border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--ink); padding: 18px 0 28px; }
.share { border-radius: 0; border-block: 1px solid var(--line-2); background: transparent; }
.longform-reading { max-width: 850px; }
.longform-reading .longread__head { border-top: 4px solid var(--ink); }
.longform-reading .prose { max-width: 68ch; font-family: var(--reading); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 42px; }
  .article-rail { border-left: 0; border-top: 3px double var(--ink); padding: 28px 0 0; }
}
@media (max-width: 600px) {
  .article-header .story__title { font-size: 42px; }
  .story__body { padding-top: 24px; }
}

/* ---------- utility, documents and commercial ---------- */
.utility-page { padding-block: 44px 76px; }
.document-page { max-width: 900px; }
.utility-page .page-title { padding-top: 22px; border-top: 4px solid var(--ink); font-size: clamp(44px,6vw,70px); line-height: .96; }
.utility-page > .lede { max-width: 66ch; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); font: 400 21px/1.5 var(--reading); color: var(--ink-2); }
.document-page > h2 { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--ink); font-size: 30px; }
.document-page > p, .document-page > ul, .document-page > ol { max-width: 68ch; }
.utility-page .panel { border: 1px solid var(--line-2); border-radius: 0; box-shadow: none; background: var(--surface); }
.source-summary { max-width: var(--max); }
.source-summary .tiles { border-block: 1px solid var(--ink); }
.source-summary .tile { border: 0; border-right: 1px solid var(--line-2); border-radius: 0; background: transparent; }
.source-summary .tile, .source-summary .tile b { color: var(--ink); }
.source-summary .tile span { color: var(--muted); }
.source-table { border-top: 3px double var(--ink); }
.source-table table { min-width: 720px; }
.source-table caption { padding: 12px 0; text-align: left; font: 600 14px/1.4 var(--text); color: var(--ink); }
.source-table th { background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.commercial-options { display: block; border-top: 3px double var(--ink); }
.commercial-options .tier { display: grid; grid-template-columns: 1.2fr 1fr 3fr auto; align-items: center; gap: 24px; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; box-shadow: none; background: transparent; }
.commercial-options .tier h3, .commercial-options .tier p, .commercial-options .tier ul { margin: 0; }
.commercial-options .tier ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; font-size: 13px; }
.commercial-options .tier .btn { border-radius: 2px; }
.find--big { max-width: 760px; display: grid; grid-template-columns: 1fr auto; margin: 28px 0; }
.find--big input { border-radius: 2px; background: var(--surface); border-color: var(--line-2); }
@media (max-width: 800px) {
  .commercial-options .tier { grid-template-columns: 1fr auto; }
  .commercial-options .tier ul { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .utility-page { padding-block: 28px 52px; }
  .utility-page .page-title { font-size: 44px; }
  .commercial-options .tier { display: block; }
  .commercial-options .tier > * + * { margin-top: 12px; }
  .commercial-options .tier ul { display: block; padding-left: 20px; }
}
@media (max-width: 380px) {
  .masthead .wrap { padding-inline: 8px; }
  .masthead__row { gap: 2px; }
  .brand__name { font-size: 18px; }
  .brand__mark svg { width: 24px; height: 24px; }
  .tool-btn, .tool-link, .masthead__tools .btn { width: 44px; height: 44px; min-height: 44px; }
}

/* ---------- account and editorial workflows ---------- */
.auth-page { max-width: 1040px; grid-template-columns: minmax(0,1fr) minmax(340px,440px); gap: 72px; padding-block: 64px 90px; align-items: start; }
.auth-page .auth__copy { padding-top: 28px; border-top: 4px solid var(--ink); }
.auth-page .auth__copy h1 { font-size: clamp(48px,6vw,72px); line-height: .94; }
.auth-page .auth__copy p { max-width: 44ch; font-family: var(--reading); font-size: 19px; }
.auth-page form { border: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 30px; }
.auth-page form h2 { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.field input, .field textarea, .field select { border-radius: 2px; background: var(--surface); min-height: 44px; }
.account-groups, .editorial-queue { padding-block: 44px 80px; }
.account-groups .page-title, .editorial-queue .page-title { padding-top: 22px; border-top: 4px solid var(--ink); font-size: clamp(44px,6vw,70px); }
.writer-desk { grid-template-columns: minmax(0,7fr) minmax(360px,5fr); gap: 48px; padding-block: 32px 72px; }
.writer-desk .writer__form { padding-top: 24px; border-top: 4px solid var(--ink); }
.writer-preview { top: 28px; max-height: calc(100vh - 56px); overflow: auto; border: 1px solid var(--line-2); border-radius: 0; box-shadow: none; background: var(--surface); }
.writer-preview::before { content: "Reader view"; display: block; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--ink); font: 700 10px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.editorial-queue .desk-section { padding-top: 28px; border-top: 3px double var(--ink); }
.admin-table .submission, .editorial-queue .panel { border-radius: 0; box-shadow: none; }
@media (max-width: 840px) {
  .auth-page, .writer-desk { grid-template-columns: 1fr; gap: 32px; }
  .writer-preview { position: static; max-height: none; }
}
@media (max-width: 520px) {
  .auth-page { padding-block: 34px 60px; }
  .auth-page .auth__copy h1 { font-size: 46px; }
  .auth-page form { padding: 22px 18px; }
}
@media (max-width: 420px) { .masthead__tools .btn .ic { display: none; } }
@media (max-width: 380px) {
  .masthead__tools { gap: 2px; }
  .masthead__tools .btn { width: 40px; padding: 0; font-size: 0; }
  .masthead__tools .btn .ic { display: block; }
}

.nav { border-top: 1px solid var(--line); }
.nav__row { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; min-height: 52px; }
.nav__row::-webkit-scrollbar { display: none; }
.nav__link { padding: 7px 14px; border-radius: 999px; font: 600 14.5px var(--text); color: var(--ink-2); white-space: nowrap; }
.nav__link:hover { background: var(--sunk); color: var(--ink); }
.nav__link[aria-current="page"] { background: var(--ink); color: var(--surface); }
.nav__fresh { margin-left: auto; padding-left: 16px; font: 500 13px var(--text); color: var(--muted); white-space: nowrap; }
@media (max-width: 719px) { .nav__fresh { display: none; } }


/* ---------- financial journal shell ---------- */
.edition-bar { background: var(--board); color: #f4f1ea; border-bottom: 1px solid rgba(255,255,255,.16); font: 500 11px/1.2 var(--text); letter-spacing: .055em; text-transform: uppercase; }
.edition-bar__row { min-height: 30px; display: flex; align-items: center; gap: 18px; }
.edition-bar__label { color: #aebbe9; }
.edition-bar a { margin-left: auto; color: #f4f1ea; text-decoration: underline; text-underline-offset: 3px; }
.journal-masthead { position: relative; top: auto; border-bottom: 0; background: var(--surface); }
.journal-masthead__row { min-height: 88px; border-bottom: 1px solid var(--ink); }
.journal-masthead .brand { display: grid; grid-template-columns: 42px auto; grid-template-rows: auto auto; column-gap: 12px; }
.journal-masthead .brand__mark { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; background: var(--accent); color: white; font: 700 13px/1 var(--text); letter-spacing: .08em; }
.journal-masthead .brand__name { font: 700 clamp(27px,3vw,38px)/.9 var(--display); letter-spacing: -.04em; }
.journal-masthead .brand__name b { font-weight: 400; color: inherit; }
.brand__strap { font: 500 10px/1.2 var(--text); color: var(--muted); text-transform: uppercase; letter-spacing: .11em; }
.section-nav { border: 0; border-bottom: 1px solid var(--line-2); }
.section-nav .nav__row { min-height: 44px; gap: 0; }
.section-nav__label { padding-right: 20px; margin-right: 6px; font: 700 10px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-nav .nav__link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 0; border-bottom: 3px solid transparent; font-size: 13px; }
.section-nav .nav__link:hover { background: transparent; color: var(--accent); }
.section-nav .nav__link[aria-current="page"] { background: transparent; color: var(--ink); border-bottom-color: var(--accent); }
.pegbar { border-bottom: 1px solid var(--board-line); }
.publication-footer { border-top: 4px solid var(--ink); }
.publication-footer .footer__grid { border-bottom: 1px solid var(--board-line); }
.footer__mission { font: 600 21px/1.25 var(--display); max-width: 28ch; color: var(--board-ink); }
.publication-footer .brand__strap { display: none; }
@media (max-width: 719px) {
  .edition-bar__row { min-height: 28px; }
  .edition-bar__label, .edition-bar a { display: none; }
  .journal-masthead__row { min-height: 68px; }
  .journal-masthead .brand { grid-template-columns: 32px auto; }
  .journal-masthead .brand__mark { width: 32px; height: 32px; font-size: 10px; }
  .brand__strap, .section-nav__label { display: none; }
}
@media (max-width: 480px) {
  .journal-masthead__row { gap: 2px; }
  .journal-masthead .brand { grid-template-columns: 30px auto; column-gap: 7px; }
  .journal-masthead .brand__mark { width: 30px; height: 30px; }
  .journal-masthead .brand__name { font-size: 18px; }
  .masthead__tools { gap: 0; }
  .tool-btn, .tool-link { width: 44px; height: 44px; }
  .masthead__tools .btn { width: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 0; }
  .masthead__tools .btn .ic { display: block; }
}




