/* PloverResearch: the front page, the article page, and the article
   typography the Research Desk shares so a draft reads like the page.

   Editorial, and boxed: every area of the front page is a box, and the
   other notes are a grid of boxed cards (an agreed exception to the
   card-grid rule, scoped to these pages, 2026-10-03). The identity is the
   platform's own — Inter throughout, the navy section band, a navy rule
   along the top of each box — and chart-first: the lead story opens with
   its chart, because the data is what makes a Plover note.
   Colours come from tokens.css only. */

.rs-wrap { max-width: 1240px; }
.rs-article, .rs-trail, .rs-wrap > .rs-notice, .rs-wrap:not(.rs-home) > .rh-more,
.rs-wrap:not(.rs-home) > .rh-subscribe { max-width: 760px; margin-left: auto; margin-right: auto; }
.rs-trail { font-size: 12.5px; margin: 8px auto 18px; }
.rs-trail a { color: var(--obs-text-muted); text-decoration: none; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 11.5px; }
.rs-trail a:hover { color: var(--obs-primary); }

/* ======================================================================
   article
   ====================================================================== */
.rs-head { margin-bottom: 28px; }
.rs-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--obs-primary); margin: 0 0 12px; }
.rs-head h1 { font-size: 36px; font-weight: 800; line-height: 1.16; letter-spacing: -0.7px;
  color: var(--obs-ink); margin: 0 0 14px; }
.rs-dek { font-size: 18px; line-height: 1.5; color: var(--obs-text); margin: 0 0 20px; }
.rs-byline { margin: 0 0 16px; }
.rs-author { font-size: 14px; font-weight: 700; color: var(--obs-ink); margin: 0 0 2px; }
.rs-dateline { font-size: 13px; color: var(--obs-text-muted); margin: 0; font-variant-numeric: tabular-nums; }

/* share: one quiet line between two rules */
.rs-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0;
  padding: 10px 0; border-top: 1px solid var(--obs-border); border-bottom: 1px solid var(--obs-border);
  font-size: 13.5px; }
.rs-share-h { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--obs-text-muted); }
.rs-share a, .rs-share .linkish { color: var(--obs-primary); font-weight: 600; font-size: 13.5px;
  text-decoration: none; }
.rs-share a:hover, .rs-share .linkish:hover { text-decoration: underline; }
.rs-share .done { color: var(--obs-trust-official); }

.rs-body { font-size: 17.5px; line-height: 1.72; color: var(--obs-ink); }
.rs-body p, .rs-body ul, .rs-body ol, .rs-body blockquote { margin: 0 0 20px; }
.rs-body ul, .rs-body ol { padding-left: 26px; }
.rs-body li { margin-bottom: 8px; }
/* subheads in an article: bold type under a short navy rule, not the full band */
.rs-body h2, .rs-body h3 { display: block; background: none; color: var(--obs-ink); text-transform: none;
  letter-spacing: -0.2px; border-radius: 0; padding: 0; font-weight: 800; }
.rs-body h2 { font-size: 22px; line-height: 1.3; margin: 44px 0 14px; }
.rs-body h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--obs-band-bg);
  margin-bottom: 14px; }
.rs-body h3 { font-size: 18.5px; line-height: 1.35; margin: 30px 0 10px; font-weight: 700; }
.rs-body a { color: var(--obs-primary); text-decoration: underline; text-underline-offset: 2px; }
.rs-body code {
  font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: 0.85em;
  background: var(--obs-surface-subtle); border: 1px solid var(--obs-border); border-radius: 3px;
  padding: 0 4px;
}
.rs-body blockquote { border-left: 3px solid var(--obs-band-bg); padding: 2px 0 2px 18px; color: var(--obs-text); }
.rs-body hr { border: 0; border-top: 1px solid var(--obs-border); margin: 32px 0; }
.rs-body sup.rs-fn { font-size: 0.7em; line-height: 0; margin-left: 1px; }
.rs-body sup.rs-fn a { text-decoration: none; font-weight: 700; }

/* figures: each in its own box with the navy top rule */
.rs-chart, .rs-table, .rs-image { margin: 32px 0; padding: 18px 20px 16px; background: var(--obs-surface);
  border: 1px solid var(--obs-border); border-top: 3px solid var(--obs-band-bg); border-radius: 3px;
  font-size: 14px; line-height: 1.5; }
.rs-fig-title { font-size: 15px; font-weight: 700; color: var(--obs-ink); margin-bottom: 8px; line-height: 1.4; }
.rs-chart-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rs-unit { font-size: 12px; color: var(--obs-text-muted); }
.rs-plot { height: 360px; }
.rs-chart-note { font-size: 13px; color: var(--obs-text); margin: 6px 0 0; }
.rs-chart-error { font-size: 13px; color: var(--obs-trust-stale); margin: 8px 0; }
.rs-chart-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rs-chart-acts .btn { text-decoration: none; }
.rs-image img { display: block; max-width: 100%; height: auto; }
.rs-table .table-wrap { margin-top: 4px; }
.rs-table table.data { font-size: 13.5px; }
.rs-table td.num, .rs-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-table td.ctr, .rs-table th.ctr { text-align: center; }
.rs-body .source-line { margin-bottom: 0; }
.rs-body details.calc { font-size: 12.5px; }

/* notes, versions, citation: boxes with plain titles */
.rs-notes, .rs-versions, .rs-cite-box { margin: 32px 0 0; padding: 20px 22px; background: var(--obs-surface);
  border: 1px solid var(--obs-border); border-radius: 3px; }
.rs-notes h2, .rs-versions h2, .rs-cite-box h2 { display: block; background: none; color: var(--obs-ink);
  text-transform: none; letter-spacing: 0; border-radius: 0; padding: 0; margin: 0 0 12px;
  font-size: 16px; font-weight: 700; }
.rs-notes h2::before { display: none; }
.rs-notes ol, .rs-versions ol { padding-left: 22px; font-size: 14px; line-height: 1.6; margin: 0; }
.rs-notes li, .rs-versions li { margin-bottom: 8px; }
.rs-fn-back { text-decoration: none; margin-left: 4px; }
.rs-versions li[aria-current] > a { font-weight: 700; }
.rs-v-date { color: var(--obs-text-muted); font-variant-numeric: tabular-nums; margin: 0 6px; }
.rs-cite { font-size: 14px; line-height: 1.6; color: var(--obs-ink); padding: 12px 14px; margin: 0;
  border: 1px solid var(--obs-border); border-radius: 3px; background: var(--obs-surface-subtle); }
.rs-cite-acts { display: flex; gap: 8px; margin: 12px 0 10px; }
.rs-cite-acts .btn { text-decoration: none; }
.rs-cite-note { font-size: 12.5px; color: var(--obs-text-muted); line-height: 1.5; margin: 0; }
/* under every article and front page of a publication other than PloverResearch */
.rs-own-views { margin: 24px 0 0; font-size: 12.5px; color: var(--obs-text-muted); line-height: 1.5; }
.rs-flash { background: var(--obs-focus-soft); transition: background 0.6s; }

.rs-notice { font-size: 13.5px; padding: 10px 14px; border: 1px solid var(--obs-border);
  border-left: 3px solid var(--obs-primary); border-radius: 3px; margin: 0 auto 20px;
  background: var(--obs-surface); color: var(--obs-ink); }
.rs-notice-warn { border-left-color: var(--obs-warn); }
.rs-preview-bar { position: sticky; top: 0; z-index: 30; text-align: center; font-size: 12.5px;
  font-weight: 600; padding: 8px 16px; color: var(--obs-warn); background: var(--obs-surface);
  border-bottom: 1px solid var(--obs-warn); }

/* ======================================================================
   front page
   ====================================================================== */
.rh-mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px;
  flex-wrap: wrap; padding: 22px 0 6px; }
.rh-mast h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.1;
  margin: 0 0 6px; color: var(--obs-ink); }
.rh-strap { font-size: 14.5px; color: var(--obs-text-muted); margin: 0; }
.rh-about { margin: 8px 0 0; max-width: 72ch; font-size: 14px; color: var(--obs-ink); line-height: 1.55; }
.rh-mast-acts, .rh-subscribe-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* a publication's own logo (pub_profile), beside its name and in the trail */
.rh-logo { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; align-self: center; border-radius: 4px; }
.rh-mast > .rh-logo + div { flex: 1 1 auto; min-width: 0; }
.rs-trail-logo { width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-right: 8px; border-radius: 2px; }
.rh-mast-acts .btn, .rh-subscribe-acts .btn { text-decoration: none; padding: 8px 16px; font-size: 13.5px; }

.rh-label { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--obs-primary); margin: 0 0 8px; }
.rh-date { font-size: 12.5px; color: var(--obs-text-muted); margin: 0; font-variant-numeric: tabular-nums; }
.rh-read { display: inline-block; font-size: 14px; font-weight: 600; color: var(--obs-primary);
  text-decoration: none; }
.rh-read:hover { text-decoration: underline; text-underline-offset: 3px; }
.rh-box { background: var(--obs-surface); border: 1px solid var(--obs-border); border-radius: 3px; }
.rh-empty { padding: 28px; font-size: 14px; color: var(--obs-text); }
.rh-tabbar { display: flex; justify-content: flex-end; margin: -2px 0 12px; }

/* every box on the front page: a thin border and the navy rule along its top */
.rh-hero, .rh-cotw, .rh-card { background: var(--obs-surface); border: 1px solid var(--obs-border);
  border-top: 3px solid var(--obs-band-bg); border-radius: 3px; }

/* top row: the lead story (chart first, then the words) and Chart of the Week */
.rh-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.rh-top.rh-top-solo { grid-template-columns: minmax(0, 1fr); }
.rh-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: 340px; overflow: hidden; }
.rh-hero.rh-hero-solo { grid-template-columns: minmax(0, 1fr); }
.rh-hero-fig { display: flex; flex-direction: column; padding: 18px 20px 12px;
  border-right: 1px solid var(--obs-border); text-decoration: none; }
.rh-plot-lead { flex: 1; min-height: 260px; }
.rh-hero-cap { font-size: 12px; color: var(--obs-text-muted); margin-top: 8px; }
.rh-hero-text { display: flex; flex-direction: column; padding: 26px 28px 22px; }
.rh-hero-title { font-size: 28px; font-weight: 800; line-height: 1.18; letter-spacing: -0.5px; margin: 0 0 12px; }
.rh-hero-title a { color: var(--obs-ink); text-decoration: none; }
.rh-hero-title a:hover { color: var(--obs-primary); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 2px; }
.rh-hero-dek { font-size: 15.5px; line-height: 1.55; margin: 0 0 16px; color: var(--obs-text); }
.rh-hero-meta { margin: auto 0 10px; font-size: 12.5px; color: var(--obs-text-muted); font-variant-numeric: tabular-nums; }
.rh-hero-go { margin: 0; }
.rh-img { display: block; width: 100%; height: auto; }
.rh-img-lead { flex: 1; object-fit: contain; min-height: 0; }

.rh-cotw { display: flex; flex-direction: column; padding: 18px 18px 16px; }
.rh-plot-cotw { width: 100%; height: 190px; }
.rh-img-cotw { max-height: 190px; object-fit: contain; }
.rh-cotw-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 12px 0 6px; }
.rh-cotw-title a { color: var(--obs-ink); text-decoration: none; }
.rh-cotw-title a:hover { color: var(--obs-primary); text-decoration: underline; }
.rh-cotw-from { font-size: 12.5px; color: var(--obs-text-muted); margin: auto 0 0; }

/* cards */
.rh-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rh-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-card { display: flex; flex-direction: column; overflow: hidden; }
.rh-card[hidden] { display: none; }
.rh-card:hover { border-color: var(--obs-text-faint); border-top-color: var(--obs-band-bg); }
.rh-card-fig { display: block; height: 150px; padding: 12px 14px 8px; box-sizing: border-box;
  border-bottom: 1px solid var(--obs-border); }
.rh-plot-card { width: 100%; height: 100%; pointer-events: none; }
.rh-img-card { width: 100%; height: 100%; object-fit: contain; }
.rh-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--obs-text-faint); background: var(--obs-surface-subtle); }
.rh-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.rh-card-title { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -0.2px; margin: 0 0 14px; }
.rh-card-title a { color: var(--obs-ink); text-decoration: none; }
.rh-card-title a:hover { color: var(--obs-primary); text-decoration: underline; text-underline-offset: 3px; }
.rh-card .rh-date { margin-top: auto; }

/* market tabs */
.rh-tabs { display: inline-flex; border: 1px solid var(--obs-border); border-radius: 3px; overflow: hidden;
  background: var(--obs-surface); }
.rh-tabs button { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--obs-text);
  background: none; border: 0; padding: 6px 16px; }
.rh-tabs button + button { border-left: 1px solid var(--obs-border); }
.rh-tabs button[aria-pressed="true"] { color: var(--obs-primary); background: var(--obs-focus-soft); }
.rh-tabs button:hover:not([aria-pressed="true"]) { color: var(--obs-primary); }

.table-wrap.rh-box { padding: 0; }
.rh-archive td:first-child, .rh-archive th:first-child { white-space: nowrap; width: 1%; }

.rh-more { margin-top: 12px; }
.rh-allrow { margin: 16px 0 0; }

/* subscribe */
.rh-subscribe { display: flex; justify-content: space-between; align-items: center; gap: 20px 24px;
  flex-wrap: wrap; margin: 40px 0 8px; padding: 22px 26px; background: var(--obs-surface);
  border: 1px solid var(--obs-border); border-left: 3px solid var(--obs-band-bg); border-radius: 3px; }
.rh-subscribe-title { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; color: var(--obs-ink); margin: 0 0 4px; }
.rh-subscribe-text { font-size: 14px; color: var(--obs-text); margin: 0; line-height: 1.5; }
/* a publication's own email sign-up (app/newsletter.py) */
.rh-subform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 0 1 460px; }
.rh-subform input[type="email"] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 14px;
  color: var(--obs-ink); background: var(--obs-surface); border: 1px solid var(--obs-border);
  border-radius: 3px; padding: 8px 10px; }
.rh-subform .btn { text-decoration: none; padding: 8px 16px; font-size: 13.5px; }
.rh-sub-msg { flex: 1 0 100%; margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--obs-ink); }
.rh-sub-msg.bad { color: var(--obs-warn); }
/* the confirm and unsubscribe pages */
.rs-email { max-width: 760px; margin: 0 auto 40px; padding: 24px 26px; background: var(--obs-surface);
  border: 1px solid var(--obs-border); border-top: 3px solid var(--obs-band-bg); border-radius: 3px; }
.rs-email h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 12px; color: var(--obs-ink); }
.rs-email p { font-size: 15px; line-height: 1.55; color: var(--obs-text); margin: 0 0 12px; }
.rs-email .btn { text-decoration: none; padding: 8px 16px; font-size: 13.5px; }
.rs-email form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 1080px) {
  .rh-top { grid-template-columns: minmax(0, 1fr); }
  .rh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rh-hero { grid-template-columns: minmax(0, 1fr); }
  .rh-hero-text { order: -1; padding: 22px 20px 18px; }
  .rh-hero-fig { border-right: 0; border-top: 1px solid var(--obs-border); padding: 12px; }
  .rh-plot-lead { min-height: 220px; }
  .rh-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rh-mast h1 { font-size: 27px; }
  .rh-hero-title { font-size: 24px; }
  .rh-cards, .rh-cards-3 { grid-template-columns: minmax(0, 1fr); }
  .rh-card-fig { height: 170px; }
  .rs-head h1 { font-size: 28px; }
  .rs-dek { font-size: 16.5px; }
  .rs-body { font-size: 16.5px; }
  .rs-plot { height: 260px; }
  .rs-chart, .rs-table, .rs-image { padding: 14px 12px; }
  .rh-subscribe { padding: 18px; }
}

@media print {
  .site-header, .site-subnav, .rs-chart-acts, .rs-cite-acts, .rs-trail, .rs-share, .rh-more,
  .rh-subscribe { display: none !important; }
}

/* buttons that read as links (Copy link, Print, Show all notes) */
.rs-wrap .linkish { font: inherit; color: var(--obs-primary); background: none; border: 0; padding: 0;
  cursor: pointer; font-weight: 600; }
.rs-wrap .linkish:hover { text-decoration: underline; }
.rs-wrap .linkish:focus-visible { outline: 2px solid var(--obs-primary); outline-offset: 2px; }

/* No trust badge on research pages (2026-10-03): the source line says "Values
   as published" instead. Versions published earlier keep their stored HTML,
   so the old badge is hidden rather than rewritten. */
.rs-article .rs-chart-meta, .rh-cotw .badge-official { display: none; }
