/* ============================================================
   Civic Post — the whole paper.
   Liberal reform weekly: deep blue, clean white, Merriweather
   headlines, Open Sans body, an analytical Review and Market
   Watch. One stylesheet drives the home, report and front pages.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Open+Sans:wght@400;600;700&display=swap');

/* ---- Palette (light + dark) ---- */

body.pub--civic-post {
  --cp-blue: #052962;
  --cp-ink: #121212;
  --cp-soft: #33383d;
  --cp-muted: #5a5f66;
  --cp-line: #dcdcdc;
  --cp-paper: #ffffff;
  --cp-surface: #ffffff;
  --cp-band: #f2f5f9;
  --cp-foot: #121212;
  --cp-up: #1c6b3a;
  --cp-down: #a31621;
  --content-bg: var(--cp-paper);
  --border-color: var(--cp-line);
}
[data-theme="dark"] body.pub--civic-post {
  --cp-blue: #7fb0e8;
  --cp-ink: #e6e8ea;
  --cp-soft: #c4c8cc;
  --cp-muted: #9aa0a6;
  --cp-line: #2c3138;
  --cp-paper: #101216;
  --cp-surface: #171a1f;
  --cp-band: #171a1f;
  --cp-foot: #0b0d10;
  --cp-up: #4fd08a;
  --cp-down: #ff6b6b;
  --content-bg: var(--cp-paper);
  --border-color: var(--cp-line);
}

#content.web-page.pub--civic-post {
  background: var(--cp-paper);
  color: var(--cp-ink);
  font-family: 'Open Sans', system-ui, sans-serif;
}
#content.web-page.pub--civic-post a { color: var(--cp-blue); }
#content.web-page.pub--civic-post a:hover { text-decoration: underline; }

/* ============================================================
   HOME
   ============================================================ */

.cp-wrap { max-width: 74rem; margin: 0 auto; padding-left: 1.75rem; padding-right: 1.75rem; }

.cp-masthead { border-bottom: 4px solid var(--cp-blue); padding: 1rem 0 0.6rem; }
.cp-name { font-family: 'Merriweather', Georgia, serif; font-size: 2.4rem; font-weight: 900; margin: 0; }
.cp-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cp-blue); margin: 0.3rem 0 0; }
.cp-dateline { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--cp-line); margin-top: 0.7rem; padding-top: 0.4rem; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cp-muted); }

.cp-nav { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--cp-line); }
.cp-nav .web-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.55rem 0; font: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cp-ink); cursor: pointer; }
.cp-nav .web-tab:hover { border-bottom-color: var(--cp-blue); }
.cp-nav .web-tab.is-active { border-bottom-color: var(--cp-blue); color: var(--cp-blue); }

.cp-section { margin: 1.8rem 0; }
.cp-band { background: var(--cp-blue); color: var(--cp-paper); padding: 0.5rem 0.8rem; }
.cp-band h2 { font-family: 'Merriweather', Georgia, serif; font-size: 1rem; margin: 0; letter-spacing: 0.02em; }
.cp-band a { color: var(--cp-paper); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; float: right; }

.cp-front { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.8rem; align-items: start; margin-top: 1.6rem; }
.cp-lead img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cp-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cp-blue); margin: 0.6rem 0 0.3rem; }
.cp-lead h1 { font-family: 'Merriweather', Georgia, serif; font-size: 2.2rem; line-height: 1.2; margin: 0 0 0.6rem; }
.cp-lead h1 a { text-decoration: none; }
.cp-standfirst { font-size: 1.04rem; line-height: 1.6; color: var(--cp-soft); margin: 0; }
.cp-byline { font-size: 0.74rem; color: var(--cp-muted); margin-top: 0.6rem; }

.cp-side { display: grid; gap: 1rem; }
.cp-side article { border-top: 2px solid var(--cp-blue); padding-top: 0.6rem; }
.cp-side h3 { font-family: 'Merriweather', Georgia, serif; font-size: 1.1rem; line-height: 1.25; margin: 0.2rem 0 0.3rem; }
.cp-side h3 a { text-decoration: none; }
.cp-side p { font-size: 0.9rem; line-height: 1.55; margin: 0; color: var(--cp-soft); }

.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.3rem; }
.cp-grid article { border-top: 1px solid var(--cp-line); padding-top: 0.7rem; }
.cp-grid h3 { font-family: 'Merriweather', Georgia, serif; font-size: 1.08rem; line-height: 1.28; margin: 0.2rem 0 0.3rem; }
.cp-grid h3 a { text-decoration: none; }
.cp-grid p { font-size: 0.9rem; line-height: 1.55; margin: 0; color: var(--cp-soft); }

.cp-list { list-style: none; }
.cp-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; border-bottom: 1px solid var(--cp-line); padding: 0.55rem 0; }
.cp-list h3 { font-family: 'Merriweather', Georgia, serif; font-size: 1rem; margin: 0; }
.cp-list h3 a { text-decoration: none; }
.cp-list time { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cp-muted); padding-top: 0.2rem; }

.cp-market { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cp-market th, .cp-market td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--cp-line); }
.cp-market th { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cp-muted); border-bottom: 2px solid var(--cp-ink); }
.cp-market td.num, .cp-market th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cp-up { color: var(--cp-up); }
.cp-down { color: var(--cp-down); }

.cp-footer { background: var(--cp-foot); color: rgba(255, 255, 255, 0.78); margin-top: 2.4rem; }
.cp-footer .cp-wrap { padding-top: 1.8rem; padding-bottom: 2rem; }
.cp-footer a { color: rgba(255, 255, 255, 0.84); text-decoration: none; }
.cp-footer a:hover { color: #fff; text-decoration: underline; }
.cp-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem; }
.cp-footer h4 { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8fb4e8; margin: 0 0 0.5rem; }
.cp-footer ul { list-style: none; }
.cp-footer li { font-size: 0.8rem; margin-bottom: 0.3rem; }
.cp-colophon { margin-top: 1.4rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   REPORT
   ============================================================ */

.cpr { max-width: 44rem; margin: 0 auto; padding: 1.4rem 1.1rem 3rem; }
.cpr-masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 3px solid var(--cp-blue); padding-bottom: 0.6rem; margin-bottom: 1.5rem; }
.cpr-logo { font-family: 'Merriweather', Georgia, serif; font-size: 1.5rem; font-weight: 900; text-decoration: none; color: var(--cp-ink); }
.cpr-strap { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cp-muted); }
.cpr-label { display: inline-block; background: var(--cp-blue); color: var(--cp-paper); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2rem 0.5rem; margin: 0 0 0.6rem; }
.cpr-headline { font-family: 'Merriweather', Georgia, serif; font-size: 2.25rem; line-height: 1.15; margin: 0 0 0.5rem; }
.cpr-standfirst { font-size: 1.12rem; line-height: 1.55; color: var(--cp-soft); margin: 0 0 0.9rem; }
.cpr-byline { font-size: 0.78rem; color: var(--cp-muted); border-top: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line); padding: 0.45rem 0; margin: 0 0 1.2rem; }
.cpr-figure { margin: 0 0 1.3rem; }
.cpr-figure img { display: block; width: 100%; height: auto; }
.cpr-figure figcaption { font-size: 0.74rem; color: var(--cp-muted); padding-top: 0.35rem; }
.cpr-body { font-size: 1.06rem; line-height: 1.75; }
.cpr-body p { margin: 0 0 1rem; }
.cpr-body a { color: var(--cp-blue); }
.cpr-related { margin-top: 1.6rem; padding-top: 0.8rem; border-top: 1px solid var(--cp-line); }
.cpr-related h2 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cp-muted); margin: 0 0 0.5rem; }
.cpr-related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cpr-related a { display: inline-block; border: 1px solid var(--cp-line); padding: 0.2rem 0.6rem; font-size: 0.76rem; text-decoration: none; }
.cpr-related a:hover { border-color: var(--cp-blue); text-decoration: none; }
.cpr-footer { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 0.8rem; border-top: 1px solid var(--cp-line); font-size: 0.78rem; }

@media (max-width: 760px) {
  .cp-front { grid-template-columns: 1fr; }
  .cp-name { font-size: 1.9rem; }
  .cp-lead h1 { font-size: 1.7rem; }
  .cp-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 640px) {
  .cpr-headline { font-size: 1.7rem; }
}
