/* Shared layout safeguards and the degree evidence workspace. */
.dashboard-overview { margin-top: 24px; }
.dashboard-overview article { min-width: 0; gap: 8px; }
.dashboard-overview a { padding-top: 6px; }
.earnings-disclosure { margin: 0; }
.earnings-disclosure summary { cursor: pointer; list-style: none; width: fit-content; }
.earnings-disclosure summary::-webkit-details-marker { display: none; }
.earnings-disclosure summary strong { display: inline-block; border-bottom: 1px dotted currentColor; }
.earnings-disclosure summary::after { content: 'ⓘ'; margin-left: 10px; font-size: .9rem; color: inherit; }
.earnings-disclosure p { font-size: .8rem; line-height: 1.6; }
.program-metric-grid .featured .earnings-disclosure p { color: #d6eae4; }
.source-caution { padding: 16px 18px; background: var(--cream); border-left: 3px solid #bc803d; border-radius: 8px; font-size: .85rem; }
.button { gap: 8px; max-width: 100%; padding: 11px 19px; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.button-outline-light { background: transparent; }
.button-outline-light:hover { background: rgba(255,255,255,.1); }
.hero-actions, .button-row, .material-actions, .result-actions { align-items: center; flex-wrap: wrap; }
.hero-actions > form, .button-row > form { margin: 0; max-width: 100%; }
.section-heading { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.section-heading > div { flex: 1 1 230px; min-width: 0; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > small, .section-heading > span { max-width: 100%; }
.section-heading > .coverage-badge { flex: 0 0 auto; }
.program-layout > *, .university-layout > *, .planner-layout > *, .scenario-layout > *, .explorer-layout > *, .shortlist-layout > *, .account-layout > *, .tracker-layout > *, .funding-layout > * { min-width: 0; }
.field, .field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.material-layout, .record-layout { min-width: 0; }
.material-layout > *, .record-layout > * { min-width: 0; }
input[type="file"] { width: 100%; min-width: 0; max-width: 100%; font-size: .8rem; }
.program-list > a > *, .result-card > *, .headline-metrics > *, .location-facts > *, .related-program-grid > * { min-width: 0; overflow-wrap: anywhere; }
.site-nav { gap: clamp(12px, 1.8vw, 24px); }
.site-header .brand { flex-shrink: 0; }
.program-hero { padding: 34px 0 48px; }
.program-hero-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 40px; align-items: start; }
.program-hero h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1.08; overflow-wrap: anywhere; }
.program-hero p:not(.eyebrow) { color: #d1e2e3; }
.program-hero .hero-actions { margin-top: 28px; gap: 12px; }
.program-confidence { min-height: 0; padding: 26px; transform: none; border-radius: 18px; }
.program-confidence small { opacity: 1; line-height: 1.6; }
.program-confidence a { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(3,47,61,.2); font-size: .8rem; font-weight: 750; }
.program-layout { padding-block: 44px 72px; gap: 32px; }
.program-main { gap: 30px; }
.program-main .section-heading { margin-bottom: 22px; }
.program-main h2 { font: 500 clamp(1.7rem, 2.7vw, 2.25rem)/1.15 Georgia,serif; letter-spacing: -.025em; color: var(--navy); margin: 0; }
.program-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.program-metric-grid article { min-height: 175px; padding: 24px; gap: 4px; }
.program-metric-grid article.featured { grid-column: auto; }
.program-metric-grid span, .program-metric-grid small { font-size: .8rem; line-height: 1.6; }
.program-metric-grid .featured span, .program-metric-grid .featured small { color: #d6eae4; }
.program-metric-grid strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.program-metric-grid .featured strong { font-size: 2.3rem; }
.degree-chart, .peer-evidence { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.chart-caption { margin: 0 0 18px; color: var(--muted); font-size: .8rem; }
.degree-chart .bar-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px 18px; padding: 18px 0; }
.degree-chart .bar-row > span { font-size: .84rem; }
.degree-chart .bar-row > strong { grid-column: 2; grid-row: 1; font-size: .9rem; font-variant-numeric: tabular-nums; }
.degree-chart .bar-row > i { grid-column: 1 / -1; grid-row: 2; height: 10px; }
.degree-chart .bar-row.primary > i::after { background: #238471; }
.peer-evidence > p { font-size: .9rem; line-height: 1.7; }
.peer-table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; }
.peer-table { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; }
.peer-table caption { padding: 14px 18px; text-align: left; font-size: .78rem; background: var(--cream); color: var(--muted); }
.peer-table th, .peer-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.peer-table th { font-size: .72rem; background: #f2f6f3; color: var(--navy); }
.peer-table td:first-child { width: 74%; }
.peer-table th:last-child, .peer-table td:last-child { text-align: right; white-space: nowrap; }
.peer-table td:last-child { color: var(--navy); font-weight: 750; }
.peer-table tr:last-child td { border-bottom: 0; }
.peer-table tbody tr:hover { background: #f6faf7; }
.peer-table a { color: var(--navy); font-weight: 700; }
.peer-table a:hover { text-decoration: underline; }
.peer-table small { display: block; padding-top: 4px; color: var(--muted); }
.methodology-details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.methodology-details summary { cursor: pointer; font-size: .85rem; color: var(--navy); font-weight: 750; padding: 8px 0; }
.methodology-details p, .peer-evidence .evidence-note { font-size: .8rem; color: var(--muted); line-height: 1.75; }
.evidence-note a { text-decoration: underline; text-underline-offset: 3px; }
.institution-context { padding: 18px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.institution-context > span { font-size: .75rem; color: var(--muted); }
.institution-context > strong { display: block; margin-top: 7px; font: 1.65rem Georgia,serif; color: var(--navy); }
.institution-context p { font-size: .75rem; margin-bottom: 0; color: var(--muted); }
.degree-sidebar dd { font-size: .86rem; overflow-wrap: anywhere; }
.degree-sidebar .button { font-size: .85rem; }
.degree-sidebar .text-link { font-size: .8rem; line-height: 1.6; }
.related-program-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.related-program-grid a:hover { border-color: #238471; background: #f7fbf8; }
.salary-basis { margin: 0 0 24px; padding: 20px; border-left: 3px solid #238471; border-radius: 10px; background: var(--mint-soft); font-size: .88rem; }
.salary-basis strong { display: block; color: var(--navy); margin-bottom: 7px; }
@media (min-width: 981px) {
  .university-layout .evidence-card { top: 160px; max-height: calc(100dvh - 184px); }
}
@media (max-width: 1080px) {
  .site-header { flex-wrap: wrap; gap: 0 20px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding: 14px 0 20px; flex-direction: column; align-items: stretch; gap: 8px; max-height: calc(100dvh - 90px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 12px; }
  .nav-group summary { padding: 10px 12px; }
  .nav-group > div { position: static; width: 100%; box-shadow: none; }
  .program-layout { grid-template-columns: minmax(0,1fr); }
  .degree-sidebar { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .program-hero-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .program-confidence { max-width: none; padding: 22px; }
  .program-confidence strong { font-size: 1.55rem; }
  .program-confidence a { margin-top: 12px; }
  .section-heading > small, .section-heading > span { text-align: left; }
  .headline-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .material-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .program-metric-grid, .related-program-grid { grid-template-columns: minmax(0,1fr); }
  .program-hero .hero-actions { display: grid; grid-template-columns: 1fr; }
  .program-hero .hero-actions .button { width: 100%; }
  .program-hero .breadcrumbs { flex-wrap: wrap; gap: 6px 10px; }
  .program-layout { padding-top: 28px; }
  .program-metric-grid article { min-height: 150px; }
  .degree-chart, .peer-evidence { padding: 20px; }
  .peer-table th, .peer-table td { padding: 12px 10px; }
  .peer-table { font-size: .78rem; }
  .peer-table th:last-child { white-space: normal; }
}
.city-life-section { min-width: 0; }
.climate-overview { padding: 28px; background: #f2f7f3; }
.climate-overview .section-heading { margin-bottom: 22px; }
.climate-overview h3 { font-size: 1.45rem; line-height: 1.35; margin: 8px 0; }
.weather-day-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.weather-day-grid article { padding: 20px; background: #fffefa; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; min-width: 0; }
.weather-day-grid article:only-child { grid-column: 1 / -1; }
.weather-day-grid span { font-size: .76rem; font-weight: 700; color: var(--muted); }
.weather-day-grid strong { font: 2rem Georgia,serif; color: var(--navy); font-variant-numeric: tabular-nums; }
.weather-day-grid small { font-size: .76rem; line-height: 1.5; color: var(--muted); }
.weather-legend { display: flex; flex-wrap: wrap; gap: 14px 25px; margin: 24px 0 0; font-size: .8rem; }
.weather-legend span { display: flex; align-items: center; gap: 8px; }
.weather-legend span::before { content: ''; display: inline-block; width: 24px; border-top: 3px solid #ac572d; }
.weather-legend .weather-low::before { border-top: 3px dashed #146b80; }
.climate-plot-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.climate-overview .climate-chart { min-width: 480px; margin-block: 10px; }
.city-method { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; }
.city-method summary, .city-interest-card summary { color: var(--navy); font-size: .82rem; font-weight: 700; cursor: pointer; padding: 8px 0; }
.city-method p { font-size: .8rem; line-height: 1.75; color: var(--muted); }
.city-method a { text-decoration: underline; text-underline-offset: 3px; }
.weather-table { font-variant-numeric: tabular-nums; }
.weather-table caption { text-align: left; padding: 18px 0 10px; font-size: .8rem; }
.entertainment-overview { margin-top: 32px; }
.entertainment-overview h3 { font-size: 1.6rem; margin: 8px 0; }
.city-section-intro { font-size: .87rem; line-height: 1.75; color: var(--muted); max-width: 65ch; }
.city-interest-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 22px; align-items: start; }
.city-interest-card { min-width: 0; padding: 22px; background: #fffefa; border: 1px solid var(--line); border-radius: 16px; }
.city-interest-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px; }
.city-interest-heading h4 { font-size: .95rem; color: var(--navy); margin: 0; }
.city-interest-heading > span { font-size: .68rem; color: #2c6c5e; background: #e7f1e9; padding: 4px 8px; border-radius: 20px; white-space: nowrap; }
.city-interest-card ul { list-style: none; margin: 16px 0 0; padding: 0; }
.city-interest-card li { font-size: .82rem; line-height: 1.55; padding: 9px 0; border-top: 1px solid #e7ebe6; overflow-wrap: anywhere; }
.city-interest-card details > ul { max-height: 260px; overflow-y: auto; padding-right: 8px; }
.city-interest-card summary { font-size: .75rem; margin-top: 8px; }
.rankings-workspace { padding-top: 32px; padding-bottom: 64px; }
.campus-map-card { border: 1px solid #d4dfdc; border-radius: 18px; overflow: hidden; background: #fff; margin: 24px 0; }
.campus-map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; background: #f6f3ea; }
.campus-map-toolbar small { display: block; margin-top: 6px; color: #54717b; }
.campus-map-layers { display: flex; gap: 8px; flex-wrap: wrap; border: 0; margin: 0; padding: 16px; }
.campus-map-layers legend { padding-top: 14px; font-size: .75rem; }
.campus-map-layers label { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid #dce4df; border-radius: 30px; font-size: .73rem; cursor: pointer; }
.campus-map-layers label:has(input:disabled) { opacity: .45; cursor: default; }
.campus-map-layers input { width: 14px; height: 14px; accent-color: #087d79; }
.campus-map-layers i { width: 8px; height: 8px; border-radius: 50%; background: var(--layer-color,#b96e5f); }
.campus-map-canvas { height: 510px; width: 100%; background: #e8efe8; }
.campus-pin { border: 3px solid #fff; background: #073e4c; color: #6ddab3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: bold 24px Georgia; box-shadow: 0 3px 15px #063e4c55; }
.campus-map-status, .campus-map-card > .fine-print { padding: 10px 18px; margin: 0; font-size: .74rem; }
.map-place-list { padding: 10px 18px 18px; font-size: .8rem; }
.map-place-list ul { max-height: 230px; overflow-y: auto; padding-left: 18px; line-height: 1.8; }
.creative-school-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),1fr)); gap: 16px; }
.creative-school-grid > article { background: #fff; border: 1px solid #d4dfdc; border-radius: 16px; padding: 22px; }
.creative-school-grid h3 { font-size: 1.1rem; margin: 0 0 12px; }
.creative-school-grid p { font-size: .8rem; line-height: 1.7; }
.creative-field { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4ebe7; font-size: .8rem; }
.creative-field ul { padding-left: 16px; line-height: 1.8; }
.creative-field li small { display: block; color: #577078; font-size: .72rem; }
.maplibregl-popup-content { color: #073e4c; border-radius: 12px; padding: 20px; font-size: .85rem; }
@media (max-width: 560px) { .campus-map-canvas { height: 430px; } .campus-map-toolbar { flex-direction: column; align-items: start; } }
.ranking-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; gap: 16px; padding: 24px; background: #fff; border: 1px solid #d4dfdc; border-radius: 18px; }
.ranking-filters label { display: grid; gap: 8px; font-size: .8rem; font-weight: 650; min-width: 0; }
.ranking-filters select, .ranking-filters input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #bbcfc9; border-radius: 8px; background: #fff; color: #073e4c; font: inherit; }
.ranking-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 36px 0 20px; }
.ranking-heading h2 { margin: 8px 0 0; }
.ranking-table-wrap { overflow-x: auto; border: 1px solid #d4dfdc; border-radius: 16px; background: #fff; }
.ranking-table { width: 100%; min-width: 670px; border-collapse: collapse; text-align: left; }
.ranking-table th, .ranking-table td { padding: 20px; vertical-align: top; border-bottom: 1px solid #e2e9e6; }
.ranking-table thead th { background: #edf3f0; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.ranking-table tbody th { width: 40%; font-weight: 600; }
.ranking-table tbody tr:last-child > * { border-bottom: 0; }
.ranking-table tbody tr:hover { background: #faf9f3; }
.ranking-table small { display: block; margin-top: 7px; font-size: .74rem; font-weight: 400; color: #577078; }
.benchmark-basis { margin-top: 10px; max-width: 420px; font-size: .78rem; line-height: 1.55; font-weight: 400; white-space: normal; }
.benchmark-basis summary { color: #087f79; cursor: pointer; }
.benchmark-basis p { font-size: inherit; margin: 8px 0; }
.faith-distribution { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 20px; margin: 16px 0; }
.faith-distribution meter { grid-column: 1 / -1; width: 100%; height: 16px; accent-color: #087f79; }
.faith-distribution meter::-webkit-meter-optimum-value { background: #087f79; border-radius: 8px; }
.faith-distribution meter::-moz-meter-bar { background: #087f79; border-radius: 8px; }
.town-highlights { margin: 24px 0; }
.ranking-evidence { font-size: .78rem; line-height: 1.65; margin-top: 12px; font-weight: 400; }
.ranking-evidence summary { cursor: pointer; color: #087f79; font-weight: 600; }
.ranking-evidence p { font-size: inherit; }
.ranking-evidence ul { padding-left: 18px; max-height: 280px; overflow-y: auto; }
.ranking-evidence li { margin: 8px 0; overflow-wrap: anywhere; }
.ranking-evidence li small { display: block; color: #577078; }
.ranking-grid article { min-width: 0; }
.ranking-grid article > strong { line-height: 1.2; margin: 10px 0; }
.ranking-grid .ranking-evidence strong { font-size: inherit; }
.ranking-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 24px 0; }
.ranking-method { margin-top: 36px; scroll-margin-top: 100px; }
.experience-grid strong small { font-size: .7rem; font-weight: 400; margin-left: 4px; }
@media (max-width: 850px) { .ranking-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ranking-filters { grid-template-columns: 1fr; padding: 18px; } .ranking-heading { align-items: start; flex-direction: column; } .ranking-table th, .ranking-table td { padding: 14px; } }
@media (max-width: 600px) {
  .city-interest-grid { grid-template-columns: minmax(0,1fr); }
  .climate-overview { padding: 18px; }
  .weather-day-grid { gap: 10px; }
  .weather-day-grid article { padding: 14px; }
  .weather-day-grid strong { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
