@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #192c47;
  --muted: #66758a;
  --line: #d8e1eb;
  --paper: #f5f7fb;
  --white: #fff;
  --snu-blue: #003380;
  --snu-mid: #0c4da2;
  --snu-light: #6f95c6;
  --snu-pale: #dce7f5;
  --accent: #b89043;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
.masthead, footer { min-height: 66px; padding: 0 7.5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 11px; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--snu-blue); }
.skip-link { position: absolute; top: -50px; left: 12px; z-index: 3000; padding: 9px 12px; background: var(--snu-blue); color: white; font-size: 12px; }
.skip-link:focus { top: 8px; }
.wordmark, footer span { color: var(--snu-blue); font: 500 11px var(--mono); letter-spacing: .12em; text-decoration: none; }
.edition, .section-index, .eyebrow, .note-number, .detail-kicker, .method-number { font: 400 10px var(--mono); letter-spacing: .13em; }
.edition { color: var(--muted); }
main { max-width: 1440px; margin: auto; }
.hero { min-height: 490px; padding: 82px 11vw 72px; display: grid; grid-template-columns: 1fr 250px; gap: 8vw; align-items: center; background: #edf3fa; }
.eyebrow, .section-index { color: var(--snu-mid); margin: 0 0 20px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 740px; margin-bottom: 22px; font-size: clamp(42px, 6vw, 75px); line-height: 1.16; letter-spacing: -.055em; font-weight: 700; }
.hero h1 em { color: var(--snu-mid); font-style: normal; }
.lede { max-width: 560px; margin-bottom: 25px; color: #4a5e79; font-size: 15px; line-height: 1.9; }
.text-link { color: var(--snu-blue); font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link span { padding-left: 7px; }
.hero-note { padding: 22px 0 0 24px; border-left: 1px solid #b6c6d9; }
.note-number { color: var(--accent); }
.hero-note p { margin: 38px 0 22px; font-size: 17px; line-height: 1.8; font-weight: 600; }
.hero-note strong { color: var(--snu-blue); font: 500 26px var(--mono); letter-spacing: -.06em; }
.note-rule { display: block; width: 36px; border-top: 2px solid var(--accent); margin-bottom: 18px; }
.hero-note small { color: var(--muted); font-size: 10px; line-height: 1.8; }
.strip { padding: 58px 11vw; display: grid; grid-template-columns: 180px 1fr; gap: 5vw; }
.question { background: var(--white); }
.strip h2 { max-width: 900px; margin-bottom: 16px; font-size: clamp(20px, 2.5vw, 29px); line-height: 1.55; letter-spacing: -.03em; }
.strip p:not(.section-index) { max-width: 880px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.metrics { padding: 0 7.5vw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; transform: translateY(-1px); }
.metric-card { min-height: 135px; padding: 21px 24px; display: flex; flex-direction: column; justify-content: space-between; background: #e9eff7; }
.metric-dark { color: var(--white); background: var(--snu-blue); }
.metric-label, .metric-foot { color: var(--muted); font-size: 11px; }
.metric-dark .metric-label, .metric-dark .metric-foot { color: #d4e2f5; }
.metric-card strong { font: 500 29px var(--mono); letter-spacing: -.06em; }
.metric-date { color: var(--snu-mid); }
.metric-foot { font-size: 10px; }
.section-block { padding: 90px 7.5vw 78px; }
.section-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.3vw, 40px); letter-spacing: -.05em; }
.section-description { max-width: 460px; margin-bottom: 1px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.map-toolbar { min-height: 54px; padding: 0 17px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-bottom: 0; background: var(--white); }
.map-toolbar label { font-size: 11px; font-weight: 700; }
select { max-width: 100%; padding: 8px 29px 8px 10px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); font: 11px var(--sans); }
.map-hint { margin-left: auto; color: var(--muted); font-size: 10px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; background: white; border: 1px solid var(--line); }
#map { width: 100%; height: 525px; background: #e6edf6; }
.map-detail { min-height: 100%; padding: 26px 22px; border-left: 1px solid var(--line); }
.detail-kicker { color: var(--accent); }
.map-detail h3 { margin: 32px 0 30px; font-size: 21px; line-height: 1.5; }
.detail-value { padding: 13px 0; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); }
.detail-value span { color: var(--muted); font-size: 10px; }
.detail-value strong { font: 500 19px var(--mono); }
.detail-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.legend { display: flex; align-items: center; gap: 8px; padding: 15px 0 7px; color: var(--muted); font: 9px var(--mono); }
.legend-swatch { display: inline-block; width: 22px; height: 10px; }
.map-source { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.chart-section { padding-top: 60px; background: #edf2f8; }
.ranking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-card { min-width: 0; padding: 24px; background: var(--white); border: 1px solid var(--line); }
.chart-title { margin-bottom: 20px; display: flex; align-items: baseline; gap: 12px; }
.chart-title span { color: var(--snu-mid); font: 10px var(--mono); letter-spacing: .1em; }
.chart-title-low span { color: var(--accent); }
.chart-title h3 { margin: 0; font-size: 15px; }
.bar-row { min-height: 28px; display: grid; grid-template-columns: minmax(70px, 1fr) 2fr 48px; align-items: center; gap: 8px; }
.bar-name { overflow: hidden; color: #465a61; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; background: #edf1ef; }
.bar-fill { height: 100%; background: var(--snu-mid); }
.bar-fill.low { background: var(--accent); }
.bar-value { text-align: right; font: 9px var(--mono); }
.scatter-card { margin-top: 16px; }
.chart-caption { max-width: 620px; margin: -7px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.scatter-card { position: relative; }
.scatter-chart { position: relative; }
.scatter-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.axis-label { fill: #65748b; font: 10px var(--sans); }
.axis-line { stroke: #8c9bb0; stroke-width: 1; }
.chart-grid { fill: none; stroke: #e5eaf1; stroke-width: 1; }
.reference-line { fill: none; stroke: var(--snu-mid); stroke-width: 1.5; stroke-dasharray: 6 4; }
.median-line { fill: none; stroke: #9eabc0; stroke-width: 1; stroke-dasharray: 3 5; }
.reference-label { fill: var(--snu-blue); font: 10px var(--sans); font-weight: 600; }
.scatter-point { fill-opacity: .78; stroke: white; stroke-width: 1.2; transition: r .12s, fill-opacity .12s; }
.scatter-point:hover, .scatter-point.is-hovered { fill-opacity: 1; stroke: var(--accent); stroke-width: 2.5; r: 7; }
.chart-tooltip { position: absolute; z-index: 20; max-width: 285px; padding: 9px 12px; border: 1px solid #d5deeb; background: #fff; color: var(--ink); box-shadow: 0 5px 18px #192c4720; font-size: 10px; line-height: 1.7; pointer-events: none; }
.chart-tooltip[hidden] { display: none; }
.association-summary { margin: -4px 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.association-summary > span:not(.association-note) { padding: 7px 10px; background: #edf3fa; color: #53647b; font: 10px var(--mono); }
.association-summary strong { color: var(--snu-blue); font-size: 13px; }
.association-note { color: var(--muted); font-size: 10px; }
.scatter-legend { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 11px 16px; color: var(--muted); }
.scatter-legend-item { display: inline-flex; align-items: center; gap: 6px; font: 10px var(--mono); }
.scatter-legend-item i { width: 10px; height: 10px; border: 1px solid #ffffff; outline: 1px solid #ccd6e3; border-radius: 50%; }
.interpretation { background: #092957; color: white; }
.interpretation .section-index { color: #adc3e0; }
.interpretation h2 { max-width: 790px; font-size: 25px; }
.interpretation p:not(.section-index) { color: #d2deed; }
.method-section { padding-top: 78px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method-grid article { min-height: 235px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.method-number { color: var(--accent); }
.method-grid h3 { margin: 16px 0 13px; font-size: 16px; }
.method-grid article p:not(.formula) { color: var(--muted); font-size: 11px; line-height: 1.9; }
.formula { min-height: 34px; margin: 0 0 12px; color: var(--snu-blue); font: 12px var(--mono); line-height: 1.6; }
.source-list { padding-left: 16px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.source-list a { color: var(--snu-blue); }
.data-section { padding-top: 68px; background: #edf2f8; }
.source-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: white; }
.source-table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; }
.source-table th, .source-table td { padding: 16px 15px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 10px; line-height: 1.8; }
.source-table thead th { color: var(--snu-blue); background: #e9eff7; font-size: 10px; font-weight: 700; }
.source-table tbody th { width: 17%; color: var(--ink); font-size: 11px; font-weight: 700; }
.source-table tbody tr:last-child th, .source-table tbody tr:last-child td { border-bottom: 0; }
.source-table a { color: var(--snu-blue); font-weight: 600; }
.source-table code { color: var(--snu-blue); font: 10px var(--mono); }
.table-subtitle { color: var(--muted); font-size: 9px; font-weight: 400; }
.reproduction { margin: 18px 0 14px; padding: 22px 24px; display: grid; grid-template-columns: minmax(200px, .7fr) 1.3fr; align-items: center; gap: 24px; background: white; border: 1px solid var(--line); }
.reproduction h3 { margin-bottom: 9px; font-size: 16px; }
.reproduction p:not(.section-index) { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.reproduction .section-index { margin-bottom: 10px; }
.reproduction pre { overflow-x: auto; margin: 0; padding: 15px; background: #f0f4f9; color: #233b5b; font: 9px/1.8 var(--mono); }
.checklist-section { padding-top: 68px; }
.checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.checklist li { min-height: 70px; padding: 14px 0; display: grid; grid-template-columns: 35px minmax(220px, .8fr) minmax(220px, 1.5fr) 58px; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.checklist li > span { color: var(--snu-mid); font: 10px var(--mono); }
.checklist strong { font-size: 11px; }
.checklist em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.6; }
.checklist b { justify-self: end; padding: 5px 8px; color: var(--snu-blue); background: #e5edf8; font-size: 9px; font-weight: 600; }
.data-message { position: fixed; right: 18px; bottom: 18px; z-index: 2000; max-width: 440px; padding: 14px 18px; color: #fff; background: #9c3d2c; box-shadow: 0 4px 20px #172b3933; font-size: 12px; line-height: 1.7; }
footer { min-height: 75px; border-top: 1px solid var(--line); border-bottom: 0; }
footer a { color: var(--muted); font-size: 11px; text-decoration: none; }
.leaflet-tooltip { border: 0; border-radius: 0; box-shadow: 0 2px 8px #172b3922; font-family: var(--sans); }

@media (max-width: 800px) {
  .masthead, footer { padding: 0 5vw; }
  .site-nav { gap: 11px; }
  .site-nav a { font-size: 10px; }
  .hero { min-height: auto; padding: 63px 7vw; grid-template-columns: 1fr; gap: 35px; }
  .hero-note { max-width: 400px; padding-top: 0; }
  .hero-note p { margin: 20px 0 15px; }
  .strip { padding: 40px 7vw; grid-template-columns: 1fr; gap: 10px; }
  .metrics { padding: 0 5vw; grid-template-columns: 1fr 1fr; }
  .section-block { padding: 65px 5vw 55px; }
  .source-table { min-width: 790px; }
  .reproduction { grid-template-columns: 1fr; gap: 14px; }
  .checklist li { grid-template-columns: 30px 1fr 52px; gap: 9px; }
  .checklist em { grid-column: 2; grid-row: 2; }
  .checklist b { grid-column: 3; grid-row: 1 / span 2; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .map-layout { grid-template-columns: 1fr; }
  #map { height: 430px; }
  .map-detail { border-left: 0; border-top: 1px solid var(--line); }
  .map-detail h3 { margin: 16px 0; }
}
@media (max-width: 560px) {
  .masthead { min-height: 58px; flex-wrap: wrap; gap: 5px 8px; padding-top: 8px; padding-bottom: 8px; }
  .wordmark { font-size: 9px; }
  .edition { font-size: 7px; }
  .site-nav { order: 3; width: 100%; justify-content: center; }
  .site-nav a { font-size: 9px; }
  .hero h1 { font-size: 43px; }
  .ranking-grid, .method-grid { grid-template-columns: 1fr; }
  .chart-card { padding: 18px 14px; }
  .map-toolbar { flex-wrap: wrap; padding: 11px; }
  .map-hint { width: 100%; margin-left: 0; }
  .bar-row { grid-template-columns: minmax(70px, 1fr) 1.4fr 42px; }
  .chart-card { overflow: hidden; }
  .scatter-chart svg { min-width: 620px; }
  .scatter-chart { overflow-x: auto; overflow-y: hidden; }
  .association-summary { gap: 6px; }
  .association-note { width: 100%; }
}
