/* Candid Republic newsroom refresh: compact, source-forward, and readable. */
:root {
  --paper: #f6f7f8;
  --paper-deep: #e9edf0;
  --surface: #ffffff;
  --ink: #121820;
  --muted: #5b6570;
  --navy: #102a43;
  --blue: #1b557d;
  --red: #c43b42;
  --gold: #d4aa48;
  --rule: #d7dde2;
  --rule-dark: #9ca6af;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Arial Nova", Arial, Helvetica, sans-serif;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}

.page-shell { width: min(1240px, calc(100% - 48px)); }

.utility {
  width: 100%;
  max-width: none;
  padding: 8px max(24px, calc((100vw - 1240px) / 2));
  color: #eef3f7;
  background: var(--navy);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
}

.masthead-wrap {
  grid-template-columns: 1fr auto 1fr;
  padding-block: 17px;
  background: var(--surface);
}

.brand { justify-self: start; gap: 0; }
.wordmark {
  gap: 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: .88;
  letter-spacing: -.035em;
}
.tagline {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.edition-link {
  justify-self: end;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.edition-link:hover { color: var(--red); }

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--navy);
  box-shadow: 0 3px 12px rgba(16, 42, 67, .07);
}
.nav-inner {
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  flex: 0 0 auto;
  padding: 13px 21px 11px;
  color: var(--ink);
  border: 0;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.nav-inner a:hover,
.nav-inner a.is-current {
  color: var(--red);
  background: transparent;
}
.nav-inner a.is-current { box-shadow: inset 0 -4px 0 var(--red); }

.front-page {
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, .75fr);
  gap: 30px;
  padding-block: 32px 44px;
}
.lead-story {
  min-width: 0;
  padding: 0 30px 0 0;
  border-right: 1px solid var(--rule);
}
.story-meta {
  gap: 10px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.story-meta .desk { color: var(--red); }
.lead-story h2 {
  max-width: 860px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.7vw, 4.45rem);
  line-height: .96;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.standfirst {
  max-width: 820px;
  margin: 16px 0 0;
  color: #38434d;
  font-size: 1.06rem;
  line-height: 1.52;
}
.lead-media {
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
  aspect-ratio: 16 / 8.8;
  background: var(--navy);
  border-top: 6px solid var(--red);
}
.lead-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.04);
}
.lead-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 9px;
  background: rgba(16, 42, 67, .9);
  font: 800 .65rem/1.2 var(--sans);
  letter-spacing: .035em;
}
.lead-media figcaption a { color: #fff; text-decoration: none; }
.lead-media figcaption a:hover { color: #f1cc6d; }

body[data-active-view="latest"] .lead-media { display: none; }
.snapshot-label { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 24px; padding: 10px 0 8px; border-top: 5px solid var(--navy); }
.snapshot-label span { color: var(--red); font: 900 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.snapshot-label small { color: var(--muted); font: 700 .66rem/1.25 var(--mono); letter-spacing: .025em; text-align: right; text-transform: uppercase; }
.lead-story .number-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 16px; background: var(--rule); border: 1px solid var(--rule); }
.lead-story .number-strip div,
.lead-story .number-strip div + div { min-width: 0; padding: 17px 15px; background: var(--surface); border: 0; }
.lead-story .number-strip strong { color: var(--navy); font-size: clamp(1.75rem, 2.5vw, 2.55rem); }
.snapshot-breakthroughs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 18px; background: var(--rule); border: 1px solid var(--rule); }
.snapshot-breakthroughs article { min-width: 0; padding: 15px 17px 16px; background: #fbfcfd; }
.snapshot-breakthroughs span { display: block; margin-bottom: 4px; color: var(--red); font: 900 .65rem/1.2 var(--sans); letter-spacing: .085em; text-transform: uppercase; }
.snapshot-breakthroughs strong { display: block; font: 700 1.12rem/1.15 var(--serif); }
.snapshot-breakthroughs p { margin: 6px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
body[data-active-view="latest"] .lead-story .story-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; columns: unset; background: var(--rule); border: 1px solid var(--rule); font-size: .88rem; line-height: 1.48; }
body[data-active-view="latest"] .lead-story .story-body p { margin: 0; padding: 16px 17px; background: var(--surface); }
body[data-active-view="latest"] .lead-story > .source-row { margin-top: 18px; }
body[data-active-view="elections"] .front-rail { display: none; }
body[data-active-view="elections"] .front-page { grid-template-columns: minmax(0, 960px); }
body[data-active-view="elections"] .lead-story { padding-right: 0; border-right: 0; }

.congress-results {
  margin-bottom: 48px;
  padding: 27px 30px 30px;
  background: var(--surface);
  border-top: 6px solid var(--navy);
  box-shadow: 0 8px 26px rgba(16, 42, 67, .07);
}
.congress-results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--rule);
}
.congress-results-head h2 {
  max-width: 760px;
  margin: 0;
  font: 700 clamp(2rem, 3.4vw, 3.2rem)/1 var(--serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.results-update {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1.55;
  text-align: right;
  text-transform: uppercase;
}
.results-update span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: var(--red);
  border-radius: 50%;
}
.chamber-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
}
.chamber-card {
  min-width: 0;
  padding: 22px 23px 23px;
  background: #f7f9fa;
  border: 1px solid var(--rule);
  border-top: 5px solid var(--navy);
}
.chamber-card.house-card { border-top-color: var(--red); }
.chamber-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.chamber-label span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.chamber-label strong {
  color: var(--navy);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.control-threshold {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 19px 0 16px;
}
.threshold-number {
  min-width: 94px;
  color: var(--red);
  font: 700 3.35rem/.88 var(--serif);
  letter-spacing: -.055em;
}
.control-threshold b,
.control-threshold small { display: block; }
.control-threshold b { color: var(--ink); font-size: .83rem; line-height: 1.25; text-transform: uppercase; }
.control-threshold small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.chamber-card > p { color: #39444e; font-size: .9rem; line-height: 1.5; }
.chamber-card .pending-note { padding-top: 14px; border-top: 1px dotted var(--rule-dark); color: var(--muted); font-size: .8rem; }
.results-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--navy);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
}
.results-link:hover { color: var(--red); }
.results-method {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 32px;
  align-items: end;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 4px solid var(--ink);
}
.results-method > p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.48; }
.results-method .source-row { justify-content: flex-end; margin: 0; padding: 0; border: 0; }

.front-rail { position: sticky; top: 64px; align-self: start; min-width: 0; }
.front-rail .correction-card { display: none; }
.quick-index {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--navy);
  box-shadow: 0 8px 24px rgba(16, 42, 67, .06);
}
.quick-index header { padding: 17px 18px 14px; border-bottom: 1px solid var(--rule); }
.quick-index .kicker { padding: 0; color: var(--red); }
.quick-index h2 { margin: 5px 0 0; font-size: 1.45rem; line-height: 1.02; letter-spacing: -.025em; }
.quick-index a {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 14px 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  font: 750 .94rem/1.27 var(--sans);
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.quick-index a:last-child { border-bottom: 0; }
.quick-index a:hover { color: var(--red); background: #f4f1ea; }
.quick-index a > span:first-child { color: var(--red); font: 800 .66rem/1 var(--mono); letter-spacing: .08em; }
.quick-index a > span:last-child { min-width: 0; color: inherit; font: inherit; }
.rail-media { display: none; }

.desk-highlights {
  margin-bottom: 48px;
  padding: 0 24px 22px;
  background: var(--surface);
  border-top: 5px solid var(--navy);
  box-shadow: 0 6px 22px rgba(16, 42, 67, .06);
}
.desk-highlights-head {
  padding: 17px 0 14px;
  border-bottom: 1px solid var(--rule);
}
.desk-highlights-head h2 {
  margin-top: 3px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  letter-spacing: -.035em;
}
.desk-highlights-head > p { color: var(--muted); font-size: .8rem; }
.desk-highlight-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 18px; }
.desk-highlight-card,
.desk-highlight-card:nth-child(even) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 17px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.desk-highlight-meta { margin: 13px 15px 0; font-size: .67rem; }
.desk-highlight-card h3 {
  margin: 9px 15px 0;
  font-size: clamp(1.14rem, 1.55vw, 1.45rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.desk-highlight-dek { margin: 11px 15px 14px; -webkit-line-clamp: 3; color: var(--muted); font-size: .82rem; line-height: 1.43; }
.desk-highlight-link { margin: auto 15px 0; color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.desk-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
  object-fit: cover;
  border-top: 5px solid var(--navy);
  filter: saturate(.72) contrast(1.05);
}

.section-band {
  color: var(--ink);
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-title {
  position: relative;
  padding-block: 27px 30px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 84px;
  height: 6px;
  background: var(--red);
}
.section-title h2 {
  max-width: 780px;
  margin-top: 6px;
  color: #46515b;
  font-family: var(--sans);
  font-size: clamp(1.08rem, 1.65vw, 1.42rem);
  font-weight: 560;
  line-height: 1.32;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 34px;
  padding-block: 36px 62px;
}
.report-card,
.report-card.report-feature {
  display: block;
  min-width: 0;
  padding: 0 0 29px;
  border-bottom: 1px solid var(--rule-dark);
}
.report-card.report-feature:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  gap: 30px;
  padding: 0 0 34px;
  border-bottom: 4px solid var(--navy);
}
.report-card.report-feature:first-child .story-card-media {
  height: 100%;
  min-height: 320px;
  margin: 0;
}
.report-card.report-feature:first-child h3 {
  font-size: clamp(2rem, 3.25vw, 3.25rem);
  line-height: .99;
  letter-spacing: -.04em;
}
.report-no { display: none; }
.report-card h3 {
  margin-top: 8px;
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.report-dek { margin: 12px 0 16px; color: #3f4a54; font-size: .98rem; line-height: 1.52; }
.story-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 17px;
  object-fit: cover;
  border-top: 5px solid var(--navy);
  filter: saturate(.72) contrast(1.05);
}
.report-toggle {
  padding: 10px 13px;
  color: #fff;
  background: var(--navy);
  border: 0;
  cursor: pointer;
  font: 900 .68rem/1 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.report-toggle:hover { background: var(--red); }
.report-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.report-full { grid-column: 1 / -1; margin-top: 22px; padding-top: 20px; overflow: hidden; border-top: 4px solid var(--ink); }
.report-card.is-expanded { grid-column: 1 / -1; }
.report-card.is-expanded .story-card-media { max-height: 410px; }

.number-strip { margin-block: 25px 22px; background: var(--surface); border-color: var(--rule); }
.number-strip strong { color: var(--navy); }
.story-body { color: #2e3841; }
.source-row a { color: var(--blue); }

.contact {
  grid-template-columns: .78fr 1.22fr;
  gap: 28px;
  width: min(960px, calc(100% - 40px));
  margin-top: 8px;
  padding: 21px 24px 24px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  box-shadow: 0 6px 22px rgba(16, 42, 67, .05);
}
.contact h2 { font-size: clamp(1.3rem, 2vw, 1.72rem); line-height: 1.08; }
.contact p { margin-block: 9px; color: var(--muted); font-size: .78rem; line-height: 1.42; }
.contact-email { color: var(--blue); font-size: .7rem; }
.contact-fields { gap: 9px 12px; }
.contact label { margin-bottom: 4px; font-size: .61rem; }
.contact input,
.contact textarea { padding: 7px 9px; background: #fbfcfd; border-color: var(--rule-dark); font-size: .8rem; }
.contact textarea { min-height: 78px; }
.contact-submit { margin-top: 10px; padding: 8px 11px; font-size: .62rem; }
.contact .form-note { font-size: .65rem; }
.site-footer { margin-top: 0; }

.credits-page { padding-block: 48px 72px; }
.credits-page > header { max-width: 820px; padding-bottom: 24px; border-bottom: 5px solid var(--ink); }
.credits-page h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.credits-page > header > p:last-child { max-width: 760px; color: var(--muted); }
.credits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.credit-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.credit-card img { width: 150px; height: 105px; object-fit: cover; border-top: 4px solid var(--navy); }
.credit-card h2 { margin: 0 0 9px; font-size: 1.2rem; line-height: 1.15; }
.credit-card p { margin: 4px 0; font-size: .78rem; line-height: 1.42; }
.credit-card .kicker { font-size: .66rem; }

@media (max-width: 980px) {
  .front-page { grid-template-columns: 1fr; }
  .lead-story { padding-right: 0; border-right: 0; }
  .front-rail { position: static; display: block; padding-top: 24px; border-top: 1px solid var(--rule); }
  .quick-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .quick-index header { grid-column: 1 / -1; }
  .quick-index a { grid-template-columns: 28px minmax(0, 1fr); }
  .desk-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-story .number-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 1240px); }
  .masthead-wrap { grid-template-columns: 1fr auto; }
  .tagline { display: none; }
  .edition-link { font-size: .62rem; }
  .primary-nav { position: static; }
  .nav-inner { justify-content: flex-start; }
  .nav-inner a { padding-inline: 15px; }
  .lead-story h2 { font-size: clamp(2.35rem, 11.5vw, 3.55rem); }
  .snapshot-label { display: block; }
  .snapshot-label small { display: block; margin-top: 7px; text-align: left; }
  .lead-story .number-strip,
  .snapshot-breakthroughs,
  body[data-active-view="latest"] .lead-story .story-body { grid-template-columns: 1fr; }
  .lead-media { aspect-ratio: 16 / 10; }
  .front-rail { display: none; }
  .congress-results { padding: 22px 19px 24px; }
  .congress-results-head { display: block; }
  .results-update { margin-top: 12px; text-align: left; }
  .chamber-grid,
  .results-method { grid-template-columns: 1fr; }
  .results-method { gap: 17px; }
  .results-method .source-row { justify-content: flex-start; }
  .desk-highlights { width: min(100% - 28px, 1240px); padding-inline: 18px; }
  .desk-highlight-grid { grid-template-columns: 1fr; }
  .story-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 25px 48px;
  }
  .report-card,
  .report-card.report-feature,
  .report-card.report-feature:first-child {
    grid-column: auto;
    display: block;
    padding: 0 0 18px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--rule-dark);
    border-top: 5px solid var(--navy);
    border-radius: 2px;
    box-shadow: 0 5px 16px rgba(16, 42, 67, .07);
  }
  .report-card.is-expanded {
    grid-column: auto;
    border-color: var(--navy);
    box-shadow: 0 9px 24px rgba(16, 42, 67, .14);
  }
  .report-card > div:last-child { padding-inline: 17px; }
  .report-card .story-card-media,
  .report-card.report-feature:first-child .story-card-media {
    width: 100%;
    height: clamp(125px, 36vw, 165px);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    margin: 0 0 14px;
    object-fit: cover;
    object-position: 50% 35%;
    border-top: 0;
    border-bottom: 1px solid var(--rule);
  }
  .report-card h3,
  .report-card.report-feature:first-child h3 {
    margin-top: 10px;
    font-size: clamp(1.6rem, 7.4vw, 2.08rem);
    line-height: 1.06;
    letter-spacing: -.025em;
  }
  .report-dek { margin: 12px 0 17px; font-size: .94rem; line-height: 1.5; }
  .report-toggle {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    font-size: .7rem;
  }
  .report-full {
    margin: 18px -17px -18px;
    padding: 19px 17px 22px;
    background: #f1f4f6;
    border-top: 4px solid var(--navy);
  }
  .report-full::after {
    content: "End of report";
    display: block;
    margin-top: 24px;
    padding-top: 13px;
    color: var(--muted);
    border-top: 1px solid var(--rule-dark);
    font: 800 .62rem/1 var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .contact { grid-template-columns: 1fr; gap: 18px; width: min(100% - 28px, 960px); padding: 20px; }
  .credits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .utility { padding-inline: 14px; }
  .masthead-wrap { padding-block: 14px; }
  .wordmark { font-size: 1.63rem; }
  .edition-link { max-width: 84px; line-height: 1.2; text-align: right; }
  .desk-highlights-head { display: block; }
  .desk-highlights-head > p { margin-top: 6px; text-align: left; }
  .credit-card { grid-template-columns: 1fr; }
  .credit-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
