/* Low-bandwidth editorial pages. The public directory has its own styling. */
.editorial-page {
  --ink: #153e5c;
  --text: #40525c;
  --line: #d7e0e4;
  --paper: #ffffff;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.65 system-ui, sans-serif;
}
.editorial-page *, .editorial-page *::before, .editorial-page *::after { box-sizing: border-box; }
.editorial-page h1, .editorial-page h2, .editorial-page h3 { margin: 0; }
.editorial-page h1 { color: var(--ink); font: 750 clamp(2.5rem, 5vw, 4rem)/1.06 system-ui, sans-serif; letter-spacing: -.045em; }
.editorial-page h2, .editorial-page h3 { font-size: clamp(1.13rem, 2vw, 1.35rem); font-weight: 730; line-height: 1.3; letter-spacing: -.012em; }
.editorial-page p { color: var(--text); margin: .65rem 0 0; max-width: 63ch; }
.editorial-page a { color: inherit; }
.editorial-page :is(a, button, summary):focus-visible { outline: 3px solid #2875a8; outline-offset: 3px; }
.editorial-page [id] { scroll-margin-top: 1rem; }
.editorial-width { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.editorial-page main .editorial-width { width: min(62rem, calc(100% - 3rem)); }
.editorial-skip { position: absolute; inset: .5rem auto auto .5rem; z-index: 3; background: #fff; padding: .55rem .85rem; transform: translateY(-160%); }
.editorial-skip:focus { transform: none; }
.editorial-header { background: #fff; border-bottom: 1px solid var(--line); }
.editorial-header .editorial-width, .editorial-footer .editorial-width { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.editorial-header .editorial-width { min-height: 5rem; padding-block: .5rem; flex-wrap: wrap; }
.editorial-brand { display: inline-flex; align-items: center; gap: .75rem; font-size: 1rem; font-weight: 750; min-height: 44px; text-decoration: none; }
.editorial-brand img { width: 3rem; height: 3rem; object-fit: contain; }
.editorial-header nav, .editorial-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.editorial-header nav a, .editorial-footer nav a { display: flex; align-items: center; min-height: 44px; font-size: .88rem; text-underline-offset: .23em; }
.editorial-header nav a:not(:hover):not([aria-current]) { text-decoration: none; }
.editorial-header nav a[aria-current] { font-weight: 750; text-decoration-thickness: 2px; }
.editorial-mobile-menu { display: none; }
.editorial-hero { padding-block: clamp(2rem, 5vw, 4rem); background: #f0f5f7; border-bottom: 1px solid var(--line); }
.editorial-page .editorial-lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 50ch; margin-top: 1rem; }
.editorial-content { padding-block: clamp(1.65rem, 4vw, 2.7rem) clamp(2.5rem, 5vw, 4.25rem); }
.editorial-chapter { border-bottom: 1px solid var(--line); padding-block: 1.75rem; }
.editorial-page .editorial-button { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem .75rem; border: 1px solid #25643e; border-radius: .2rem; background: #25643e; color: white; text-decoration: none; font: 650 .93rem/1.3 system-ui, sans-serif; margin-top: 1rem; }
.editorial-page .editorial-button:not(:disabled):hover { background: #174a2d; }
.editorial-page .editorial-button:disabled { color: #364a40; background: #ebeee9; border-color: #aab7ae; cursor: not-allowed; }
.editorial-page .editorial-text-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 680; text-underline-offset: .18em; }
.editorial-list { margin-top: .8rem; }
.editorial-list article { border-top: 1px solid var(--line); padding: .9rem 0 .5rem; }
.editorial-footer { background: #153e5c; border-top: 4px solid #377a4b; padding-block: 2rem; font-size: .875rem; color: #fff; }
.editorial-impact { border-top: 1px solid var(--line); padding-top: 1rem; }
.editorial-page .editorial-impact-value { color: var(--ink); font-weight: 750; font-size: clamp(1.35rem, 3vw, 2rem); margin-top: .2rem; }
.editorial-stamp:has(time[hidden]) { display: none; }
.editorial-stamp { font-size: .88rem; }
.editorial-impact-details { margin-block: .9rem; border-block: 1px solid var(--line); padding-block: .2rem; }
.editorial-impact-details summary { min-height: 44px; cursor: pointer; font-weight: 750; padding-block: .5rem; }
.editorial-count-grid { margin: 0; }
.editorial-count-grid > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content); align-items: start; gap: .5rem; border-top: 1px solid var(--line); padding: .58rem 0; }
.editorial-count-grid dt { font-weight: 680; }
.editorial-count-grid dd { color: var(--text); margin: 0; white-space: normal; text-align: right; font-size: .925rem; }
.editorial-count-grid small { display: block; color: var(--text); font-weight: 400; line-height: 1.25; }
.editorial-refresh { min-height: 44px; margin-top: .3rem; border: 0; padding: 0; background: transparent; color: #214d3c; font: 680 .89rem/1.3 system-ui, sans-serif; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.editorial-refresh[aria-disabled="true"] { cursor: wait; opacity: .8; }
/* Mission page: practical category links beside the introduction. */
.editorial-page .editorial-eyebrow { margin: 0 0 .9rem; color: #326444; font-size: .82rem; font-weight: 700; }
.editorial-hero--mission { background: #153e5c; }
.editorial-page .editorial-hero--mission :is(h1, .editorial-lede, .editorial-eyebrow) { color: #fff; }
.editorial-mission-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.editorial-needs { border-left: 1px solid #7391a5; padding-left: 2rem; color: #fff; }
.editorial-page .editorial-needs p { margin: 0 0 .5rem; color: #c7dbe7; font-size: .85rem; }
.editorial-needs a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; border-bottom: 1px solid #53758e; font-size: 1.1rem; text-decoration: none; }
.editorial-hero--mission :is(a, button):focus-visible { outline-color: #fff; }
.editorial-needs a:hover { text-decoration: underline; text-underline-offset: .2em; }
.editorial-page .editorial-hero--mission .editorial-button { background: #fff; border-color: #fff; color: #153e5c; }
.editorial-page .editorial-hero--mission .editorial-button:hover { background: #e1edf4; }
.editorial-story .editorial-chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2.5rem; }
.editorial-story .editorial-chapter p:first-child { margin-top: 0; }
.editorial-reading-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-top: 1.5rem; }
.editorial-reading-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.editorial-story-nav { padding-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.editorial-disclosure { border-bottom: 1px solid var(--line); margin-top: .5rem; }
.editorial-disclosure > summary { padding: .85rem 0; min-height: 48px; font-weight: 650; cursor: pointer; }
.editorial-disclosure[open] { padding-bottom: 1rem; }
.editorial-disclosure .editorial-reading-links { gap: .25rem 1.25rem; padding-top: .5rem; font-size: .9rem; }
@media (max-width: 40rem) {
  .editorial-mission-grid, .editorial-story .editorial-chapter { grid-template-columns: 1fr; gap: 1rem; }
  .editorial-needs { border-left: 0; padding: 1rem 0 0; }
  .editorial-hero--mission { padding-bottom: 2rem; }
}
@media (max-width: 65rem) {
  .editorial-header .editorial-width { position: relative; }
  .editorial-header nav.editorial-primary { display: none; }
  .editorial-mobile-menu { display: block; }
  .editorial-mobile-menu summary { cursor: pointer; font-size: .94rem; font-weight: 700; min-height: 44px; padding: .55rem .15rem; }
  .editorial-mobile-menu[open] { flex: 1 0 100%; }
  .editorial-mobile-menu[open] summary { position: absolute; right: 0; top: .5rem; }
  .editorial-mobile-menu nav { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .6rem; }
  .editorial-footer .editorial-width { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .editorial-width, .editorial-page main .editorial-width { width: calc(100% - 2.5rem); }
}
