/* Base that the v3.4.1 artifact host page used to provide */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;padding:0;background:#fff}
img{max-width:100%}
[hidden]:not([hidden=until-found i]){display:none!important}

/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
/* Color roles (universal): green = open, red = closed, orange = open only in business hours, gray = unknown. Light green block = the nearest open restroom. Blue = you: navigation, your selection, your starting point, your report.
   Layout: one left axis. Wide screens: list column left, map right in a square thin-line frame. Phones: map on top, list below.
   Concept: like a subway exit sign, point at the nearest open restroom. Sign yellow is used in one place only: the nearest open restroom. */
:root {
  --bg: #FFFFFF; --ink: #333A44; --ink-2: #5B6475; --tint: #EEF2F6; --line: #D5DBE3;
  --sign: #DCF3D0; --closed: #C2352D; --open-t: #1E7B34; --open: #2EA043; --hours: #E06C00;
  --nav: #DCE6FB; --panel: #F2F6FE; --hover: #E4EBFC; --blue: #2450D8;
  --f: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --t-s: 12.8px; --t-12: var(--t-s); --t-14: var(--t-s); --t-16: 16px; --t-21: 21px; --t-28: 28px; /* v3.2: 12.8 / 16 / 21 / 28, each step 1.25x or more */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px;
  --r: 6px;
  color-scheme: light;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f); font-size: var(--t-14); font-weight: 400; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
button, select, input { font: inherit; color: inherit; }
b, strong { font-weight: 500; }
body { -webkit-font-smoothing: antialiased; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ic { width: 16px; height: 16px; flex: none; display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, .55); }
.seg button { padding: 5px 10px; border-radius: 6px; font-size: var(--t-14); color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; font-size: var(--t-14); color: var(--ink); background: var(--bg); text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn:disabled { color: var(--ink-2); opacity: .55; cursor: not-allowed; }
.btn.solid { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(36,80,216,.35); font-size: var(--t-14); }
.link:hover { text-decoration-color: var(--blue); }

/* v2.0 layout: the map fills the screen; bar, panel/sheet and map buttons float over it.
   Phones: a sheet pulled up from the bottom. Wide screens: a panel on the left of the map. */
.app { position: relative; height: 100%; overflow: hidden; --sheet: 0px; }
#map { position: absolute; inset: 0; z-index: 0; }
/* bible exception (11/08): only things floating over the map carry a soft shadow */
.float { box-shadow: 0 1px 2px rgba(51, 58, 68, .10), 0 4px 14px rgba(51, 58, 68, .12); }
.bar { position: absolute; z-index: 1100; top: 12px; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); min-height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); background: var(--nav); border-radius: 10px; padding: 6px 6px 6px 10px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand .mark { width: 24px; height: 24px; border-radius: 6px; background: var(--blue); color: var(--bg); display: grid; place-items: center; flex: none; }
.brand h1 { margin: 0; font-size: var(--t-16); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: var(--s1); flex: none; }
.panel { position: absolute; z-index: 1050; display: flex; flex-direction: column; min-height: 0; min-width: 0; box-sizing: border-box; background: var(--panel); }
.sheet-handle { display: none; }
.tools { position: absolute; z-index: 1100; right: max(12px, env(safe-area-inset-right, 0px)); top: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.tool-group { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: var(--bg); }
.tool-group .tool + .tool { border-top: 1px solid var(--line); }
.tool { width: 40px; height: 40px; display: grid; place-items: center; background: var(--bg); color: var(--ink); border-radius: 8px; font-size: 20px; line-height: 1; }
.tool-group .tool { border-radius: 0; }
.tool:hover { background: var(--hover); }
.tool[aria-expanded="true"] { color: var(--blue); }
.tool .ic { width: 18px; height: 18px; }
.attr { position: absolute; z-index: 1000; right: max(12px, env(safe-area-inset-right, 0px)); bottom: 8px; font-size: var(--t-12); color: var(--ink-2); background: rgba(255, 255, 255, .85); padding: 1px 6px; border-radius: 4px; text-decoration: none; }
.attr:hover { text-decoration: underline; }
@media (min-width: 821px) {
  .bar { right: auto; width: 400px; }
  .panel { left: max(12px, env(safe-area-inset-left, 0px)); top: 64px; bottom: 12px; width: 400px; border-radius: 10px; padding: 0; overflow: hidden; --gut: 16px; }
}
@media (max-width: 820px) {
  .panel { left: 0; right: 0; bottom: 0; height: 200px; border-radius: 14px 14px 0 0; padding: 0 0 env(safe-area-inset-bottom, 0px); overflow: hidden; --gut: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); transition: height .22s ease; }
  .panel .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); }
  .panel .chips::-webkit-scrollbar { display: none; }
  .panel.dragging { transition: none; }
  .sheet-handle { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; height: 30px; cursor: grab; touch-action: none; }
  .sheet-handle span { width: 40px; height: 4px; border-radius: 2px; background: #B9C1CC; }
  .tools { top: auto; bottom: calc(var(--sheet) + 12px); }
  .zoom-tools { display: none; }
  .attr { right: auto; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(var(--sheet) + 8px); }
  .app[data-sheet="full"] .tools, .app[data-sheet="full"] .attr, .app[data-sheet="full"] .legend { display: none; }
}

.controls { display: flex; flex-direction: column; gap: var(--s2); padding-bottom: var(--s3); }
.panel.in-detail .controls, .panel.in-detail .tabs, .panel.in-detail #answer { display: none; }
.refbar { position: relative; display: flex; align-items: center; gap: var(--s2); min-height: 44px; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px 0 12px; }
.refbar:focus-within { border-color: var(--blue); }
.refbar .ic { color: var(--blue); }
.refbar .chev { color: var(--ink-2); pointer-events: none; }
.refbar label { font-size: var(--t-14); color: var(--ink-2); flex: none; }
.refbar select { flex: 1; min-width: 0; border: 0; padding: 10px 0; background: transparent; font-size: var(--t-16); font-weight: 500; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.refbar select:focus-visible { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: var(--r); padding: 6px 10px; font-size: var(--t-14); color: var(--ink); white-space: nowrap; }
.chip:hover { background: var(--hover); }
.chip .ic { color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--bg); }
.chip[aria-pressed="true"] .ic { color: var(--bg); }
.tabs { display: flex; gap: var(--s4); border-bottom: 1px solid var(--line); }
.tabs button { padding: var(--s2) 0; font-size: var(--t-14); color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--blue); font-weight: 500; border-bottom-color: var(--blue); }
.tabs .n { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; margin: 0; padding: 0; }
/* v2.1: white sections reach the panel edges; the panel colour shows only in the gaps */
#answer, .controls, .tabs, #listview, .about { padding-left: var(--gut); padding-right: var(--gut); }
#answer { padding-top: var(--s3); }
.tabs, #listview { background: var(--bg); }
.tabs { padding-top: 4px; }
#listview { min-height: 50%; }
.panel.in-detail .scroll { padding-top: 0; }
.panel.in-detail .sheet-handle { background: var(--bg); }

/* the one bold place */
.sign { display: block; width: 100%; background: var(--sign); color: var(--ink); padding: var(--s3); box-sizing: border-box; }
#answer:not(:empty) { padding-bottom: var(--s4); }
@media (max-width: 820px) { #answer { padding-top: 0; } #answer:not(:empty) { padding-bottom: var(--s3); } }
.sign .k { font-size: var(--t-14); font-weight: 400; }
.sign .n { display: block; margin-top: var(--s1); font-size: var(--t-28); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.sign .w { display: block; margin-top: var(--s2); font-size: var(--t-16); font-weight: 400; }
.sign .w span { font-weight: 400; }
.sign:hover .n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.lead { margin: var(--s3) 0 var(--s2); font-size: var(--t-14); color: var(--ink-2); }
.list { list-style: none; margin: 0; padding: 0 0 var(--s4); display: flex; flex-direction: column; gap: 0; }
.list li + li { border-top: 1px solid var(--line); }
.item { width: calc(100% + var(--s2) * 2); box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; column-gap: var(--s3); row-gap: 2px; padding: 12px var(--s2); margin: 0 calc(var(--s2) * -1); }
.item:hover { background: var(--hover); }
.item.sel { background: var(--hover); }
.item .name { font-size: var(--t-16); font-weight: 400; line-height: 1.35; min-width: 0; }
.item .ko { display: block; font-size: var(--t-12); color: var(--ink-2); font-weight: 400; }
.item .walk { font-size: var(--t-14); font-weight: 400; text-align: right; white-space: nowrap; }
.item .st { display: flex; align-items: center; gap: 6px; font-size: var(--t-14); min-width: 0; flex-wrap: wrap; }
.item .m { font-size: var(--t-12); color: var(--ink-2); text-align: right; white-space: nowrap; }
.item .icons { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); color: var(--ink-2); font-size: var(--t-12); margin-top: 2px; }
.item .icons:empty { display: none; }
.hrs-t { color: var(--ink-2); }
.st-word { font-weight: 400; }
.st-word.closed { color: var(--closed); }
.st-word.open { color: var(--open-t); }
.st-word.maybe, .st-word.unknown { color: var(--ink-2); }
#chip-open:not([aria-pressed="true"]) .ic { color: var(--open); }
.sign .k { display: flex; align-items: center; gap: 6px; }
.glyph { width: 14px; height: 14px; flex: none; }
.line-badge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 2px solid; box-sizing: border-box; font-size: 10px; font-weight: 500; color: var(--ink); line-height: 1; }
.empty { padding: var(--s3) 0; color: var(--ink-2); }

.detail { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: var(--t-14); align-self: flex-start; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.d-head h2 { margin: 0; font-size: var(--t-21); font-weight: 400; letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance; }
.d-head .alt { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-14); }
.d-status { display: flex; flex-direction: column; gap: 2px; margin-top: var(--s3); }
.d-status .st { display: flex; align-items: center; gap: 8px; font-size: var(--t-16); }
.d-status .why { font-size: var(--t-14); color: var(--ink-2); }
.d-go { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.sec h3 { margin: 0 0 var(--s2); font-size: var(--t-14); font-weight: 500; }
.kv { display: grid; grid-template-columns: 128px 1fr; gap: var(--s1) var(--s3); margin: 0; font-size: var(--t-14); }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; min-width: 0; }
.fac { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); }
.fac li { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-14); }
.fac li .q { color: var(--ink-2); }
.fac .ic { color: var(--ink-2); }
.note { margin: var(--s2) 0 0; font-size: var(--t-14); color: var(--ink-2); text-wrap: pretty; }
p, .why, .lead { text-wrap: pretty; }
.rep-row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.rep .q-label { font-size: var(--t-14); color: var(--ink-2); margin: var(--s2) 0 0; }
.segrow { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 100%; background: var(--bg); }
.segrow .opt { padding: 7px 14px; font-size: var(--t-14); border-left: 1px solid var(--line); }
.segrow .opt:first-child { border-left: 0; }
.segrow .opt:hover:not([aria-pressed="true"]) { background: var(--hover); }
.segrow .opt[aria-pressed="true"] { background: var(--blue); color: var(--bg); }
.mine { display: flex; align-items: center; gap: 6px; font-size: var(--t-14); color: var(--ink); margin: 0; }
.mine .ic { color: var(--blue); }
.rep { display: flex; flex-direction: column; gap: var(--s2); }
.hrs { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.hrs input[type="time"] { border: 1px solid var(--line); border-radius: var(--r); padding: 5px 6px; }
.recent { list-style: none; padding: 0; margin: 0; font-size: var(--t-14); color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.src { font-size: var(--t-12); color: var(--ink-2); margin: 0; padding-left: 18px; }
.about { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s5); background: var(--bg); min-height: 100%; box-sizing: border-box; }
.about { font-size: var(--t-16); line-height: 1.6; }
.about .src { line-height: 1.5; }
.about h2 { margin: 0; font-size: var(--t-21); font-weight: 500; letter-spacing: -0.02em; }
.about p, .about ul { margin: 0; }
.about ul { padding-left: 18px; display: flex; flex-direction: column; gap: var(--s1); }

/* map */
.leaflet-container { background: var(--tint); font-family: var(--f); }
.g-sd { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-opacity: .75; }
.ln { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: .22; }
.lbl { position: absolute; font-size: var(--t-12); color: var(--ink-2); white-space: nowrap; font-weight: 400; pointer-events: none; text-shadow: 0 0 2px var(--bg), 0 0 2px var(--bg), 0 0 2px var(--bg), 0 0 2px var(--bg); }
.lbl.st { left: 14px; top: -9px; }
.lbl.area { transform: translate(-50%, -50%); font-weight: 500; color: var(--ink-2); }
.lbl.nb { transform: translate(-50%, -50%); color: var(--ink-2); text-shadow: none; }
.pin { display: block; }
.dim .pin { opacity: .25; }
.legend { position: absolute; z-index: 1100; right: calc(max(12px, env(safe-area-inset-right, 0px)) + 48px); top: 12px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--bg); border-radius: 8px; font-size: var(--t-12); color: var(--ink); }
@media (max-width: 820px) { .legend { top: auto; bottom: calc(var(--sheet) + 12px); } }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.maphint { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); top: 64px; z-index: 1150; border-radius: 8px; display: flex; gap: var(--s2); align-items: center; justify-content: space-between; background: var(--ink); color: var(--bg); padding: var(--s2) 12px; font-size: var(--t-14); }
.maphint button { border: 1px solid var(--bg); color: var(--bg); border-radius: var(--r); padding: 3px 8px; font-size: var(--t-12); }
.picking .leaflet-container { cursor: crosshair; }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 0 !important; }
.leaflet-bar a { border-radius: 0 !important; color: var(--ink) !important; border-bottom-color: var(--line) !important; }
.sel-tip { background: var(--bg); color: var(--ink); border: 1px solid var(--blue); border-radius: 4px; box-shadow: none; padding: 2px 6px; font-family: var(--f); font-size: var(--t-12); font-weight: 500; }
.sel-tip::before { display: none; }

/* narrow phones: show only the language you can switch to */
@media (max-width: 420px) { .seg button[aria-pressed="true"] { display: none; } .bar { padding-left: 8px; gap: 6px; } .brand { gap: 6px; } .brand h1 { letter-spacing: -0.02em; } }
@media (max-width: 370px) { .brand h1 { font-size: var(--t-14); } }
@media (min-width: 821px) { .maphint { left: calc(max(12px, env(safe-area-inset-left, 0px)) + 412px); top: 12px; right: 64px; } }
.near-tip { border-color: var(--ink); }

/* v2.1 place sheet */
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); background: var(--bg); flex: none; }
.icon-btn:hover { background: var(--hover); }
.icon-btn .ic { width: 18px; height: 18px; }
.d-sec { background: var(--bg); padding: var(--s3) var(--gut); }
.d-sec h3 { margin: 0 0 12px; font-size: var(--t-16); font-weight: 500; }
.d-sec h3 .h3-sub { font-size: var(--t-14); }
.d-hero { padding-top: 20px; }
.d-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.d-hero h2 { margin: 0; font-size: var(--t-21); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance; }
.d-hero .alt { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-14); }
.d-hero .icon-btn { background: var(--tint); margin-top: -2px; }
.d-hero .icon-btn:hover { background: var(--hover); }
.d-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: var(--s2) 0 0; font-size: var(--t-14); color: var(--ink-2); }
.d-meta span + span { border-left: 1px solid var(--line); margin-left: 10px; padding-left: 10px; }
.d-status { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.d-status .st { display: flex; align-items: center; gap: 8px; font-size: var(--t-16); flex-wrap: wrap; }
.d-status .st .hrs-t { color: var(--ink); }
.d-status .why { font-size: var(--t-14); color: var(--ink-2); }
.d-actions { display: flex; gap: var(--s2); margin-top: var(--s3); }
.d-actions .btn { justify-content: center; min-height: 44px; border-radius: 8px; font-size: var(--t-14); }
.d-actions .act-main { flex: 1.4; min-width: 0; }
.d-actions .act-alt { flex: 1; min-width: 0; }
.d-actions .btn.solid .ic { color: var(--bg); }
.d-actions .save { width: 44px; padding: 0; flex: none; }
.d-actions .save .ic { width: 18px; height: 18px; color: var(--ink-2); }
.d-actions .save[aria-pressed="true"] { border-color: var(--blue); }
.d-actions .save[aria-pressed="true"] .ic { color: var(--blue); }
.rows { list-style: none; margin: calc(var(--s3) * -1) 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 20px 1fr; column-gap: 14px; padding: 14px 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows .r-ic { color: var(--ink-2); padding-top: 2px; }
.rows .r-ic .ic { width: 18px; height: 18px; }
.rows .r-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rows .r-main { font-size: var(--t-16); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rows .r-sub { font-size: var(--t-14); color: var(--ink-2); }
.rows .r-sub b { color: var(--ink); font-weight: 500; }
.fac-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3) var(--s2); }
.fac-grid li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: var(--t-12); line-height: 1.35; color: var(--ink); }
.fac-grid .ic { width: 22px; height: 22px; color: var(--ink); }
.fac-grid .tile { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; }
.fac-grid .q { display: block; color: var(--ink-2); }
.d-sec .note { margin: 12px 0 0; }
.d-sec .chip { background: var(--tint); }
.d-sec .chip:hover { background: var(--hover); }
.d-sec .chip[aria-pressed="true"] { background: var(--blue); color: var(--bg); }
.d-foot h3 { font-size: var(--t-14); margin-bottom: var(--s2); }
.d-foot .recent { margin-bottom: var(--s3); }
.rep .q-label { margin: 0 0 6px; }
.rep .rep-row + .q-label, .rep .mine + .q-label, .rep .tagpick + .rep-row { margin-top: var(--s3); }
.panel.in-detail .d-sec:first-child { padding-top: 20px; }
@media (max-width: 820px) { .panel.in-detail .d-sec:first-child { padding-top: 4px; } }
/* v1.6: confirmation time, visitor notes, saved places */
.item .icons .fresh { margin-left: auto; color: var(--ink-2); }
.item .icons .cond { color: var(--ink); }
.mine-ic { color: var(--blue); }
.sign .f { display: block; margin-top: var(--s1); font-size: var(--t-14); color: var(--ink-2); }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.d-top .back { align-self: center; }
.btn.save .ic { color: var(--ink-2); }
.btn.save[aria-pressed="true"] { color: var(--blue); border-color: var(--blue); }
.btn.save[aria-pressed="true"] .ic { color: var(--blue); }
.why.doubt { color: var(--ink); }
.sec h3 .h3-sub { font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.tagcount { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: var(--t-14); }
.tagcount .cnt { color: var(--ink-2); margin-left: 2px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 6px; }
.rep .rep-row .note { margin: 0; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--sheet, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 2000; background: var(--ink); color: var(--bg); padding: var(--s2) 14px; border-radius: var(--r); font-size: var(--t-14); max-width: calc(100% - 40px); box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ===== v3.0 B+C: paper map + signage. charcoal ink, lime marks open and "the one to go to" ===== */
:root {
  --bg: #FFFFFF; --ink: #23272E; --ink-2: #5B6270; --tint: #F2F3F5; --line: #E4E6EA;
  --sign: #FFFFFF; --closed: #23272E; --open-t: #23272E; --open: #C8EB5F; --hours: #23272E;
  --nav: #FFFFFF; --panel: #FFFFFF; --hover: #F2F3F5; --blue: #23272E;
  --lime: #C8EB5F; --cl: #EEF0F2; --cl-line: #8A919C;
  --f: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --r: 2px; --barh: 56px; --strip: 22px;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.float { box-shadow: none; }
.bar { top: 0; left: 0; right: 0; width: auto; height: var(--barh); min-height: var(--barh); border-radius: 0; background: var(--bg); border-bottom: 3px double var(--ink); padding: 0 max(6px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.brand { flex-direction: column; align-items: flex-start; gap: 0; }
.brand h1 { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.brand-sub { font-size: var(--t-s); color: var(--ink-2); line-height: 1.3; white-space: nowrap; }
.seg { background: none; padding: 0; gap: 0; border-radius: 0; }
.seg button { min-width: 40px; height: 44px; padding: 0 8px; border-radius: 0; color: var(--ink-2); font-size: var(--t-s); text-align: center; }
.seg button[aria-pressed="true"] { background: none; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r); background: var(--bg); }
@media (max-width: 420px) { .seg button[aria-pressed="true"] { display: inline-block; } .bar { padding-left: 12px; } }
@media (max-width: 370px) { .brand h1 { font-size: 16px; } .seg button { min-width: 34px; padding: 0 4px; } }

/* grid strips along the top and left edge of the map: the same squares as the printed brochure */
.gstrip { position: absolute; z-index: 1040; overflow: hidden; background: var(--bg); font-family: var(--f); font-size: var(--t-s); font-weight: 500; color: var(--ink); pointer-events: none; }
.gx { top: var(--barh); left: 0; right: 0; height: var(--strip); border-bottom: 1px solid var(--ink); }
.gy { top: var(--barh); left: 0; bottom: 0; width: var(--strip); border-right: 1px solid var(--ink); }
.gstrip span { position: absolute; }
.gx span { top: 0; line-height: var(--strip); transform: translateX(-50%); }
.gy span { left: 0; width: var(--strip); text-align: center; line-height: 16px; transform: translateY(-50%); }
.gridln { stroke: #23272E; stroke-opacity: .16; fill: none; }
.scalebox { position: absolute; z-index: 1040; right: max(12px, env(safe-area-inset-right, 0px)); bottom: 34px; display: flex; align-items: center; gap: 8px; padding: 3px 8px; background: var(--bg); border: 1px solid var(--ink); font-family: var(--f); font-size: var(--t-s); font-weight: 500; color: var(--ink); pointer-events: none; }
.sb-bar { display: block; height: 6px; box-sizing: border-box; border: 1px solid var(--ink); background: linear-gradient(to right, var(--ink) 50%, transparent 50%); }

.tools { gap: 8px; }
.tool-group { border-radius: var(--r); border: 1px solid var(--ink); background: var(--bg); }
.tool { width: 44px; height: 44px; border-radius: var(--r); }
.tool.float { border: 1px solid var(--ink); }
.tool-group .tool + .tool { border-top: 1px solid var(--ink); }
.tool[aria-expanded="true"] { background: var(--lime); color: var(--ink); }
.attr { background: var(--bg); border-radius: 0; color: var(--ink-2); }
.legend { border: 1px solid var(--ink); border-radius: var(--r); gap: 7px; max-width: 260px; }
.legend > span { gap: 8px; }
.legend .lg-grid { display: block; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.45; }
.maphint { border-radius: var(--r); background: var(--ink); }

@media (min-width: 821px) {
  .bar { right: 0; width: auto; }
  .panel { left: 0; top: var(--barh); bottom: 0; width: 400px; border-radius: 0; border-right: 3px double var(--ink); }
  .gx, .gy { left: 400px; }
  .tools { top: calc(var(--barh) + var(--strip) + 12px); }
  .legend { top: calc(var(--barh) + var(--strip) + 12px); right: calc(max(12px, env(safe-area-inset-right, 0px)) + 54px); }
  .maphint { left: calc(400px + var(--strip) + 12px); top: calc(var(--barh) + var(--strip) + 12px); right: 70px; }
}
@media (max-width: 820px) {
  .panel { border-radius: 0; border-top: 3px double var(--ink); }
  .sheet-handle span { background: var(--ink-2); height: 3px; border-radius: 0; }
  .attr { left: calc(var(--strip) + 6px); }
  .gy { bottom: var(--sheet); }
  .scalebox { top: calc(var(--barh) + var(--strip) + 10px); bottom: auto; }
  .maphint { top: calc(var(--barh) + var(--strip) + 10px); left: calc(var(--strip) + 10px); }
  .app[data-sheet="full"] .gstrip, .app[data-sheet="full"] .scalebox { display: none; }
}

/* list panel */
.refbar { border: 1px solid var(--ink); border-radius: var(--r); }
.refbar:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.refbar .ic { color: var(--ink); }
.chip { min-height: 40px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.chip .ic { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip { padding: 0 10px; }
.chip.ico { width: 40px; padding: 0; justify-content: center; }
.chip.ico .ic { width: 24px; height: 24px; }
.chip-br { flex-basis: 100%; height: 0; }
html[lang="ko"] .brand [lang="en"], html[lang="ko"] .panel [lang="en"],
html[lang="en"] .brand [lang="ko"], html[lang="en"] .panel [lang="ko"] { display: none !important; }
html[lang="en"] .panel .keep [lang="ko"] { display: inline !important; }
.pin-lead { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.lead-ln { position: absolute; left: 50%; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ink); transform-origin: 0 50%; }
.lead-pt { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px var(--bg); }
@media (max-width: 820px) { .chip-br { display: none; } }
.tabs { gap: 20px; }
#chip-open:not([aria-pressed="true"]) .ic { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.controls { padding-bottom: var(--s3); }

/* number badges: the same circle on the map and in the list. Lime = open now */
.nb, .np { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink); font-family: var(--f); font-weight: 500; line-height: 1; }
.nb { flex: none; width: 26px; height: 26px; font-size: var(--t-s); }
.nb.big { width: 38px; height: 38px; font-size: 16px; }
.nb.blank { visibility: hidden; }
.nb.sq, .np.sq { border-radius: 3px; }
.s-open { background: var(--lime); }
.s-soon { background: var(--bg); border-style: dashed; }
.s-closed { background: var(--cl); border-color: var(--cl-line); color: var(--ink-2); }
.s-maybe { background: var(--bg); }
.s-unknown { background: var(--bg); border-style: dotted; border-color: var(--cl-line); color: var(--ink-2); }
.np { width: 100%; height: 100%; font-size: var(--t-s); box-shadow: 0 0 0 2px var(--bg); }
.np.dot { font-size: 0; }
.np.sel, .np.near { font-size: 16px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 6px var(--lime), 0 0 0 7.5px var(--ink); }
.np.pinned { outline: 1.5px dashed var(--ink-2); outline-offset: 3px; }
.np.lg { flex: none; width: 20px; height: 20px; font-size: var(--t-s); box-shadow: none; }
.np.lg.dot { width: 12px; height: 12px; margin: 0 4px; }
.np.lg.near { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime), 0 0 0 5px var(--ink); margin: 0 3px; }
.sel-tip { background: var(--lime); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; font-family: var(--f); font-size: var(--t-s); font-weight: 500; padding: 2px 8px; }
.near-tip { border-color: var(--ink); }
.gref { flex: none; font-family: var(--f); font-size: var(--t-s); font-weight: 500; color: var(--ink); line-height: 18px; padding: 0 5px; border: 1px solid var(--ink); background: var(--bg); }
.gref.plain { border: 0; padding: 0; background: none; }

/* the one place to go: outlined in lime */
#answer:not(:empty) { padding-bottom: var(--s3); }
.sign { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: calc(100% - 8px); margin: 4px; padding: 12px; box-sizing: border-box; background: var(--bg); border: 1.5px solid var(--ink); outline: 4px solid var(--lime); color: var(--ink); text-align: left; }
.sg-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sign .k { display: block; font-size: var(--t-s); font-weight: 400; }
.sign .k-alt { display: block; color: var(--ink-2); }
.sign .n { display: block; margin: 2px 0 0; font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.sign .alt { font-size: var(--t-s); color: var(--ink-2); }
.sign .w { display: block; margin-top: 4px; font-size: var(--t-s); line-height: 1.6; color: var(--ink-2); }
.sign .f { font-size: var(--t-s); margin-top: 2px; }
.sg-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sg-side .mins { font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.sg-side .mins-alt { font-size: var(--t-s); color: var(--ink-2); white-space: nowrap; }
.sign .w > span, .item .st > span, .d-top3 .kind > span { white-space: nowrap; }
.sign:hover .n { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.sign .w > span::before, .item .st > span::before, .d-top3 .kind > span::before { content: ""; display: inline-block; width: 1px; height: 11px; background: var(--cl-line); margin: 0 8px; vertical-align: -1px; }
.sign .w, .item .st, .d-top3 .kind { margin-left: -17px; clip-path: inset(0 0 0 17px); }

/* index rows: number, name, dotted leader, grid square */
.lead { color: var(--ink-2); }
.item { grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 10px var(--s2); }
.item:hover, .item.sel { background: var(--hover); }
.i-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.i-l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.item .name { flex: 0 1 auto; min-width: 0; font-size: 16px; font-weight: 400; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ldr { flex: 1 1 12px; min-width: 12px; border-bottom: 1.5px dotted var(--ink-2); transform: translateY(-4px); }
.i-alt { font-size: var(--t-s); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .st { display: block; margin-top: 2px; font-size: var(--t-s); line-height: 1.6; color: var(--ink-2); }
.item .walk { font-size: 16px; font-weight: 500; text-align: right; white-space: nowrap; padding-top: 1px; }
.item .walk .noloc { font-size: var(--t-s); font-weight: 400; color: var(--ink-2); }
.item .icons { grid-column: 2 / -1; margin-top: 4px; }
.st-word { color: var(--ink); }
.st-word.open { background: var(--lime); padding: 0 4px; font-weight: 500; }
.st-word.open.soon { background: none; border: 1px dashed var(--ink); padding: 0 3px; }
.st-word.closed { color: var(--ink); font-weight: 500; }
.st-word.maybe, .st-word.unknown { color: var(--ink-2); }
.line-badge { width: 20px; height: 20px; border-color: var(--ink) !important; border-width: 1.5px; font-family: var(--f); font-size: var(--t-s); }
.mine-ic, .mine .ic { color: var(--ink); }

/* place sheet */
.d-sec { background: var(--bg); }
.d-sec + .d-sec { border-top: 1px solid var(--line); }
.d-sec h3 { font-size: 16px; font-weight: 500; }
.d-top3 { display: flex; align-items: center; gap: 8px; }
.d-top3 .kind { flex: 1; min-width: 0; display: block; font-size: var(--t-s); line-height: 1.5; color: var(--ink-2); }
.d-top3 .icon-btn { border: 1px solid var(--ink); flex: none; }
.d-hero h2 { margin: 10px 0 0; font-size: 21px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.25; }
.d-hero .alt { margin: 2px 0 0; font-size: var(--t-s); color: var(--ink-2); }
.d-st { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.d-st .st { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-st .why { font-size: var(--t-s); color: var(--ink-2); }
.d-st .why.doubt { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; box-sizing: border-box; padding: 0 10px; border-radius: 2px; border: 1.5px solid var(--ink); font-size: var(--t-s); font-weight: 500; }
.pill .en { font-weight: 400; }
.hrs-m { font-family: var(--f); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 500; color: var(--ink); }
.d-station { margin-top: 14px; border: 1.5px solid var(--ink); }
.d-station .hd { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--ink); background: var(--tint); font-size: 16px; font-weight: 500; }
.d-station .hd .en { font-size: var(--t-s); font-weight: 400; color: var(--ink-2); }
.d-station .row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.d-station .row + .row { border-top: 1px solid var(--line); }
.xt { width: 50px; height: 50px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 6px; background: var(--ink); color: var(--lime); }
.xt small { font-size: var(--t-s); line-height: 1; }
.xt b { font-family: var(--f); font-size: 28px; font-weight: 500; line-height: 1; }
.xt svg { width: 30px; height: 30px; }
.d-station .tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.d-station .tx b { font-size: 16px; font-weight: 500; }
.d-station .tx span { font-size: var(--t-s); color: var(--ink-2); }
.btn { border: 1px solid var(--ink); border-radius: var(--r); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.d-actions .btn { border-radius: var(--r); min-height: 48px; font-size: 16px; }
.d-actions .save .ic { color: var(--ink); }
.d-actions .save[aria-pressed="true"] { background: var(--lime); border-color: var(--ink); }
.d-actions .save[aria-pressed="true"] .ic { color: var(--ink); }
.btn.save[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.btn.save[aria-pressed="true"] .ic { color: var(--ink); }
.rows .r-ic { color: var(--ink); }
.fac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.fac-grid li { font-size: var(--t-s); font-weight: 500; gap: 4px; }
.fac-grid .tile { width: 52px; height: 52px; border-radius: 6px; background: var(--ink); }
.fac-grid .ic { width: 30px; height: 30px; color: #FFFFFF; }
.fac-grid .f-en { display: block; font-size: var(--t-s); font-weight: 400; color: var(--ink-2); }
.segrow { border-color: var(--ink); border-radius: var(--r); }
.segrow .opt { border-left-color: var(--ink); min-height: 44px; }
.segrow .opt[aria-pressed="true"] { background: var(--lime); color: var(--ink); font-weight: 500; }
.d-sec .chip { background: var(--bg); min-height: 40px; }
.d-sec .chip:hover { background: var(--hover); }
.d-sec .chip[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.link { color: var(--ink); text-decoration-color: var(--ink-2); }
.link:hover { text-decoration-color: var(--ink); }
.back { color: var(--ink); }
.leaflet-container { background: #FFFFFF; }
.g-sd { stroke: var(--ink); stroke-opacity: .55; }

/* v4 (동동): brand row in the top bar. "동동" goes home (all districts), the district name is the page title. */
.brand { flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
.brand .home { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-21); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--ink); text-decoration: none; }
.brand .home:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.brand .sep { flex: none; width: 1px; height: 18px; background: var(--line); }
.brand h1 { font-size: var(--t-16); font-weight: 500; color: var(--ink); min-width: 0; }
::selection { background: var(--lime); color: var(--ink); }
/* OSM report block (plan B) */
.rep.osm .note { margin: var(--s1) 0 var(--s3); }
.rep.osm .rep-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.rep.osm .btn { min-height: 44px; padding: 0 var(--s3); border-color: var(--ink); }
.rep.osm .link { min-height: 44px; display: inline-flex; align-items: center; }
.tool[aria-busy="true"] svg { opacity: .35; }
