/* Educational pages: scoped to preserve the rest of the website. */
.edu-guide--tabs .edu-guide-viewport { border-bottom: 1px solid #09244225; }
.edu-guide--tabs .edu-guide-panel { height: auto; overflow: visible; }
.edu-guide--tabs .edu-guide-panel[hidden] { display: none; }
.edu-guide--tabs .edu-guide-panel > section { border-bottom: 0; }
.edu-guide--tabs .edu-guide-panel.edu-dark { padding: 0; }
.edu-guide--tabs .edu-guide-panel.edu-dark > section { padding: 5rem 2rem; }
.edu-guide--tabs .edu-guide-panel:focus-visible { outline: 2px solid #337fb9; outline-offset: -3px; }
.edu-guide--tabs .edu-jump a[aria-selected="true"] { text-decoration: underline; text-underline-offset: .4em; font-weight: 650; }
.edu-guide--tabs .edu-jump a:focus-visible { outline: 2px solid #337fb9; outline-offset: 5px; }
.edu-guide .map-layout { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr); gap: 2rem; align-items: start; padding: 3rem 1rem; }
.edu-guide .map-intro { padding-top: 0; }
.edu-guide .map-intro > h2 { margin: 0; font-size: clamp(2.2rem, 3.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; }
.edu-guide .map-intro > h2 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.edu-guide .service-map { align-self: center; }
@media (max-width: 650px) {
  .edu-guide .map-layout { grid-template-columns: 1fr; padding: 2rem .5rem; }
}
.education-page { --paper: #f5f3ec; --accent: #ad7842; --soft: #e2e9e9; background: var(--paper); }
.education-page main { padding-bottom: calc(var(--ticker-height) + 2rem); }
.education-page p { line-height: 1.75; }
.edu-wrap { width: min(1280px, calc(100% - 6rem)); margin-inline: auto; }
.edu-masthead { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.5rem; border-bottom: 1px solid #ffffff35; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.edu-masthead--stacked { flex-direction: column; align-items: flex-start; gap: 0; }
.edu-masthead a { padding-block: .5rem; }
.edu-masthead a:hover { text-decoration: underline; text-underline-offset: .35em; }
.edu-hero { position: relative; isolation: isolate; min-height: 650px; color: #fff; background: #0b2337; overflow: hidden; }
.edu-hero-photo { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 65%; height: 100%; object-fit: cover; object-position: center 45%; opacity: .62; }
.edu-hero::after { position: absolute; content: ''; z-index: -1; inset: 0; background: linear-gradient(90deg, #0b2337 15%, #0b2337e8 38%, #0b233760 75%); }
.edu-hero-copy { max-width: 770px; padding-block: 5rem 4rem; }
.edu-kicker { display: block; margin: 0 0 1.4rem; font-size: .75rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: #746149; }
.edu-hero .edu-kicker { color: #d7b784; }
.education-page h1 { font-size: clamp(3.1rem, 5.7vw, 5.8rem); line-height: 1.02; max-width: 13ch; }
.education-page h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.edu-hero-copy > p { max-width: 52ch; font-size: 1.12rem; color: #dce4e8; margin-block: 1.7rem 2rem; }
.edu-actions { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; align-items: center; }
.edu-button { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.3rem; background: var(--ink); border: 1px solid var(--ink); color: #fff; font-weight: 600; font-size: .95rem; min-height: 48px; }
.edu-hero .edu-button { background: #f5f3ec; border-color: #f5f3ec; color: var(--ink); }
.edu-button:hover { background: #24465e; color: #fff; }
.edu-text-link { display: inline-block; text-decoration: underline; text-underline-offset: .3em; padding-block: .5rem; }
.edu-jump { display: flex; gap: 1.3rem 2rem; flex-wrap: wrap; padding-block: 1.35rem; border-bottom: 1px solid #09244225; font-size: .9rem; }
.edu-jump a:hover { text-decoration: underline; text-underline-offset: .35em; }
.edu-section { padding-block: 5rem; border-bottom: 1px solid #09244225; scroll-margin-top: 1.5rem; }
.edu-section h2, .map-intro h1 { margin: 0; font-size: clamp(2.2rem, 3.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; }
.edu-section h2 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.edu-section h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 650; margin: 0 0 .65rem; }
.edu-section p { margin: 0 0 1.1rem; }
.edu-section p:last-child { margin-bottom: 0; }
.edu-lead { font-size: 1.15rem; max-width: 65ch; color: #3f5261; }
.edu-heading { margin-bottom: 2.5rem; max-width: 900px; }
.edu-heading h2 { margin-bottom: 1.2rem; }
.edu-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.edu-two--top { align-items: start; }
.edu-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.3rem; }
.edu-three > div { border-top: 2px solid #afbdc4; padding-top: 1.3rem; }
.edu-three p { font-size: .96rem; color: #3f5261; }
.edu-diagram { margin: 0; background: #e7ece9; padding: 1.5rem; }
.edu-diagram svg { width: 100%; height: auto; display: block; }
.edu-diagram figcaption { margin-top: 1rem; font-size: .8rem; color: #485a67; line-height: 1.55; }
.edu-note { font-size: .84rem; color: #536373; line-height: 1.65; }
.edu-ref { font-size: .74em; white-space: nowrap; text-decoration: underline; text-underline-offset: .15em; vertical-align: super; margin-left: .2em; }
.edu-spaced { margin-top: 2.5rem; }
.edu-section .edu-spaced { margin-top: 2.5rem; }
.edu-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin: 2rem 0; }
.edu-paths div { border-top: 1px solid #09244225; padding-block: 1.2rem; }
.edu-paths p { font-size: .95rem; color: #3f5261; }
.edu-stat-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; border-block: 1px solid #09244225; margin-block: 2rem; }
.edu-stat strong { display: block; font-size: clamp(2.5rem,4.2vw,4.5rem); font-weight: 450; letter-spacing: -.055em; line-height: 1.1; }
.edu-stat span { display: block; font-size: .95rem; margin-top: .6rem; }
.edu-stat:first-child strong { color: #8a5b2b; }
.edu-bars { display: grid; gap: .7rem; margin: 1.5rem 0; }
.edu-bar { display: grid; grid-template-columns: 115px 1fr 65px; align-items: center; gap: .8rem; font-size: .84rem; }
.edu-bar-track { height: 11px; background: #dde4e4; }
.edu-bar-fill { height: 100%; background: #8b9da9; width: var(--bar-width); }
.edu-bar--older .edu-bar-fill { background: #173f5b; }
.edu-bar-value { text-align: right; font-variant-numeric: tabular-nums; }
.edu-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.edu-table caption { text-align: left; font-weight: 600; padding-bottom: 1rem; }
.edu-table th, .edu-table td { text-align: left; padding: .9rem .4rem; border-bottom: 1px solid #09244225; vertical-align: top; }
.edu-table th { font-size: .8rem; color: #526477; }
.edu-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.edu-disclosure { border-block: 1px solid #09244225; margin-top: 2rem; padding: 1.1rem 0; }
.edu-disclosure + .edu-disclosure { border-top: 0; margin-top: 0; }
.edu-disclosure summary { cursor: pointer; font-size: 1rem; font-weight: 600; padding: .25rem 0; }
.edu-disclosure > div { padding-top: 1.3rem; }
.edu-disclosure a { text-decoration: underline; text-underline-offset: .2em; }
.edu-compare { padding: 2rem; background: #e3eae9; }
.edu-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 1.6rem; }
.education-page label { display: block; font-size: .9rem; font-weight: 600; }
.education-page select, .education-page input { font: inherit; background: #fff; color: #092442; border: 1px solid #8799a5; border-radius: 0; padding: .8rem; min-height: 48px; max-width: 100%; }
.education-page select:focus-visible, .education-page input:focus-visible { outline: 3px solid #337fb9; outline-offset: 3px; }
.edu-flow-line { margin-block: 1.4rem; }
.edu-flow-label { display:flex; justify-content:space-between; font-size:.9rem; margin-bottom:.5rem; }
.edu-flow-track { background: #cbd5d7; height: 20px; }
.edu-flow-track span { display: block; height: 100%; background: #bd8756; }
.edu-flow-line--new .edu-flow-track span { background: #173f5b; transition: width .15s; }
.edu-large-number { display: block; font-size: 3.6rem; font-weight: 450; line-height: 1.2; letter-spacing: -.045em; }
.edu-savings { background: #0b2337; color: #fff; padding: 2.5rem; }
.edu-savings .edu-kicker { color: #d7b784; }
.edu-savings .edu-note { color: #bbcbd5; }
.edu-savings label { color: #e0e7ec; margin-bottom: .6rem; }
.edu-savings input { width: 100%; }
.edu-savings .edu-controls { display: grid; grid-template-columns: 1fr 1fr; }
.edu-savings .edu-output { padding-top: 1.5rem; border-top: 1px solid #ffffff40; }
.edu-savings-explanation { color: #e0e7ec; font-size: .95rem; }
.edu-savings-explanation p { margin: 0 0 1rem; }
.edu-savings-explanation p:last-child { margin-bottom: 0; }
.edu-savings .edu-savings-fine-print { font-size: .21rem; opacity: .5; margin: 1.5rem 0 0; }
.edu-dark { background: #0b2337; color: #fff; padding-block: 5rem; }
.edu-dark .edu-section { padding-block: 0; border: 0; }
.edu-dark .edu-kicker { color: #d7b784; }
.edu-dark .edu-lead, .edu-dark .edu-note, .edu-dark .edu-three p { color: #c5d1d9; }
.edu-dark .edu-three > div, .edu-dark .edu-disclosure { border-color: #ffffff35; }
.edu-grid-quote { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 2.2vw, 2.4rem); line-height: 1.35; border-left: 3px solid #d7b784; padding-left: 1.5rem; margin: 2.5rem 0 0; max-width: 38ch; }
.edu-final { padding-block: 5rem 3rem; }
.edu-final .edu-lead { margin-block: 1.5rem 2rem; }
.edu-source-list { columns: 2; column-gap: 3rem; padding-left: 1.3rem; font-size: .85rem; line-height: 1.65; }
.edu-source-list li { break-inside: avoid; padding: 0 0 1rem .3rem; scroll-margin-top: 2rem; }
.edu-source-list a { text-decoration: underline; }
.edu-nojs { padding: 1rem; border: 1px solid currentColor; font-size: .85rem; }
.map-page .edu-masthead { border-color: #09244225; }
.map-intro { padding-top: 3.5rem; }
.map-intro h1 { max-width: 17ch; }
.map-intro > p { font-size: 1.1rem; max-width: 46ch; }
.map-layout { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0,1.4fr); gap: 4rem; align-items: center; padding-block: 1rem 2rem; }
.service-map { margin: 0; }
.service-map img { display: block; width: 100%; height: auto; max-height: 70svh; object-fit: contain; }
.map-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .85rem; margin-top: 1rem; justify-content: center; }
.map-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.map-legend i { width: .8rem; height: .8rem; background: #173f5b; display: inline-block; }
.map-legend .neutral { background: #e4e9e9; border: 1px solid #8799a5; }
.map-source { text-align: center; font-size: .75rem; color: #536373; margin-top: .9rem; }
.map-source a { text-decoration: underline; }
.map-aside { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #09244225; }
.map-aside p { font-size: .96rem; }
.county-list { columns: 4; line-height: 1.9; padding-left: 1.2rem; font-size: .9rem; }
@media (max-width: 900px) {
  .edu-wrap { width: calc(100% - 3rem); }
  .edu-hero { min-height: 600px; }
  .edu-hero-photo { width: 100%; }
  .edu-two, .map-layout { gap: 2rem; }
  .edu-three { gap: 1.3rem; }
  .map-layout { grid-template-columns: 1fr 1.3fr; }
  .edu-compare, .edu-savings { padding: 1.5rem; }
}
@media (max-width: 650px) {
  .edu-wrap { width: calc(100% - 2.5rem); }
  .edu-masthead { font-size: .66rem; letter-spacing: .09em; padding-block: 1rem; }
  .edu-hero { min-height: 590px; }
  .edu-hero-copy { padding-block: 3.5rem; }
  .education-page h1 { font-size: clamp(3rem,12vw,4.6rem); }
  .edu-hero-copy > p { font-size: 1rem; }
  .edu-jump { gap: .7rem 1.2rem; font-size: .84rem; }
  .edu-section, .edu-dark, .edu-final { padding-block: 3rem; }
  .edu-two, .edu-three, .map-layout { grid-template-columns: 1fr; }
  .edu-three { gap: 1.6rem; }
  .edu-paths { grid-template-columns: 1fr; margin-block: 1.4rem; }
  .edu-stat-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .edu-stat:first-child { grid-column: 1/-1; }
  .edu-stat:first-child strong { font-size: 4.5rem; }
  .edu-stat strong { font-size: 2.3rem; }
  .edu-stat span { font-size: .85rem; }
  .edu-heading { margin-bottom: 1.8rem; }
  .edu-bar { grid-template-columns: 98px 1fr 57px; gap: .5rem; font-size: .75rem; }
  .edu-compare, .edu-savings { padding: 1.3rem; }
  .edu-savings .edu-controls { grid-template-columns: 1fr; }
  .edu-source-list { columns: 1; }
  .edu-table { font-size: .8rem; }
  .edu-table th { font-size: .75rem; }
  .edu-table th, .edu-table td { padding-inline: .3rem; }
  .county-list { columns: 2; }
  .map-intro { padding-top: 2rem; }
  .map-layout { gap: 1rem; }
  .map-aside { margin-top: 1.5rem; }
  .service-map img { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .edu-flow-line--new .edu-flow-track span { transition: none; } }

/* Keep service-area copy near the page edge and the map centered on desktop. */
.map-page .edu-wrap { width: calc(100% - clamp(2.5rem, 5vw, 6rem)); }
.map-page .map-layout { align-items: start; padding-block: 2rem; }
.map-page .map-intro { padding-top: 0; }
@media (min-width: 1100px) {
  .map-page .map-layout { grid-template-columns: minmax(0, 1fr) minmax(0, min(46vw, 820px)) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); min-height: calc(100svh - var(--ticker-height) - 2rem); }
  .map-page .map-intro { max-width: 26rem; }
  .map-page .service-map { grid-column: 2; align-self: center; }
}
@media (max-width: 650px) {
  .map-page .map-layout { padding-top: 1.5rem; }
}

/* Follow-up guidance within the Your next step panel. */
.edu-next-help { border-top: 2px solid #afbdc4; padding-top: 2.5rem; }
.edu-help-answer { max-width: 78ch; }

/* Compact dictionary entry above the R-value comparison. */
.edu-definition { margin-top: 2rem; max-width: 65ch; }
.edu-definition h3 { font-size: 1.5rem; margin-bottom: .45rem; }
.edu-definition .edu-definition-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .8rem; color: #536373; font-size: .9rem; }
.edu-definition-meta span:first-child { font-style: italic; }

/* Keep the calculator explanation compact and at the bottom of its box. */
#energy-costs .edu-savings { display: flex; flex-direction: column; align-self: stretch; }
#energy-costs .edu-savings-explanation { margin-top: auto; padding-top: 1.5rem; color: #bbcbd5; font-size: .75rem; line-height: 1.55; }
#energy-costs .edu-savings-explanation p { line-height: 1.55; margin-bottom: .65rem; }
#energy-costs .edu-savings-explanation p:last-child { margin-bottom: 0; }

/* Magazine cover: the paper slides over the lower cover, leaving the introduction. */
.edu-magazine-cover { min-height: calc(100svh - var(--ticker-height, 40px)); }
.edu-cover-photos { position: absolute; inset: 0 0 0 50%; z-index: -2; display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.edu-cover-photos .edu-hero-photo, .edu-cover-second { position: static; width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: .72; }
.edu-magazine-cover::after { background: linear-gradient(90deg, #0b2337 34%, #0b2337ee 48%, #0b233750 76%, #0b233720); }
.edu-cover-ready .edu-guide { display: none; }
.edu-cover-open .edu-guide { display: block; position: relative; z-index: 2; width: 100%; box-sizing: border-box; padding-inline: max(3rem, calc((100% - 1280px) / 2)); margin-top: calc(-1 * var(--cover-overlap, 0px)); background: var(--paper); }
@media (max-width: 650px) {
 .edu-cover-photos { left: 48%; }
 .edu-magazine-cover::after { background: linear-gradient(90deg,#0b2337 12%,#0b2337ed 48%,#0b233778); }
 .edu-cover-open .edu-guide { padding-inline: 1.25rem; }
}
