/* ============================================================
   chronicle — Sunday broadsheet newspaper
   Newsprint paper, near-black ink, deep blue + brick accents.
   Enormous centered nameplate, dateline/weather bar, hairline
   column rules, justified serif story columns, edition chips.
   All colors/fonts/sizing live in :root — factory overrides
   them in site.css.
   ============================================================ */

:root {
  --paper: #f7f5ef;          /* newsprint off-white */
  --ink: #14161a;            /* press ink */
  --muted: #5c6068;          /* photo-caption grey */
  --accent: #1f3a93;         /* deep broadsheet blue */
  --accent2: #a03823;        /* brick red */
  --font-head: "Libre Caslon Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --radius: 2px;
  --maxw: 42rem;

  --chronicle-font-meta: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --chronicle-sheet-w: 68rem;      /* full broadsheet width */
  --chronicle-hairline: #c9c5b8;   /* hairline rule colour */
  --chronicle-well: #efede4;       /* slightly deeper newsprint for boxes */
  --chronicle-mint-bg: #e2ecdf;
  --chronicle-mint-ink: #2e4a30;
  --chronicle-lav-bg: #e6e3f1;
  --chronicle-lav-ink: #453c66;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body, Georgia, serif);
  font-size: 1.0625rem;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: text-decoration-color 150ms ease, color 150ms ease;
}
a:hover { text-decoration-color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head, Georgia, serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.55em;
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- bannerbar (masthead block) ---------- */

.bannerbar {
  max-width: var(--chronicle-sheet-w);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0;
}

.pressbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--chronicle-font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pressbar-est, .pressbar-date { flex: none; }
.pressbar-slogan {
  flex: 1;
  text-align: center;
  font-style: normal;
  color: var(--muted);
}

.banner {
  text-align: center;
  padding: 1.5rem 0 1.1rem;
  border-bottom: 4px double var(--ink);
}

.banner-title {
  display: inline-block;
  font-family: var(--font-head, Georgia, serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.banner-title:hover { color: var(--accent); }

.banner-tag {
  margin: 0.7rem 0 0;
  font-family: var(--chronicle-font-meta);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.dateline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--chronicle-hairline);
  font-family: var(--chronicle-font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.edition-chip {
  display: inline-block;
  font-family: var(--chronicle-font-meta);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent2);
  border-radius: var(--radius);
  padding: 0.3em 0.8em 0.24em;
}

.dateline-item { white-space: nowrap; }

.desknav {
  border-bottom: 1px solid var(--ink);
  padding: 0.5rem 0;
}

.desknav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.6rem;
}

.desknav-list a {
  font-family: var(--chronicle-font-meta);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.desknav-list a:hover { color: var(--accent2); }

/* ---------- broadsheet layout ---------- */

.broadsheet {
  max-width: var(--chronicle-sheet-w);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 3.2rem;
}

.report { max-width: var(--maxw); margin: 0 auto; }

/* ---------- kickers / chips / stamps ---------- */

.deskline {
  margin: 0 0 0.8rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.desk-chip {
  display: inline-block;
  font-family: var(--chronicle-font-meta);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.3em 0.9em 0.24em;
}

/* stamp tints ({{STAMP}} = mint | lav) — li carries the class, dot picks it up */
.stamp-mint .edition-dot { background: var(--chronicle-mint-bg); border-color: var(--chronicle-mint-ink); }
.stamp-lav  .edition-dot { background: var(--chronicle-lav-bg);  border-color: var(--chronicle-lav-ink); }

.edition-dot {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  border: 1px solid var(--chronicle-hairline);
  border-radius: 50%;
  background: var(--chronicle-well);
  transform: translateY(0.04em);
}

/* ---------- report head ---------- */

.report-head {
  margin-bottom: 2rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.report-title {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  margin: 0.3em 0 0.4em;
}

.deck {
  font-family: var(--font-head, Georgia, serif);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.1rem;
}

.creditline {
  font-family: var(--chronicle-font-meta);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.credit-author { color: var(--ink); font-weight: 600; }
.credit-sep { margin: 0 0.6em; color: var(--chronicle-hairline); }
.credit-readtime { color: var(--accent2); }

/* ---------- report body (justified story column) ---------- */

.report p {
  margin: 0 0 1.3em;
  text-align: justify;
  hyphens: auto;
}

.report h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.5em;
  padding-top: 1em;
  border-top: 1px solid var(--chronicle-hairline);
  text-align: left;
}
.report h2::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.5em;
  background: var(--accent2);
  border-radius: 1px;
  transform: rotate(45deg) translateY(-0.06em);
}

.report h3 { font-size: 1.18rem; margin: 1.7em 0 0.45em; text-align: left; }

.report ul, .report ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.report li { margin-bottom: 0.35em; }

.report blockquote {
  margin: 1.7em 0;
  padding: 0.15em 0 0.15em 1.3em;
  border-left: 2px solid var(--accent2);
  font-style: italic;
  color: var(--muted);
}

/* ---------- fragment: ledegraf (answer-first well) ---------- */

.ledegraf {
  font-size: 1.14rem;
  line-height: 1.62;
  text-align: left;
  hyphens: none;
  padding: 1.1rem 1.3rem;
  background: var(--chronicle-well);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--chronicle-hairline);
  border-left: 3px solid var(--accent);
  margin: 0 0 1.7em;
}

/* ---------- fragment: datatable ---------- */

.datatable {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0 1.9em;
  font-size: 0.9rem;
  line-height: 1.5;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.datatable caption {
  caption-side: top;
  font-family: var(--chronicle-font-meta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  padding: 0 0 0.65em;
}

.datatable th {
  font-family: var(--chronicle-font-meta);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.5em 0.9em 0.45em 0;
}

.datatable td {
  padding: 0.5em 0.9em 0.5em 0;
  border-bottom: 1px solid var(--chronicle-hairline);
  vertical-align: top;
}

.datatable tbody tr:nth-child(even) td { background: var(--chronicle-well); }
.datatable tbody tr:last-child td { border-bottom: 0; }

/* ---------- fragment: faqblock ---------- */

.faqblock {
  margin: 2.1em 0;
  border-top: 2px solid var(--ink);
  padding: 0.3em 0 0.8em;
}

.faqblock h2 {
  border-top: 0;
  padding-top: 0.5em;
  margin-top: 0.5em;
}
.faqblock h2::before { content: none; }

.faqblock details {
  border-bottom: 1px solid var(--chronicle-hairline);
  padding: 0.7em 0;
}
.faqblock details:last-child { border-bottom: 0; }

.faqblock summary {
  cursor: pointer;
  font-family: var(--font-head, Georgia, serif);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.4;
  list-style: none;
  padding-left: 1.7em;
  position: relative;
}
.faqblock summary::-webkit-details-marker { display: none; }
.faqblock summary::before {
  content: "?";
  position: absolute;
  left: 0.15em;
  top: 0.02em;
  font-family: var(--chronicle-font-meta);
  font-weight: 700;
  color: var(--accent2);
}
.faqblock summary:hover { color: var(--accent); }

.faqblock details p {
  margin: 0.55em 0 0.15em;
  padding-left: 1.7em;
  text-align: left;
}

/* ---------- fragment: pullquote ---------- */

.pullquote {
  margin: 2.1em auto;
  max-width: 32rem;
  text-align: center;
  font-family: var(--font-head, Georgia, serif);
  font-size: 1.38rem;
  line-height: 1.42;
  color: var(--accent);
  padding: 1.1em 1em;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.pullquote::before {
  content: "\201C";
  display: block;
  font-size: 2.4rem;
  line-height: 0.45;
  color: var(--accent2);
  margin-bottom: 0.4em;
}

/* ---------- report footer ---------- */

.report-foot {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 4px double var(--ink);
}

.report-foot-line {
  text-align: center;
  font-family: var(--chronicle-font-meta);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- front page: leader (editorial columns) ---------- */

.leader {
  max-width: var(--chronicle-sheet-w);
  margin: 0 auto 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ink);
}

.leader-head {
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0.35em 0 0.4em;
}

.leader-blurb {
  font-family: var(--font-head, Georgia, serif);
  font-size: 1.14rem;
  text-align: center;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 1.8em;
}

.leader-columns {
  columns: 3;
  column-gap: 2.4rem;
  column-rule: 1px solid var(--chronicle-hairline);
}

.leader-columns p {
  margin: 0 0 1.1em;
  text-align: justify;
  hyphens: auto;
  break-inside: avoid;
}

/* ---------- front page: desk teasers ---------- */

.desks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--chronicle-sheet-w);
  margin: 0 auto 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ink);
}

.desk-teaser {
  padding: 0 1.4rem;
}
.desk-teaser:first-child { padding-left: 0; }
.desk-teaser:last-child { padding-right: 0; }
.desk-teaser + .desk-teaser { border-left: 1px solid var(--chronicle-hairline); }

.desk-teaser-head {
  font-family: var(--chronicle-font-meta);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6em;
}

.desk-teaser p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
}

/* ---------- front page: latest dispatches ---------- */

.latestdispatches {
  max-width: var(--chronicle-sheet-w);
  margin: 0 auto 2.4rem;
}

.latest-head {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  text-align: center;
  margin: 0 0 0.9em;
  padding-bottom: 0.5em;
  border-bottom: 4px double var(--ink);
}

.storylist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 2.4rem;
  column-rule: 1px solid var(--chronicle-hairline);
}

.dispatch {
  break-inside: avoid;
  padding: 1.3rem 0 1.2rem;
  border-top: 1px solid var(--chronicle-hairline);
  margin-top: 1.2rem;
}
.dispatch:first-child { border-top: 0; margin-top: 0; }

.dispatch-desk {
  margin: 0 0 0.5em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dispatch-head {
  font-size: 1.22rem;
  line-height: 1.22;
  margin: 0 0 0.4em;
}
.dispatch-head a {
  color: var(--ink);
  text-decoration: none;
}
.dispatch-head a:hover { color: var(--accent); }

.dispatch-summary {
  margin: 0 0 0.6em;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: justify;
  hyphens: auto;
}

.dispatch-credit {
  margin: 0;
  font-family: var(--chronicle-font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- front page: standing notice ---------- */

.standing-notice {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem 1.6rem 1rem;
  background: var(--chronicle-well);
  border-top: 2px solid var(--ink);
}

.standing-notice-head {
  font-family: var(--chronicle-font-meta);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0 0 0.6em;
}

.standing-notice p { text-align: justify; hyphens: auto; }

/* ---------- static pages ---------- */

.leafpage p { max-width: none; }

.error-report .report-title { letter-spacing: 0; }

/* ---------- registry (footer) ---------- */

.registry {
  border-top: 1px solid var(--ink);
  margin-top: 1rem;
}

.imprint-inner {
  max-width: var(--chronicle-sheet-w);
  margin: 0 auto;
  padding: 1.8rem 1.25rem 2.4rem;
  text-align: center;
}

.registry-name {
  font-family: var(--font-head, Georgia, serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.25em;
}

.registry-tag {
  font-family: var(--chronicle-font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.imprint-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.4rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--chronicle-hairline);
  border-bottom: 1px solid var(--chronicle-hairline);
  margin-bottom: 1rem;
}
.imprint-nav a {
  font-family: var(--chronicle-font-meta);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.imprint-nav a:hover { color: var(--accent2); }

.imprint-copy {
  font-family: var(--chronicle-font-meta);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .leader-columns { columns: 2; }
  .storylist { columns: 2; }
  .desks { grid-template-columns: 1fr; gap: 1.4rem; }
  .desk-teaser { padding: 0; }
  .desk-teaser + .desk-teaser {
    border-left: 0;
    border-top: 1px solid var(--chronicle-hairline);
    padding-top: 1.4rem;
  }
}

@media (max-width: 560px) {
  .leader-columns { columns: 1; }
  .storylist { columns: 1; }
  .pressbar { flex-wrap: wrap; justify-content: center; text-align: center; }
  .pressbar-slogan { order: 3; flex-basis: 100%; }
  .report p, .dispatch-summary, .standing-notice p { text-align: left; hyphens: none; }
  .datatable { display: block; overflow-x: auto; }
}

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .desknav, .imprint-nav, .edition-dot, .edition-chip { display: none; }
  .pressbar, .banner, .dateline-bar, .report-head, .report-foot,
  .latest-head, .registry { border-color: #000; }
  .ledegraf, .standing-notice { background: none; }
  .datatable th, .datatable td, .faqblock details { border-color: #000; }
  a { color: #000; text-decoration: none; }
}
