/* Interior palette: the Overview remains the visual reference and is untouched.
   Plum anchors the People chapter navigation; chapter-opening colors carry
   editorial meaning and vary by topic rather than repeating emerald. */
.editorial-reader.web-edition[data-editorial-chapter="summary-background"] {
  --landing-bg: #303b59;
  --landing-accent: #f1bfd8;
  --page-accent: #614866;
  --page-tint: #f3edf5;
}

.editorial-reader.web-edition[data-editorial-chapter="summary-background"] .section-landing-hero {
  background: linear-gradient(116deg, #293550 4%, #503f66 60%, #754767 100%);
}

/* A consistent People chapter rail with distinct page-level hero treatments. */
.editorial-reader.web-edition[data-editorial-group="people"] {
  --page-accent: #614866;
  --page-tint: #f3edf5;
  --article-hero: #293550;
  --article-hero-end: #4b486f;
  --article-rule: #a74375;
  --article-tint: #fcf9fb;
  --article-light: #f5c6da;
}

/* Navy: population, movement, labor, gender, and the opening frame. */
.editorial-reader.web-edition #article-content[data-article="summary-background"],
.editorial-reader.web-edition #article-content[data-article="population-trends"],
.editorial-reader.web-edition #article-content[data-article="commuting-to-work"],
.editorial-reader.web-edition #article-content[data-article="residential-mobility"],
.editorial-reader.web-edition #article-content[data-article="labor-force-and-employment"],
.editorial-reader.web-edition #article-content[data-article="gender-distribution"],
.editorial-reader.web-edition #article-content[data-article="major-employers"] {
  --article-hero: #293550;
  --article-hero-end: #475d7d;
  --article-rule: #ce8aaf;
  --article-tint: #f4f5f9;
  --article-light: #ffd5e7;
}

/* Violet: age, family structure, education, and the closing synthesis. */
.editorial-reader.web-edition #article-content[data-article="age-distribution"],
.editorial-reader.web-edition #article-content[data-article="household-composition"],
.editorial-reader.web-edition #article-content[data-article="educational-attainment"],
.editorial-reader.web-edition #article-content[data-article="the-regional-demographic-story"] {
  --article-hero: #483e65;
  --article-hero-end: #745478;
  --article-rule: #9b70ac;
  --article-tint: #f8f5fa;
  --article-light: #e9d2f2;
}

/* Berry: identity, household needs, opportunity, and training pathways. */
.editorial-reader.web-edition #article-content[data-article="race-and-ethnicity"],
.editorial-reader.web-edition #article-content[data-article="poverty-and-economic-opportunity"],
.editorial-reader.web-edition #article-content[data-article="marital-status-and-household-needs"],
.editorial-reader.web-edition #article-content[data-article="education-and-training-programs"] {
  --article-hero: #6c3d5d;
  --article-hero-end: #985478;
  --article-rule: #c97099;
  --article-tint: #fcf5f8;
  --article-light: #f8d5e6;
}

/* Clay: household resources, housing, and occupational structure. */
.editorial-reader.web-edition #article-content[data-article="household-income"],
.editorial-reader.web-edition #article-content[data-article="housing-stock-and-occupancy"],
.editorial-reader.web-edition #article-content[data-article="top-occupations-by-industry"] {
  --article-hero: #7b3f35;
  --article-hero-end: #98513f;
  --article-rule: #c4774c;
  --article-tint: #fff8f3;
  --article-light: #ffe0c2;
}

.editorial-reader.web-edition[data-editorial-group="people"] .article-opening.executive-opening {
  background: linear-gradient(118deg, var(--article-hero), var(--article-hero-end));
  border-bottom-color: var(--article-rule);
}
.editorial-reader.web-edition[data-editorial-group="people"] .executive-opening .executive-lens-title,
.editorial-reader.web-edition[data-editorial-group="people"] .executive-opening .executive-overline,
.editorial-reader.web-edition[data-editorial-group="people"] .executive-focus svg {
  color: var(--article-light);
}
.editorial-reader.web-edition[data-editorial-group="people"] .executive-opening-photo figcaption {
  border-top-color: var(--article-rule);
}
.editorial-reader.web-edition[data-editorial-group="people"] #article-content .summary-article-introduction {
  background: var(--article-tint);
  border-left-color: var(--article-rule);
}
.editorial-reader.web-edition[data-editorial-group="people"] #article-content .summary-intro-kicker {
  color: #614866;
}
.editorial-reader.web-edition[data-editorial-group="people"] #article-content .summary-intro-kicker::before {
  background: var(--article-rule);
}

/* Preserve chart encodings, but remove the repeated green editorial furniture. */
.editorial-reader.web-edition[data-editorial-group="people"] .people-chart-eyebrow,
.editorial-reader.web-edition[data-editorial-group="people"] .people-chart-note a,
.editorial-reader.web-edition[data-editorial-group="people"] .people-chart-table > summary {
  color: #614866;
}
.editorial-reader.web-edition[data-editorial-group="people"] #article-content .executive-data-visual .executive-chart-readout {
  background: #f6f0f7;
  border-left-color: #886090;
  color: #394055;
}
.editorial-reader.web-edition[data-editorial-group="people"] #article-content .executive-change-label > strong {
  color: #614866;
}
.editorial-reader.web-edition[data-editorial-group="people"] .people-visual .people-bar-group h4,
.editorial-reader.web-edition[data-editorial-group="people"] .people-bar-row > strong {
  color: #293550;
}
.editorial-reader.web-edition[data-editorial-group="people"] .people-chart-table tbody th {
  background: #f2f0f5 !important;
  color: #293550 !important;
}

/* One evergreen chapter is enough: landscape keeps a grounded deep-pine voice. */
.editorial-reader.web-edition[data-editorial-group="landscape"] {
  --page-accent: #31594f;
  --page-tint: #eef3ee;
}
.editorial-reader.web-edition[data-editorial-group="connections"] {
  --page-accent: #385b75;
  --page-tint: #edf2f6;
}

/* Resilience belongs to the violet chapter rather than another green panel. */
.editorial-reader.web-edition .ceds-story--resilience {
  background: #f1edf7;
  border-color: #d9cee5;
}
.editorial-reader.web-edition .ceds-story--resilience .ceds-story__eyebrow {
  color: #493d65;
}
.editorial-reader.web-edition .ceds-story--resilience .ceds-story__eyebrow::before {
  background: #8e6f9d;
}
.editorial-reader.web-edition .ceds-story--resilience .ceds-story__focus {
  border-color: #775574;
}

/* Alternate the recurring fourth card into a clear blue family. */
.editorial-reader.web-edition #article-content :is(.web-card-grid, .web-county-grid) > section:nth-child(4n + 4),
.editorial-reader.web-edition #article-content.executive-edition .executive-insight-grid > section:nth-child(4n + 4),
.editorial-reader.web-edition #article-content .insights-response-grid > section:nth-child(4n + 2) {
  background: #edf2f7;
  border-color: #466783;
}
.editorial-reader.web-edition #article-content .strategy-priority-map > a:nth-child(5) {
  background: #375872;
}

/* Keep the actual Alamogordo bus prominent within the public transit opening. */
.executive-opening-photo:has(img[src*="alamogordo-ztrans-bus"]) {
  overflow: hidden;
}
.executive-opening-photo img[src*="alamogordo-ztrans-bus"] {
  transform: scale(1.35);
  transform-origin: 50% 78%;
}
.executive-opening-photo:has(img[src*="alamogordo-ztrans-bus"]) figcaption {
  position: relative;
  z-index: 1;
}

@media print {
  .editorial-reader.web-edition[data-editorial-group="people"] .article-opening.executive-opening {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
