/* Existing visual cascade; purpose-driven motion is defined in styles.css and map.css. */
:root{--ink: #243c35; --text: #41574e; --muted: #68796b; --green: #3c6a4e; --green-dark: #234c3b; --green-pale: #eff3e9; --line: #dfe4d8; --paper: #fffefa; --bg: #f5f4ed;}
html{background: var(--bg); scrollbar-gutter: stable;}
body{display: block; height: auto; min-height: 100dvh; overflow: auto; background: var(--bg);}
body:has(dialog[open]){overflow: hidden;}
[hidden]{display: none !important;}
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible{outline-color: rgb(119, 155, 116);}
.site-header{max-width: 1480px; height: 76px; margin: auto; padding: 0px 32px; gap: 13px; background: transparent;}
.brand-mark{width: 42px; height: 42px; border-radius: 12px; background: rgb(230, 237, 223); color: rgb(52, 91, 64);}
.brand-copy{gap: 22px; align-items: center;}
.brand-copy strong{font-size: 19px; font-weight: 600; letter-spacing: 0.025em;}
.brand-copy > span{border: 0px; padding: 0px; color: rgb(103, 119, 96); font-size: 14px;}
.quiet-button{min-height: 44px; font-size: 15px; color: rgb(82, 104, 77);}
.info-symbol{width: 19px; height: 19px; font-size: 13px;}
.dashboard{display: flex; flex-direction: column; max-width: 1480px; margin: auto; padding: 27px 32px 24px; gap: 24px;}
.overview{flex-direction: row; align-items: center; justify-content: space-between; gap: 32px;}
.page-intro h1{margin: 0px 0px 11px; font-size: 34px; line-height: 1.45; color: rgb(35, 76, 59); font-weight: 700; letter-spacing: 0.015em;}
.home-intro{margin: 0px; color: rgb(98, 116, 93); font-size: 18px; line-height: 1.8;}
.overview-counts{flex: 0 0 330px; padding-left: 30px; border-left: 1px solid rgb(220, 226, 210);}
.counts-caption{margin: 0px 0px 5px; color: rgb(105, 121, 96); font-size: 14px;}
.count-totals{display: flex; align-items: baseline; gap: 25px;}
.count-totals p{display: flex; align-items: baseline; gap: 8px; margin: 0px; white-space: nowrap;}
.count-totals strong{font-size: 36px; color: rgb(52, 94, 61); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums;}
.count-totals span{font-size: 15px; color: rgb(96, 115, 83);}
.count-types{display: flex; flex-wrap: wrap; gap: 17px; margin: 9px 0px 0px; color: rgb(104, 121, 96); font-size: 15px; line-height: 1.7;}
.count-types b{margin-left: 3px; font-weight: 500; color: rgb(71, 103, 67);}
.filter-bar{display: grid; grid-template-columns: minmax(210px, 1.9fr) minmax(105px, 0.8fr) minmax(100px, 0.8fr) minmax(130px, 1.1fr) minmax(135px, 1.1fr) auto; gap: 15px; align-items: end; padding: 18px 22px 20px; border-radius: 14px;}
.filter-field{min-width: 0px; gap: 8px;}
.filter-field > label{margin: 0px; font-size: 15px; color: rgb(92, 112, 85); font-weight: 400; line-height: 1.5;}
.filter-field select, .search-control{height: 48px; font-size: 16px; border-color: rgb(216, 223, 207); background-color: rgb(252, 252, 247); color: rgb(62, 89, 64); border-radius: 8px;}
.filter-field select{padding-left: 12px; padding-right: 30px;}
.search-control{gap: 10px; padding: 0px 13px;}
.search-control input{font-size: 16px; color: rgb(52, 83, 61);}
.search-control input::placeholder{color: rgb(119, 133, 108);}
.search-control svg{stroke: rgb(115, 135, 103);}
.search-control:focus-within{outline: rgb(143, 172, 126) solid 2px; outline-offset: 2px;}
.reset-button{height: 48px; padding: 0px 2px; color: rgb(82, 113, 77); background: transparent; font-size: 15px; text-decoration: underline rgb(184, 199, 171); text-underline-offset: 5px;}
.reset-button:disabled{background: transparent; color: rgb(129, 139, 119); text-decoration: none;}
.reset-button:hover:not(:disabled){background: transparent; color: rgb(36, 86, 55);}
.workspace{display: grid; grid-template-columns: minmax(0px, 1.04fr) minmax(0px, 1fr); gap: 22px; height: 650px; min-height: 0px;}
.map-panel, .school-panel{background: var(--paper); border: 1px solid var(--line); border-radius: 16px; min-height: 0px;}
.map-panel{display: flex; flex-direction: column; isolation: isolate;}
.map-panel-heading{display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 21px 24px 17px; background: var(--paper); flex: 0 0 auto;}
.map-panel-heading h2, .panel-heading h2{margin: 0px; color: rgb(44, 82, 59); font-size: 22px; font-weight: 600; line-height: 1.5;}
.map-panel-heading p, .panel-note{margin: 6px 0px 0px; color: rgb(100, 118, 91); font-size: 15px; line-height: 1.7;}
.back-button{flex: 0 0 auto; min-height: 42px; padding: 8px 11px; border: 1px solid rgb(212, 223, 203); border-radius: 8px; background: rgb(247, 248, 241); color: rgb(65, 101, 59); font-size: 15px;}
.back-button:hover{background: rgb(234, 240, 225);}
.school-map{position: relative; inset: auto; width: 100%; height: auto; flex: 1 1 0%; min-height: 0px;}
.school-map-canvas{border-radius: 0px 0px 15px 15px;}
.map-attribution{margin: 0px; padding: 4px 18px 10px; color: rgb(98, 117, 88); font-size: 12px; line-height: 1.6;}
.map-attribution a, .mini-attribution a, .about-source-note a{color: rgb(65, 109, 64); text-underline-offset: 3px;}
.mini-attribution{margin: 0px 0px 10px; color: rgb(98, 117, 88); font-size: 11px; line-height: 1.7;}
.school-panel{display: flex; flex-direction: column;}
.panel-heading{padding: 21px 24px 17px; align-items: center; gap: 14px; border-bottom: 1px solid rgb(227, 232, 218);}
.result-count{padding: 0px; background: transparent; color: rgb(82, 111, 70); font-size: 18px; font-weight: 500;}
.active-filters{padding: 11px 23px; color: rgb(78, 110, 66); background: rgb(240, 244, 231); border-bottom: 1px solid rgb(227, 232, 218); font-size: 15px; line-height: 1.75;}
.list-tools{display: flex; align-items: center; gap: 14px; padding: 12px 24px;}
.list-tools label{font-size: 15px; color: rgb(102, 121, 94); white-space: nowrap;}
.list-tools select{min-width: 0px; min-height: 40px; max-width: 220px; padding: 4px 10px; border: 1px solid rgb(220, 227, 209); background: rgb(252, 252, 247); color: rgb(77, 103, 70); border-radius: 7px; font-size: 15px;}
.list-columns{display: grid; grid-template-columns: minmax(0px, 1fr) 58px 70px; gap: 10px; margin: 0px 24px; padding: 0px 0px 10px; border-bottom: 1px solid rgb(223, 230, 214); color: rgb(113, 128, 100); font-size: 14px;}
.list-columns span:not(:first-child){text-align: right;}
.school-list{overflow-y: auto; min-height: 0px; padding: 0px 10px; scrollbar-color: rgb(189, 203, 177) transparent;}
.school-row{display: grid; grid-template-columns: minmax(0px, 1fr) 58px 70px; align-items: start; gap: 10px; padding: 18px 14px 19px; border-bottom: 1px solid rgb(230, 234, 220); color: rgb(41, 73, 52);}
.school-row:hover{background: rgb(243, 246, 235);}
.school-row.is-selected{background: rgb(237, 243, 227);}
.school-row.is-selected::before{left: 0px; top: 18px; bottom: 18px; background: rgb(120, 151, 105);}
.school-row-copy{min-width: 0px;}
.school-row-top{align-items: center; gap: 10px;}
.school-row-top > strong{font-size: 21px; font-weight: 600; line-height: 1.5; color: rgb(47, 81, 56); overflow-wrap: anywhere;}
.row-chevron{font-size: 24px; color: rgb(136, 157, 120);}
.school-row-meta{margin-top: 5px; gap: 9px; font-size: 14px; color: rgb(101, 123, 88); line-height: 1.6;}
.school-row .school-type{padding: 0px; color: rgb(101, 123, 88); background: transparent; font-size: 14px;}
.school-row .school-type::before{content: "·"; padding-right: 9px; color: rgb(157, 173, 143);}
.school-row-subline{display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 9px 0px 0px; color: rgb(96, 115, 84); font-size: 16px; line-height: 1.8; white-space: normal; overflow: hidden;}
.row-number{text-align: right; padding-top: 5px; color: rgb(82, 112, 71); font-size: 18px; line-height: 1.5; font-variant-numeric: tabular-nums;}
.list-footnote{flex: 0 0 auto; margin: 0px; padding: 12px 24px 14px; border-top: 1px solid rgb(227, 232, 218); color: rgb(104, 121, 96); font-size: 13px; line-height: 1.75;}
.empty-state{padding: 44px 24px; color: rgb(102, 121, 92); font-size: 16px; line-height: 1.9;}
.empty-state strong{display: block; font-size: 21px; color: rgb(75, 105, 69); margin-bottom: 12px;}
.empty-state button{min-height: 46px; padding: 10px 15px; font-size: 16px; background: rgb(237, 243, 229); color: rgb(73, 110, 62); border-radius: 8px;}
.dashboard-footer{display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0px 1px; color: rgb(107, 121, 97); font-size: 14px; line-height: 1.8;}
.dashboard-footer span:last-child{text-align: right;}
.detail-location-map{height: 155px; margin: 14px 0px 10px; border: 1px solid rgb(220, 228, 210); border-radius: 9px; overflow: hidden; background: rgb(248, 250, 243);}
.detail-location-map svg{width: 100%; height: 100%; display: block;}
.location-note{margin: 10px 0px 0px; color: rgb(98, 118, 87); font-size: 14px; line-height: 1.85;}
.school-website{display: inline-block; margin-top: 13px; color: rgb(53, 101, 62); font-size: 16px; text-decoration-thickness: 1px; text-underline-offset: 4px;}
.website-note{display: block; margin-top: 4px; font-size: 13px; color: rgb(105, 122, 97);}
.review-note{padding: 15px 18px; margin-top: 22px; border-left: 3px solid rgb(148, 170, 126); border-radius: 0px 7px 7px 0px; background: rgb(242, 245, 236); color: rgb(80, 107, 69); font-size: 15px; line-height: 1.85;}
.review-note > p{margin: 0px;}
.review-note > p + p{margin-top: 8px;}
.numeric-review-table{width: 100%; border-collapse: collapse; margin: 0px 0px 16px; font-size: 15px;}
.numeric-review-table th, .numeric-review-table td{text-align: left; border-bottom: 1px solid rgb(223, 230, 216); padding: 10px 9px; vertical-align: top;}
.numeric-review-table th{font-weight: 500; color: rgb(82, 110, 72);}
.numeric-review-table td{color: rgb(86, 110, 78);}
.numeric-review-table caption{text-align: left; margin-bottom: 10px; font-size: 15px; color: rgb(98, 117, 88);}
.disclosure-content a{color: rgb(53, 101, 62); text-underline-offset: 4px;}
.detail-reading-layout{grid-template-rows: auto 1fr; row-gap: 28px;}
.detail-main{grid-area: 1 / 1;}
.detail-side{grid-area: 1 / 2 / span 2;}
.detail-reference{grid-area: 2 / 1; margin-top: 0px; padding-top: 24px;}
@media (max-width: 700px) {
.detail-side{grid-area: 2 / 1;}
.detail-reference{grid-area: 3 / 1;}
}
@media (max-width: 1120px) {
.site-header{padding: 0px 24px;}
.brand-copy > span{display: none;}
.dashboard{padding: 25px 24px; gap: 22px;}
.page-intro h1{font-size: 30px;}
.overview-counts{flex-basis: 300px; padding-left: 24px;}
.filter-bar{grid-template-columns: repeat(4, minmax(0px, 1fr)); gap: 15px;}
.search-field{grid-column: 1 / 4;}
.filter-field:nth-child(2){grid-column: 4;}
.reset-button{justify-self: end;}
.workspace{grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr); gap: 18px; height: 680px;}
.map-panel-heading, .panel-heading{padding: 18px 20px 16px;}
.school-row, .list-columns{grid-template-columns: minmax(0px, 1fr) 45px 59px; gap: 8px;}
}
@media (max-width: 900px) {
.overview{flex-direction: column; align-items: stretch; gap: 22px;}
.overview-counts{flex: 0 0 auto; padding: 16px 0px 0px; border-left: 0px; border-top: 1px solid rgb(220, 226, 210);}
.count-totals strong{font-size: 32px;}
.workspace{display: flex; flex-direction: column; height: auto; gap: 22px;}
.map-panel{flex: 0 0 660px; height: 660px;}
.school-panel{flex: 0 0 670px; height: 670px;}
.dashboard-footer{align-items: flex-start;}
}
@media (max-width: 600px) {
.site-header{height: 70px; padding: 0px 19px; gap: 11px;}
.brand-mark{width: 38px; height: 38px;}
.brand-copy strong{font-size: 18px;}
.quiet-button{font-size: 14px;}
.dashboard{padding: 23px 16px; gap: 21px;}
.page-intro h1{font-size: 29px; line-height: 1.5;}
.home-intro{font-size: 17px;}
.filter-bar{grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 16px 14px; padding: 18px;}
.search-field{grid-column: 1 / -1;}
.filter-field:nth-child(2){grid-column: auto;}
.reset-button{grid-column: 1 / -1; height: 30px;}
.map-panel{flex-basis: 600px; height: 600px;}
.school-panel{flex-basis: 680px; height: 680px;}
.map-panel-heading, .panel-heading{padding: 18px;}
.map-panel-heading h2, .panel-heading h2{font-size: 21px;}
.map-panel-heading p{font-size: 14px;}
.back-button{font-size: 14px; padding: 8px;}
.list-tools{padding: 12px 18px; gap: 12px;}
.list-tools select{font-size: 14px;}
.list-columns{margin: 0px 18px; grid-template-columns: minmax(0px, 1fr) 42px 62px; gap: 7px;}
.school-list{padding: 0px 6px;}
.school-row{padding: 18px 12px; grid-template-columns: minmax(0px, 1fr) 42px 62px; gap: 7px;}
.school-row-top > strong{font-size: 20px;}
.school-row-subline{font-size: 16px;}
.row-number{font-size: 16px;}
.list-footnote{padding: 12px 18px;}
.dashboard-footer{flex-direction: column; gap: 5px;}
.dashboard-footer span:last-child{text-align: left;}
.numeric-review-table{font-size: 14px;}
.numeric-review-table th, .numeric-review-table td{padding: 9px 5px;}
}
