/* Scoped styles: 雲林分校分班資料。避免干擾首頁既有地圖、篩選器與統計卡片。 */
#historical-closures { scroll-margin-top: 5.5rem; }
#historical-closures .closure-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1.2rem 0 1.4rem}
#historical-closures .closure-summary article{background:#fff;border:1px solid #dde7e2;border-radius:14px;padding:1rem 1.15rem;box-shadow:0 4px 20px #0c2d2410}
#historical-closures .closure-summary strong{display:block;color:#1c5146;font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.15;font-variant-numeric:tabular-nums}
#historical-closures .closure-summary span{display:block;margin-top:.3rem;color:#506861;font-size:.82rem}
#historical-closures .closure-filters{background:#fff;border:1px solid #dde7e2;border-radius:14px;padding:1rem;display:grid;grid-template-columns:minmax(180px,2fr) minmax(115px,1fr) minmax(140px,1fr) auto;gap:.8rem;align-items:end}
#historical-closures .closure-filters label{color:#284f48;font-size:.82rem;font-weight:700;display:flex;flex-direction:column;gap:.35rem}
#historical-closures .closure-filters input,#historical-closures .closure-filters select{width:100%;background:#fff;color:#173f36;border:1px solid #cbdad3;border-radius:9px;padding:.63rem .72rem;min-height:42px;font:inherit;font-weight:400}
#historical-closures .closure-filters input:focus-visible,#historical-closures .closure-filters select:focus-visible,#historical-closures button:focus-visible,#historical-closures a:focus-visible{outline:2px solid #176b91;outline-offset:3px}
#historical-closures .closure-filters button{border:1px solid #afccc1;border-radius:9px;background:#edf5f1;color:#1b5146;font:inherit;font-weight:700;padding:.6rem .9rem;min-height:42px;cursor:pointer}
#historical-closures .closure-result-line{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.65rem;margin:1rem 0 .5rem;font-size:.85rem;color:#526f65}
#historical-closures .closure-download{color:#245d7a;font-weight:750;text-decoration:underline;text-underline-offset:3px}
#historical-closures .closure-table-wrap{border-radius:14px;border:1px solid #d6e3da;overflow-x:auto;background:white;box-shadow:0 5px 24px #12382d08}
#historical-closures .closure-table{border-collapse:collapse;width:100%;min-width:760px;font-size:.84rem}
#historical-closures .closure-table thead{background:#e6f1ed;color:#225245}
#historical-closures .closure-table th{text-align:left;white-space:nowrap;font-weight:800;padding:.85rem .8rem;border-bottom:1px solid #c8ddd2}
#historical-closures .closure-table td{padding:.9rem .8rem;vertical-align:top;border-bottom:1px solid #e8efeb;color:#263f37}
#historical-closures .closure-table tbody tr:last-child td{border-bottom:0}
#historical-closures .closure-table tbody tr:hover{background:#f7fbf9}
#historical-closures .closure-ordinal{color:#869990;width:42px}
#historical-closures .closure-name{display:block;color:#183b34;font-size:.91rem}
#historical-closures .closure-name-meta{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.4rem}
#historical-closures .closure-name-meta span{display:inline-block;background:#eff5f0;border:1px solid #e3ece4;padding:.13rem .45rem;border-radius:16px;font-size:.72rem;color:#4b6b5f}
#historical-closures .closure-year-known{font-weight:800;color:#1d5d4c;white-space:nowrap}
#historical-closures .closure-year-missing{font-size:.76rem;color:#795a26;background:#fff5e2;padding:.24rem .45rem;border-radius:20px;white-space:nowrap}
#historical-closures .closure-muted{color:#82918b}
#historical-closures .closure-table td a{display:block;margin-top:.45rem;color:#146b8b;font-weight:650;text-decoration:none}
#historical-closures .closure-table td a:hover{text-decoration:underline}
#historical-closures details summary{cursor:pointer;color:#265a4d;font-weight:750;white-space:nowrap;list-style-position:inside}
#historical-closures .closure-evidence{padding:.6rem .1rem;min-width:190px;max-width:330px;overflow-wrap:anywhere}
#historical-closures .closure-evidence p{margin:.6rem 0 0;white-space:pre-wrap;color:#35574b}
#historical-closures .closure-evidence small{display:block;color:#80928b;margin-top:.5rem;line-height:1.5}
#historical-closures .closure-no-result{background:#fff;border:1px dashed #b8ccc4;border-radius:12px;text-align:center;padding:2rem 1rem;color:#58746b}
#historical-closures .closure-footnote{color:#657e72;font-size:.8rem;margin-top:1rem;line-height:1.7}
@media(max-width:850px){#historical-closures .closure-filters{grid-template-columns:1fr 1fr}#historical-closures .closure-filters label:first-child{grid-column:1/-1}}
@media(max-width:620px){#historical-closures .section-heading{display:block}#historical-closures .section-heading>p{margin-top:1rem}#historical-closures .closure-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}#historical-closures .closure-summary article{padding:.8rem .6rem}#historical-closures .closure-summary span{font-size:.69rem}#historical-closures .closure-filters{grid-template-columns:1fr 1fr}#historical-closures .closure-filters label:first-child{grid-column:1/-1}#historical-closures .closure-filters button{grid-column:1/-1}#historical-closures .closure-table{min-width:0}#historical-closures .closure-table thead{display:none}#historical-closures .closure-table,#historical-closures .closure-table tbody,#historical-closures .closure-table tr,#historical-closures .closure-table td{display:block;width:100%}#historical-closures .closure-table tr{padding:.65rem .85rem;border-bottom:1px solid #dae7df}#historical-closures .closure-table tr:last-child{border:0}#historical-closures .closure-table td{border:0;padding:.29rem 0;display:grid;grid-template-columns:5.6rem minmax(0,1fr);column-gap:.4rem;align-items:start}#historical-closures .closure-table td::before{content:attr(data-label);font-size:.76rem;color:#698277;font-weight:650;padding-top:.14rem}#historical-closures .closure-table td.closure-name-cell{display:block;padding:.5rem 0 .55rem}#historical-closures .closure-table td.closure-name-cell::before{display:none}#historical-closures .closure-table td.closure-ordinal{display:none}#historical-closures .closure-name{font-size:1rem}#historical-closures .closure-evidence{max-width:100%;min-width:0}}

#historical-closures .closure-location-status{display:block;font-size:.72rem;color:#4b6679;margin:.35rem 0 0;font-weight:650}

#historical-closures .closure-type-tag {display:inline-block;padding:.22rem .55rem;background:#edf5ff;color:#23578e;border-radius:18px;font-weight:700;font-size:.8rem;}
#historical-closures .closure-coordinates {display:block;margin-top:.35rem;color:#5a786e;word-break:break-all;font-size:.75rem;}
#historical-closures .closure-footnote strong {color:#405e53;}
#historical-closures .closure-table[hidden] {display:none !important;}
@media(max-width:620px){
  #historical-closures .closure-table tr,
  #historical-closures .closure-table td,
  #historical-closures .closure-table-wrap {box-sizing:border-box;}
}

/* GOOGLE_MAPS_LINK_20261014 */
#historical-closures .closure-google-maps-content{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;min-width:0}
#historical-closures .closure-table td a.closure-gmaps-link{display:inline-flex;align-items:center;justify-content:center;min-height:35px;margin-top:0;padding:.35rem .72rem;border-radius:8px;background:#2563eb;color:#fff;font-weight:700;text-decoration:none;white-space:nowrap}
#historical-closures .closure-table td a.closure-gmaps-link:hover{background:#1d4ed8;text-decoration:none}
#historical-closures .closure-gmaps-note{color:#667b71;line-height:1.45;font-size:.72rem}

/* VERIFIED_SCHOOL_SOURCES_20261014 */
#historical-closures .closure-verified-sources{display:flex;flex-direction:column;gap:.48rem}
#historical-closures .closure-source-item{display:flex;flex-direction:column;align-items:flex-start;gap:.14rem;padding:.52rem .6rem;border:1px solid #d9e6df;border-radius:9px;background:#f8fbf9}
#historical-closures .closure-source-item a{font-weight:650;line-height:1.5;overflow-wrap:anywhere}
#historical-closures .closure-source-item small{font-size:.74rem;color:#536b62}
