/* Home page on Material 3. Reads only --md-sys-* tokens (see static/src/m3). */

.home-main {
  max-width: none;
  padding: 0;
}

/* Same page width and edge as the masthead and footer (80rem, 16px gutter),
   so the logo, nav, front page and footer line up on one edge. */
.home-shell {
  box-sizing: border-box;
  max-width: 80rem;
  margin: 0 auto;
  padding: 8px 16px 56px;
}

/* Date line under the masthead, as on a printed front page. */
/* The edition line: date on one side, the site's languages as plain links on the other. */
.home-edition {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block-end: 10px;
  border-block-end: 1px solid var(--md-sys-color-on-surface);
}
.home-dateline {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size) / var(--md-sys-typescale-label-large-line-height) var(--md-sys-typescale-label-large-font);
}
.home-edition__motto { margin: 0; white-space: nowrap; color: var(--md-sys-color-on-surface); font-family: var(--md-ref-typeface-brand); font-style: italic; font-size: 1rem; }
.home-edition__tally { margin: 0; color: var(--md-sys-color-on-surface-variant); font-size: 0.875rem; }
@media (min-width: 840px) {
  .home-edition { display: grid; grid-template-columns: 1fr auto 1fr; }
  .home-edition__motto { text-align: center; }
  .home-edition__tally { text-align: end; }
}
@media (max-width: 719px) { .home-edition__motto { display: none; } }
.home-edition + * { margin-block-start: -12px; }

.home-stack {
  display: grid;
  gap: 32px;
}

/* ---- Breaking news bar ------------------------------------------------------------ */
/* Sits above the front page while an editor has a breaking story pinned. */

.breaking-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-inline-start: 4px solid var(--md-sys-color-error);
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  text-decoration: none;
}

.breaking-bar:hover .breaking-bar__title,
.breaking-bar:focus-visible .breaking-bar__title {
  text-decoration: underline;
}

.breaking-bar__label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  color: var(--md-sys-color-error);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breaking-bar__label .pub-live-dot {
  animation: pub-live-pulse 1.6s ease-in-out infinite;
}

.breaking-bar__text {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}

.breaking-bar__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.breaking-bar__summary {
  font-size: 0.875rem;
  line-height: 1.45;
}

.breaking-bar__meta {
  flex: none;
  font-size: 0.75rem;
}

@media (max-width: 719px) {
  .breaking-bar {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .breaking-bar__text {
    flex-basis: 100%;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breaking-bar__label .pub-live-dot {
    animation: none;
  }
}

/* ---- Containers ------------------------------------------------------------------ */
/* Flat, newspaper style: stories sit on the page, divided by rules, not floating cards. */

.map-strip {
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  overflow: hidden;
}

.news-card,
.event-card,
.figure-card,
.home-note-card,
.home-analysis-card,
.home-interview-card {
  position: relative;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding-top: 12px;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.news-card img,
.event-card img,
.figure-card img,
.home-interview-card img { border-radius: 0; }

:is(.news-card, .event-card, .figure-card, .home-note-card, .home-analysis-card, .home-interview-card):hover :is(h3, .figure-title) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:is(.news-card, .event-card, .figure-card, .home-note-card, .home-analysis-card, .home-interview-card):focus-visible {
  outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-state-focus-indicator-color);
  outline-offset: var(--md-sys-state-focus-indicator-outer-offset);
}

/* ---- Front page ---------------------------------------------------------------- */
/* Newspaper front page: thin rules between columns instead of cards and shadows. */

.fp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "latest lead most";
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  padding-bottom: 24px;
}

.fp--no-latest { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); grid-template-areas: "lead most"; }
.fp--no-most-read { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); grid-template-areas: "latest lead"; }
.fp--no-latest.fp--no-most-read { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead"; }
.fp--no-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "latest most"; }
.fp--no-lead.fp--no-latest { grid-template-columns: minmax(0, 1fr); grid-template-areas: "most"; }
.fp--no-lead.fp--no-most-read { grid-template-columns: minmax(0, 1fr); grid-template-areas: "latest"; }

.fp__lead { grid-area: lead; padding: 0 24px; min-width: 0; }
.fp__latest { grid-area: latest; padding-inline-end: 24px; border-inline-end: 1px solid var(--md-sys-color-outline-variant); min-width: 0; }
.fp__most-read { grid-area: most; padding-inline-start: 24px; border-inline-start: 1px solid var(--md-sys-color-outline-variant); min-width: 0; }
.fp--no-latest .fp__lead { padding-inline-start: 0; }
.fp--no-most-read .fp__lead { padding-inline-end: 0; }
.fp--no-lead .fp__latest { border-inline-end: 0; }

.fp__lead-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.fp__lead-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--md-sys-color-surface-container-high);
}

.fp__lead-title {
  margin: 0;
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

.fp__lead-link:hover .fp__lead-title,
.fp__row:hover .fp__row-title,
.fp__related a:hover { text-decoration: underline; text-underline-offset: 3px; }

.fp__lead-summary {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.fp__kicker {
  color: var(--md-sys-color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fp__meta {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
}

.fp__related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  list-style: none;
}

.fp__related a {
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

/* The four stories under the lead carry a photo, two by two. */
.fp__related--grid { gap: 18px 22px; margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--md-sys-color-on-surface); }
.fp__related a.fp__related-photo { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.fp__related-photo img { display: block; width: 112px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--md-sys-color-surface-container-high); }

.fp__head {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fp__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fp__list li + li { border-top: 1px solid var(--md-sys-color-outline-variant); }

.fp__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}

.fp__row-title {
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.fp__list--ranked .fp__row { flex-direction: row; align-items: baseline; gap: 12px; }
.fp__list--ranked .fp__row-title { font-weight: 400; }

.fp__rank {
  flex: none;
  min-width: 1.25rem;
  color: var(--md-sys-color-primary);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.75rem;
  line-height: 1;
}

.fp__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  color: var(--md-sys-color-primary);
  font-weight: 600;
  text-decoration: none;
}

.fp__more .md-icon { width: 18px; height: 18px; font-size: 18px; }

:is(.fp__lead-link, .fp__row, .fp__related a, .fp__more):focus-visible {
  outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-secondary);
  outline-offset: 2px;
}

/* Tablet: the lead takes the left, latest and most read stack on the right. */
@media (max-width: 1023px) {
  /* Most read goes under the lead so the two columns end at about the same height. */
  .fp,
  .fp--no-lead { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "lead latest" "most latest"; }
  .fp--no-latest { grid-template-areas: "lead most"; }
  .fp--no-most-read { grid-template-areas: "lead latest"; }
  .fp--no-lead { grid-template-areas: "latest most"; }
  .fp__lead { padding: 0 24px 0 0; }
  .fp__latest { padding: 0 0 0 24px; border-inline-end: 0; border-inline-start: 1px solid var(--md-sys-color-outline-variant); }
  .fp__most-read { margin-top: 24px; padding: 16px 24px 0 0; border-inline-start: 0; border-top: 1px solid var(--md-sys-color-outline); }
  .fp--no-latest .fp__most-read { margin-top: 0; padding: 0 0 0 24px; border-top: 0; border-inline-start: 1px solid var(--md-sys-color-outline-variant); }
  .fp--no-lead .fp__latest { padding-inline-start: 0; border-inline-start: 0; }
}

/* Phone: one column, the lead first. */
@media (max-width: 719px) {
  .fp,
  .fp--no-latest,
  .fp--no-most-read,
  .fp--no-lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "latest" "most"; }
  .fp__lead,
  .fp__latest,
  .fp__most-read { padding: 0; border: 0; }
  .fp__latest,
  .fp__most-read { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--md-sys-color-outline); }
  .fp--no-lead .fp__latest { margin-top: 0; padding-top: 0; border-top: 0; }
  .fp__related { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Section grid -------------------------------------------------------------- */

.sg { border-top: 2px solid var(--md-sys-color-on-surface); padding-top: 4px; }

.sg__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.sg__section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.sg__head { margin: 0; }
.sg__head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
}
.sg__head .md-icon { width: 20px; height: 20px; font-size: 20px; color: var(--md-sys-color-primary); }

.sg__lead { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.sg__lead img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--md-sys-color-surface-container-high); }
.sg__lead-title { font-family: var(--md-ref-typeface-brand); font-size: 1.125rem; font-weight: 700; line-height: 1.25; }

.sg__list { margin: 0; padding: 0; list-style: none; }
.sg__list li { border-top: 1px solid var(--md-sys-color-outline-variant); }
.sg__list a {
  display: block;
  padding: 10px 0;
  color: var(--md-sys-color-on-surface);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

:is(.sg__head a, .sg__lead, .sg__list a):hover :is(.sg__lead-title),
.sg__list a:hover,
.sg__head a:hover { text-decoration: underline; text-underline-offset: 3px; }

:is(.sg__head a, .sg__lead, .sg__list a):focus-visible {
  outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-secondary);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .sg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: each section stacks: a small photo beside the first headline, then two more.
   (A sideways swipe row hid the second column; few readers found it.) */
@media (max-width: 719px) {
  .sg { border-top: 0; padding-top: 0; }
  .sg__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sg__section { gap: 8px; padding-top: 10px; border-top: 2px solid var(--md-sys-color-on-surface); }
  .sg__lead { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; align-items: start; }
  .sg__lead img { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 2; }
  .sg__lead-title { grid-column: 1; grid-row: 1; }
  .sg__list li:nth-child(n + 3) { display: none; }
}

/* ---- Editors' picks + In case you missed it ------------------------------------ */

.picks {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px 32px;
  border-top: 2px solid var(--md-sys-color-on-surface);
  padding-top: 8px;
}
.picks--single { grid-template-columns: minmax(0, 1fr); }
.picks__head { margin-bottom: 14px; }

.picks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.picks--single .picks__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.picks__card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.picks__card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--md-sys-color-surface-container-high); }
.picks__title { font-family: var(--md-ref-typeface-brand); font-size: 1.125rem; font-weight: 700; line-height: 1.25; }

.picks__missed { min-width: 0; }
.picks__list { margin: 0; padding: 0; list-style: none; }
.picks__list li { border-top: 1px solid var(--md-sys-color-outline-variant); }
.picks__list li:first-child { border-top: 0; }
.picks__list a { display: grid; gap: 4px; padding: 12px 0; color: var(--md-sys-color-on-surface); text-decoration: none; }
.picks__list-title { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.picks--single .picks__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.picks--single .picks__list li:nth-child(2) { border-top: 0; }

.picks__card:hover .picks__title,
.picks__list a:hover .picks__list-title { text-decoration: underline; text-underline-offset: 3px; }
:is(.picks__card, .picks__list a):focus-visible {
  outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-secondary);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .picks { grid-template-columns: minmax(0, 1fr); }
  .picks--single .picks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .picks__grid,
  .picks--single .picks__grid { grid-template-columns: minmax(0, 1fr); }
  .picks--single .picks__list { grid-template-columns: minmax(0, 1fr); }
  .picks--single .picks__list li:nth-child(2) { border-top: 1px solid var(--md-sys-color-outline-variant); }
  /* Phone: picks become compact rows, a small photo beside the headline. */
  .picks__grid { gap: 16px; }
  .picks__card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 12px; row-gap: 4px; }
  .picks__card img { grid-row: 1 / span 3; aspect-ratio: 4 / 3; }
  .picks__title { font-size: 1rem; }
}

/* ---- Section heads ---------------------------------------------------------- */

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-top: 2px solid var(--md-sys-color-on-surface);
  padding-top: 8px;
}

.home-section-title {
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 840px) {
  .home-section-title { font-size: 1.75rem; }
}

.home-section-link { flex-shrink: 0; }

.home-lane-head p {
  max-width: 600px;
  margin: 4px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size) / var(--md-sys-typescale-body-medium-line-height) var(--md-sys-typescale-body-medium-font);
}

/* ---- Card grids --------------------------------------------------------------- */

.latest-grid,
.events-grid,
.figures-grid,
.home-notes-grid,
.home-analysis-grid,
.home-interview-grid {
  display: grid;
  gap: 16px;
}

.latest-grid,
.events-grid,
.figures-grid,
.home-analysis-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.home-notes-grid,
.home-interview-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.news-card,
.event-card,
.figure-card,
.home-interview-card { display: block; }

.news-media,
.event-media,
.home-interview-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--md-sys-color-surface-container-highest);
}

.news-media img,
.event-media img,
.home-interview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-media-wrap { position: relative; }

/* An event without a photo shows its date large on plain paper, not a placeholder image. */
.event-media--plain {
  border-block-start: 3px solid var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface-container-low);
}
.event-media-wrap--plain .event-date-badge {
  inset: 0;
  min-width: 0;
  align-content: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--md-sys-color-on-surface);
}
.event-media-wrap--plain .event-date-day { font-size: 3rem; line-height: 1; }
.event-media-wrap--plain .event-date-month { font-size: 0.875rem; }

/* One or two upcoming events: wide cards (photo beside the text) instead of a
   mostly empty four-column row. */
.events-grid--few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.events-grid--few .event-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 16px;
  align-items: start;
}
.events-grid--few .event-body { padding: 0; }
@media (max-width: 839px) {
  .events-grid--few { grid-template-columns: 1fr; }
}

.event-date-badge {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  display: grid;
  min-width: 52px;
  place-items: center;
  padding: 6px 8px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  box-shadow: var(--md-sys-elevation-level1);
  text-align: center;
}

.event-date-day { font: var(--md-ref-typeface-weight-medium) 1.25rem / 1.1 var(--md-ref-typeface-brand); }

.event-date-month {
  margin-top: 2px;
  font: var(--md-sys-typescale-label-small-weight) var(--md-sys-typescale-label-small-size) / 1 var(--md-sys-typescale-label-small-font);
  text-transform: uppercase;
}

.news-body,
.event-body,
.figure-card,
.home-interview-copy { position: relative; padding: 16px; }

.news-kicker,
.event-kicker,
.figure-kicker {
  margin-bottom: 4px;
  color: var(--md-sys-color-primary);
  font: var(--md-sys-typescale-label-medium-weight) var(--md-sys-typescale-label-medium-size) / var(--md-sys-typescale-label-medium-line-height) var(--md-sys-typescale-label-medium-font);
  letter-spacing: var(--md-sys-typescale-label-medium-tracking);
}

.news-title,
.event-title,
.figure-title {
  display: -webkit-box;
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-title-medium-weight) var(--md-sys-typescale-title-medium-size) / var(--md-sys-typescale-title-medium-line-height) var(--md-sys-typescale-title-medium-font);
  letter-spacing: var(--md-sys-typescale-title-medium-tracking);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-desc,
.event-desc,
.figure-desc {
  display: -webkit-box;
  margin: 8px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size) / var(--md-sys-typescale-body-medium-line-height) var(--md-sys-typescale-body-medium-font);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-date,
.event-meta {
  margin-top: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-medium-weight) var(--md-sys-typescale-label-medium-size) / var(--md-sys-typescale-label-medium-line-height) var(--md-sys-typescale-label-medium-font);
}

.event-location {
  --md-icon-size: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size) / var(--md-sys-typescale-body-medium-line-height) var(--md-sys-typescale-body-medium-font);
}

.figure-head {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.figure-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-highest);
  object-fit: cover;
}

.figure-desc { position: relative; }

/* ---- Lanes: notes, analysis, interviews --------------------------------------- */

.home-note-card {
  min-height: 136px;
  padding: 16px;
  background: var(--md-sys-color-surface-container);
  box-shadow: none;
}

.home-note-card span {
  position: relative;
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: var(--md-sys-shape-corner-small);
  background: var(--md-sys-color-warning-container);
  color: var(--md-sys-color-on-warning-container);
  font: var(--md-sys-typescale-label-medium-weight) var(--md-sys-typescale-label-medium-size) / var(--md-sys-typescale-label-medium-line-height) var(--md-sys-typescale-label-medium-font);
}

.home-note-card h3,
.home-analysis-card h3,
.home-interview-card h3 {
  position: relative;
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-title-medium-weight) var(--md-sys-typescale-title-medium-size) / var(--md-sys-typescale-title-medium-line-height) var(--md-sys-typescale-title-medium-font);
}

.home-note-card p,
.home-analysis-card p,
.home-interview-card p {
  position: relative;
  margin: 4px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-small-weight) var(--md-sys-typescale-body-small-size) / var(--md-sys-typescale-body-small-line-height) var(--md-sys-typescale-body-small-font);
}

.home-analysis-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 16px;
}

.home-analysis-mark {
  --md-icon-size: 28px;
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.home-analysis-card:nth-child(4n + 2) .home-analysis-mark { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.home-analysis-card:nth-child(4n + 3) .home-analysis-mark { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.home-analysis-card:nth-child(4n + 4) .home-analysis-mark { background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); }

/* ---- Map strip ------------------------------------------------------------------- */

.map-strip-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 200px;
  align-items: stretch;
}

.map-strip-media {
  min-height: 200px;
  background: var(--md-sys-color-surface-container-highest);
}

.map-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-strip-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 24px 32px;
}

.map-strip-title {
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-headline-medium-weight) var(--md-sys-typescale-headline-medium-size) / var(--md-sys-typescale-headline-medium-line-height) var(--md-sys-typescale-headline-medium-font);
}

.map-strip-desc {
  max-width: 700px;
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-large-weight) var(--md-sys-typescale-body-large-size) / var(--md-sys-typescale-body-large-line-height) var(--md-sys-typescale-body-large-font);
}

.map-strip-actions { margin-top: 8px; }

/* ---- Window size classes ------------------------------------------------------- */

@media (max-width: 1240px) {
  .home-notes-grid,
  .home-interview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .latest-grid,
  .events-grid,
  .figures-grid,
  .home-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 839px) {
  .home-shell { padding: 8px 16px 40px; }

  .home-stack { gap: 24px; }

  .latest-grid,
  .events-grid,
  .figures-grid,
  .home-notes-grid,
  .home-analysis-grid,
  .home-interview-grid,
  .map-strip-grid { grid-template-columns: 1fr; }

  .home-section-head { align-items: center; }

  .map-strip-media { min-height: 200px; }

  .map-strip-body { padding: 20px 16px; }

  .map-strip-title {
    font: var(--md-sys-typescale-headline-small-weight) var(--md-sys-typescale-headline-small-size) / var(--md-sys-typescale-headline-small-line-height) var(--md-sys-typescale-headline-small-font);
  }
}

/* Tablet portrait: keep two stories per row instead of one big card each. */
@media (min-width: 720px) and (max-width: 839px) {
  .latest-grid,
  .events-grid,
  .figures-grid,
  .home-notes-grid,
  .home-analysis-grid,
  .home-interview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---- Brief sign-up under Most read ------------------------------------------- */

.fp-brief { margin-top: 24px; padding-top: 14px; border-top: 2px solid var(--md-sys-color-on-surface); }
.fp-brief__title { margin: 0 0 6px; font-family: var(--md-ref-typeface-brand); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.fp-brief__text { margin: 0 0 12px; color: var(--md-sys-color-on-surface-variant); font-size: 0.9375rem; line-height: 1.45; }
.fp-brief__form { display: flex; }
.fp-brief__email {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--md-sys-color-on-surface); border-radius: 4px 0 0 4px;
  background: var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface)); color: var(--md-sys-color-on-surface); font: inherit; font-size: 0.9375rem;
}
.fp-brief__submit {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 0 4px 4px 0;
  background: var(--md-sys-color-on-surface); color: var(--md-sys-color-surface); font: inherit; font-weight: 600; cursor: pointer;
}
:is(.fp-brief__email, .fp-brief__submit):focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.fp-brief [aria-live]:not(:empty) { margin-top: 10px; }

/* ---- Front page bands (Local, Around you) ------------------------------------- */

.hb { border-top: 2px solid var(--md-sys-color-on-surface); padding-top: 10px; }
.hb__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.hb__title { margin: 0; font-family: var(--md-ref-typeface-brand); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.hb__title a { color: inherit; text-decoration: none; }
.hb__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb__more { display: inline-flex; align-items: center; gap: 4px; color: var(--md-sys-color-primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hb__more .md-icon { width: 18px; height: 18px; font-size: 18px; }
@media (min-width: 840px) { .hb__title { font-size: 1.75rem; } }

.hb-local { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 32px; }
.hb-local--single { grid-template-columns: minmax(0, 1fr); }
.hb-local__lead { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.hb-local__lead img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--md-sys-color-surface-container-high); }
.hb-local__lead-title { font-family: var(--md-ref-typeface-brand); font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 700; line-height: 1.18; text-wrap: balance; }
.hb-local__summary { color: var(--md-sys-color-on-surface-variant); line-height: 1.5; }
.hb-local__lead:hover .hb-local__lead-title { text-decoration: underline; text-underline-offset: 3px; }
.hb-local__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-content: start; margin: 0; padding: 0; list-style: none; padding-inline-start: 32px; border-inline-start: 1px solid var(--md-sys-color-outline-variant); }
.hb-local__list li { border-bottom: 1px solid var(--md-sys-color-outline-variant); min-width: 0; }
.hb-local__list .fp__row { padding: 0 0 14px; margin-bottom: 14px; }
.hb-local__list li:nth-last-child(-n + 2) { border-bottom: 0; }
.hb-local__list li:nth-last-child(-n + 2) .fp__row { margin-bottom: 0; }

.hb-around { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: start; }
.hb-card { padding: 18px; border-radius: 4px; background: var(--md-sys-color-surface-container); min-width: 0; }
.hb-card__eyebrow { display: flex; align-items: center; gap: 4px; margin: 0 0 10px; color: var(--md-sys-color-primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hb-card__eyebrow .md-icon { width: 16px; height: 16px; font-size: 16px; }
.hb-card__title { margin: 0 0 10px; font-family: var(--md-ref-typeface-brand); font-size: 1.25rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.hb-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 4px; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font-weight: 600; text-decoration: none; }
.hb-btn .md-icon { width: 18px; height: 18px; font-size: 18px; }
.hb-btn:focus-visible, .hb-event:focus-visible, .hb-local__lead:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 3px; }


.hb-events { min-width: 0; }
.hb-events__title { margin-top: 2px; }
.hb-events__list { margin: 0 0 4px; padding: 0; list-style: none; }
.hb-events__list li + li { border-top: 1px solid var(--md-sys-color-outline-variant); }
.hb-event { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; }
.hb-event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; border: 1px solid var(--md-sys-color-on-surface); font-family: var(--md-ref-typeface-brand); font-size: 1.25rem; font-weight: 700; line-height: 1; }
.hb-event__date small { margin-top: 4px; font-family: var(--md-ref-typeface-plain, inherit); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hb-event__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hb-event__title { font-family: var(--md-ref-typeface-brand); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.hb-event:hover .hb-event__title { text-decoration: underline; text-underline-offset: 3px; }

/* The questions card is the one dark object in the row, so readers find it. */
.hb-ask { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.hb-ask .hb-card__eyebrow { color: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); }
.hb-ask__text { margin: 0 0 14px; line-height: 1.5; opacity: 0.9; }
.hb-btn--accent { background: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); color: var(--pub-support-ink, var(--md-sys-color-inverse-surface)); }

@media (max-width: 1023px) {
  .hb-local { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hb-local__list { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 719px) {
  .hb-local__list { grid-template-columns: minmax(0, 1fr); }
  .hb-local__list li:nth-last-child(2) { border-bottom: 1px solid var(--md-sys-color-outline-variant); }
  .hb-local__list li:nth-last-child(2) .fp__row { margin-bottom: 14px; }
  .hb-around { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---- Redesign (Oct 31): time line, Just in, more top stories, In focus, Check it, Also in ---- */

/* Latest as a time line: the clock time in its own column. */
.fp__list--timeline .fp__row { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); gap: 10px; align-items: start; }
.fp__clock { padding-top: 2px; white-space: nowrap; color: var(--md-sys-color-error); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.fp__row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fp__byline { color: var(--md-sys-color-on-surface); font-weight: 600; }

/* The 7 a.m. brief is the one dark box in the right column. */
.fp-brief { padding: 18px; border-top: 0; border-radius: 4px; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.fp-brief__text { color: inherit; opacity: 0.85; }
.fp-brief__email { border-color: transparent; }
.fp-brief__submit { background: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); color: var(--pub-support-ink, var(--md-sys-color-inverse-surface)); }

/* Just in: a dark strip of the last few hours' stories. */
.just-in { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 10px 14px; border-radius: 4px; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.just-in__label { flex: none; margin: 0; padding: 5px 9px; border-radius: 2px; background: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); color: var(--pub-support-ink, var(--md-sys-color-inverse-surface)); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.just-in__list { display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.just-in__list li { flex: 0 1 auto; min-width: 0; max-width: 22rem; padding-inline: 16px; border-inline-start: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.just-in__list li:first-child { padding-inline-start: 0; border: 0; }
.just-in__list a { display: block; overflow: hidden; color: inherit; font-size: 0.9375rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.just-in__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.just-in__list a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.just-in__list time { margin-inline-end: 6px; color: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); font-weight: 600; }

/* More top stories: text-only headlines in one row under the front page. */
.fp-more { margin-top: -8px; padding-bottom: 18px; border-bottom: 3px solid var(--md-sys-color-on-surface); }
.fp-more__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.fp-more__list li { min-width: 0; padding-inline: 20px; border-inline-start: 1px solid var(--md-sys-color-outline-variant); }
.fp-more__list li:first-child { padding-inline-start: 0; border: 0; }
.fp-more__item { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.fp-more__title { font-family: var(--md-ref-typeface-brand); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.fp-more__item:hover .fp-more__title { text-decoration: underline; text-underline-offset: 3px; }
.fp-more__item:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 3px; }

/* City label on Local stories. */
.hb-city { align-self: flex-start; margin-bottom: 2px; padding: 3px 6px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: 2px; background: var(--md-sys-color-surface-container); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* Band names sit above their stories, with the "All …" link on the same line. */
@media (min-width: 1100px) { .hb { padding-top: 14px; } }

/* In focus: one dark full-width band for the story of the week. */
.hb-focus { margin-inline: -16px; padding: 28px 16px 32px; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.hb-focus__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.hb-focus__eyebrow { color: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hb-focus__title { margin: 0; font-family: var(--md-ref-typeface-brand); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 700; line-height: 1.1; }
.hb-focus__title a { color: inherit; text-decoration: none; }
.hb-focus__more { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); font-weight: 600; text-decoration: none; }
.hb-focus__more .md-icon { width: 18px; height: 18px; font-size: 18px; }
.hb-focus__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 28px; }
.hb-focus__grid--no-timeline { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hb-focus__lead, .hb-focus__stack a { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.hb-focus__lead img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hb-focus__lead-title { font-family: var(--md-ref-typeface-brand); font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.hb-focus__summary { opacity: 0.88; line-height: 1.5; }
.hb-focus__stack { display: grid; gap: 16px; align-content: start; margin: 0; padding: 0; list-style: none; }
.hb-focus__stack li + li { padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.hb-focus__stack img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hb-focus__item-title { font-family: var(--md-ref-typeface-brand); font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.hb-focus .fp__meta { color: inherit; opacity: 0.75; }
.hb-focus__timeline-title { margin: 0 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.hb-focus__timeline ol { margin: 0; padding: 0; list-style: none; border-inline-start: 2px solid var(--pub-support-bg, var(--md-sys-color-inverse-primary)); }
.hb-focus__timeline li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 0 0 16px 16px; }
.hb-focus__timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); }
.hb-focus__timeline time { color: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); font-size: 0.75rem; font-weight: 700; }
.hb-focus__timeline a { color: inherit; font-family: var(--md-ref-typeface-brand); font-weight: 700; line-height: 1.3; text-decoration: none; }
:is(.hb-focus__lead, .hb-focus__stack a, .hb-focus__timeline a):hover :is(.hb-focus__lead-title, .hb-focus__item-title),
.hb-focus__timeline a:hover, .hb-focus__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(.hb-focus__lead, .hb-focus__stack a, .hb-focus__timeline a, .hb-focus__title a, .hb-focus__more):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Check it: the trust promise, with the Check a link box. */
.hb-check { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 40px; align-items: center; margin-inline: -16px; padding: 30px 16px; background: var(--md-sys-color-surface-container); }
.hb-check__title { margin: 0 0 8px; font-family: var(--md-ref-typeface-brand); font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.hb-check__text { margin: 0 0 14px; color: var(--md-sys-color-on-surface-variant); line-height: 1.5; }
.hb-check__form { display: flex; max-width: 32rem; }
.hb-check__input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--md-sys-color-on-surface); border-radius: 4px 0 0 4px; background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: inherit; }
.hb-check__submit { min-height: 46px; padding: 0 18px; border: 0; border-radius: 0 4px 4px 0; background: var(--md-sys-color-on-surface); color: var(--md-sys-color-surface); font: inherit; font-weight: 700; cursor: pointer; }
:is(.hb-check__input, .hb-check__submit):focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.hb-check__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.hb-check__steps li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 3px solid var(--md-sys-color-primary); counter-increment: step; }
.hb-check__steps li::before { content: counter(step); color: var(--md-sys-color-primary); font-family: var(--md-ref-typeface-brand); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.hb-check__steps b { font-family: var(--md-ref-typeface-brand); font-size: 1.0625rem; }
.hb-check__steps span { color: var(--md-sys-color-on-surface-variant); font-size: 0.9375rem; line-height: 1.45; }
.hb-check__steps a { color: var(--md-sys-color-primary); }
.hb-check__more { grid-column: 1 / -1; justify-self: start; }

/* Also in: the newest stories in the site's other languages. */
.hb-langs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 20px 40px; }
.hb-langs__name { margin: 0 0 6px; font-family: var(--md-ref-typeface-brand); font-size: 1.25rem; font-weight: 700; }
.hb-langs__name a { color: inherit; text-decoration: none; }
.hb-langs__list { margin: 0; padding: 0; list-style: none; }
.hb-langs__list li { border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.hb-langs__list a { display: block; padding: 10px 0; color: inherit; font-family: var(--md-ref-typeface-brand); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.hb-langs__col[dir="rtl"] .hb-langs__list a { line-height: 1.8; }
:is(.hb-langs__list a, .hb-langs__name a):hover { text-decoration: underline; text-underline-offset: 3px; }
:is(.hb-langs__list a, .hb-langs__name a):focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }

@media (max-width: 1023px) {
  .fp-more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .fp-more__list li:nth-child(odd) { padding-inline-start: 0; border: 0; }
  .hb-focus__grid, .hb-focus__grid--no-timeline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hb-focus__lead { grid-column: 1 / -1; }
  .hb-check { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .just-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .just-in__list { flex-direction: column; width: 100%; overflow: visible; }
  .just-in__list li { max-width: none; padding: 6px 0; border: 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
  .just-in__list li:first-child { border-top: 0; }
  .just-in__list a { white-space: normal; }
  .fp-more__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fp-more__list li { padding: 12px 0; border: 0; border-top: 1px solid var(--md-sys-color-outline-variant); }
  .fp-more__list li:first-child { padding-top: 0; border-top: 0; }
  .fp__related--grid { grid-template-columns: minmax(0, 1fr); }
  .hb-focus__grid, .hb-focus__grid--no-timeline { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hb-focus__more { margin-inline-start: 0; }
  .hb-check__steps { grid-template-columns: minmax(0, 1fr); }
  /* Phones: each section is a headline list, so the page is about half as long. */
  .sg__lead img { display: none; }
  .sg__lead { display: flex; }
}

/* ---- Round 3 (Nov 1): trending, places, In pictures, sections rhythm, latest correction ---- */

/* Trending this week: tags as a short list under the brief box. */
.fp-trending { margin-top: 24px; }
.fp-trending .fp__head { padding-bottom: 8px; border-bottom: 2px solid var(--md-sys-color-on-surface); }
.fp-trending__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.fp-trending__list a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: 4px; color: var(--md-sys-color-on-surface); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.fp-trending__list a:hover { border-color: var(--md-sys-color-on-surface); }
.fp-trending__list a:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.fp-trending__count { color: var(--md-sys-color-primary); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

/* Places in this week's news: a ranked list with bars, instead of a map picture. */

/* In pictures: one dark full-width photo band. */
.hb-photos { margin-inline: -16px; padding: 28px 16px 32px; background: #121214; color: #F4F1EA; }
.hb-photos__title { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(244, 241, 234, 0.2); font-family: var(--md-ref-typeface-brand); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 700; line-height: 1.1; }
.hb-photos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hb-photos__item--big { grid-column: span 2; grid-row: span 2; }
.hb-photos__item a { position: relative; display: block; height: 100%; color: inherit; text-decoration: none; overflow: hidden; }
.hb-photos__item img { display: block; width: 100%; height: 100%; min-height: 180px; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s ease; }
.hb-photos__item--big img { aspect-ratio: auto; min-height: 380px; }
.hb-photos__caption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 4px; padding: 40px 14px 12px; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); }
.hb-photos__kicker { color: #F2A900; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hb-photos__headline { font-family: var(--md-ref-typeface-brand); font-size: 1rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.hb-photos__item--big .hb-photos__headline { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.15; }
.hb-photos__item a:hover img { transform: scale(1.03); }
.hb-photos__item a:hover .hb-photos__headline { text-decoration: underline; text-underline-offset: 3px; }
.hb-photos__item a:focus-visible { outline: 2px solid #F2A900; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hb-photos__item img { transition: none; } .hb-photos__item a:hover img { transform: none; } }

/* Sections: the second row is headlines only, so the grid has a rhythm. */
.sg__section--text .sg__lead img { display: none; }
.sg__section--text .sg__lead-title { font-size: 1.25rem; }

/* Check it: the latest real correction under step 3. */
.hb-check__fix { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px 10px; border-inline-start: 3px solid var(--md-sys-color-primary); background: var(--md-sys-color-surface); color: inherit; text-decoration: none; }
.hb-check__fix-label { color: var(--md-sys-color-on-surface-variant); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hb-check__fix-title { font-family: var(--md-ref-typeface-brand); font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.hb-check__fix:hover .hb-check__fix-title { text-decoration: underline; text-underline-offset: 3px; }
.hb-check__fix:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }

@media (max-width: 1023px) {
  .hb-photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-photos__item--big { grid-row: auto; }
  .hb-photos__item--big img { min-height: 260px; }
}
@media (max-width: 719px) {
  .hb-photos__grid { grid-template-columns: minmax(0, 1fr); }
  .hb-photos__item--big { grid-column: auto; }
  .hb-photos__item:nth-child(n + 4) { display: none; }
}

/* ---- Round 4 (Nov 1): sub-leads, story cards, the Around you map ---- */

/* Two sub-leads side by side under the lead. */
.fp__subleads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 20px 0 0; padding: 18px 0 0; border-top: 2px solid var(--md-sys-color-on-surface); list-style: none; }
.fp__subleads li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--md-sys-color-outline-variant); }
.fp__sublead { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.fp__sublead img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 4px; background: var(--md-sys-color-surface-container-high); }
.fp__sublead-title { font-family: var(--md-ref-typeface-brand); font-size: 1.25rem; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.fp__sublead-summary { color: var(--md-sys-color-on-surface-variant); font-size: 0.9375rem; line-height: 1.45; }
.fp__sublead:hover .fp__sublead-title { text-decoration: underline; text-underline-offset: 3px; }
.fp__sublead:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 3px; }

/* A full-width row of photo story cards under the front page. */
.fp-cards { margin-top: -8px; padding-top: 20px; border-top: 1px solid var(--md-sys-color-outline-variant); }
.fp-cards__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.fp-cards__list li { min-width: 0; }
.fp-cards__list li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--md-sys-color-outline-variant); }
.fp-card { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.fp-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 4px; background: var(--md-sys-color-surface-container-high); }
.fp-card__title { font-family: var(--md-ref-typeface-brand); font-size: 1.125rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.fp-card__summary { color: var(--md-sys-color-on-surface-variant); font-size: 0.875rem; line-height: 1.45; }
.fp-card:hover .fp-card__title { text-decoration: underline; text-underline-offset: 3px; }
.fp-card:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 3px; }
/* The text row of more top stories follows the cards without a heavy rule between. */
.fp-cards + .fp-more { margin-top: -8px; padding-top: 18px; border-top: 1px solid var(--md-sys-color-outline-variant); }

/* Around you: the map card is wide on the left; events and questions stack on the right. */
.hb-around { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hb-around > .hb-map { grid-row: span 2; }
.hb-map { display: flex; flex-direction: column; gap: 12px; }
.hb-map__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hb-map__head .hb-card__title { margin: 0; }
.hb-map__body { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 16px; flex: 1; }
.hb-map__body--no-map { grid-template-columns: minmax(0, 1fr); }
.hb-map__canvas { --hb-map-dot: var(--md-sys-color-primary); position: relative; min-height: 340px; border-radius: 4px; background: var(--md-sys-color-surface-container-high); overflow: hidden; z-index: 0; }
.hb-map__canvas .leaflet-container, .hb-map__canvas.leaflet-container { font: inherit; }
.hb-map__pop-place { display: block; font-family: var(--md-ref-typeface-brand); font-size: 1rem; }
.hb-map__pop-count { display: block; margin-bottom: 4px; color: #625E56; font-size: 0.75rem; }
.hb-map__pop-list { margin: 0; padding-inline-start: 16px; }
.hb-map__pop-list li { margin: 4px 0; line-height: 1.3; }
.hb-places { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hb-places li + li { border-top: 1px solid var(--md-sys-color-outline-variant); }
.hb-places a { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0 8px; padding: 9px 0; color: inherit; text-decoration: none; }
.hb-places__rank { grid-row: span 2; color: var(--md-sys-color-primary); font-family: var(--md-ref-typeface-brand); font-size: 1.25rem; line-height: 1.1; }
.hb-places__name { font-weight: 700; line-height: 1.25; }
.hb-places__count { color: var(--md-sys-color-on-surface-variant); font-size: 0.8125rem; }
.hb-places__bar { display: none; }

@media (max-width: 1023px) {
  .fp-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-cards__list li:nth-child(odd) { padding-inline-start: 0; border: 0; }
  .hb-around { grid-template-columns: minmax(0, 1fr); }
  .hb-around > .hb-map { grid-row: auto; }
}
@media (max-width: 719px) {
  .fp__subleads { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fp__subleads li + li { margin-top: 16px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--md-sys-color-outline-variant); }
  .fp-cards__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fp-cards__list li, .fp-cards__list li:nth-child(odd) { padding: 14px 0; border: 0; border-top: 1px solid var(--md-sys-color-outline-variant); }
  .fp-cards__list li:first-child { padding-top: 0; border-top: 0; }
  .fp-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 4px 12px; }
  .fp-card img { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .fp-card__summary { display: none; }
  .hb-map__body { grid-template-columns: minmax(0, 1fr); }
  .hb-map__canvas { min-height: 260px; }
}

/* Round 5: no empty columns. */
.fp-also { margin-top: 22px; }
.fp-also__list { margin: 0; padding: 0; list-style: none; }
.fp-also__list li + li { border-top: 1px solid var(--md-sys-color-outline-variant); }
.fp-also__item { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; align-items: start; padding: 10px 0; color: inherit; text-decoration: none; }
.fp-also__item:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.fp-also__item img { grid-column: 2; grid-row: 1; display: block; width: 84px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--md-sys-color-surface-container-high); }
.fp-also__copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fp-also__title { font-family: var(--md-ref-typeface-brand); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.fp-also__item:hover .fp-also__title { text-decoration: underline; text-underline-offset: 3px; }
.fp-also__item:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }

/* The map card runs the full height of the events and Ask column beside it. */
@media (min-width: 720px) {
  .hb-around { align-items: stretch; }
  .hb-around > .hb-map { display: flex; flex-direction: column; }
  .hb-around > .hb-map .hb-map__body { flex: 1; align-items: stretch; }
  .hb-around > .hb-map .hb-map__canvas { height: 100%; }
  .hb-around > :not(.hb-map) { align-self: start; }
}

/* Editors' picks: with an odd number, the first pick spans the row. */
.picks:not(.picks--single) .picks__grid > li:first-child:nth-last-child(odd):not(:only-child) { grid-column: 1 / -1; }
.picks:not(.picks--single) .picks__grid > li:first-child:nth-last-child(odd) img { aspect-ratio: 21 / 9; }

/* Figures fill the row however many there are. */
@media (min-width: 840px) {
  .home-figures .figures-grid, section:has(> .figures-grid) > .figures-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Around you: events and Ask stack in one column beside the map; the Ask card
   takes the rest of the height, so neither column ends early. */
.hb-around__side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hb-around__side > .hb-ask { display: flex; flex-direction: column; }
@media (min-width: 720px) {
  .hb-around { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .hb-around > .hb-map { grid-row: auto; }
  .hb-around > .hb-around__side { align-self: stretch; }
  .hb-around__side > .hb-ask { flex: 1; }
  .hb-around__side > .hb-ask .hb-btn { align-self: flex-start; margin-top: auto; }
}

/* More top stories: however many there are, they share the full row. */
@media (min-width: 1024px) {
  .fp-more__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* Latest: time and kicker share one line above the headline, so the headline gets the full width. */
.fp__list--timeline .fp__row { display: block; }
.fp__row-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 2px; }
.fp__row-meta .fp__clock { padding-top: 0; }
.fp__row-meta .fp__kicker { margin: 0; }
/* Four sub-leads sit two by two; each row starts flush left. */
.fp__subleads li:nth-child(2n + 1) { padding-inline-start: 0; border-inline-start: 0; }
.fp__subleads li:nth-child(n + 3) { padding-top: 18px; border-top: 1px solid var(--md-sys-color-outline-variant); }
/* Four sub-leads two by two: a photo story shows photo, kicker, headline and time; a story without a photo gets its summary instead. */
.fp__sublead img { aspect-ratio: 16 / 9; }
.fp__sublead:has(img) .fp__sublead-summary { display: none; }
.fp__sublead-title { font-size: 1.125rem; }

/* Ask card: how a round works, as three numbered steps between the intro and the button. */
.hb-ask__steps { list-style: none; counter-reset: ask; margin: 4px 0 18px; padding: 0; display: grid; gap: 12px; order: 1; }
.hb-ask__steps li { counter-increment: ask; position: relative; padding-inline-start: 34px; font-size: 0.9375rem; line-height: 1.45; opacity: 0.92; }
.hb-ask__steps li::before { content: counter(ask); position: absolute; inset-inline-start: 0; top: -2px; font-family: var(--pub-serif, Georgia, serif); font-size: 1.375rem; line-height: 1; color: var(--pub-support-bg, var(--md-sys-color-inverse-primary)); }
.hb-ask__steps strong { display: block; font-weight: 600; }
.hb-ask .hb-btn { order: 2; }
