:root {
    color-scheme: light;
    --ink: #202421;
    --muted: #5c635c;
    --paper: #fffefa;
    --edge: #cfd2c8;
    --teal: #665013;
    --amber: #ffd13a;
    --pale: #fff4bd;
    --charcoal: #222723;
    --shadow: 0 12px 36px #171e1926, 0 2px 6px #171e1914;
    /* 네이버 지도와 같은 순서(2026-11-23 사용자: 글꼴만 바꿈). 애플 기기는 시스템 산돌고딕, 그 밖은 자체 보관한 Noto Sans KR(fonts/noto-sans-kr.css). */
    --ui-font: "Apple SD Gothic Neo", "Apple SD Gothic", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif;
    --navigation-height: 62px;
    --tools-height: 53px;
    --gutter: clamp(14px, 3vw, 48px);
}
html, body { width: 100%; height: 100%; margin: 0; }
body { height: 100dvh; display: grid; grid-template: var(--navigation-height) minmax(0, 1fr) / minmax(0, 1fr); background: #f7f7f1; color: var(--ink); font-family: var(--ui-font); }
.atlas-nav { grid-area: 1 / 1; z-index: 3; display: flex; align-items: stretch; gap: clamp(34px, 5vw, 86px); padding: 0 var(--gutter); background: var(--charcoal); color: #fffefa; }
.atlas-wordmark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.atlas-wordmark strong { font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.atlas-brand-icon { position: relative; display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; color: #222723; background: var(--amber); border-radius: 1px; font: 700 23px/1 "Segoe UI Symbol", system-ui, sans-serif; }
.atlas-brand-icon::after { position: absolute; content: ""; inset: auto 4px 4px 4px; height: 3px; border-inline: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .62; }
.atlas-tabs { display: flex; align-items: stretch; gap: clamp(14px, 2vw, 30px); }
.atlas-tabs button { box-sizing: border-box; padding: 2px 3px 0; position: relative; background: transparent; border: 0; color: #c2c7bf; font: 600 14px var(--ui-font); cursor: pointer; white-space: nowrap; }
.atlas-tabs button[aria-selected=true] { color: #fffef6; }
.atlas-tabs button[aria-selected=true]::after { content: ""; position: absolute; height: 3px; bottom: 0; left: 0; right: 0; background: var(--amber); }
.atlas-nav :focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }
#domestic-panel, .intl-panel { grid-area: 2 / 1; min-height: 0; min-width: 0; }
#domestic-panel { position: relative; display: grid; grid-template: var(--tools-height) minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; background: #e7e9e1; }
#domestic-panel[inert] { visibility: hidden; pointer-events: none; }
#map { grid-area: 2 / 1; width: 100%; height: 100%; min-height: 0; min-width: 0; }
/* 축소할 때 타일이 아직 안 온 자리가 카카오 바탕(밝은 격자)으로 하얗게 보였다(2026-11-22 사용자). 위성 사진 평균에 가까운 어두운 색으로,
   일반 지도일 때만 밝게. 카카오가 바탕을 인라인으로 넣으므로 !important. */
#map { background: #1e2723 !important; }
#map[data-base="roadmap"] { background: #ece9e0 !important; }
/* 16:9보다 넓은 화면의 좌우 어둡게(map-controls.js, 2026-11-24 사용자). 지도(#map)를 한 겹으로 묶어 그 위에만 얹고,
   지도 도구·카드는 그 위. --side는 16:9 틀 밖 한쪽 너비. 넓은 축척(레벨 10 이상)에서만 켠다. */
#map { z-index: 0; }
.atlas-wide-shade {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s ease;
    background: linear-gradient(90deg, #081113 0, #081113 calc(var(--side, 0px) - 90px), #08111300 calc(var(--side, 0px) + 70px),
        #08111300 calc(100% - var(--side, 0px) - 70px), #081113 calc(100% - var(--side, 0px) + 90px), #081113 100%);
}
.atlas-wide-shade.is-on { opacity: .94; }
@media (prefers-reduced-motion: reduce) { .atlas-wide-shade { transition: none; } }
/* 내 위치(2026-11-22 사용자: 빨간 원 대신, 노란 핀과 다른 눈에 띄는 색). 하늘색 점 + 흰 테 + 천천히 퍼지는 둘레. 처음 보일 때 깜빡임. */
.atlas-me { position:relative; isolation:isolate; width:16px; height:16px; box-sizing:border-box; border:2.5px solid #fff; border-radius:50%; background:#2fc3ff; box-shadow:0 0 0 1px #0b1518b3, 0 0 14px #2fc3ffcc; pointer-events:none; }
.atlas-me::before { content:""; position:absolute; inset:-2.5px; z-index:-1; border-radius:50%; background:#2fc3ff; animation:atlas-me-halo 2.2s ease-out infinite; }
.atlas-me.is-blinking { animation:atlas-me-blink .33s ease-in-out 4; }
@keyframes atlas-me-halo { from { transform:scale(1); opacity:.5; } to { transform:scale(3.4); opacity:0; } }
@keyframes atlas-me-blink { 0%,100% { opacity:1; transform:scale(1.3); } 50% { opacity:.15; transform:scale(1); } }
/* 내 위치에서 둘레 작품으로 잇는 점선과 끝의 이름(map-controls.js의 drawRays). 화면을 짚거나 끌면 사라진다. */
.atlas-rays { grid-area:2/1; align-self:stretch; position:relative; z-index:1400; min-width:0; min-height:0; overflow:hidden; pointer-events:none; }
.atlas-rays svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.atlas-rays line { stroke:#a6e8ff; stroke-width:2.2; stroke-linecap:round; stroke-dasharray:.1 6.5; filter:drop-shadow(0 0 1.5px #0b1518); }
/* 점선 이름표(2026-11-23 다시 짬): 어두운 반투명 알약에 하늘색 테. 이름(두 줄까지)과 거리. 화면 밖 작품은 선 끝 꺾쇠 옆에 붙는다. */
.atlas-ray-name { position:absolute; display:grid; gap:1px; max-width:116px; box-sizing:border-box; padding:4px 8px 5px; border:1px solid #a6e8ff4d; border-radius:9px; background:#0b1518d1; box-shadow:0 2px 8px #0008; -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); color:#f6f2e4; opacity:0; transform:translateY(3px); transition:opacity .35s ease, transform .35s ease; }
.atlas-ray-name b { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; white-space:pre-line; word-break:keep-all; overflow-wrap:anywhere; font:650 12px/1.28 var(--ui-font); letter-spacing:0; }
.atlas-ray-name small { color:#a6e8ff; font:650 10.5px/1.2 var(--ui-font); font-variant-numeric:tabular-nums; }
.atlas-rays .atlas-ray-arrow { fill:none; stroke:#a6e8ff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 1.5px #0b1518); opacity:0; transition:opacity .3s ease; }
.atlas-rays.is-shown .atlas-ray-name { opacity:1; transform:none; }
/* 이름표는 단추(누르면 그 작품으로, 문제 44). 판은 그대로 누름을 지도에 넘기고 이름표만 받는다. */
button.atlas-ray-name { appearance:none; margin:0; font:inherit; text-align:left; }
.atlas-ray-go { pointer-events:auto; cursor:pointer; }
.atlas-ray-go:focus-visible { outline:2px solid #ffd67b; outline-offset:2px; }
@media (hover:hover) { .atlas-ray-go:hover { border-color:#a6e8ffa6; } }
.atlas-rays.is-shown .atlas-ray-arrow { opacity:1; }
/* 화면 안 작품은 핀 이름 옆에 거리만: 점선과 같은 하늘색 작은 알약(2026-11-23 사용자: 이름이 이미 보이니 이름표를 또 달지 말고). */
.atlas-ray-distance { position:absolute; box-sizing:border-box; padding:1px 6px 2px; border:1px solid #a6e8ff59; border-radius:999px; background:#0b1518c7; color:#a6e8ff; font:650 10.5px/1.25 var(--ui-font); font-variant-numeric:tabular-nums; white-space:nowrap; pointer-events:none; opacity:0; transition:opacity .35s ease; }
.atlas-rays.is-shown .atlas-ray-distance { opacity:1; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-ray-distance { border-color:#0a8cc44d; background:#fffef6e6; color:#0a7aac; }
/* 내 위치를 따라 다시 그릴 때(map-controls.js drawRays의 still)는 나타나는 연출 없이 그 자리에. */
.atlas-rays.is-still .atlas-ray-name, .atlas-rays.is-still .atlas-ray-arrow, .atlas-rays.is-still .atlas-ray-distance { transition:none; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-ray-name { border-color:#0a8cc44d; background:#fffef6e6; box-shadow:0 2px 8px #28312233; color:#182b26; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-ray-name small { color:#0a7aac; }
/* 작품→내 위치 점선의 이름표(2026-11-23): 누를 수 있는 알약. 위 줄은 '내 위치에서', 아래는 거리. 펼치면 교통 시간을 글 줄로. */
.atlas-work-ray { z-index:1450; }
/* 이름표 층은 카드(1990, 폰 2000) 위. 선은 카드 아래 그대로 두고, 펼친 교통 시간만 원에 가리지 않게. */
.atlas-work-tag { z-index:2005; }
.atlas-work-label { margin:0; min-width:0; text-align:left; cursor:pointer; pointer-events:auto; font:inherit; }
.atlas-work-label small { color:#c5d6da; font:600 10.5px/1.2 var(--ui-font); }
.atlas-work-row { display:flex; align-items:center; gap:6px; }
.atlas-work-row b { color:#a6e8ff; font:700 13.5px/1.2 var(--ui-font); font-variant-numeric:tabular-nums; -webkit-line-clamp:1; }
.atlas-work-more { flex:none; width:5px; height:5px; margin-top:-3px; border:solid #a6e8ff; border-width:0 1.6px 1.6px 0; transform:rotate(45deg); transition:transform .2s ease, margin .2s ease; }
.atlas-work-label[aria-expanded=true] .atlas-work-more { margin-top:3px; transform:rotate(-135deg); }
/* 펼치면 '내 위치에서' 줄은 접고, 교통 시간 줄은 한 줄로(2026-11-23 사용자: '대중교통'·'경로 없음'이 두 줄로 꺾였다). */
.atlas-work-label[aria-expanded=true] { max-width:none; }
.atlas-work-label[aria-expanded=true] > small { display:none; }
.atlas-work-label[aria-expanded=true] .atlas-work-times { margin-top:4px; }
.atlas-work-times a > * { white-space:nowrap; }
.atlas-work-label:focus-visible { outline:2px solid #ffd67b; outline-offset:2px; }
.atlas-work-times { display:grid; gap:4px; min-width:96px; margin-top:5px; padding-top:6px; border-top:1px solid #a6e8ff33; color:#c5d6da; font:600 11px/1.3 var(--ui-font); }
.atlas-work-times a { display:flex; align-items:baseline; justify-content:space-between; gap:12px; color:inherit; text-decoration:none; }
.atlas-work-times a b { color:#f6f2e4; font:700 12px/1.3 var(--ui-font); font-variant-numeric:tabular-nums; }
.atlas-work-times a:focus-visible { outline:2px solid #ffd67b; outline-offset:1px; border-radius:3px; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-work-label small, #map[data-base="roadmap"] ~ .atlas-rays .atlas-work-times { color:#41544e; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-work-row b { color:#0a7aac; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-work-more { border-color:#0a7aac; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-work-times { border-color:#0a8cc433; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-work-times a b { color:#182b26; }
#map[data-base="roadmap"] ~ .atlas-rays .atlas-ray-arrow { stroke:#0a8cc4; filter:drop-shadow(0 0 1.5px #fff); }
#map[data-base="roadmap"] ~ .atlas-rays line { stroke:#0a8cc4; filter:drop-shadow(0 0 1.5px #fff); }
/* 내 위치 점선이 있어도 핀 이름은 보인다. 화면 밖 작품 이름표 밑에 깔린 것만 숨긴다(map-controls.js drawRays, 2026-11-23 사용자). */
#map .atlas-pin-name.is-under-ray { visibility:hidden !important; }
@media (prefers-reduced-motion: reduce) { .atlas-me::before, .atlas-me.is-blinking { animation:none; } }
#atlas-map-zoom { grid-area:2/1; align-self:start; justify-self:start; position:relative; z-index:1700; display:flex; box-sizing:border-box; width:max-content; height:46px; border:1px solid #7f8476; border-radius:6px; background:#fffef6; box-shadow:0 1px 4px #28312238; transform:translate(var(--zoom-x,8px),var(--zoom-y,6px)); }
#atlas-map-zoom[hidden] { display:none; }
#atlas-map-zoom button { display:grid; place-items:center; box-sizing:border-box; width:44px; min-height:44px; padding:0; border:0; border-radius:5px; background:transparent; color:#28301f; font:600 21px/1 var(--ui-font); cursor:pointer; touch-action:manipulation; }
#atlas-map-zoom button + button { border-left:1px solid #c5c8b9; }
#atlas-map-zoom button:disabled { color:#93968b; cursor:default; }
#atlas-map-zoom button:focus-visible { outline:2px solid #705400; outline-offset:-3px; }
.atlas-neighbors { grid-area:2/1; align-self:stretch; position:relative; z-index:1500; min-width:0; min-height:0; overflow:hidden; pointer-events:none; }
.atlas-neighbor-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.atlas-neighbors.is-zooming > :not(.atlas-neighbor-back) { visibility:hidden; }
.atlas-neighbor-lines path { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.atlas-neighbor-main { stroke:#edce83; stroke-width:.85; stroke-opacity:.94; filter:drop-shadow(0 0 .65px #17201b); }
.atlas-neighbor-leader { stroke:#c5c9c0; stroke-width:.6; stroke-opacity:.71; stroke-dasharray:1.5 3; filter:drop-shadow(0 0 .5px #17201b91); }
.atlas-neighbor-tag,.atlas-neighbor-back { position:absolute; box-sizing:border-box; min-width:44px; height:44px; pointer-events:auto; touch-action:manipulation; cursor:pointer; }
.atlas-neighbor-tag { display:flex; align-items:center; justify-content:center; padding:0 2px; border:0; background:none; }
.atlas-neighbor-tag > span { display:grid; align-content:center; justify-items:center; width:100%; height:30px; box-sizing:border-box; padding:0 5px; border-radius:5px; background:linear-gradient(100deg,#162023d6,#162023b3); color:#f1f0e7; text-shadow:0 1px 2px #142023; }
.atlas-neighbor-tag strong,.atlas-neighbor-tag small { display:block; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.atlas-neighbor-tag strong { max-width:min(100%,6em); font:500 11px/13px var(--ui-font); }
.atlas-neighbor-tag small { color:#cdcec1; font:400 9px/10px var(--ui-font); font-variant-numeric:tabular-nums; }
.atlas-neighbor-back { left:6px; top:calc(var(--navigation-height) + 6px); padding:0 10px; border:1px solid #677573; border-radius:12px; background:#172326ed; color:#f1eee2; font:600 12px var(--ui-font); }
.atlas-neighbor-tag:focus-visible,.atlas-neighbor-back:focus-visible { outline:2px solid #edce83; outline-offset:-2px; }
.atlas-neighbor-tag:is(:hover,:focus-visible) > span { background:#243031; }
.atlas-pin-name { position:absolute; visibility:hidden; pointer-events:none; width:max-content; max-width:min(9em,42vw); display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; white-space:pre-line; word-break:keep-all; overflow-wrap:anywhere; color:#f4f0e2; text-align:center; font:600 11.5px/1.35 var(--ui-font); letter-spacing:0; text-shadow:0 1px 2px #0b1518,0 0 3px #0b1518,0 0 4px #0b1518; }
.atlas-pin-name[data-placed] { visibility:visible; }
.map_wrap { color: var(--ink); font-family: var(--ui-font); }
.map_wrap [hidden] { display: none !important; }
.map_wrap button, .map_wrap select { font: inherit; }
.map_wrap :focus-visible { outline: 2px solid #795c00; outline-offset: 2px; }
.atlas-map-tools { position: relative; z-index: 2100; grid-area: 1 / 1; display: flex; align-items: center; gap: 6px; padding: 0 var(--gutter); background: #f9f9f3; border-bottom: 1px solid #bbc1b6; }
.atlas-tool { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; min-width: 38px; margin: 0; padding: 7px 11px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #343b34; font: 650 13px/1.15 var(--ui-font) !important; cursor: pointer; white-space: nowrap; }
.atlas-tool svg { display: block; flex: none; width: 17px; height: 17px; }
.atlas-tool[aria-pressed=true], .atlas-tool[data-applied=true], .atlas-tool-menu[open] > summary { background: var(--pale); border-color: #c7ad50; color: #352d13; }
.atlas-tool:disabled { opacity: .57; cursor: default; }
.atlas-tool-menu > summary { list-style: none; }
.atlas-tool-menu > summary::-webkit-details-marker { display: none; }
#atlas-locate { margin-left: 5px; border-left: 1px solid var(--edge); border-top-left-radius: 0; border-bottom-left-radius: 0; }
#atlas-filters-menu { margin-left: auto; }
#atlas-filter-count { border-radius: 50%; min-width: 16px; height: 16px; background: var(--charcoal); color: #fff; text-align: center; font: 650 10px/16px var(--ui-font); }
.atlas-popover { position: absolute; top: calc(100% + 8px); right: var(--gutter); width: min(348px, calc(100% - 16px)); box-sizing: border-box; max-height: calc(100vh - var(--navigation-height) - var(--tools-height) - 18px); max-height: calc(100dvh - var(--navigation-height) - var(--tools-height) - 18px); overflow: auto; overscroll-behavior: contain; padding: 20px; border: 1px solid #aeb4a8; border-radius: 5px; background: var(--paper); box-shadow: var(--shadow); }
.atlas-pane-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.atlas-pane-heading h2 { margin: 0; font: 730 18px/1.35 var(--ui-font); letter-spacing: -.03em; }
.atlas-pane-heading button { background: transparent; color: var(--muted); border: 0; padding: 5px 0 5px 6px; font: 600 12px var(--ui-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.atlas-filter-field, .atlas-switch { display: grid; gap: 5px; margin: 12px 0; color: var(--muted); font: 650 12px/1.4 var(--ui-font); }
.atlas-filter-field select, .atlas-switch select { width: 100%; min-height: 37px; padding: 5px 8px; border: 1px solid var(--edge); border-radius: 3px; background: #fff; color: var(--ink); }
.atlas-popover fieldset { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.atlas-popover legend { margin: 0 0 6px; padding: 0; color: var(--muted); font: 700 12px/1.4 var(--ui-font); }
.atlas-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.atlas-check-grid label { display: flex; align-items: center; gap: 7px; min-height: 33px; cursor: pointer; font: 600 12px/1.4 var(--ui-font); }
.atlas-check-grid input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: #655113; }
.custom_typecontrol, .atlas-key-items { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.custom_typecontrol button, #atlas-close-roadview, .atlas-map-retry, .atlas-detail-retry, .atlas-distance button { border: 1px solid var(--edge); border-radius: 3px; background: var(--paper); padding: 6px 10px; min-height: 33px; color: var(--ink); cursor: pointer; font: 650 12px/1.35 var(--ui-font); }
.custom_typecontrol .selected_btn, .custom_typecontrol [aria-pressed=true] { color: #302b17; background: var(--pale); border-color: #bea744; }
.atlas-key-items { gap: 7px 13px; }
.atlas-key-items span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font: 600 12px/1.4 var(--ui-font); }
.atlas-key-items img { width: 15px; height: 19px; }
.atlas-key-items i { box-sizing: border-box; width: 7px; height: 7px; border: 1px solid var(--atlas-pin-outline,#574319); border-radius: 50%; background: var(--atlas-pin-fill,#f4b900); }
.atlas-score-legend { margin: 8px 0 0; color: var(--muted); font: 600 12px/1.5 var(--ui-font); }
.atlas-card, .atlas-status { box-sizing: border-box; position: absolute; z-index: 1990; border: 1px solid #bbc1b5; border-radius: 4px; background: var(--paper); box-shadow: var(--shadow); }
.atlas-card { right: var(--gutter); bottom: max(38px, env(safe-area-inset-bottom)); width: min(382px, calc(100% - 28px)); max-height: min(74%, 660px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 20px 22px; border-top: 4px solid var(--charcoal); }
.atlas-card[data-award=true] { border-top-color: #d5a507; }
.atlas-status { top: calc(var(--tools-height) + 10px); left: var(--gutter); max-width: min(350px, 82%); padding: 9px 13px; color: var(--muted); font-size: 12px; }
.atlas-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.atlas-kind { display: flex; gap: 6px; align-items: center; margin: 0 0 7px; color: #535b50; font: 700 11px/1.4 var(--ui-font); }
.atlas-kind::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--amber); border: 1px solid #514a30; }
.atlas-card[data-award=true] .atlas-kind::before { content: "★"; font-size: 11px; width: auto; height: auto; border: 0; background: transparent; color: #7c5700; }
.atlas-title { margin: 0; color: var(--ink); overflow-wrap: anywhere; word-break: keep-all; font: 720 25px/1.28 var(--ui-font); letter-spacing: -.035em; }
.atlas-close { width: 34px; height: 34px; flex: none; border-radius: 3px; border: 1px solid var(--edge); color: var(--muted); background: transparent; cursor: pointer; font-size: 17px !important; }
.atlas-address { margin: 12px 0 0; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.atlas-precision { display: inline-block; padding: 3px 7px; margin: 6px 0 0; background: #fff4d6; border: 1px solid #dac88a; border-radius: 2px; font-size: 11px; color: #664910; }
.atlas-distance { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 7px 0 0; color: #525b50; font: 600 13px/1.5 var(--ui-font); font-variant-numeric: tabular-nums; }
.atlas-distance button { padding: 3px 7px; min-height: 29px; }
.atlas-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 13px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--edge); font: 13px/1.5 var(--ui-font); }
.atlas-facts dt { color: var(--muted); }
.atlas-facts dd { margin: 0; overflow-wrap: anywhere; }
.atlas-section { margin-top: 16px; border-top: 1px solid var(--edge); }
.atlas-section h3 { margin: 11px 0 4px; font-size: 12px; color: var(--muted); }
.atlas-link { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.atlas-link + .atlas-link { border-top: 1px solid #e6e8df; }
.atlas-link-tag { flex-shrink: 0; color: var(--teal); font-weight: 750; font-size: 11px; }
.atlas-link-title { flex: 1; }
.atlas-link-arrow { color: var(--muted); }
.atlas-map-label, .atlas-hover { pointer-events: none; border-radius: 3px; background: var(--charcoal); color: #fffefa; box-shadow: 0 2px 8px #11171147; font: 620 12px/1.4 var(--ui-font); }
.atlas-map-label { max-width: 175px; padding: 5px 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.atlas-hover { display: grid; gap: 3px; min-width: 95px; max-width: 225px; padding: 9px 12px; white-space: normal; border-left: 3px solid var(--amber); }
.atlas-hover strong { font-size: 13px; }
.atlas-hover span, .atlas-hover small { color: #d7ddd2; font-size: 11px; }
#map .atlas-map-dots { position: absolute; z-index: -1; display: block; pointer-events: none !important; user-select: none; }
.atlas-project-pin { display:block; box-sizing:border-box; width:32px; height:40px; margin:0; padding:0; border:0; appearance:none; background:transparent url("map-project-pins.svg?v=5e078488cf") no-repeat 0 0 / 288px 40px; cursor:pointer; }
/* 수상작: 네온 그림 대신 핀 머리 오른쪽 위에 별(2026-11-22 사용자). 금색 핀 위에서 보이게 크림색 별에 짙은 테.
   별을 핀 머리 테두리에 겹친다(2026-11-23 사용자: 머리와 떨어져 있어 넓게 보면 따로 떠 보였다). 머리 가운데(22,27)에서 별 가운데까지
   15.6px(테두리와 1px쯤 닿음) → 11.3px(5px쯤 겹침). 줄 수 표시(머리 가운데 ±4px)는 가리지 않는다. */
.atlas-project-pin.atlas-award-pin::after { content:""; position:absolute; left:24px; top:13px; width:13px; height:13px; pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .7l1.55 3.13 3.45.5-2.5 2.44.59 3.44L6 8.59 2.91 10.21l.59-3.44L1 4.33l3.45-.5z' fill='%23fff7da' stroke='%231d231c' stroke-width='1.05' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    filter:drop-shadow(0 1px 1.5px #091511a0); }
.atlas-project-pin:focus-visible { outline:2px solid #493710; outline-offset:-2px; border-radius:6px; }
/* 건물이 아닌 프로젝트의 핀(2026-11-28 사용자: 인테리어·공원·거리는 지도에 띄우되 다른 색 핀, 등급 줄 없음). 금색 핀(색상각 약 43°)을 돌려 장소(공원·거리·마을)는 청록, 인테리어는 남보라.
   줄 없는 칸은 projects.js가 고른다. */
.atlas-project-pin.atlas-kind-place { filter:hue-rotate(125deg) saturate(.95); }
.atlas-project-pin.atlas-kind-interior { filter:hue-rotate(205deg) saturate(.9); }

#roadviewModal { position: absolute; z-index: 2010; overflow: hidden; background: var(--paper); }
#roadview { width: 100%; height: 100%; }
#atlas-close-roadview { position: absolute; z-index: 2; top: 10px; right: 10px; box-shadow: var(--shadow); }
.atlas-map-retry { position: absolute; z-index: 2001; top: calc(var(--tools-height) + 56px); left: var(--gutter); box-shadow: var(--shadow); }
.atlas-detail-retry { margin-top: 12px; }
.atlas-loading { color: var(--muted); font: 12px/1.5 var(--ui-font); }
.atlas-unlocated { pointer-events: auto; margin-top: 9px; border-top: 1px solid var(--edge); font: 12px/1.5 var(--ui-font); }
.atlas-unlocated > summary { width: fit-content; padding: 6px 0 1px; color: var(--teal); cursor: pointer; }
.atlas-unlocated-rows { width: min(275px, 72vw); max-height: min(35vh, 245px); overflow-y: auto; overscroll-behavior: contain; }
.atlas-unlocated-row { padding: 7px 0; border-top: 1px solid var(--edge); }
.atlas-unlocated-row strong, .atlas-unlocated-address { display: block; overflow-wrap: anywhere; }
.atlas-unlocated-address, .atlas-unlocated-help { color: var(--muted); }
.atlas-unlocated-help { margin: 6px 0; }
.atlas-unlocated-row a { display: inline-block; margin-right: 8px; padding: 3px 0; color: var(--teal); }
@media (hover: hover) {
    .atlas-tabs button:hover { color: #fff; }
    .atlas-tool:not(:disabled):not([aria-pressed=true]):hover, .atlas-close:hover, .atlas-distance button:hover, .custom_typecontrol button:hover { background: #e9ece2; }
    .atlas-link:hover .atlas-link-title { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 600px) {
    :root { --navigation-height: 50px; --tools-height: 48px; --gutter: 12px; }
    .atlas-nav { gap: 19px; justify-content: space-between; }
    .atlas-wordmark { gap: 7px; }
    .atlas-wordmark strong { font-size: 17px; }
    .atlas-brand-icon { width: 24px; height: 24px; font-size: 20px; }
    .atlas-tabs { gap: 14px; }
    .atlas-tabs button { font-size: 13px; }
    .atlas-map-tools { gap: 3px; padding-inline: 6px; }
    .atlas-tool { min-height: 40px; padding: 5px 7px; gap: 4px; }
    #atlas-locate { margin-left: 2px; }
    #atlas-filters-toggle > span, #atlas-settings-toggle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .atlas-popover { top: calc(100% + 5px); right: 6px; padding: 15px; }
    .atlas-card { z-index: 2000; left: 6px; right: 6px; bottom: max(6px, env(safe-area-inset-bottom)); width: auto; max-height: 59%; padding: 14px 16px; }
    .atlas-title { font-size: 21px; }
}
@media (max-width: 385px) {
    .atlas-map-tools { gap: 2px; }
    .atlas-tool { padding-inline: 5px; }
    .atlas-tool svg { width: 15px; height: 15px; }
}
@media (max-width: 340px) {
    #atlas-locate svg { display: none; }
}
@media (max-width: 360px) and (max-height: 620px) and (orientation: portrait) {
    .atlas-card { max-height: 62%; padding-top: 8px; }
    .atlas-kind { margin-bottom: 2px; }
}
@media (max-height: 450px) { .atlas-card { max-height: calc(100% - 65px); } }

/* The map fills the domestic tab. Its controls sit above the SDK tiles and apart from the card. */
#domestic-panel { --atlas-pin-fill:#efc86b; --atlas-pin-outline:#252b24; grid-area:1/1/3/2; grid-template-rows:0 minmax(0,1fr); background:#192427; }
body:has(#domestic-panel:not([inert])) .atlas-nav { grid-area:1/1; z-index:2010; align-items:center; gap:clamp(12px,3.7vw,62px); padding-right:68px; color:#fffdf4; background:linear-gradient(180deg,#091316dc,#09131672 67%,transparent); pointer-events:none; }
body:has(#domestic-panel:not([inert])) .atlas-nav > * { pointer-events:auto; }
body:has(#domestic-panel:not([inert])) .atlas-tabs button { min-height:44px; }
body:has(#domestic-panel:not([inert])) .atlas-tabs button[aria-selected=true]::after { left:3px;right:auto;bottom:2px;width:14px;height:2px;background:#efc86b; }
body:has(#domestic-panel:not([inert])) .atlas-brand-icon { width:22px;height:28px;overflow:visible;background:transparent;font-size:0;transform:rotate(40deg); }
body:has(#domestic-panel:not([inert])) .atlas-brand-icon::before,body:has(#domestic-panel:not([inert])) .atlas-brand-icon::after { content:"";position:absolute;inset:1px auto auto 5px;box-sizing:border-box;width:11px;height:16px;border:2.5px solid #efc86b;border-radius:9px; }
body:has(#domestic-panel:not([inert])) .atlas-brand-icon::after { top:10px; }
#atlas-map-tools { grid-area:1/1; position:absolute; z-index:2130; top:5px; right:clamp(8px,3vw,42px); display:block; width:max-content; padding:0; border:0; background:transparent; }
#atlas-settings-toggle { display:grid; place-items:center; width:44px; height:44px; min-width:44px; padding:0; border:1px solid #e5ebd94f; border-radius:50%; background:#172124db; color:#f5f2e8; }
#atlas-settings-toggle svg { width:20px; height:20px; }
#atlas-settings { top:calc(100% + 6px); right:0; width:min(340px,calc(100vw - 24px)); max-height:calc(100dvh - 72px); padding:14px 16px; border:1px solid #465553; border-radius:16px; background:#192527; color:#f5f2e8; box-shadow:0 15px 48px #06101266; }
#atlas-settings .atlas-pane-heading { margin-bottom:8px; padding-bottom:4px; border-color:#e5ebd94f; }
#atlas-settings .atlas-pane-heading button { min-width:44px; min-height:44px; color:#efc86b; }
/* 지금 조건에 맞는 핀 수(2026-11-23 사용자): 제목 바로 옆 작은 알약, 숫자는 금색. 바뀌면 세며 바뀌고 테가 잠깐 밝아진다. */
#atlas-settings .atlas-pane-heading { justify-content:flex-start; gap:10px; }
.atlas-match-count { display:inline-flex; align-items:baseline; gap:2px; margin:0; padding:3px 10px 4px; border:1px solid #f1c95f3d; border-radius:99px; background:#f1c95f12; color:#b9c3bb; font:600 11.5px/1.2 var(--ui-font); white-space:nowrap; transition:border-color .5s ease, background-color .5s ease; }
.atlas-match-count b { color:#f2d697; font:700 15px/1.1 var(--ui-font); font-variant-numeric:tabular-nums; letter-spacing:-.01em; }
.atlas-match-count.is-changed { border-color:#f1c95fa6; background:#f1c95f26; transition:none; }
.atlas-match-live { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.atlas-map-quick { display:flex;flex-wrap:wrap;gap:4px; }
.atlas-map-quick .atlas-period-row + .atlas-period-row { border-top:1px solid #c4cdb42d; }
#atlas-settings .atlas-type-row { flex-wrap:nowrap; gap:8px; padding:2px 0; }
#atlas-type-label { flex:none; white-space:nowrap; }
#atlas-settings .atlas-type-options { flex:none; display:flex; flex-wrap:nowrap; gap:4px; }
#atlas-settings .atlas-type-options button[aria-pressed] {
    display:grid; justify-items:center; align-content:center; gap:4px; width:68px; min-height:66px;
    padding:2px 0; color:#c5cfc7; background:transparent; border:0; font:600 11px/1.3 var(--ui-font); white-space:nowrap;
}
#atlas-settings .atlas-type-options button::before {
    content:""; box-sizing:border-box; display:block; width:64px; height:40px; border:1px solid #9da7998c;
    border-radius:6px; background:#34423b url("map-type-previews.webp") 0 center / 300% 100% no-repeat;
}
#atlas-settings .atlas-type-options #btnRoadmap::before { background-position-x:50%; }
#atlas-settings .atlas-type-options #btnHybrid::before { background-position-x:100%; }
#atlas-settings .atlas-type-row .atlas-type-options button[aria-pressed=true] { color:#f2d697; background:transparent; }
#roadviewModal.active { z-index:2140; }
#atlas-settings .atlas-type-options button[aria-pressed=true]::before { border-color:#f2d086; box-shadow:0 0 0 1px #f2d086; }
/* 지도 종류 그림을 키웠다(2026-11-22 사용자: 지도 선택의 지도 크기를 알맞게 키워). 시안은 48×29. */
/* 지도에 싣는 기준(2026-11-28 사용자): 단추는 설정 창 맨 아래 저작권 오른쪽 빈자리에 작게 둔다(설정에는 설정 기능이 잘 보이고 나머지 안내는 작아도 된다).
   누르면 설정이 닫히고 아래에서 올라오는 창으로 보인다(카카오 저작권 줄은 가리지 않게 28px 띄움). 상 목록은 awards.json에서 채운다. 눌리는 자리는 위아래로 넓혀 둔다. */
#atlas-settings .atlas-criteria-open { margin:-9px 0; padding:9px 0 9px 12px; border:0; background:transparent; color:#9eaaa3; font:10px/1.2 var(--ui-font); text-decoration:underline; text-decoration-color:#9eaaa38c; text-underline-offset:2px; white-space:nowrap; cursor:pointer; touch-action:manipulation; }
.atlas-criteria-open[hidden], .atlas-criteria-sheet[hidden] { display:none; }
#atlas-settings .atlas-criteria-open:focus-visible { outline:2px solid #efc86b; outline-offset:2px; }
.atlas-criteria-sheet { grid-area:2/1; align-self:end; justify-self:center; position:relative; z-index:2125; box-sizing:border-box; width:min(420px, calc(100% - 16px)); max-height:min(84%, 600px); margin:0 0 28px; padding:14px 16px 16px; overflow:auto; border:1px solid #465553; border-radius:16px; background:#192527; color:#f5f2e8; box-shadow:0 15px 48px #06101266; animation:atlas-sheet-up .24s ease-out; }
@keyframes atlas-sheet-up { from { transform:translateY(24px); opacity:0; } to { transform:none; opacity:1; } }
.atlas-criteria-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; padding-bottom:4px; border-bottom:1px solid #e5ebd94f; }
.atlas-criteria-head h2 { margin:0; font:730 15px/1.4 var(--ui-font); letter-spacing:-.03em; }
.atlas-criteria-head button { min-width:44px; min-height:44px; margin:-6px -12px -6px 0; border:0; background:transparent; color:#efc86b; font:400 26px/1 var(--ui-font); cursor:pointer; }
.atlas-criteria-sheet ul { margin:0; padding:0 0 0 16px; color:#c5cfc7; font:13px/1.75 var(--ui-font); word-break:keep-all; }
.atlas-criteria-sheet ul ul { margin:2px 0 0; padding-left:14px; color:#9eaaa3; font-size:11.5px; line-height:1.45; }
.atlas-criteria-sheet ul ul .atlas-criteria-group { list-style:none; margin:5px 0 1px -14px; color:#efc86b; font-size:11px; font-weight:700; letter-spacing:0; }
.atlas-criteria-sheet ul ul .atlas-criteria-group:first-child { margin-top:2px; }
/* 설정 창을 스크롤 없이 한눈에(2026-11-28 사용자): 없어도 알 수 있는 글('지도 종류'·'용도')은 눈에서 빼고(스크린리더용으로 둠), 방문 통계는 맨 아래 작은 한 줄로 합쳐 서명 위에 둔다. */
#atlas-settings #atlas-type-label, #atlas-settings #atlas-use-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#atlas-settings .atlas-use-row { padding:4px 0 6px; gap:4px; }
#atlas-settings #atlas-visit-counts { margin:0; padding:0; border:0; font-size:10.5px; line-height:1.3; }
#atlas-settings #atlas-visit-counts dl { display:flex; flex-wrap:wrap; gap:2px 12px; }
#atlas-settings #atlas-visit-counts dl > div { display:flex; align-items:baseline; gap:4px; padding:0; border:0; }
#atlas-settings #atlas-visit-counts dt { color:#9eaaa3; font-size:10.5px; }
#atlas-settings #atlas-visit-counts dd { padding:0; color:#c5cfc7; font-size:11px; letter-spacing:0; }
#atlas-settings #atlas-visit-counts dd small { font-size:10px; }
#atlas-settings #atlas-visit-counts p { margin:3px 0 0; font-size:10px; }
#atlas-settings .atlas-settings-footer { margin-top:8px; padding-top:8px; gap:5px; }
.atlas-footer-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
/* 설정 아래: 저작권 서명(시안 .settings-signature). 카카오 출처는 지도 위에만 둔다(설정의 '지도 © Kakao' 줄은 2026-11-23 지움). */
.atlas-settings-footer { display:grid; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid #e5ebd94f; }
.atlas-signature { display:flex; align-items:center; gap:7px; color:#9eaaa3; font:10px/1.2 var(--ui-font); }
.atlas-signature svg { width:22px; height:10px; opacity:.88; }
/* 연락 메일(2026-11-28 사용자): 서명 위 작은 한 줄('의견·제보 주소'). 모바일 설정 창 안쪽 폭(320px 화면에서 264px)에 들어가고, 주소는 둘로 갈리지 않는다. */
.atlas-contact { margin:0; color:#9eaaa3; font:11px/1.5 var(--ui-font); word-break:keep-all; overflow-wrap:break-word; }
.atlas-contact .nb { white-space:nowrap; }
.atlas-contact a { color:inherit; text-decoration:underline; text-decoration-color:#9eaaa38c; text-underline-offset:2px; }
/* 하이브리드·일반 지도에서는 카카오 지명 글자와 섞여 이름이 안 보였다(2026-11-22 사용자). 글자에 테두리를 두른다. */
#map[data-base="hybrid"] .atlas-pin-name { text-shadow:-1px -1px 0 #0b1518,1px -1px 0 #0b1518,-1px 1px 0 #0b1518,1px 1px 0 #0b1518,0 0 3px #0b1518,0 0 5px #0b1518; }
#map[data-base="roadmap"] .atlas-pin-name { color:#182b26; text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 0 3px #fff,0 0 5px #fff; }
.atlas-map-summary { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#atlas-unlocated-slot:has(.atlas-unlocated:not([hidden])) {
    position:absolute; top:60px; left:8px; z-index:1800; max-width:calc(100% - 16px);
    padding:4px 10px; border-radius:6px; color:var(--ink); background:var(--paper);
}
#atlas-unlocated-slot .atlas-unlocated { margin:0; border:0; }
.atlas-period-row { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:44px; font:650 14px/1.4 var(--ui-font); }
.atlas-wheel-frame { --wheel-height:82px; --wheel-row:30px; position:relative; width:100px; flex:none; }
.atlas-wheel-frame.is-wide { width:116px; }
/* 설정 배치(2026-11-23 사용자): 휠 둘·스위치 둘을 한 줄에 두 칸으로, 줄인 높이만큼 지도 종류 그림을 키운다. */
#atlas-settings .atlas-type-block { flex-wrap:wrap; gap:6px; padding:4px 0 6px; }
#atlas-settings .atlas-type-block > span { width:100%; }
#atlas-settings .atlas-type-block .atlas-type-options { flex:1 1 100%; justify-content:space-between; gap:6px; }
#atlas-settings .atlas-type-block .atlas-type-options button[aria-pressed] { flex:1 1 0; width:auto; min-width:0; min-height:0; gap:5px; font-size:11.5px; }
#atlas-settings .atlas-type-block .atlas-type-options button::before { width:100%; height:auto; aspect-ratio:8 / 5; border-radius:7px; }
.atlas-pair { gap:10px; align-items:stretch; }
.atlas-pair-cell { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.atlas-pair .atlas-pair-cell + .atlas-pair-cell { padding-left:10px; border-left:1px solid #c4cdb42d; }
.atlas-pair:not(.atlas-switches) .atlas-pair-cell { flex-direction:column; align-items:stretch; gap:2px; padding-top:6px; }
.atlas-pair:not(.atlas-switches) .atlas-pair-cell > span { font-size:12.5px; color:#c5cfc7; }
.atlas-pair:not(.atlas-switches) .atlas-wheel-frame { width:auto; }
/* 연면적 이하·이상(2026-11-23 사용자, 시안에 없어 용도 칩에 맞춤): 제목 줄 오른쪽 작은 두 칸, 고른 쪽은 금색. */
.atlas-area-head { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.atlas-area-head > span:first-child { font-size:12.5px; color:#c5cfc7; }
.atlas-area-dir { display:flex; flex:none; border:1px solid #9da7998c; border-radius:99px; overflow:hidden; }
.atlas-area-dir button { min-height:24px; margin:0; padding:0 8px; border:0; background:transparent; color:#c5cfc7; font:600 11px/1 var(--ui-font); cursor:pointer; }
.atlas-area-dir button + button { border-left:1px solid #9da7998c; }
.atlas-area-dir button[aria-pressed=true] { background:#f1c95f; color:#252b29; }
.atlas-area-dir button:focus-visible { outline:2px solid #ffd67b; outline-offset:-2px; }
@media (forced-colors:active) { .atlas-area-dir button[aria-pressed=true] { background:Highlight; color:HighlightText; } }
.atlas-switches .atlas-pair-cell { font-size:13px; white-space:nowrap; }
.atlas-switches input { appearance:none; flex:none; width:40px; height:24px; margin:0; border:1px solid #a0aca7; border-radius:99px; background:#263337; cursor:pointer; }
/* 용도 칩(2026-11-22, 시안에 없어 설정 칸 색에 맞춤): 여럿 고름, 고른 것은 스위치와 같은 금색. */
.atlas-use-row { flex-wrap:wrap; gap:8px; padding:8px 0 10px; }
.atlas-use-chips { display:flex; flex-wrap:wrap; gap:6px; width:100%; }
.atlas-use-chips button { min-height:32px; padding:0 11px; border:1px solid #9da7998c; border-radius:99px; background:transparent; color:#c5cfc7; font:600 12.5px/1 var(--ui-font); cursor:pointer; }
.atlas-use-chips button[aria-pressed=true] { border-color:#f1c95f; background:#f1c95f; color:#252b29; }
.atlas-use-chips button:focus-visible { outline:2px solid #ffd67b; outline-offset:1px; }
@media (forced-colors:active) { .atlas-use-chips button[aria-pressed=true] { background:Highlight; color:HighlightText; } }
.atlas-wheel-frame::before { content:""; position:absolute; inset:50% 0 auto; height:var(--wheel-row); box-sizing:border-box; transform:translateY(-50%); border-block:1px solid #d3bc7f48; background:linear-gradient(90deg,transparent,#d9be7410 30%,#d9be7410 70%,transparent); pointer-events:none; }
.atlas-wheel { height:var(--wheel-height); overflow:hidden auto; overscroll-behavior-y:contain; scroll-snap-type:y mandatory; touch-action:pan-y; scrollbar-width:none; user-select:none; -webkit-user-select:none; mask-image:linear-gradient(transparent,#000 27%,#000 73%,transparent); }
.atlas-wheel::-webkit-scrollbar { display:none; }
.atlas-wheel::before,.atlas-wheel::after { content:""; display:block; height:calc((var(--wheel-height) - var(--wheel-row))/2); }
.atlas-wheel[data-dragging] { scroll-snap-type:none; cursor:grabbing; }
.atlas-wheel [role=option] { display:grid; place-items:center; height:var(--wheel-row); scroll-snap-align:center; cursor:pointer; color:#b0b9ac; font-size:12px; font-variant-numeric:tabular-nums; }
.atlas-wheel [aria-selected=true] { color:#f2d89c; font-size:15px; font-weight:700; }
.atlas-wheel-frame:has(:focus-visible) { border-radius:7px; outline:2px solid #ffd67b; outline-offset:0; }
.atlas-wheel:focus { outline:none; }
@media(max-height:450px) and (orientation:landscape) { .atlas-wheel-frame { --wheel-height:66px; } }
@media(forced-colors:active) { .atlas-wheel [aria-selected=true] { color:HighlightText; background:Highlight; } }
.atlas-period-row input { appearance:none; width:40px; height:24px; margin:0; border:1px solid #a0aca7; border-radius:99px; background:#263337; cursor:pointer; }
.atlas-period-row input::before { display:block; content:""; width:16px; height:16px; margin:3px; border-radius:50%; background:#e2e6dd; }
.atlas-period-row input:checked { background:#f1c95f; border-color:#f1c95f; }
.atlas-period-row input:checked::before { transform:translateX(16px); background:#252b29; }
@media (forced-colors:active) { .atlas-period-row input { appearance:auto; } .atlas-period-row input::before { display:none; } }
#atlas-settings :is(.atlas-tool,.custom_typecontrol button,select) { min-height:44px; min-width:44px; padding:4px 8px; border:1px solid #e5ebd94f; border-radius:8px; background:#223032; color:#f5f2e8; }
#atlas-settings :is(.atlas-tool,.custom_typecontrol button)[aria-pressed=true] { background:#f5f2e8; color:#151e20; }
#atlas-settings .atlas-tool span { display:inline; }
#atlas-settings #atlas-locate { margin:0; }
#atlas-settings #atlas-filters-menu { margin:8px 0 0; }
#atlas-settings #atlas-filters { position:static; width:100%; max-height:none; overflow:visible; padding:8px 0; border:0; background:transparent; color:inherit; box-shadow:none; }
#atlas-settings :is(.atlas-filter-field,.atlas-check-grid label,.atlas-score-legend,legend) { color:#e2e6dd; }
#atlas-settings :is(input,summary,button,select):focus-visible { outline:2px solid #ffd67b; outline-offset:1px; }
#atlas-map-zoom { border-color:#e5ebd94f; border-radius:12px; background:#243032; }
#atlas-map-zoom button { background:#1b282bea; color:#f5f2e8; border-radius:11px; }
#atlas-map-zoom button + button { border-color:#e5ebd94f; }
#atlas-map-zoom button:disabled {color:#a8afa9;}
#map .atlas-project-pin { position:relative; width:44px; height:44px; padding:2px 6px; background-origin:content-box; background-clip:content-box; opacity:1; }
#map .atlas-map-shade { position:absolute; pointer-events:none; background:radial-gradient(ellipse at center,transparent 39%,#09131560 100%); }
/* 2.2.7 (design map-ui.css #geo>div>img): every map image except the linked Kakao logo, whatever host the SDK uses. */
#map img:not(a img) { transition:filter .24s ease; filter:saturate(.84) brightness(1.02); }
#domestic-panel:has(#atlas-card:not([hidden]) .card-map-orbit) .atlas-project-pin:not(:hover):not(:focus-visible):not([aria-expanded=true]) { opacity:.67; }
#domestic-panel:has(#atlas-card:not([hidden]) [data-card-stage=basic] .building-view-stage:not([hidden])) #map .atlas-map-shade { background:radial-gradient(ellipse min(94vw,630px) min(82dvh,730px) at center,#10202488 0%,#1020246b 57%,#14202720 88%,transparent 100%),radial-gradient(ellipse at center,transparent 37%,#07121466 100%); }
#domestic-panel:has(#atlas-card:not([hidden]) [data-card-stage=basic] .building-view-stage:not([hidden])) #map img:not(a img) { filter:saturate(.74) brightness(1.02) blur(.85px); }
@media(max-width:350px) { body:has(#domestic-panel:not([inert])) .atlas-nav { gap:9px;padding-left:9px;padding-right:54px; } }

.atlas-map-label {
    width:max-content; max-width:min(9em,42vw); margin-top:2px; padding:0;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
    overflow:hidden; white-space:normal; word-break:keep-all; overflow-wrap:anywhere; text-align:center;
    font:600 11.5px/1.35 var(--ui-font); color:#f4f0e2; background:transparent; box-shadow:none;
    text-shadow:0 1px 2px #0b1518,0 0 3px #0b1518,0 0 4px #0b1518;
}
.atlas-neighbor-lines .atlas-neighbor-lead { stroke:#edce83;stroke-width:.85;opacity:.94;filter:drop-shadow(0 0 .65px #17201b); }
.atlas-neighbor-lines .atlas-neighbor-leader { stroke:#c5c9c0;stroke-width:.6;stroke-dasharray:1.5 3;opacity:.71;filter:drop-shadow(0 0 .5px #17201b91); }
.atlas-neighbor-tag {
    display:flex; align-items:center; justify-content:center; min-width:88px; height:44px; padding:0 2px;
    border:0; background:transparent; box-shadow:none; text-align:center; touch-action:manipulation;
}
.atlas-neighbor-tag > span {
    box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:13px 10px;
    align-content:center; justify-items:center; width:84px; height:30px; padding:0 6px; border-radius:5px;
    color:#f1f0e7; background:linear-gradient(100deg,#162023d6,#162023b3); text-shadow:0 1px 2px #142023;
}
.atlas-neighbor-tag strong,.atlas-neighbor-tag small { grid-area:auto;align-self:center;min-width:0;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden; }
.atlas-neighbor-tag strong {max-width:6em;font:500 11px/13px var(--ui-font);}
.atlas-neighbor-tag small {color:#cdcec1;font:400 9px/10px var(--ui-font);font-variant-numeric:tabular-nums;}
.atlas-neighbor-tag:is(:hover,:focus-visible) > span { background:#243031; }
/* 큰 화면 배율(ui-scale.js, 2026-11-24 사용자: 4K에서 마커·단추가 너무 작다). 핀은 끝(위에서 95%)을 붙잡고 키운다 —
   카카오가 놓는 자리(yAnchor .95)는 그대로. 이름은 핀 안에 있어 함께 커진다. */
#map .atlas-project-pin { transform:scale(var(--ui-scale,1)); transform-origin:50% 95%; }
.atlas-status { zoom:var(--ui-scale,1); }
/* 점선 이름표·거리 알약·작품 선 이름표와 펼친 교통 시간도 배율만큼(2026-11-24 사용자: 4K도 운영에 다). map-controls.js가 화면 좌표로 놓고
   크기를 재서 자리를 고르므로 zoom을 쓰지 않고 글자·여백·상자 크기를 곱한다. 배율 1(FHD·폰)이면 위 값 그대로. 위와 같은 차례로 적는다. */
.atlas-ray-name { max-width:calc(116px * var(--ui-scale,1)); padding:calc(4px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1)); border-radius:calc(9px * var(--ui-scale,1)); }
.atlas-ray-name b { font-size:calc(12px * var(--ui-scale,1)); }
.atlas-ray-name small { font-size:calc(10.5px * var(--ui-scale,1)); }
.atlas-ray-distance { padding:calc(1px * var(--ui-scale,1)) calc(6px * var(--ui-scale,1)) calc(2px * var(--ui-scale,1)); font-size:calc(10.5px * var(--ui-scale,1)); }
.atlas-work-label small { font-size:calc(10.5px * var(--ui-scale,1)); }
.atlas-work-row { gap:calc(6px * var(--ui-scale,1)); }
.atlas-work-row b { font-size:calc(13.5px * var(--ui-scale,1)); }
.atlas-work-more { width:calc(5px * var(--ui-scale,1)); height:calc(5px * var(--ui-scale,1)); border-width:0 calc(1.6px * var(--ui-scale,1)) calc(1.6px * var(--ui-scale,1)) 0; }
.atlas-work-label[aria-expanded=true] .atlas-work-times { margin-top:calc(4px * var(--ui-scale,1)); }
.atlas-work-times { gap:calc(4px * var(--ui-scale,1)); min-width:calc(96px * var(--ui-scale,1)); margin-top:calc(5px * var(--ui-scale,1)); padding-top:calc(6px * var(--ui-scale,1)); font-size:calc(11px * var(--ui-scale,1)); }
.atlas-work-times a { gap:calc(12px * var(--ui-scale,1)); }
.atlas-work-times a b { font-size:calc(12px * var(--ui-scale,1)); }

/* 레퍼런스 덮개(2026-11-29, ref-entry.js): 지도 위에 전체 화면으로 /ref/를 띄운다. 지도는 그대로 살아 있고 닫으면 그 자리가 이어진다. */
.ref-overlay { position:fixed; inset:0; z-index:3000; background:#192527; visibility:hidden; pointer-events:none; }   /* 닫힌 동안에도 iframe이 실제 크기로 미리 읽힌다 */
.ref-overlay.is-open { visibility:visible; pointer-events:auto; }                                                 /* 애니메이션 없이 페이지 넘기듯 한 번에(2026-11-29 사용자) */
.ref-overlay[hidden] { display:none; }
.ref-frame { display:block; width:100%; height:100%; border:0; background:#192527; color-scheme:dark; }
html.ref-loading, html.ref-loading * { cursor:progress; }
html.ref-open { overflow:hidden; }

