:root { color-scheme: light; font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif; color: #1e3328; background: #f5f8f2; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #186d43; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 14px; background: white; }
.skip-link:focus { top: 8px; }
.api-connection-status { position: sticky; top: 0; z-index: 1900; margin: 0; padding: 10px 20px; background: #fff3d2; color: #5b420c; text-align: center; font-size: .85rem; font-weight: 700; }
.api-connection-status[hidden] { display: none; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1320px; margin: auto; padding: 18px 32px; }
.studio-link { font-weight: 700; text-decoration: none; }
.studio-link:hover, .footer a:hover, .notice a:hover { text-decoration: underline; }
.pilot-tag { border-radius: 999px; padding: 7px 11px; background: #e0eee3; color: #315c3d; font-size: .83rem; font-weight: 700; white-space: nowrap; }
.layout { max-width: 1320px; margin: auto; padding: 36px 32px 60px; }
.intro { margin-bottom: 34px; }
.eyebrow, .section-label { color: #427354; font-weight: 800; letter-spacing: .12em; font-size: .78rem; margin: 0 0 9px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.055em; line-height: 1.12; margin-bottom: 12px; }
.intro > p:last-child { color: #62766a; font-size: 1.08rem; margin-bottom: 0; }
.content { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.panel, .map-panel, .notice { background: #fff; border: 1px solid #dde8dc; border-radius: 24px; box-shadow: 0 12px 40px #254d2910; }
.panel { padding: 24px; }
.area-form { display: grid; gap: 7px; }
.area-form .section-label { margin-bottom: 0; }
.search-row { display: flex; gap: 7px; }
.search-row input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #cbdccc; border-radius: 12px; background: #fff; color: #1e3328; font: inherit; }
.search-row button { flex: none; padding: 10px 13px; border: 1px solid #245c3b; border-radius: 12px; background: #245c3b; color: #fff; font-weight: 800; }
.area-shortcuts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.area-shortcuts button { padding: 8px 10px; border: 1px solid #d6e3d6; border-radius: 10px; background: #f7faf5; color: #315c3d; font-size: .78rem; font-weight: 700; }
.area-shortcuts #nearby-button { border-color: #3d8155; background: #eaf4ec; color: #185a35; }
.location-search-note { margin: 8px 0 0; color: #718175; font-size: .72rem; line-height: 1.5; }
.area-status { margin: 10px 0 5px; color: #315c3d; font-size: .8rem; line-height: 1.5; }
.area-share { margin: 0 0 7px; color: #718175; font-size: .72rem; line-height: 1.5; }
.area-share a { color: #176a4a; font-weight: 700; }
.search-credit { margin: 0 0 21px; color: #718175; font-size: .72rem; line-height: 1.5; }
.info-disclosure { margin: 8px 0 18px; color: #61756a; font-size: .76rem; }
.info-disclosure summary { cursor: pointer; color: #315c3d; font-weight: 700; }
.info-disclosure .search-credit { margin: 8px 0 0; }
.map-data-details { margin-bottom: 0; }
.map-data-details > summary { display: none; }
.live-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e3ece1; padding-top: 18px; }
.live-heading h2 { font-size: 1rem; margin: 0; }
.live-heading button { padding: 7px 10px; border: 1px solid #bfd9c5; border-radius: 10px; background: #eaf4ec; color: #1f5c3b; font-size: .76rem; font-weight: 800; }
.live-status { margin: 10px 0 5px; color: #4a6252; font-size: .78rem; line-height: 1.55; }
.live-legend { margin: 0 0 21px; color: #718175; font-size: .72rem; line-height: 1.5; }
.nearby-shelters { margin: -4px 0 22px; padding: 14px; border: 1px solid #f0dfc5; border-radius: 14px; background: #fffbf5; }
.nearby-shelters h3 { margin: 0 0 5px; font-size: .95rem; }
.nearby-shelters p { margin: 0 0 10px; color: #6d715f; font-size: .73rem; line-height: 1.5; }
.shelter-origin-tabs { display: flex; gap: 6px; margin: 9px 0; }
.nearby-shelters ol { margin: 0; padding-left: 23px; display: grid; gap: 6px; }
.nearby-shelters li { padding-left: 2px; color: #9a682e; }
.nearby-shelters button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #ebd7b8; border-radius: 9px; background: #fff; color: #3b463b; text-align: left; font-size: .77rem; }
.nearby-shelters button:hover { border-color: #c98539; background: #fff6e9; }
.nearby-shelters button span:last-child { flex: none; color: #865725; font-weight: 800; }
.nearby-shelters .shelter-origin-tabs button { width: auto; padding: 6px 9px; font-size: .72rem; font-weight: 800; }
.nearby-shelters .shelter-origin-tabs button[aria-pressed="true"] { background: #865725; border-color: #865725; color: #fff; }
.nearby-shelters .shelter-origin-tabs button:disabled { cursor: default; opacity: .5; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.panel-heading { scroll-margin-top: 12px; }
.panel h2 { font-size: 1.45rem; letter-spacing: -.04em; margin: 0; }
.locate-button { white-space: nowrap; background: #eaf4ec; color: #1f5c3b; border: 1px solid #bfd9c5; padding: 9px 12px; border-radius: 12px; font-weight: 700; font-size: .82rem; }
.location-status { color: #667a6b; font-size: .8rem; min-height: 34px; margin: 10px 0 8px; }
.distance-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.distance-tabs button { padding: 12px 2px; border: 1px solid #d6e3d6; background: #fff; border-radius: 12px; color: #42604a; font-weight: 800; }
.distance-tabs button[aria-pressed="true"] { background: #245c3b; color: white; border-color: #245c3b; }
.filter-note { color: #718175; font-size: .78rem; line-height: 1.5; margin: 11px 0 17px; }
.walk-drafts { margin: 0 0 20px; padding: 14px; border: 1px solid #dcd3ed; border-radius: 14px; background: #faf8fd; }
.walk-drafts > summary { margin: 0 0 6px; color: #62428a; font-size: .98rem; font-weight: 800; cursor: pointer; }
.walk-drafts p { margin: 0 0 8px; color: #6c617b; font-size: .76rem; line-height: 1.5; }
.walk-draft-list { display: grid; gap: 6px; }
.walk-draft-list button { width: 100%; padding: 9px 10px; text-align: left; border: 1px solid #d8c8e9; border-radius: 9px; background: #fff; color: #5c3b85; font: inherit; font-size: .8rem; font-weight: 800; }
.walk-draft-list button[aria-pressed="true"] { background: #6f4b99; border-color: #6f4b99; color: #fff; }
.walk-draft-detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e4dbee; }
.walk-draft-detail > button { padding: 8px 10px; border: 1px solid #a58abf; border-radius: 8px; background: #fff; color: #5c3b85; font-weight: 800; font-size: .77rem; }
.walk-draft-detail p { margin: 8px 0 5px; }
.walk-draft-detail ol { margin: 0; padding-left: 22px; display: grid; gap: 5px; }
.walk-draft-detail li button { padding: 6px 8px; border: 1px solid #d8c8e9; border-radius: 7px; background: #fff; color: #5c3b85; text-align: left; font: inherit; font-size: .76rem; }
.route-start-status { color: #5f526a; font-size: .78rem; line-height: 1.5; margin: -7px 0 17px; }
.route-start-button { display: block; margin-top: 10px; padding: 8px 10px; border: 1px solid #cbb4d0; border-radius: 9px; background: #f9f3fa; color: #743d70; font-size: .75rem; font-weight: 800; cursor: pointer; }
.route-start-button:disabled { opacity: .65; cursor: wait; }
.route-card .route-geocode-feedback { margin-top: 9px; color: #6b3e35; font-size: .77rem; }
.route-card .route-course-info { margin: 8px 0; color: #52715d; font-size: .76rem; line-height: 1.5; }
.route-card .route-official-note, .route-card .route-source-warning { margin: 8px 0; color: #805126; font-size: .76rem; line-height: 1.5; }
.route-card .route-official-note a, .route-card .route-official-link { color: #743d70; font-weight: 800; text-decoration: underline; }
.route-card .route-official-link { display: inline-block; margin: 3px 0 9px; font-size: .77rem; }
.route-geocode-feedback[hidden] { display: none; }
.route-geocode-feedback a { display: block; width: fit-content; margin-top: 6px; color: #743d70; font-weight: 800; text-decoration: underline; }
.route-line-button { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid #b75b44; border-radius: 9px; background: #fff4ef; color: #9a3f28; font: inherit; font-size: .83rem; font-weight: 800; cursor: pointer; }
.route-line-button:hover, .route-line-button:focus-visible, .route-line-button[aria-pressed="true"] { background: #af4b31; color: #fff; }
.route-line-button:disabled { opacity: .65; cursor: wait; }
.route-list { display: grid; gap: 10px; }
.route-section-title { margin: 4px 0 0; font-size: 1rem; }
.pilot-section-title { margin-top: 17px; padding-top: 17px; border-top: 1px solid #e3ece1; }
.route-source { margin: -5px 0 2px; color: #718175; font-size: .72rem; line-height: 1.5; }
.route-card { width: 100%; text-align: left; border: 1px solid #dae7d9; border-radius: 16px; padding: 16px; background: #fcfefb; color: #1e3328; }
.public-route { cursor: default; }
.public-route:hover { border-color: #dae7d9; }
.route-card:hover, .route-card:focus-visible { border-color: #4c9465; }
.route-card.selected { border: 2px solid #25754a; padding: 15px; background: #f2faf1; }
.public-route > summary { cursor: pointer; list-style: none; }
.public-route > summary::-webkit-details-marker { display: none; }
.public-route > summary::after { content: "⌄"; color: #42604a; font-size: 1.1rem; line-height: 1; }
.public-route[open] > summary::after { transform: rotate(180deg); }
.route-card-detail { padding-top: 4px; }
.route-extra { margin-top: 10px; }
.route-extra > summary { display: none; }
.route-extra-body > :first-child { margin-top: 0; }
.pilot-route-item { display: grid; gap: 5px; }
.pilot-source-link { justify-self: start; margin: 0 0 5px 9px; color: #315c3d; font-size: .75rem; font-weight: 700; }
.route-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.route-card strong { display: block; font-size: 1rem; }
.route-card small { display: block; color: #69806f; margin-top: 6px; }
.route-card p { color: #667a6b; font-size: .8rem; line-height: 1.5; margin: 10px 0 0; }
.distance { font-weight: 900; color: #267047; white-space: nowrap; }
.badge { display: inline-block; margin-top: 12px; background: #fff1d8; color: #825610; font-size: .7rem; font-weight: 800; padding: 5px 8px; border-radius: 7px; }
.empty { padding: 20px; border-radius: 14px; background: #f2f6ee; color: #566b5b; line-height: 1.6; }
.map-panel { padding: 10px; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 740px; min-height: 0; }
.map { width: 100%; height: 100%; min-height: 0; border-radius: 16px; background: #e5eee4; }
.map-caption { display: flex; gap: 9px; flex-wrap: wrap; padding: 13px 9px 7px; color: #718175; font-size: .78rem; }
.map-caption strong { color: #275b3c; }
.map-caption #clear-course-focus { border: 1px solid #bfd9c5; border-radius: 8px; padding: 5px 8px; background: #eaf4ec; color: #1f5c3b; font: inherit; font-weight: 800; cursor: pointer; }
.map-caption #clear-course-focus[hidden] { display: none; }
.map-caption #course-focus-note { flex-basis: 100%; color: #476653; }
.map-caption #course-focus-note[hidden] { display: none; }
.course-line-status { flex-basis: 100%; margin: 0; color: #8c3c29; font-weight: 700; line-height: 1.45; }
.course-line-status a { color: #7c3728; text-decoration: underline; }
.course-line-status[hidden] { display: none; }
.course-jump { display: none; color: #176a4a; font-weight: 800; text-decoration: none; }
.map-actions { flex-basis: 100%; }
.map-actions > summary { display: none; }
.map-actions > #map-caption-text { display: block; margin-top: 4px; }
.map-route-maker { flex-basis: 100%; }
.map-route-maker > summary { display: none; }
.destination-controls { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; padding-top: 7px; border-top: 1px solid #e3ece1; }
.destination-controls > strong { flex-basis: 100%; font-size: .9rem; color: #205e4b; }
.destination-controls button { padding: 7px 10px; border: 1px solid #bfd9c5; border-radius: 9px; background: #eaf4ec; color: #1f5c3b; font-size: .76rem; font-weight: 800; }
.destination-controls button[aria-pressed="true"] { background: #176e72; color: #fff; border-color: #176e72; }
.destination-controls button:disabled { opacity: .55; cursor: not-allowed; }
.travel-mode { display: inline-flex; gap: 5px; }
.destination-controls #walking-route-status { color: #176e72; font-weight: 800; }
.destination-controls .routing-note { color: #6c7d72; font-size: .72rem; }
.destination-controls p { flex-basis: 100%; margin: 0; line-height: 1.45; }
.destination-controls a { color: #225f3d; font-weight: 800; }
.shelter-directions { display: block; margin-top: 8px; padding: 6px 9px; border: 1px solid #b9d4c0; border-radius: 7px; background: #edf6ef; color: #1f5c3b; font: inherit; font-weight: 800; cursor: pointer; }
.map-fallback { padding: 30px; text-align: center; background: #edf2ed; }
.notice { margin-top: 20px; padding: 24px 28px; }
.notice > summary { display: none; }
.notice h2 { font-size: 1.15rem; margin-bottom: 7px; }
.notice p { color: #61756a; line-height: 1.6; margin-bottom: 9px; }
.notice a { color: #225f3d; font-weight: 800; text-decoration: none; }
.footer { border-top: 1px solid #dce7da; color: #65786a; font-size: .84rem; }
.footer div { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
@media (max-width: 900px) { .content { grid-template-columns: 1fr; } .panel > .map-panel { height: 640px; margin: 12px 0 20px; box-shadow: none; } }
@media (max-width: 600px) {
  .topbar, .footer { padding: 14px 16px; }
  .studio-link { font-size: .83rem; }
  .pilot-tag, .intro .eyebrow { display: none; }
  .layout { padding: 18px 12px 36px; }
  .intro { margin-bottom: 18px; }
  h1 { font-size: 2.1rem; }
  .intro > p:last-child { font-size: .93rem; }
  .content { gap: 12px; }
  .panel { padding: 14px; border-radius: 18px; }
  .area-shortcuts button, .search-row button { min-height: 44px; }
  .area-shortcuts button { flex: 1 1 auto; font-size: .82rem; }
  .area-status { margin-bottom: 3px; }
  .area-status, .route-source, .location-status, .live-status, .filter-note, .info-disclosure { font-size: .84rem; line-height: 1.5; }
  .info-disclosure { margin: 8px 0 10px; }
  .info-disclosure summary, .map-data-details > summary { min-height: 40px; padding: 10px 0; }
  .panel > .map-panel { height: auto; grid-template-rows: minmax(310px, 37vh) auto; margin: 8px 0 10px; padding: 7px; border-radius: 16px; }
  .map { border-radius: 11px; }
  .map .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; font-size: 23px; }
  .map-caption { padding: 9px 7px 4px; font-size: .82rem; }
  .course-jump { display: inline; margin-left: auto; }
  .map-actions > summary, .map-data-details > summary { display: block; cursor: pointer; color: #315c3d; font-weight: 700; }
  .map-actions > summary { margin-top: 4px; }
  .map-actions[open] > summary { margin-bottom: 8px; }
  .destination-controls button { min-height: 42px; }
  .map-data-details { margin-bottom: 10px; border-bottom: 1px solid #e3ece1; }
  .live-heading { padding-top: 12px; }
  .panel-heading { flex-wrap: wrap; }
  .panel h2 { font-size: 1.25rem; }
  .location-status { min-height: 0; }
  .distance-tabs button { min-height: 48px; }
  .public-route { padding: 12px; }
  .public-route summary { align-items: center; }
  .public-route summary::after { flex: none; }
  .route-card-detail { padding-top: 2px; }
  .route-extra { margin-top: 10px; border-top: 1px solid #e3ece1; padding-top: 9px; }
  .route-extra > summary { display: list-item; width: fit-content; color: #315c3d; font-size: .82rem; font-weight: 800; cursor: pointer; }
  .route-extra-body { padding-top: 4px; }
  .route-card small, .route-card p, .walk-drafts p { font-size: .84rem; line-height: 1.5; }
  .route-start-button { min-height: 44px; }
  .route-line-button { min-height: 44px; }
  .walk-drafts { margin-top: 16px; }
  .walk-drafts:not([open]) > summary { margin-bottom: 0; }
  .map-route-maker > summary { display: list-item; margin: 5px 0; color: #205e4b; font-size: .85rem; font-weight: 800; cursor: pointer; }
  .map-route-maker[open] > summary { margin-bottom: 10px; }
  .map-route-maker .destination-controls > strong { display: none; }
  .notice > summary { display: list-item; color: #315c3d; font-size: .9rem; font-weight: 800; cursor: pointer; }
  .notice[open] > summary { margin-bottom: 12px; }
  .notice { padding: 18px; }
}

/* Roky Studio public social profiles */
nav.roky-social{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;padding:0}nav.roky-social a.roky-social-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:6px 12px;border:1px solid #546778;border-radius:9px;background:#172733;color:#fff;font:600 13px/1.4 system-ui,sans-serif;text-decoration:none;white-space:nowrap;box-sizing:border-box;cursor:pointer}nav.roky-social a.roky-social-link:hover{background:#29465a;border-color:#8badc4}nav.roky-social a.roky-social-link:focus-visible{outline:3px solid #83bfff;outline-offset:3px}
.topbar{flex-wrap:wrap;gap:12px}.topbar .roky-social{margin-left:auto}@media(max-width:600px){.topbar .roky-social{margin-left:0}.topbar .pilot-tag{display:none}}

/* Web bank transfer: keep Play distribution policy separate. */
nav.roky-social a.roky-transfer-link,a.roky-transfer-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;box-sizing:border-box;border:1px solid #a28a12;border-radius:9px;background:#ffe14c;color:#242000;font:600 13px/1.4 system-ui,sans-serif;text-decoration:none;white-space:nowrap}nav.roky-social a.roky-transfer-link:hover,a.roky-transfer-link:hover{background:#ffed91;color:#242000}nav.roky-social a.roky-transfer-link:focus-visible,a.roky-transfer-link:focus-visible{outline:3px solid #2676c4;outline-offset:3px}

/* Roky Studio ebook destination */
nav.roky-social a.roky-ebook-link,a.roky-ebook-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid #849ab8;border-radius:9px;background:#e7efff;color:#17365d;font:600 13px/1.4 system-ui,sans-serif;text-decoration:none;white-space:nowrap}nav.roky-social a.roky-ebook-link:hover,a.roky-ebook-link:hover{background:#cedfff;color:#17365d}nav.roky-social a.roky-ebook-link:focus-visible,a.roky-ebook-link:focus-visible{outline:3px solid #2469bd;outline-offset:3px}
