/* Reading polish for the CEDS interior pages. The Overview keeps its own design. */
.editorial-reader.web-edition {
  --reader-ink: #293550;
  --reader-copy: #3b4654;
  --reader-muted: #4e5965;
  --reader-rule: #d9d3dc;
}

/* The chapter rail is a navigation tool, so its labels must remain legible. */
.editorial-reader.web-edition .rail-heading h2 {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 23px;
  font-weight: 750 !important;
  line-height: 1.25;
  letter-spacing: -.035em;
  color: var(--reader-ink);
}
.editorial-reader.web-edition .rail-heading p,
.editorial-reader.web-edition .rail-foot {
  color: var(--reader-muted);
  font-size: 12px;
  line-height: 1.65;
}
.editorial-reader.web-edition .contents-search {
  color: var(--reader-ink);
  font-size: 12.5px;
}
.editorial-reader.web-edition .contents-search input {
  font-size: 13px;
  line-height: 1.45;
}
.editorial-reader.web-edition .chapter-navigation > a,
.editorial-reader.web-edition .group-disclosure > summary {
  color: var(--reader-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding-block: 15px;
}
.editorial-reader.web-edition .group-number {
  color: var(--page-accent);
  font-size: 11px;
  font-weight: 750;
}
.editorial-reader.web-edition .section-links a {
  color: #495460;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.55;
  padding: 10px 11px;
  border-left-width: 2px;
}
.editorial-reader.web-edition .section-links a[aria-current=page] {
  color: var(--reader-ink);
  font-weight: 750;
}
.editorial-reader.web-edition .section-links a:hover,
.editorial-reader.web-edition .chapter-navigation > a:hover {
  color: var(--page-accent);
  background: var(--page-tint);
}
.editorial-reader.web-edition .location-bar .crumbs {
  color: var(--reader-muted);
  font-size: 12px;
  line-height: 1.45;
}
.editorial-reader.web-edition .location-bar .crumbs a:hover {
  color: var(--page-accent);
  text-decoration: underline;
}

/* A regular reading rhythm across the older and newer chapter templates. */
.editorial-reader.web-edition #article-content :is(.generic-article, .section-body, .strategy-story) > p,
.editorial-reader.web-edition #article-content .summary-article-introduction p:not(.summary-intro-kicker) {
  color: var(--reader-copy);
  font-size: 16.5px;
  line-height: 1.82;
  margin-bottom: 1.2em;
  max-width: none;
}
.editorial-reader.web-edition #article-content :is(.generic-article, .section-body, .strategy-story) > :is(ul, ol) > li {
  color: var(--reader-copy);
  font-size: 16px;
  line-height: 1.78;
  margin-block: 10px;
}
.editorial-reader.web-edition #article-content .section-body > h3 {
  margin-top: 42px;
  margin-bottom: 19px;
}
.editorial-reader.web-edition #article-content .section-body > h3:first-child {
  margin-top: 6px;
}
.editorial-reader.web-edition #article-content :is(.generic-article, .section-body) h4 {
  color: var(--reader-ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
  margin-block: 29px 12px;
}
.editorial-reader.web-edition #article-content .chapter-section {
  margin-top: 48px;
  scroll-margin-top: 90px;
}
.editorial-reader.web-edition #article-content .chapter-section > summary {
  transition: background-color .18s ease;
}
.editorial-reader.web-edition #article-content .chapter-section > summary:hover {
  background: color-mix(in srgb, var(--page-tint) 85%, var(--page-accent) 15%);
}
.editorial-reader.web-edition #article-content .chapter-section > .section-body {
  padding-bottom: 43px;
}
.editorial-reader.web-edition .reading-jump {
  margin-block: 36px 42px;
}
.editorial-reader.web-edition .reading-jump .on-this-page a {
  color: var(--reader-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  min-height: 52px;
}

/* Bring supporting cards up to the same typographic quality as the hero. */
.editorial-reader.web-edition #article-content :is(.web-card-grid, .web-county-grid) > section :is(h2, h3) {
  line-height: 1.33 !important;
  margin-bottom: 17px;
}
.editorial-reader.web-edition #article-content :is(.web-card-grid, .web-county-grid) > section :is(p, li),
.editorial-reader.web-edition #article-content .swot-finding :is(p, li),
.editorial-reader.web-edition #article-content .executive-story-panel :is(p, li) {
  color: var(--reader-copy);
  font-size: 16px;
  line-height: 1.78;
}
.editorial-reader.web-edition #article-content .swot-finding > .finding-strategy :is(p, li),
.editorial-reader.web-edition #article-content .swot-finding > .finding-reality :is(p, li) {
  color: var(--reader-copy);
}

/* Short strategy statements become scannable evidence points. */
.editorial-reader.web-edition #article-content .strategy-story .editorial-compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  list-style: none;
  margin: 29px 0 37px;
  padding: 0;
}
.editorial-reader.web-edition #article-content .strategy-story .editorial-compact-list > li {
  background: #fffdf9;
  border: 1px solid #e1dbe4;
  border-left: 4px solid #775574;
  border-radius: 0 12px 12px 0;
  color: var(--reader-copy);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  padding: 16px 18px;
}
.editorial-reader.web-edition #article-content .strategy-story .editorial-compact-list > li:nth-child(3n+2) {
  border-left-color: #a74375;
}
.editorial-reader.web-edition #article-content .strategy-story .editorial-compact-list > li:nth-child(3n) {
  border-left-color: #9f4c31;
}
.editorial-reader.web-edition #article-content .strategy-panel .strategy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  list-style: none;
  margin: 20px 0 32px;
  padding: 0;
}
.editorial-reader.web-edition #article-content .strategy-panel .strategy-list > li {
  position: relative;
  border-bottom: 1px solid #ded7e0;
  color: var(--reader-copy);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  padding: 14px 8px 14px 25px;
}
.editorial-reader.web-edition #article-content .strategy-panel .strategy-list > li::before {
  content: '';
  position: absolute;
  top: 1.55em;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--page-accent);
}

/* Tabular evidence needs clear row labels, readable values, and a visible scroll edge. */
.editorial-reader.web-edition .native-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: #a99cb0 #f2edf3;
  scrollbar-width: thin;
}
.editorial-reader.web-edition table.native-table:not(.gis-explorer table) {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.editorial-reader.web-edition table.native-table:not(.gis-explorer table) thead th {
  font-size: 14px;
  line-height: 1.5;
}
.editorial-reader.web-edition table.native-table:not(.gis-explorer table) tbody :is(th, td) {
  font-size: 14px;
  line-height: 1.65;
  vertical-align: top;
}
.editorial-reader.web-edition table.native-table:not(.gis-explorer table) tbody th {
  color: var(--reader-ink);
  background: #f3edf5;
  font-weight: 700;
  padding: 16px 18px;
}
.editorial-reader.web-edition table.native-table:not(.gis-explorer table) tbody tr:nth-child(even) th {
  background: #ece5ef;
}
.editorial-reader.web-edition table.native-table:not(.gis-explorer table) tbody tr:hover :is(th, td) {
  background: #eaf1ed;
}
.editorial-reader.web-edition .source-line,
.editorial-reader.web-edition #article-content :is(.content-source, .article-source),
.editorial-reader.web-edition #article-content .article-figure figcaption {
  color: var(--reader-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
}
.editorial-reader.web-edition #article-content .people-chart-note {
  color: var(--reader-muted);
  font-size: 12.5px;
  line-height: 1.75;
}

/* Keep the three performance lanes, while making labels and source context readable. */
.editorial-reader.web-edition #article-content .pf-framework-column-header h3 {
  font-size: 18px;
  line-height: 1.35;
}
.editorial-reader.web-edition #article-content .pf-framework-column-header p {
  font-size: 14px;
  line-height: 1.65;
}
.editorial-reader.web-edition #article-content .pf-baseline dt {
  font-size: 14.5px;
}
.editorial-reader.web-edition #article-content .pf-baseline-label {
  font-size: 13.5px;
  line-height: 1.65;
}
.editorial-reader.web-edition #article-content .pf-baseline-period,
.editorial-reader.web-edition #article-content .pf-baseline-source summary,
.editorial-reader.web-edition #article-content .pf-baseline-source :is(p, a) {
  font-size: 12px;
  line-height: 1.7;
}

/* Supporting pages use the same spacing and readable content scale. */
.web-support-page .measure-section {
  padding: clamp(26px, 3vw, 39px);
  margin-block: 40px;
}
.web-support-page .measure-section :is(p, li),
.web-support-page .reading-orientation :is(p, li) {
  color: var(--reader-copy, #3b4654);
  font-size: 16px;
  line-height: 1.78;
}
.web-support-page .measure-section h2 {
  line-height: 1.3;
  margin-bottom: 20px;
}
.web-support-page .atlas-info :is(.atlas-county-description, .atlas-period, .atlas-note),
.web-support-page .atlas-context p,
.web-support-page .resource-row p {
  color: #3b4654;
  font-size: 15px;
  line-height: 1.75;
}
.web-support-page .atlas-info .source,
.web-support-page .atlas-sources :is(summary, p, a),
.web-support-page .atlas-mini-facts span {
  color: #4e5965;
  font-size: 12.5px;
  line-height: 1.65;
}
.web-support-page .atlas-compare-row {
  color: #293550;
  font-size: 14px;
  min-height: 44px;
}
.web-support-page .atlas-compare-row strong {
  font-variant-numeric: tabular-nums;
}
/* Canva's Land, Resources & Culture photograph gives the Atlas a regional opening. */
@media (min-width: 900px) {
  .web-support-page .atlas-page-head > .wrap {
    position: relative;
    isolation: isolate;
    min-height: 340px;
  }
  .web-support-page .atlas-page-head > .wrap::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 39%;
    height: 100%;
    border-radius: 76px 0 0 0;
    border-bottom: 5px solid #cf7a4b;
    background: #426b73 url('assets/design/landscape.jpg') 44% 58% / cover no-repeat;
  }
  .web-support-page .atlas-page-head > .wrap > * {
    position: relative;
    z-index: 1;
  }
  .web-support-page .atlas-page-head > .wrap :is(h1, .lede) {
    max-width: 57%;
  }
}
@media (max-width: 899px) {
  .web-support-page .atlas-page-head > .wrap::after {
    content: '';
    display: block;
    width: 100%;
    height: clamp(160px, 30vw, 240px);
    margin-top: 26px;
    border-radius: 52px 0 0 0;
    border-bottom: 5px solid #cf7a4b;
    background: #426b73 url('assets/design/landscape.jpg') 43% 61% / cover no-repeat;
  }
}

@media (max-width: 850px) {
  .editorial-reader.web-edition .contents-rail.is-open {
    border-right: 0;
    box-shadow: 18px 0 46px #17223f2b;
  }
  .editorial-reader.web-edition .contents-toggle {
    min-height: 44px;
    color: var(--reader-ink);
    font-size: 12px;
    font-weight: 700;
  }
}
@media (max-width: 700px) {
  .editorial-reader.web-edition #article-content .strategy-story .editorial-compact-list,
  .editorial-reader.web-edition #article-content .strategy-panel .strategy-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .editorial-reader.web-edition #article-content .chapter-section {
    margin-top: 35px;
  }
  .editorial-reader.web-edition #article-content .chapter-section > .section-body {
    padding-bottom: 31px;
  }
  .editorial-reader.web-edition .location-bar .crumbs {
    font-size: 11px;
  }
  .web-support-page .measure-section {
    margin-block: 28px;
    padding: 25px 21px;
  }
  .web-support-page .page-head.with-photo {
    gap: 17px;
    padding-block: 25px 29px;
  }
  .web-support-page .page-head.with-photo .breadcrumb {
    margin-bottom: 21px;
  }
  .web-support-page .page-head.with-photo h1 {
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 1.1;
    margin-bottom: 15px;
  }
  .web-support-page .page-head.with-photo .lede {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
  }
  .web-support-page .page-head.with-photo .page-head-photo {
    height: 185px;
    object-fit: cover;
  }
  .editorial-reader.web-edition .people-chart-toolbar select[data-people-order] {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -.015em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-reader.web-edition #article-content .chapter-section > summary {
    transition: none;
  }
}
