.home-page { padding-bottom: env(safe-area-inset-bottom, 0px); }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; border-bottom: 1px solid var(--hairline); }
.home-about { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: none; }
.home-about:hover { color: var(--accent); }
.home-intro { padding-block: 55px 40px; }
.home-eyebrow { margin-bottom: 15px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .035em; }
.home-intro h1 { margin: 0; font-size: clamp(32px, 4.8vw, 54px); line-height: 1.25; letter-spacing: -.05em; }
.home-focus { color: var(--accent); }
.home-phrase { display: inline-block; }
.home-deck { max-width: 780px; margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.8; word-break: keep-all; }
.region-grid .home-favorite { position: absolute; top: 17px; right: 14px; width: 34px; min-height: 34px; padding: 7px; border: 0; border-radius: 6px; background: transparent; }
.region-grid .home-favorite:hover { background: #e8effa; }
.region-grid .home-favorite[aria-pressed="true"] { background: var(--selection); }
.region-grid .region-card-top { padding-right: 0; }
main section.region-section { margin-top: 0; scroll-margin-top: 20px; }
.regions-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; margin-bottom: 16px; }
.regions-heading h2 { font-size: 20px; }
.regions-heading > p { font-size: 12px; color: var(--muted); }
.regions-intro { margin: -4px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.region-choice-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 1100px) {
  .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .region-grid .region-card { padding-inline: 20px; }
  .region-grid .region-card-content { gap: 8px; }
  .region-grid .region-buildings { width: 76px; flex-basis: 76px; }
  .region-grid .region-card h3 { font-size: 25px; }
}
.region-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px 26px 0; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; }
.region-available { border-color: #9eb4d8; color: var(--ink); background: linear-gradient(135deg, #fff 25%, #f1f6ff); transition: border-color 160ms ease, box-shadow 160ms ease; }
.region-available:hover { color: var(--ink); border-color: var(--accent); box-shadow: 0 5px 22px #214d9a10; }
.region-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.region-status { display: inline-flex; align-items: center; gap: 6px; color: #246b5c; font-size: 11px; font-weight: 700; }
.region-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.region-province { color: var(--muted); font-size: 11px; }
.region-card-content { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 16px; padding-block: 27px 25px; }
.region-card-content > div { min-width: 0; }
.region-card h3 { font-size: clamp(24px, 3vw, 29px); line-height: 1.3; letter-spacing: -.04em; }
.region-description { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.region-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.region-sizes span { padding: 3px 8px; border: 1px solid #d4dff0; border-radius: 4px; background: #fff9; color: var(--accent); font-size: 11px; }
.region-buildings { width: 144px; min-width: 72px; height: 126px; flex: 0 1 144px; color: #7b96c0; }
.region-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; border-top: 1px solid #d4dff0; color: var(--accent); font-size: 13px; font-weight: 700; }
.region-arrow { font-size: 23px; line-height: 1; }
.region-actions { justify-content: start; flex-wrap: wrap; gap: 0 20px; padding-block: 10px; }
.region-primary { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 8px 13px; border-radius: 5px; background: var(--accent); color: #fff; text-decoration: none; }
.region-primary:hover { background: #173b7a; color: #fff; }
.region-secondary { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; font-weight: 400; }
.region-latest-report { min-width: 0; padding: 13px 0 16px; border-top: 1px solid #d4dff0; }
.region-latest-report > p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.region-latest-report > a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 44px; margin-top: 5px; color: var(--accent); font-size: 13px; font-weight: 700; line-height: 1.7; text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.region-latest-report > a:hover { text-decoration: underline; }
.region-latest-report > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.district-latest-report { min-width: 0; padding: 12px 0 16px; border-top: 1px solid #d4dff0; }
.district-latest-report a { display: block; min-height: 44px; color: var(--accent); font-size: 12px; line-height: 1.7; text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.district-latest-report a > span { display: block; font-size: 11px; }
.district-latest-report strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; font-size: 12px; font-weight: 500; }
.district-latest-report a:hover strong { text-decoration: underline; }
.district-latest-report > small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.region-expansion { border: 1px solid var(--hairline); border-radius: 10px; background: #f9fafc; }
.region-expansion-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 16px 20px 10px; border-radius: 10px; list-style: none; }
.region-expansion-details > summary::-webkit-details-marker { display: none; }
.region-expansion-details > summary:hover { color: var(--accent); }
.region-expansion-details > summary:focus-visible { outline-offset: -3px; }
.region-expansion-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; word-break: keep-all; }
.region-expansion-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.region-expansion-toggle { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--accent); font-size: 12px; }
.region-expansion-hide { display: none; }
.region-expansion-details[open] .region-expansion-show { display: none; }
.region-expansion-details[open] .region-expansion-hide { display: inline; }
.region-expansion-details[open] .region-expansion-toggle svg { transform: rotate(180deg); }
.region-expansion-content { margin: 4px 20px 0; padding-top: 18px; border-top: 1px solid var(--hairline); }
.region-expansion-groups { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.region-expansion-groups h3 { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.region-expansion-groups ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; padding: 0; list-style: none; font-size: 13px; word-break: keep-all; }
.region-expansion-groups > div:last-child ul { grid-template-columns: minmax(0, 1fr); }
.region-expansion-description { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.region-expansion-notice { padding: 0 20px 16px; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.region-expansion-details[open] + .region-expansion-notice { padding-top: 4px; }
.home-reading { padding-top: 24px; border-top: 1px solid var(--hairline); }
.home-reading h3 { margin-bottom: 18px; font-size: 15px; }
.home-reading ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.home-reading li { display: flex; align-items: start; gap: 12px; }
.home-reading li > span { padding-top: 1px; color: var(--accent); font-size: 12px; font-weight: 700; }
.home-reading strong { font-size: 13px; }
.home-reading p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.region-upcoming { background: #f7f8fa; border-color: var(--hairline); }
.upcoming-status { color: var(--muted); font-weight: 400; }
.region-upcoming h3 { color: #5b6675; }
.region-upcoming .region-card-bottom { padding-block: 14px; color: var(--muted); border-color: var(--hairline); font-size: 12px; font-weight: 400; line-height: 1.8; word-break: keep-all; }
.regions-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.home-guide { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 18px 0; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.home-guide a { color: var(--accent); }
.home-guide-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 21px; height: 21px; border: 1px solid var(--rule); border-radius: 50%; font-size: 12px; font-weight: 700; }
.home-page .site-footer { margin-top: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .home-page .reveal-pending { opacity: 0; transform: translateY(20px); }
  .home-page .reveal-pending:focus-within { opacity: 1; transform: none; }
  .home-page .reveal-entering { animation: home-reveal 500ms cubic-bezier(.2, .65, .3, 1) both; }
  .home-page .reveal-entering[data-reveal-delay="1"] { animation-delay: 70ms; }
  .home-page .reveal-entering[data-reveal-delay="2"] { animation-delay: 140ms; }
}
@keyframes home-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 780px) {
  .home-top { min-height: 74px; }
  .home-intro { padding-block: 35px 30px; }
  .home-deck { font-size: 14px; }
  .region-choice-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .region-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .region-card { padding: 21px 22px 0; }
  .region-card-content { padding-block: 24px; }
  .region-upcoming .region-card-content { padding-block: 19px; }
  .region-upcoming .region-description br { display: none; }
  .region-upcoming .region-card-bottom { min-height: 49px; }
  .region-expansion-details > summary { padding-inline: 16px; }
  .region-expansion-content { margin-inline: 16px; }
  .region-expansion-groups { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .region-expansion-groups > div:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-expansion-notice { padding-inline: 16px; }
  .home-reading { padding-top: 20px; }
  .home-reading ol { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .home-page .reveal-entering[data-reveal-delay] { animation-delay: 0ms; }
}
@media (max-width: 380px) {
  .home-top { gap: 10px; }
  .home-top .site-brand { flex-shrink: 0; gap: 6px; font-size: 16px; white-space: nowrap; }
  .home-top .site-utility { gap: 4px 10px; }
  .home-top .site-saved-link { gap: 4px; font-size: 11px; }
  .home-top .home-about { gap: 4px; font-size: 11px; }
  .region-buildings { width: 90px; height: 100px; flex-basis: 90px; }
  .region-card { padding-inline: 18px; }
  .region-card-top { gap: 6px 8px; }
  .region-province { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .region-available { transition: none; }
  .home-page .reveal-pending, .home-page .reveal-entering { opacity: 1; transform: none; animation: none; }
}
@media print {
  .home-page .reveal-pending, .home-page .reveal-entering { opacity: 1; transform: none; animation: none; }
}

/* Home discovery: compact introduction, geographic filters and direct search. */
.home-page .home-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .85fr); align-items: end; column-gap: 40px; row-gap: 12px; padding-block: 32px 28px; }
.home-page .home-intro .home-eyebrow { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.home-page .home-intro h1 { min-width: 0; font-size: 48px; line-height: 1.22; }
.home-page .home-intro .home-deck { max-width: none; margin: 0 0 3px; font-size: 14px; line-height: 1.85; }
.home-page .home-discovery { gap: 24px; }
.home-page .home-discovery-search { position: relative; min-width: 0; }
.home-page .home-discovery-search > label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.home-page .home-search-field { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 54px; padding: 0 10px 0 15px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.home-page .home-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #214d9a12; }
.home-page .home-search-field > svg { flex: 0 0 22px; color: var(--muted); }
.home-page #home-search { width: 100%; min-width: 0; min-height: 52px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; line-height: 1.5; appearance: none; -webkit-appearance: none; }
.home-page #home-search:focus-visible { outline: none; }
.home-page #home-search::-webkit-search-decoration, .home-page #home-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.home-page #home-search-clear { display: inline-grid; place-items: center; flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 5px; border: 0; border-radius: 5px; color: var(--muted); background: var(--surface); font-size: 12px; }
.home-page .home-search-status { min-height: 20px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.home-page .home-search-results { position: absolute; inset: 100% 0 auto; z-index: 10; max-height: min(360px, 55vh); margin: 4px 0 0; padding: 5px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); box-shadow: 0 12px 32px #1821311a; list-style: none; }
.home-page .home-search-results li + li { border-top: 1px solid var(--hairline); }
.home-page .home-search-results a { display: grid; gap: 3px; min-height: 56px; padding: 10px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.home-page .home-search-results a:hover { background: var(--surface); }
.home-page .home-search-results a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--selection); }
.home-page .home-search-results strong { font-size: 14px; line-height: 1.6; }
.home-page .home-search-results a > span { color: var(--muted); font-size: 11px; line-height: 1.65; }
.home-page .home-discovery-layout { display: grid; grid-template-columns: minmax(300px, 350px) minmax(0, 1fr); align-items: start; gap: 24px; }
.home-page .home-map-panel { min-width: 0; padding: 18px; border: 1px solid var(--hairline); border-radius: 12px; background: #f8faff; }
.home-page .home-map-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.home-page .home-map-heading > p { color: var(--ink); font-size: 13px; font-weight: 700; }
.home-page .home-map-stage { display: grid; place-items: center; min-width: 0; margin-top: 5px; }
.home-page .korea-regions-map { display: block; width: 100%; height: auto; max-height: 430px; overflow: visible; }
.home-page .home-map-stage .map-region { cursor: pointer; }
.home-page .home-map-stage .map-province { fill: #e6eaf0; stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill 140ms ease; }
.home-page .home-map-stage .map-region[data-available="true"] .map-province { fill: #dce8fa; }
.home-page .home-map-stage .map-region:hover .map-province { fill: #d6dfe9; }
.home-page .home-map-stage .map-region[data-available="true"]:hover .map-province { fill: #c6d9f4; }
.home-page .home-map-stage .home-map-label { fill: #687486; stroke: none; font-family: var(--type); font-size: 17px; font-weight: 700; letter-spacing: -.025em; user-select: none; pointer-events: all; }
.home-page .home-map-stage .home-map-count { font-size: 11px; font-weight: 400; letter-spacing: 0; }
.home-page .home-map-stage .map-region[data-available="true"] .home-map-label { fill: #2c538d; }
.home-page .home-map-stage .map-region[aria-pressed="true"] .map-province,
.home-page .home-map-stage .map-region[aria-pressed="true"]:hover .map-province { fill: var(--accent); stroke: var(--accent); }
.home-page .home-map-stage .map-region[aria-pressed="true"] .home-map-label { fill: #fff; }
/* Jeju's label sits below the island, on the light map background. */
.home-page .home-map-stage .map-region[data-map-region="jeju"][aria-pressed="true"] .home-map-label { fill: #2c538d; }
.home-page .home-map-stage .map-region:focus,
.home-page .home-map-stage .map-region:focus-visible { outline: none; }
.home-page .home-map-stage .map-region:focus-visible .map-province,
.home-page .home-map-stage .map-region[aria-pressed="true"]:focus-visible .map-province { stroke: #547db9; stroke-width: 2.2; }
.home-page .home-region-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.home-page .home-region-filters button { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--rule); border-radius: 6px; color: var(--muted); background: var(--paper); font-size: 12px; line-height: 1.5; }
.home-page .home-region-filters button > span:first-child { white-space: nowrap; }
.home-page .home-region-filters button:hover { border-color: #9ab2d6; background: var(--selection); }
.home-page .home-region-filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-page .home-region-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 20px; min-height: 20px; padding: 0 4px; border-radius: 10px; color: #596b85; background: #edf1f7; font-size: 11px; font-weight: 700; }
.home-page .home-region-filters button[aria-pressed="true"] { border-color: var(--accent); color: #fff; background: var(--accent); font-weight: 700; }
.home-page .home-region-filters button[aria-pressed="true"] .home-region-badge { color: #fff; background: #ffffff26; }
.home-page .home-map-caption { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.8; word-break: keep-all; }
.home-page .home-map-source { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.8; word-break: keep-all; }
.home-page .home-map-source a { color: inherit; }
.home-page .home-region-panel { min-width: 0; scroll-margin-top: 20px; }
.home-page .home-region-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; min-height: 30px; margin-bottom: 14px; }
.home-page #home-region-title { min-width: 0; font-size: 20px; line-height: 1.5; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
.home-page #home-region-count { color: var(--muted); font-size: 12px; line-height: 1.8; white-space: nowrap; }
.home-page .home-region-empty { display: grid; place-items: center; min-height: 350px; margin: 0; padding: 34px; border: 1px dashed #cbd6e4; border-radius: 12px; color: var(--muted); background: #f8fafc; font-size: 14px; line-height: 2; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.home-page .home-region-panel .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-page .home-region-panel .region-card { min-width: 0; padding: 18px 18px 0; }
.home-page .home-region-panel .region-card-top { gap: 6px 10px; }
.home-page .home-region-panel .region-province { min-width: 0; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.home-page .home-region-panel .region-card-content { display: block; padding-block: 16px; }
.home-page .home-region-panel .region-card h3 { font-size: 22px; line-height: 1.4; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.home-page .home-region-panel .region-description { margin-top: 8px; font-size: 12px; line-height: 1.8; }
.home-page .home-region-panel .region-sizes { gap: 5px; margin-top: 12px; }
.home-page .home-region-panel .region-sizes span { padding: 3px 6px; font-size: 10px; }
.home-page .home-region-panel .region-buildings { display: none; }
.home-page .home-region-panel .region-latest-report { padding-block: 12px; }
.home-page .home-region-panel .region-latest-report > a { font-size: 12px; line-height: 1.85; }
.home-page .home-region-panel .region-card-bottom { min-height: 54px; }
.home-page .home-region-panel .region-actions { gap: 0 10px; padding-block: 4px; }
.home-page .home-region-panel .region-primary { gap: 12px; min-height: 44px; padding: 8px 11px; font-size: 12px; }
@media (max-width: 999px) {
  .home-page .home-intro { grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr); column-gap: 24px; }
  .home-page .home-intro h1 { font-size: 40px; }
  .home-page .home-intro .home-deck { font-size: 13px; }
  .home-page .home-intro .home-deck br { display: none; }
  .home-page .home-discovery-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-page .home-map-panel { padding: 18px 22px; }
}
@media (max-width: 780px) {
  .home-page .home-intro { grid-template-columns: minmax(0, 1fr); align-items: start; padding-block: 28px 24px; row-gap: 13px; }
  .home-page .home-intro h1 { font-size: clamp(30px, 6vw, 40px); }
  .home-page .home-intro .home-deck { max-width: 600px; margin: 0; font-size: 14px; line-height: 1.85; }
  .home-page .home-discovery { gap: 20px; }
  .home-page .home-search-field { padding-left: 12px; }
  .home-page .home-map-panel { padding: 16px; }
  .home-page .korea-regions-map { max-height: 350px; }
  .home-page .home-region-panel .region-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-page .home-region-panel .region-card { padding: 18px 18px 0; }
  .home-page .home-region-empty { min-height: 150px; padding: 24px; font-size: 13px; }
  .home-page .home-region-heading { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .home-map-stage .map-province { transition: none; }
}
