/* Existing visual cascade; purpose-driven motion is defined in styles.css and map.css. */
:root{--bg: #f3f6f8; --text: #294253; --muted: #718593; --line: #dce5e9;}
.observatory{background: rgb(243, 246, 248); color: rgb(41, 66, 83);}
.observatory .site-header{background: rgb(255, 255, 255); border-bottom: 1px solid rgb(220, 229, 233); padding: 0px 22px;}
.observatory .brand-copy strong{color: rgb(49, 88, 108);}
.observatory .brand-mark{background: rgb(230, 241, 237); color: rgb(82, 139, 122);}
.observatory .dashboard{grid-template-rows: 54px 25px minmax(0px, 1fr) 16px; gap: 7px; padding: 10px 18px; height: calc(100dvh - 64px);}
.observatory .filter-bar{grid-template-columns: minmax(190px, 1.7fr) repeat(4, minmax(100px, 1fr)) auto; gap: 10px; padding: 5px 10px; background: rgb(255, 255, 255); border: 1px solid rgb(225, 231, 233);}
.observatory .filter-field{gap: 2px;}
.observatory .filter-field > label{font-size: 10px;}
.observatory .filter-field select, .observatory .search-control, .observatory .reset-button{height: 28px; min-height: 28px; font-size: 12px;}
.observatory .search-control input{font-size: 12px;}
.observatory .site-header .count-totals{gap: 20px;}
.observatory .site-header .count-totals strong{font-size: 24px; color: rgb(51, 88, 106);}
.observatory .site-header .count-totals span{font-size: 10px;}
.observatory .site-header .counts-caption{display: none;}
.observatory .site-header .people-review-note{font-size: 8px !important;}
.observatory .workspace{grid-template-columns: minmax(0px, 1.8fr) minmax(360px, 1fr); gap: 14px; min-height: 0px;}
.observatory .map-panel{border: 1px solid rgb(222, 231, 235); background: rgb(239, 245, 247); border-radius: 16px; overflow: hidden;}
#school-map{position: relative; height: 100%; width: 100%; display: block !important;}
#school-map .school-map-svg{position: absolute; inset: 0px; width: 100%; height: 100%; max-height: none; display: block; background: linear-gradient(150deg, rgb(239, 245, 248), rgb(244, 248, 243));}
#school-map .map-location-context, #school-map .map-overview-key, #school-map .map-legend, #school-map .map-county-list{display: none !important;}
#school-map .map-toolbar{position: absolute; top: 10px; right: 12px; z-index: 5; width: auto; display: flex; gap: 6px; padding: 0px; background: none;}
#school-map .map-controls{display: flex; gap: 5px; position: static;}
#school-map .map-controls button{width: 31px; height: 31px; min-width: 31px; padding: 0px; border: 1px solid rgb(216, 227, 231); background: rgba(255, 255, 255, 0.937); color: rgb(69, 101, 116); border-radius: 8px; font-size: 15px;}
#school-map .map-controls button:last-child{width: 45px; min-width: 45px; font-size: 11px;}
.observatory .map-panel-heading{z-index: 6; left: 17px; top: 14px; right: 135px; pointer-events: none;}
.observatory .map-panel-heading button{pointer-events: auto;}
.observatory #back-to-taiwan{background: rgb(255, 255, 255); border: 1px solid rgb(213, 226, 231); color: rgb(69, 109, 128); font-size: 12px; height: 30px; white-space: nowrap; display: block !important;}
.observatory .map-panel-heading h2{color: rgb(53, 86, 108); font-size: 21px;}
.observatory .map-panel-heading p{font-size: 11px;}
#school-map .map-county{stroke: rgb(255, 255, 255); stroke-width: 1.1;}
#school-map .map-county-line{display: none !important;}
#school-map .map-county-label .map-label-name{font-weight: 600; letter-spacing: 0.01em; fill: rgb(52, 83, 103);}
#school-map .map-county-label .map-label-status{display: none;}
#school-map .map-county-label .map-label-count{font-size: 12px; font-weight: 700; fill: rgb(255, 255, 255);}
#school-map .map-inset-box{fill: rgba(255, 255, 255, 0.54); stroke: rgb(214, 226, 232); stroke-width: 1;}
#school-map .map-location-status{font-size: 11px; color: rgb(88, 116, 130); background: rgba(255, 255, 255, 0.875); bottom: 11px; left: 14px; max-width: calc(100% - 28px);}
.observatory .map-data-note{top: auto; bottom: 39px; left: 14px; max-width: calc(100% - 180px); font-size: 9px; line-height: 1.5; background: rgba(255, 255, 255, 0.79); padding: 3px 6px; color: rgb(112, 132, 139); border-radius: 5px;}
.observatory .chart-card{background: rgb(255, 255, 255); border: 1px solid rgb(224, 231, 235); border-radius: 14px;}
.observatory .chart-card h2{color: rgb(53, 84, 106);}
.observatory .search-panel{top: 125px;}
@media (min-width: 1050px) and (max-height: 850px) {
.observatory .dashboard{height: calc(100dvh - 54px); grid-template-rows: 52px 23px minmax(0px, 1fr) 16px; padding: 8px 16px; gap: 6px;}
.observatory .site-header .count-totals{gap: 16px;}
.observatory .site-header .count-totals strong{font-size: 22px;}
.observatory .map-panel-heading h2{font-size: 19px;}
.observatory .search-panel{top: 113px;}
}
@media (max-width: 1049px) {
.observatory .workspace{grid-template-columns: minmax(0px, 1fr) 320px;}
.observatory .filter-bar{grid-template-columns: repeat(4, minmax(0px, 1fr));}
.observatory .dashboard{grid-template-rows: 112px 25px minmax(0px, 1fr) 16px;}
.observatory .site-header .count-totals{gap: 10px;}
.observatory .site-header .count-totals strong{font-size: 19px;}
.observatory .site-header .count-totals span{font-size: 9px;}
.observatory .brand-copy > span{display: none;}
}
#school-map .map-county[data-region="離島"]{stroke: rgb(168, 154, 200); stroke-width: 0.55; fill-opacity: 0.5 !important;}
#school-map .map-marker.is-filtered-out{opacity: 1 !important; cursor: pointer;}
#school-map .map-marker.is-filtered-out .map-dot, #school-map .map-marker.is-filtered-out .map-cluster-count{opacity: 0.25;}
@media (min-width: 1050px) {
.observatory .map-panel-heading #back-to-taiwan{position: absolute; left: 190px; top: 0px; margin: 0px;}
}
.observatory .charts-panel .bar-fill{opacity: 0.82; background: var(--chart-context-color,#4a9bd9) !important;}
.observatory .charts-panel[data-county=""] .bar-item:nth-child(2) .bar-fill{background: rgb(217, 166, 46) !important;}
.observatory .charts-panel[data-county=""] .bar-item:nth-child(3) .bar-fill{background: rgb(217, 103, 78) !important;}
.observatory .charts-panel[data-county=""] .bar-item:nth-child(4) .bar-fill{background: rgb(63, 165, 122) !important;}
.observatory .charts-panel[data-county=""] .bar-item:nth-child(5) .bar-fill{background: rgb(138, 111, 208) !important;}
#school-map .map-county-label .map-label-name{pointer-events: all !important; cursor: pointer;}
#school-map .map-county-label .map-county-hit-area{pointer-events: all;}
