:root {
  color-scheme: light;
  font-family: "Inter", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: #172745;
  background: #f3f6fb;
  --navy: #132750;
  --blue: #154acc;
  --muted: #52617a;
  --line: #dce4f1;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2e74f1; outline-offset: 3px; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 12px; z-index: 1100; transform: translateY(-150%); padding: 12px; background: white; }
.skip:focus { transform: none; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 22px; font-weight: 800; white-space: nowrap; }
.logo b { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px 10px 10px 4px; color: white; background: var(--blue); font-size: 22px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
nav a { color: inherit; text-decoration: none; font-size: 14px; font-weight: 650; }
nav a:hover { text-decoration: underline; }
.intro { padding: 39px 0 29px; color: #fff; background: radial-gradient(ellipse at 93% 30%, #294fa6 0, transparent 54%), linear-gradient(115deg, #102347, #172f66); }
.intro h1 { margin: 0; font-size: clamp(32px, 5vw, 63px); line-height: 1.13; letter-spacing: -.065em; }
.intro p { margin: 15px 0 24px; color: #dce8ff; line-height: 1.55; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, .27fr) minmax(102px, .24fr) auto; align-items: end; gap: 12px; padding: 14px; border-radius: 16px; background: white; color: var(--navy); }
.filters label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.filters input, .filters select { width: 100%; min-width: 0; min-height: 46px; padding: 8px 11px; border: 1px solid #cdd9ed; border-radius: 9px; color: #182a4e; background: #f6f8fc; font-size: 15px; }
.primary { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border: 1px solid var(--blue); border-radius: 9px; padding: 8px 22px; background: var(--blue); color: white; font-weight: 750; text-decoration: none; }
.primary:hover { background: #123ca6; }
.workspace { padding: 23px 0 39px; }
.toolbar { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 14px; }
.toolbar p { flex: 1; margin: 0; color: var(--muted); font-size: 13px; }
.toolbar button, .switcher button, .pagination button, dialog form button { border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy); min-height: 42px; padding: 7px 13px; font-weight: 700; }
.toolbar .comparison { color: var(--blue); border-color: #b6c9f4; white-space: nowrap; }
.toolbar .location { white-space: nowrap; }
.switcher { display: none; }
.explorer { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 18px; align-items: start; }
.list, .map-panel { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.panel-head h2, .regions h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.panel-head p, .source { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.55; }
.result { border-bottom: 1px solid var(--line); }
.result:last-child { border-bottom: 0; }
.result-main { padding: 14px 17px 10px; }
.result-meta, .facts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.fee { background: #edf2ff; color: #234b9a; border-radius: 5px; padding: 3px 7px; font-size: 11px; font-weight: 800; }
.fee.free { background: #e3f6f0; color: #086452; }
.result h3 { margin: 7px 0 3px; overflow-wrap: anywhere; font-size: 17px; }
.result h3 button { border: 0; background: transparent; color: var(--navy); padding: 0; font-weight: 800; text-align: start; }
.result h3 button:hover { text-decoration: underline; }
.result p { margin: 0 0 8px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.facts strong { color: var(--navy); }
.result-actions { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 0 12px 5px; }
.result-actions span, .result-actions button { padding: 4px 5px; color: var(--muted); font-size: 12px; }
.result-actions button { border: 0; min-height: 42px; color: var(--blue); background: transparent; font-weight: 700; }
.result-actions button:hover { text-decoration: underline; }
.result-actions button[aria-pressed="true"] { color: #0d644f; }
.map-panel { position: sticky; top: 16px; }
#map { height: clamp(390px, 64vh, 650px); min-width: 0; border-radius: 0 0 15px 15px; background: #e6edf7; z-index: 0; }
.map-marker { display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 2px 6px #15295160; color: #fff; font-weight: 800; font-size: 14px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 13px; border-top: 1px solid var(--line); font-size: 13px; }
.empty { padding: 20px; color: var(--muted); }
.source { margin: 14px 0 30px; }
.area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.area-grid a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: #fff; text-decoration: none; }
.area-grid a:hover { border-color: #88a7eb; }
.area-grid span { color: var(--muted); font-size: 13px; }
.article { min-height: 68vh; padding-block: 34px 48px; line-height: 1.65; }
.article h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.055em; }
.article p { max-width: 760px; overflow-wrap: anywhere; }
.article h2 { font-size: 21px; }
footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 112px; padding-block: 18px; }
.footer-inner p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
dialog { width: min(660px, calc(100% - 30px)); max-height: calc(100% - 28px); padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-radius: 15px; color: var(--navy); }
dialog::backdrop { background: #0f1e3b91; }
dialog h2 { margin-top: 0; overflow-wrap: anywhere; }
dialog dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
dialog dl div { border-bottom: 1px solid var(--line); padding: 4px 0; min-width: 0; }
dialog dt { color: var(--muted); font-size: 12px; }
dialog dd { margin: 4px 0; overflow-wrap: anywhere; }
dialog form { margin-top: 14px; text-align: end; }
.table-scroll { overflow-x: auto; }
.clear-compare { margin: 0 0 10px; padding: 7px 10px; color: var(--blue); background: #f1f5fc; border: 1px solid var(--line); border-radius: 7px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-scroll th, .table-scroll td { min-width: 86px; padding: 9px; border: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.table-scroll th { background: #f1f5fc; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .top-inner { flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; padding-block: 10px; }
  nav { gap: 10px 14px; }
  nav a { font-size: 13px; }
  .intro { padding-block: 27px 19px; }
  .intro h1 { font-size: clamp(30px, 8vw, 46px); }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 12px; }
  .filters .term, .filters .primary { grid-column: 1 / -1; }
  .workspace { padding-top: 15px; }
  .toolbar { flex-wrap: wrap; gap: 7px 10px; }
  .toolbar p { order: 1; flex-basis: 100%; }
  .toolbar p:empty { display: none; }
  .toolbar .comparison { margin-left: auto; }
  .switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
  .switcher button[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
  .explorer { display: block; }
  .explorer[data-view="list"] .map-panel, .explorer[data-view="map"] .list { display: none; }
  .map-panel { position: static; }
  #map { height: clamp(300px, 55vh, 560px); }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
