/* 런던 지하철 역 안 분위기: 크림색 타일 벽 · 파란 역명판(흰 글자) · 빨간 띠 · 노선 색 이름표. 배치는 서울 화면 그대로. */
:root{--sign:#0019a8;--sign-deep:#00127a;--red:#dc241f;--ink:#1d2433;--steel:#8a929c}
body{background-color:#f3efe4;color:var(--ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Cg fill='none'%3E%3Crect width='64' height='32' fill='%23f3efe4'/%3E%3Cpath d='M0 .5H64M0 16.5H64M.5 0V16M32.5 0V16M16.5 16V32M48.5 16V32' stroke='%23e2e0d8'/%3E%3Cpath d='M2 2.5H30M34 2.5H62M18 18.5H46M50 18.5H64M0 18.5H14' stroke='%23ffffff'/%3E%3C/g%3E%3C/svg%3E")}
body,button,input,select{font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Helvetica Neue',sans-serif}

/* 머리줄 = 남색 법랑 역명판 */
body>header{background:var(--sign);border-bottom:0;box-shadow:inset 0 -4px 0 var(--red);color:#fff}
body>header>.subway-title{display:inline-flex;align-items:baseline;gap:8px;color:#fff;font-size:15px}
body>header .sign-zh{font-weight:700;font-size:20px;letter-spacing:.08em}
body>header a.official{color:#dfe6f7}
@media(max-width:650px){body>header>.subway-title{font-size:13px;gap:6px}body>header .sign-zh{font-size:17px;letter-spacing:.04em}}

/* 노선 고르기: 파리 안내판처럼 동그라미 안 노선 번호 */
#lines button{background:#fff;border-color:#dcdfe4;color:var(--ink)}
#lines i{width:22px;height:8px;border-radius:4px;display:inline-block;background:var(--color)}
#lines button[aria-pressed=true]{border-color:var(--color);background:#fff;box-shadow:inset 0 -3px 0 var(--color)}

/* 역 팝업 노선 띠 = 승강장 남색 역명판. 흰 안쪽 테두리 · 가운데 노선 동그라미 + 한국어 크게 · 아래 프랑스어 · 양옆 이웃 역 */
.station-line-strip{background:var(--sign)!important;border-radius:4px;box-shadow:inset 0 -4px 0 var(--red);min-height:66px;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr)!important;padding:4px 0}
.station-line-strip strong{background:transparent;border:0;color:#fff;margin:0;padding:6px 2px;align-items:center}
.station-line-strip .sign-row{display:inline-flex;align-items:center;gap:7px;max-width:100%}
.station-line-strip .sign-code{flex-shrink:0;height:22px;padding:0 7px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font:700 11px/1 -apple-system,sans-serif;font-style:normal;color:#fff;background:var(--c);box-shadow:0 0 0 1.5px #fff}
.station-line-strip .sign-zh{font-weight:700;font-size:19px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.station-line-strip .sign-zh.long{font-size:15px;white-space:normal;word-break:keep-all}
.station-line-strip strong small{color:#c9d3ef!important;font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:3px}
.station-line-strip>button{color:#fff;border-radius:4px}
.station-line-strip>button:hover{background:#ffffff1c}
.station-line-strip>button>span{display:flex;flex-direction:column;line-height:1.2}
.station-line-strip>button:last-child>span{align-items:flex-end}
.station-line-strip>button b{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.station-line-strip>button small{font-size:10px;color:#c9d3ef;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
@media(max-width:650px){.station-line-strip .sign-zh{font-size:16px}.station-line-strip .sign-zh.long{font-size:13px}.station-line-strip .sign-code{width:24px;height:24px;font-size:11px}.station-line-strip>button{padding:4px}.station-line-strip>button b{font-size:12px}}

/* 역 팝업 노선 탭 = 노선 번호 동그라미 */
.arrival-tabs button{padding:4px 9px!important;border-radius:6px!important;font-weight:700}
.arrival-tabs button[aria-pressed=true]{background:var(--tab-color)!important;color:var(--tab-text)!important;border-color:var(--tab-color)!important}

/* 아직 자료가 없는 기능은 숨긴다 */
.station-facility-summary,[data-timetable],.live-mode-tabs,[data-refresh],.route-time-edit,.arrival-status small,.station-info,[data-info],.route-leg-live{display:none!important}
body .maplibregl-popup .maplibregl-popup-content .station-info{display:none!important}
@media(min-width:651px){body .maplibregl-popup,body .maplibregl-popup:has(.arrivals:not([hidden])){bottom:auto!important;max-height:calc(100vh - 104px)}body .maplibregl-popup .maplibregl-popup-content{height:auto!important;max-height:calc(100vh - 104px)!important}}
/* 검색창 기록 · 즐겨찾기 경로 — 네이버 검색창 모양(사용자 지정) */
.memory-title{display:flex;align-items:center;justify-content:space-between;padding:12px 18px 6px;font-size:12px;color:#8a929c}
#results .memory-title button{display:inline;width:auto;min-height:0;padding:2px 0;border:0;background:none;font-size:12px;color:#8a929c}
.memory-row{display:flex;align-items:center}
#results .memory-open{flex:1;min-width:0;display:flex;align-items:center;gap:14px;min-height:52px;padding:6px 18px;border:0;background:transparent;text-align:left;font-size:16px;color:var(--ink)}
.memory-icon{flex-shrink:0;width:34px;height:34px;border-radius:50%;background:#f1f3f6;color:#8a929c;display:inline-flex;align-items:center;justify-content:center;font-style:normal}
.memory-icon svg{display:block}
.memory-row:first-of-type .memory-icon,.memory-title+.memory-row .memory-icon{}
[data-a] .memory-icon svg[fill="currentColor"]{color:#f2b100}
.memory-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.memory-arrow{color:#8a929c}
#results .memory-fill{width:48px;min-height:48px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:#8a929c}
#results .memory-fill svg{display:block}
#selection .route-favorite{display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:6px 2px;font-size:13px;color:#5b6472;position:static;width:auto;height:auto}
#selection .route-favorite span{color:#f2b100;font-size:16px;line-height:1}
/* 옆 역 이름이 칸보다 길면 앞글자가 잘리던 것 → 줄을 바꿔 다 보이게(2026-10-26) */
.station-line-strip>button[data-neighbor]{overflow:visible}
.station-line-strip>button[data-neighbor]>span{min-width:0;overflow:visible}
.station-line-strip>button[data-neighbor] b,.station-line-strip>button[data-neighbor] small{white-space:normal;word-break:keep-all;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;line-height:1.2}
.station-line-strip>button[data-neighbor]:last-child b,.station-line-strip>button[data-neighbor]:last-child small{text-align:right}
/* 가운데 작은 줄(프랑스어·한자)도 길면 줄바꿈 · 옆 역 누를 때 생기던 네모 칸 없애기(2026-10-26 사용자) */
.station-line-strip strong small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:keep-all;text-align:center;line-height:1.25}
.station-line-strip>button,.station-line-strip>button:hover,.station-line-strip>button:focus,.station-line-strip>button:active{background:transparent!important;box-shadow:none!important;outline:none!important;-webkit-tap-highlight-color:transparent}
.station-line-strip>button:focus-visible{outline:2px solid #ffffffb3!important;outline-offset:-2px}
.station-line-strip strong small{overflow-wrap:anywhere}
.station-line-strip strong small span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none}  /* 서울 strong span{nowrap} 이 영어 줄을 막던 것 */
/* (파리 구 경계 — 런던엔 없음) */
.arr-label{font:700 13px/1 -apple-system,'Apple SD Gothic Neo',sans-serif;color:#18295c;opacity:.55;pointer-events:none;letter-spacing:.02em;text-shadow:0 0 3px #fff,0 0 3px #fff}
#arr-toggle[aria-pressed=true]{border-color:#18295c;color:#18295c;font-weight:700}

/* 런던: 노선 이름표는 글자 길이만큼(파리 동그라미 고정 폭을 풀기) · 눌린 노선 탭 글자는 흰색 */
.station-line-strip .sign-code{width:auto!important;min-width:0;height:20px!important;padding:0 6px!important;font-size:10px!important}
.arrival-tabs button[aria-pressed=true]{color:#fff!important}
@media(max-width:650px){.station-line-strip .sign-row{flex-direction:column;gap:3px}}
/* 노선이 많은 역: PC 팝업을 넓혀 탭·역명판이 안 잘리게, 폰은 탭 글자를 줄인다(2026-10-26 사용자) */
@media(min-width:651px){body .maplibregl-popup:has(.arrivals:not([hidden])){width:460px!important;max-width:460px!important}}
.station-line-strip .sign-row{padding:2px 3px;overflow:visible}
.station-line-strip strong{overflow:visible!important;min-width:0}
@media(max-width:650px){.arrival-tabs button{font-size:13px!important;height:28px!important;min-width:0!important;padding:0 6px!important}.station-line-strip .sign-code{font-size:9px!important;height:18px!important;padding:0 4px!important}}
