:root {
  --ink: #102a4c;
  --deep: #246da8;
  --deep-2: #4294d2;
  --paper: #f5f9ff;
  --white: #ffffff;
  --muted: #667b96;
  --mist: #e3f2ff;
  --coral: #73bbff;
  --coral-dark: #2679bf;
  --line: rgba(24, 75, 132, .14);
  --soft-line: rgba(255, 255, 255, .14);
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 48%, #ffffff 100%); font-family: "Noto Sans KR", sans-serif; line-height: 1.55; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(61, 141, 245, .48); outline-offset: 3px; }

.site-header { position: sticky; z-index: 50; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 66px; padding: 0 4vw; color: var(--white); background: rgba(35, 96, 151, .94); border-bottom: 1px solid var(--soft-line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--white); background: var(--coral); border-radius: 50% 50% 50% 12%; font: 600 14px "IBM Plex Mono", monospace; transform: rotate(-10deg); }
.brand-mark + span { display: inline-block; }
.site-header nav { display: flex; gap: 27px; color: rgba(255,255,255,.66); font-size: 13px; }
.site-header nav a:hover { color: var(--white); }
.header-action { justify-self: end; padding: 10px 15px; color: var(--deep); background: var(--white); border-radius: 7px; font-size: 12px; font-weight: 700; }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr); min-height: 560px; overflow: hidden; color: var(--white); background: linear-gradient(135deg, #1767aa 0%, #348ed1 58%, #72b9e9 100%); }
.hero-copy { z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 54px 4vw 60px 6vw; }
.hero-kicker, .section-label { margin: 0 0 18px; color: var(--coral); font: 500 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(42px, 4.8vw, 68px); line-height: 1.05; letter-spacing: -.065em; }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-subtitle { max-width: 620px; margin: 22px 0 28px; color: rgba(255,255,255,.76); font-size: 15px; }
.hero-search { max-width: 610px; }
.hero-search > label { display: block; margin-bottom: 9px; color: rgba(255,255,255,.58); font-size: 11px; }
.search-shell { display: flex; padding: 7px; background: var(--white); border-radius: 11px; box-shadow: 0 24px 50px rgba(0,0,0,.2); }
.search-shell input { flex: 1; min-width: 0; padding: 13px 15px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-shell button { padding: 13px 20px; color: var(--white); background: var(--coral); border: 0; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; }
.search-shell button:active { transform: translateY(1px); }
.search-feedback { min-height: 18px; margin: 8px 0 0; color: rgba(255,255,255,.56); font-size: 11px; }
.popular-searches { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 13px; color: rgba(255,255,255,.38); font-size: 11px; }
.popular-searches button { padding: 0 0 2px; color: rgba(255,255,255,.72); background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); cursor: pointer; }

.hero-art { position: relative; min-height: 500px; overflow: hidden; background: radial-gradient(circle at 56% 47%, #c1e3ff 0%, #6ab2e8 42%, #2f79b3 78%); isolation: isolate; }
.hero-art::before { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(93, 179, 241, .16); mix-blend-mode: screen; pointer-events: none; }
.hero-art::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, rgba(32,103,160,.24)); pointer-events: none; }
.hero-art img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(1.14) saturate(.86); mix-blend-mode: normal; }
.data-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(25,83,128,.72); border: 1px solid rgba(255,255,255,.23); border-radius: 8px; backdrop-filter: blur(10px); }
.data-chip span { color: var(--coral); font: 500 9px "IBM Plex Mono", monospace; }
.data-chip b { color: rgba(255,255,255,.82); font-size: 11px; }
.chip-a { top: 22%; left: 8%; }
.chip-b { top: 46%; right: 7%; }
.chip-c { bottom: 20%; left: 14%; }

.fact-rail { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-bottom: 1px solid var(--line); }
.fact-rail div { display: flex; flex-direction: column; gap: 4px; padding: 26px 3vw; border-right: 1px solid var(--line); }
.fact-rail div:last-child { border-right: 0; }
.fact-rail strong { font: 600 21px "IBM Plex Mono", monospace; }
.fact-rail span { color: var(--muted); font-size: 11px; }

.regions, .ranking, .faq { padding: 96px 6vw; }
.standard { padding: 66px 6vw; }
.process { padding: 76px 6vw; }
.district-preview, .districts { padding: 110px 6vw; }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading h2, .standard-intro h2, .ranking h2, .process h2, .faq h2 { margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -.058em; }
.section-heading > p:last-child, .standard-intro > p:last-child, .process-title > p:last-child, .faq > div > p:last-child { max-width: 610px; margin: 20px 0 0; color: var(--muted); font-size: 15px; }

.region-browser { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 28px; padding-top: 20px; border-top: 1px solid var(--ink); }
.region-tabs { grid-column: 1 / -1; display: flex; gap: 6px; }
.region-tabs button { padding: 10px 15px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; cursor: pointer; }
.region-tabs button.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.region-grid button { display: flex; flex-direction: column; align-items: start; min-height: 82px; padding: 15px; text-align: left; background: rgba(255,255,255,.42); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.region-grid button span { margin-top: auto; color: var(--muted); font: 9px "IBM Plex Mono", monospace; }
.region-grid button:hover, .region-grid button.active { background: var(--white); box-shadow: inset 0 -3px var(--coral); }
.region-selection { position: sticky; top: 95px; align-self: start; display: flex; flex-direction: column; min-height: 270px; padding: 26px; color: var(--white); background: var(--deep); border-radius: var(--radius); }
.region-selection > span { color: var(--coral); font: 10px "IBM Plex Mono", monospace; }
.region-selection strong { margin-top: 12px; font-size: 34px; letter-spacing: -.045em; }
.region-selection p { color: rgba(255,255,255,.58); font-size: 12px; }
.region-selection a { align-self: start; margin-top: auto; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 11px; }

.standard { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(480px, 1.28fr); gap: 7vw; color: var(--white); background: linear-gradient(125deg, #2c78b5 0%, #4b98d1 65%, #76b8e5 100%); }
.standard-intro { align-self: start; }
.standard .section-label, .standard .criterion-number, .standard .criterion > strong { color: #e6f5ff; }
.standard .standard-intro > p:last-child { color: rgba(255,255,255,.82); }
.criteria-list { border-top: 1px solid rgba(255,255,255,.35); }
.criterion { display: grid; grid-template-columns: 38px 1fr auto; gap: 15px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--soft-line); }
.criterion-number { color: var(--coral); font: 500 12px "IBM Plex Mono", monospace; }
.criterion h3 { margin: 0 0 4px; font-size: 16px; }
.criterion p { max-width: 620px; margin: 0; color: rgba(255,255,255,.78); font-size: 12px; }
.criterion > strong { color: var(--coral); font: 500 12px "IBM Plex Mono", monospace; white-space: nowrap; }
.cap-note { grid-column: 1 / -1; margin: 12px 0 0; padding: 14px 0 0; color: rgba(255,255,255,.92); border-top: 1px solid rgba(255,255,255,.28); font-size: 13px; }

.ranking { background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%); }
.ranking-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 42px; }
.ranking-meta { display: flex; flex-direction: column; align-items: end; text-align: right; }
.ranking-meta span { padding: 5px 8px; color: var(--coral-dark); background: rgba(223,101,93,.1); border-radius: 5px; font-size: 10px; }
.ranking-meta b { margin-top: 9px; font: 500 13px "IBM Plex Mono", monospace; }
.ranking-meta small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); }
.ranking-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.ranking-table th { padding: 15px 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; text-align: center; }
.ranking-table th:nth-child(2) { text-align: left; }
.ranking-table td { padding: 22px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.ranking-table td:nth-child(2) { min-width: 220px; text-align: left; }
.ranking-table td:nth-child(2) strong { display: block; font-size: 18px; }
.ranking-table td:nth-child(2) small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.clinic-sources { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 7px; }
.clinic-source { display: inline-block; color: var(--coral-dark); border-bottom: 1px solid rgba(199,78,70,.25); font-size: 12px; }
.ranking-table td:nth-child(2) .collected-at { margin-top: 7px; color: var(--muted); font: 400 11px "IBM Plex Mono", monospace; }
.rank-badge { display: inline-grid; place-items: center; width: 36px; height: 36px; color: var(--white); background: var(--ink); border-radius: 50%; font: 500 15px "IBM Plex Mono", monospace; }
tr:first-child .rank-badge { background: var(--coral); }
.evidence-cell { display: flex; min-width: 92px; flex-direction: column; align-items: center; gap: 7px; }
.evidence-value { color: var(--muted); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.point { display: inline-flex; align-items: baseline; justify-content: center; min-width: 54px; padding: 8px 9px; border-radius: 7px; font-family: "IBM Plex Mono", monospace; }
.point b { font-size: 17px; }
.point small { font-size: 11px; }
.point-2 { color: var(--deep); background: var(--mist); }
.point-1 { color: var(--coral-dark); background: rgba(61,141,245,.12); }
.point-0 { color: var(--muted); background: #edf1f0; }
.total-score { white-space: nowrap; font-family: "IBM Plex Mono", monospace; }
.total-score { font-size: 13px; }
.total-score b { color: var(--coral); font-size: 27px; }
.ranking-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 17px; color: var(--muted); font-size: 10px; }
.ranking-legend > span { display: flex; align-items: center; gap: 5px; }
.ranking-legend i { width: 10px; height: 10px; border-radius: 2px; }
.score-full { background: var(--mist); }.score-half { background: rgba(61,141,245,.18); }.score-empty { background: #edf1f6; }
.ranking-legend p { margin: 0 0 0 auto; }

.process { display: block; text-align: center; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%); }
.process-title { position: static; max-width: 690px; margin: 0 auto 34px; }
.process-title > p:last-child { margin-right: auto; margin-left: auto; }
.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 1fr; gap: 16px; min-height: 220px; padding: 24px; text-align: left; background: rgba(255,255,255,.92); border: 1px solid rgba(45,111,190,.15); border-radius: 16px; box-shadow: 0 14px 34px rgba(37,89,145,.08); }
.process-list li > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--white); background: linear-gradient(135deg, #2d7bd0, #69aff4); border-radius: 10px; font: 500 11px "IBM Plex Mono", monospace; }
.process-list h3 { margin: 0 0 7px; font-size: 18px; }
.process-list p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; }

.district-preview { padding: 88px 6vw; background: linear-gradient(145deg, #e9f3ff 0%, #f8fbff 48%, #dfeeff 100%); }
.section-heading.compact { max-width: 800px; }
.district-criteria-key { display: flex; flex-wrap: wrap; gap: 9px 16px; margin: -22px 0 24px; color: var(--muted); font-size: 10px; }
.district-criteria-key span { display: flex; align-items: center; gap: 5px; }
.district-criteria-key b { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px; color: var(--coral-dark); background: var(--mist); border-radius: 5px; font: 600 8px "IBM Plex Mono", monospace; }
.district-cards { display: grid; grid-template-columns: repeat(5, minmax(285px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.district-card { min-width: 285px; background: rgba(255,255,255,.94); border: 1px solid rgba(43,111,188,.16); border-radius: var(--radius); overflow: hidden; box-shadow: 0 15px 36px rgba(45,94,150,.08); }
.district-card header { display: flex; justify-content: space-between; align-items: start; padding: 20px; border-bottom: 1px solid var(--line); }
.district-card header span { color: var(--coral-dark); font: 12px "IBM Plex Mono", monospace; }
.district-card h3 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.04em; }
.district-card header small { color: var(--muted); font-size: 12px; }
.district-card ol { margin: 0; padding: 0 20px; list-style: none; }
.district-card li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 9px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.district-card li b { color: var(--coral-dark); font: 500 13px "IBM Plex Mono", monospace; }
.district-clinic { min-width: 0; }
.district-clinic > span { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mini-criteria { display: flex; gap: 3px; margin-top: 7px; }
.mini-point { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; font: normal 10px "IBM Plex Mono", monospace; }
.mini-point-2 { color: #0a4f9a; background: #d8ebff; }
.mini-point-1 { color: #2768ad; background: #edf5ff; border: 1px solid #d9e9fa; }
.mini-point-0 { color: #9aa9bb; background: #f1f4f8; }
.district-card li em { align-self: center; color: var(--muted); font: normal 11px "IBM Plex Mono", monospace; white-space: nowrap; }
.district-card li em strong { color: var(--coral-dark); font-size: 18px; }
.district-card-footer { display: flex; justify-content: space-between; gap: 10px; padding: 15px 20px; color: var(--muted); font: 12px "IBM Plex Mono", monospace; }
.district-card-footer a { color: var(--coral-dark); border-bottom: 1px solid rgba(28,98,189,.2); }

.faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: 8vw; background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%); }
.faq > div:first-child { position: sticky; top: 105px; align-self: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 44px 1fr 28px; gap: 15px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--coral); font: 500 10px "IBM Plex Mono", monospace; }
.faq summary strong { font-size: 15px; font-weight: 600; }
.faq summary i { font-style: normal; font-size: 20px; transition: transform .2s ease; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { max-width: 760px; margin: -3px 28px 24px 59px; color: var(--muted); font-size: 13px; line-height: 1.85; }

.principles { padding: 82px 6vw; color: var(--white); background: linear-gradient(125deg, #2d78b4 0%, #68aae0 100%); }
.principles h2 { max-width: 800px; margin: 0; font-size: clamp(36px, 4.8vw, 67px); line-height: 1.03; letter-spacing: -.06em; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; border-top: 1px solid rgba(255,255,255,.35); }
.principle-grid p { margin: 0; padding: 23px 22px 0 0; color: rgba(255,255,255,.64); border-right: 1px solid var(--soft-line); font-size: 12px; }
.principle-grid p:not(:first-child) { padding-left: 22px; }

footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 35px; padding: 52px 6vw 28px; background: var(--paper); }
.footer-brand { color: var(--ink); }
.footer-main p, .footer-source, .footer-source span, .footer-source b { font-size: 11px; }
.footer-main p { max-width: 360px; margin: 15px 0 0; color: var(--muted); }
.footer-source span, .footer-contact > span { display: block; margin-bottom: 10px; color: var(--muted); font: 9px "IBM Plex Mono", monospace; }
.footer-source p { margin: 0; font-size: 11px; }
.footer-contact { text-align: right; }
.footer-contact a { padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 12px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 26px; margin-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font: 9px "IBM Plex Mono", monospace; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 46px; }
  .hero-art { min-height: 420px; }
  .region-grid { grid-template-columns: repeat(4, 1fr); }
  .standard, .process, .faq { grid-template-columns: 1fr; }
  .process-title, .faq > div:first-child { position: static; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criteria-list { margin-top: 20px; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid p { min-height: 100px; border-bottom: 1px solid var(--soft-line); }
}

@media (max-width: 760px) {
  .site-header { min-height: 60px; padding: 0 20px; }
  .header-action { padding: 8px 10px; }
  .hero-copy { padding: 46px 22px 50px; }
  .hero h1 { font-size: 42px; }
  .hero-art { min-height: 340px; }
  .hero-art img { object-position: 60% center; }
  .fact-rail { grid-template-columns: repeat(2, 1fr); }
  .fact-rail div:nth-child(2) { border-right: 0; }
  .fact-rail div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .regions, .standard, .ranking, .process, .faq, .district-preview, .principles { padding: 78px 22px; }
  .standard { padding-top: 48px; padding-bottom: 48px; }
  .process, .district-preview, .principles { padding-top: 62px; padding-bottom: 62px; }
  .section-heading h2, .standard-intro h2, .ranking h2, .process h2, .faq h2 { font-size: 38px; }
  .region-browser { grid-template-columns: 1fr; }
  .region-tabs { grid-column: 1; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .region-selection { position: static; min-height: 220px; }
  .criterion { grid-template-columns: 34px 1fr; }
  .criterion > strong { grid-column: 2; }
  .ranking-head { display: block; }
  .ranking-meta { align-items: start; margin-top: 20px; text-align: left; }
  .ranking-legend p { width: 100%; margin-left: 0; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { min-height: 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid p, .principle-grid p:not(:first-child) { min-height: 0; padding: 18px 0; border-right: 0; }
  footer { grid-template-columns: 1fr; padding: 42px 22px 24px; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 39px; }
  .hero-subtitle { font-size: 14px; }
  .search-shell button { padding: 12px; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .data-chip { padding: 7px 9px; }
  .data-chip b { font-size: 9px; }
  .chip-a { left: 4%; }.chip-b { right: 4%; }.chip-c { left: 8%; }
}
