/* THE FINANCE DESK — cold morning paper, ink navy, one cobalt signal */

:root {
  --paper: #edf0f4;
  --card: #ffffff;
  --ink: #0e1b2c;
  --slate: #55647b;
  --faint: #8195af;
  --line: #d3dae4;
  --cobalt: #1d4ed8;
  --cobalt-ink: #16368f;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; }
.shell { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ── masthead ── */
.masthead { border-bottom: 1px solid var(--line); background: var(--card); }
.mast-row { display: flex; align-items: center; gap: 20px; padding: 14px 22px; }
.brand { display: flex; align-items: center; gap: 11px; }
.mark { width: 32px; height: 32px; flex: none; }
.wordmark { font-family: var(--serif); font-optical-sizing: auto; font-size: 22px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.dateline { font-family: var(--mono); font-size: 11.5px; color: var(--slate); letter-spacing: 0.04em; margin-left: auto; }
.mastnav { display: flex; gap: 18px; font-size: 13.5px; font-weight: 600; }
.mastnav a { color: var(--slate); padding: 4px 0; border-bottom: 2px solid transparent; }
.mastnav a:hover { color: var(--ink); border-bottom-color: var(--cobalt); }

/* ── ad bay: top center, always present, never rebuilt away ── */
.ad-bay { max-width: 760px; margin: 22px auto 6px; padding: 0 22px; text-align: center; }
.ad-tag { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ad-unit { display: flex; justify-content: center; }
.ad-unit iframe { max-width: 100%; }
.ad-reserved { width: 100%; max-width: 728px; height: 90px; border: 1px dashed var(--line); border-radius: 6px;
  background: repeating-linear-gradient(-45deg, transparent, transparent 10px, #e6eaf0 10px, #e6eaf0 11px); }

/* ── hero ── */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding-top: 34px; padding-bottom: 38px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 12px; }
.lead-head { font-family: var(--serif); font-optical-sizing: auto; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
.lead-head a:hover { color: var(--cobalt-ink); }
.lead-stand { margin-top: 14px; font-size: 17px; color: var(--slate); max-width: 56ch; }
.lead-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--cobalt-ink); background: #dde6fa; border-radius: 3px; padding: 2px 7px; }
.deck { border-left: 1px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.deck-item h2 { font-family: var(--serif); font-size: 19px; line-height: 1.25; font-weight: 600; }
.deck-item h2 a:hover { color: var(--cobalt-ink); }
.deck-item .lead-meta { margin-top: 7px; }

/* ── wire sections with timestamp rail ── */
.wire-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; padding-bottom: 8px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.sec-head h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.tick { width: 8px; height: 8px; background: var(--cobalt); flex: none; align-self: center; }
.wire { list-style: none; position: relative; padding-left: 18px; }
.wire::before { content: ''; position: absolute; left: 3px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.wire-item { position: relative; padding: 15px 0 15px 4px; border-bottom: 1px solid var(--line); }
.wire-item:last-child { border-bottom: 0; }
.node { position: absolute; left: -18px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--faint); }
.wire-item:first-child .node { background: var(--cobalt); border-color: var(--cobalt); }
.wtime { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.05em; }
.whead { font-family: var(--serif); font-size: 16.5px; line-height: 1.3; font-weight: 600; margin: 5px 0 6px; }
.whead a:hover { color: var(--cobalt-ink); }
.wdesc { font-size: 13px; color: var(--slate); margin-bottom: 8px; }

/* ── library ── */
.lib { padding: 44px 0 56px; }
.lib-head { border-bottom-width: 2px; margin-bottom: 22px; }
.more { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--cobalt-ink); }
.more:hover { text-decoration: underline; }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 9px; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt); }
.card h3 { font-family: var(--serif); font-size: 20px; line-height: 1.22; font-weight: 700; }
.card h3 a:hover { color: var(--cobalt-ink); }
.stand { font-size: 13.5px; color: var(--slate); flex: 1; }
.card-meta { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* ── article + static pages ── */
.page-head { padding: 40px 0 10px; max-width: 720px; }
.page-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 700; margin-bottom: 12px; }
.story { max-width: 720px; margin: 0 auto; padding: 40px 0 60px; }
.story-title { font-family: var(--serif); font-size: clamp(29px, 4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.story-stand { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--slate); line-height: 1.4; margin-bottom: 14px; }
.story-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.05em; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.story-body { font-family: var(--serif); font-size: 17.5px; line-height: 1.65; }
.story-body p { margin-bottom: 18px; }
.story-body h2 { font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 30px 0 12px; color: var(--cobalt-ink); }
.story-body a { color: var(--cobalt-ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.story-body a:hover { text-decoration-color: var(--cobalt-ink); }
.story-body strong { font-weight: 700; }
.next-up { margin-top: 44px; border-top: 2px solid var(--ink); padding-top: 18px; }
.next-up h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-top: 4px; }
.next-up h3 a:hover { color: var(--cobalt-ink); }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); background: var(--card); margin-top: 20px; padding: 40px 0 46px; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-brand .wordmark { font-size: 19px; }
.foot-note { font-size: 13px; color: var(--slate); max-width: 66ch; margin-bottom: 18px; }
.foot-nav { display: flex; gap: 20px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.foot-nav a { color: var(--slate); }
.foot-nav a:hover { color: var(--cobalt-ink); }
.foot-copy { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* ── responsive ── */
@media (max-width: 940px) {
  .wire-wrap { grid-template-columns: 1fr; gap: 10px; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .deck { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mast-row { flex-wrap: wrap; gap: 8px 16px; padding: 12px 18px; }
  .dateline { order: 3; width: 100%; margin-left: 0; }
  .lib-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
