@font-face {
  font-family: "SUITE";
  src: url("/assets/fonts/SUITE-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "SUITE";
  src: url("/assets/fonts/SUITE-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "SUITE";
  src: url("/assets/fonts/SUITE-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "NeoHyundai";
  src: url("/assets/fonts/NeoHyundai-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #173952;
  --muted: #5c7182;
  --sky: #eaf4fb;
  --paper: #f6f9fb;
  --card: #fff;
  --line: #d7e4ec;
  --blue: #247ca8;
  --blue-dark: #155978;
  --yellow: #f2b544;
  --coral: #df725f;
  --cell-1: #d5ebf6;
  --cell-2: #91c9df;
  --cell-3: #4598bf;
  --cell-4: #155978;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.7 "SUITE",
    system-ui,
    -apple-system,
    "Malgun Gothic",
    sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a {
  color: var(--blue-dark);
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 18px;
  background: var(--card);
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.site-header {
  max-width: 1180px;
  margin: auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "NeoHyundai", "SUITE", sans-serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}
.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a:hover {
  text-decoration: underline;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 0 28px;
}
.intro {
  padding: 64px 0 34px;
  max-width: none;
}
.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.intro h1 {
  font-family: "NeoHyundai", "SUITE", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.17;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
.intro > p:last-child {
  font-size: 16px;
  color: var(--muted);
  max-width: none;
  white-space: nowrap;
}
.map-section,
.meaning,
.coordinate-note,
.source {
  border-top: 1px solid var(--line);
  padding: 42px 0;
}
.map-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}
.map-heading h2,
.meaning h2,
.source h2,
.selection h2 {
  font-family: "NeoHyundai", "SUITE", sans-serif;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.map-provider-note {
  max-width: 610px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.search-wrap {
  position: relative;
  width: min(360px, 100%);
}
.search-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 6px;
}
.search-wrap input {
  width: 100%;
  border: 1px solid #afc4d1;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 13px;
}
.search-results {
  position: absolute;
  z-index: 8;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  max-height: 290px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px #163b5224;
}
.search-results button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  text-align: left;
  font: inherit;
}
.search-results button:last-child {
  border-bottom: 0;
}
.search-results button:hover,
.search-results button:focus-visible {
  background: var(--sky);
}
.search-results small {
  display: block;
  color: var(--muted);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: start;
}
.map-panel,
.selection {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.map-panel {
  position: relative;
  padding: 16px;
}
.map-tools {
  position: absolute;
  z-index: 3;
  top: 26px;
  left: 26px;
  display: flex;
  gap: 5px;
}
.map-tools button {
  min-width: 38px;
  height: 38px;
  border: 1px solid #adc3d0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 700 15px/1 "SUITE", system-ui, sans-serif;
}
.map-tools button:last-child {
  padding: 0 11px;
}
#grid-map {
  display: block;
  width: 100%;
  height: 680px;
  background: #edf7fc;
  border: 1px solid #d7e4ec;
  border-radius: 11px;
  overflow: hidden;
}
#grid-map:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
#grid-map.map-failed {
  min-height: 280px;
  height: 280px;
  background: linear-gradient(180deg, #edf7fc, #f9fbfc);
}
.map-status {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.map-status.error {
  color: #8d2f24;
  font-weight: 700;
}
.legend {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--sky);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}
.legend p {
  margin: 0 0 10px;
}
.legend p strong,
.legend p span {
  display: block;
}
.legend p strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
}
.legend-scale {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.legend-scale span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}
.legend .level-1 {
  background: var(--cell-1);
}
.legend .level-2 {
  background: var(--cell-2);
}
.legend .level-3 {
  background: var(--cell-3);
}
.legend .level-4 {
  background: var(--cell-4);
}
.selection {
  padding: 25px;
  max-height: 760px;
  overflow: auto;
}
.selection h2 {
  font-size: 24px;
}
.selection > p:not(.section-kicker) {
  color: var(--muted);
}
.selection-count {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 750;
}
.selection-regions {
  display: grid;
  gap: 7px;
}
.region-row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.region-row small {
  display: block;
  color: var(--muted);
}
.meaning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.meaning article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
}
.meaning h3 {
  font-family: "NeoHyundai", "SUITE", sans-serif;
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 18px;
}
.meaning article p {
  color: var(--muted);
}
.meaning ul {
  padding-left: 21px;
  margin-bottom: 0;
}
.meaning li {
  margin: 7px 0;
  font-size: 14px;
}
.meaning .shared {
  border-top: 5px solid var(--blue);
}
.meaning .different {
  border-top: 5px solid var(--coral);
}
.coordinate-note-card {
  background: var(--sky);
  border: 1px solid #dbeaf3;
  border-radius: 12px;
  padding: 22px 24px;
  font-size: 14px;
}
.coordinate-note p {
  margin: 0;
}
.coordinate-note p + p {
  margin-top: 10px;
}
.source {
  padding-bottom: 62px;
}
.source p {
  max-width: 830px;
}
.source-date {
  color: var(--muted);
  font-size: 14px;
}
footer {
  max-width: 1180px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 26px 28px 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
footer span {
  margin-right: auto;
}
.load-error {
  padding: 20px;
  color: #8d2f24;
  background: #fff0ed;
  border-radius: 10px;
}
@media (max-width: 820px) {
  .intro > p:last-child {
    white-space: normal;
  }
  .map-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .search-wrap {
    width: 100%;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .selection {
    max-height: none;
  }
  .meaning-grid {
    grid-template-columns: 1fr;
  }
  #grid-map {
    height: 560px;
  }
}
@media (max-width: 520px) {
  .site-header {
    padding: 18px;
  }
  .site-header nav {
    gap: 10px;
    font-size: 12px;
  }
  .site-header nav a:first-child {
    display: none;
  }
  main {
    padding: 0 18px;
  }
  .intro {
    padding-top: 38px;
  }
  .intro > p:last-child {
    font-size: 14px;
  }
  .map-section,
  .meaning,
  .coordinate-note,
  .source {
    padding: 32px 0;
  }
  .map-panel {
    padding: 8px;
  }
  .map-tools {
    top: 16px;
    left: 16px;
  }
  #grid-map {
    height: 500px;
  }
  .selection,
  .meaning article {
    padding: 20px;
  }
  .legend {
    gap: 9px;
    padding-left: 7px;
  }
  .coordinate-note-card {
    padding: 16px;
  }
  footer {
    padding: 24px 18px;
  }
}
@media print {
  .site-header,
  .search-wrap,
  .map-tools,
  .skip,
  footer {
    display: none;
  }
  body {
    background: #fff;
  }
  .intro {
    padding-top: 0;
  }
  .map-layout {
    display: block;
  }
  .map-panel {
    break-inside: avoid;
  }
  .selection {
    margin-top: 15px;
    max-height: none;
  }
  .meaning article {
    break-inside: avoid;
  }
}
