/* 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 {
	behavior: url(#default#VML);
	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 {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	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 */
	background-image: url(images/marker-icon.png);
	}


/* 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;
		}
	}

/*
 * EduStep 조판 체계
 * 개념: 교과서·시간표의 편집 질서 — 굵은 상단 괘선, 번호 붙은 섹션, 점선 리더로 잇는 가격표, 12열 격자.
 * 색: 코발트(행동·선택) + 탠저린(강조 한 곳, 지도 핀) + 먹색 본문. 바탕은 차가운 흰색.
 * 글꼴: Pretendard(본문·제목, 굵기 대비로 위계) + IBM Plex Mono(번호·라벨·숫자 보조).
 */
:root {
  /* 글자 크기는 6단계만 쓴다 (2026-11-17, 37종 → 6종). 가장 작은 글자 13px */
  --fs-1: .8125rem;  /* 13px 라벨·출처·기준일 */
  --fs-2: .9375rem;  /* 15px 보조 설명·검색 라벨 */
  --fs-3: 1rem;      /* 16px 본문 */
  --fs-4: 1.25rem;   /* 20px 카드 제목·가격 */
  --fs-5: clamp(1.5rem, 2.6vw, 2rem);   /* 섹션 제목·큰 숫자 */
  --fs-6: clamp(2rem, 4.6vw, 3.2rem);   /* 페이지 제목 */
  --paper: #f5f6fa;
  --card: #ffffff;
  --ink: #0c1330;
  --ink-2: #4a5270;
  --ink-3: #6b7290;
  --rule: #dde1ec;
  --rule-2: #c6ccdc;
  /* 원색을 쓰지 않는다: 채도를 낮춘 남청(행동·선택) + 낮은 테라코타(강조 한 곳). 2026-11-17 운영자 요청 */
  --accent: #3e5a86;
  --accent-ink: #2e4569;
  --accent-wash: #eef1f6;
  --hot: #b5603a;
  --hot-wash: #f8f0eb;
  --ok: #067647;
  --ok-wash: #e9f8ef;
  --warn: #8a3a0c;
  --warn-wash: #fdf3ea;
  --danger: #b42318;
  --my: #6a5b98;
  --my-wash: #f3f1f7;
  --focus: #3e5a86;
  --radius: 10px;
  --wrap: 1240px;
  --gutter: 24px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 72px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --bg: var(--paper);
  --brand: var(--accent);
  --brand-ink: var(--accent-ink);
  --brand-wash: var(--accent-wash);
}

/* ───── 기본 ───── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-3); line-height: 1.65; color: var(--ink); background: var(--paper);
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: var(--fs-6); font-weight: 850; letter-spacing: -0.045em; line-height: 1.08; }
h2 { font-size: var(--fs-5); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-4); font-weight: 750; }
p { margin: 0 0 .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 720px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.num { font-variant-numeric: tabular-nums; }
.sub { color: var(--ink-2); }
.small { font-size: var(--fs-2); }
.stack > * + * { margin-top: var(--s3); }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--gutter); align-items: stretch; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.grid > .card { display: flex; flex-direction: column; height: 100%; }
.card .actions { margin-top: auto; padding-top: var(--s3); display: flex; gap: .5rem; flex-wrap: wrap; }

/* 라벨 체계: 번호 · 키커 */
.kicker { font-family: var(--mono); font-size: var(--fs-1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .4rem; }
.sec-no { font-family: var(--mono); font-weight: 600; font-size: var(--fs-1); color: var(--accent); border: 1.5px solid currentColor; border-radius: 4px; padding: .05rem .35rem; line-height: 1.4; display: inline-block; }
.sec-no.inline { margin-right: .4rem; }
.sec-head { display: flex; gap: var(--s3); align-items: flex-start; border-top: 3px solid var(--ink); padding-top: var(--s3); margin-bottom: var(--s4); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: .2rem 0 0; }
.sec-head .sec-no { margin-top: .3rem; flex: none; }
.sec-head .more { margin-left: auto; align-self: center; white-space: nowrap; }
.mini { font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; border-bottom: 1px solid var(--rule); padding-bottom: .4rem; margin-bottom: .6rem; }

/* ───── 머리·꼬리 ───── */
.dev-banner { background: var(--ink); color: #e6e9f5; font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .04em; padding: .35rem 0; text-align: center; margin: 0; }
.hdr { background: var(--card); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; flex-wrap: nowrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 850; font-size: var(--fs-4); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.logo small { font-family: var(--mono); font-weight: 500; font-size: var(--fs-1); letter-spacing: .06em; color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 4px; padding: 0 .3rem; }
.nav { display: flex; gap: .15rem; flex-wrap: nowrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 650; padding: .5rem .75rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; transition: background .15s; }
.nav a:hover { background: var(--paper); }
.nav a.my { color: var(--my); }
.badge-count { background: var(--accent); color: #fff; border-radius: 999px; font-family: var(--mono); font-size: var(--fs-1); padding: 0 .42rem; min-width: 1.3rem; text-align: center; }
@media (max-width: 720px) {
  .logo small, .nav .hide-m { display: none; }
  .hdr .wrap { min-height: 56px; gap: .5rem; }
  .nav { gap: 0; }
  .nav a { padding: .5rem .45rem; font-size: var(--fs-2); }
}
@media (max-width: 380px) { .logo { font-size: var(--fs-3); } .logo svg { width: 22px; height: 22px; } }
main { padding: 0 0 var(--s6); min-height: 60vh; }
.ftr { border-top: 3px solid var(--ink); background: var(--card); padding: var(--s4) 0 var(--s5); font-size: var(--fs-2); color: var(--ink-2); }
.ftr nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }

/* ───── 공통 부품 ───── */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4); }
@media (max-width: 680px) { .card { padding: var(--s3) 18px; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: .55rem 1.05rem;
  border-radius: 8px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 var(--ink); transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.btn:hover { background: var(--paper); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #222a48; }
.btn.my { background: var(--my); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:active { transform: none; }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 36px; padding: .3rem .7rem; font-size: var(--fs-2); box-shadow: 0 2px 0 var(--ink); }
.btn.sm:active { transform: translateY(2px); box-shadow: none; }
.btn[aria-pressed='true'] { background: var(--accent-wash); color: var(--accent-ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chip { font: inherit; font-family: var(--mono); font-size: var(--fs-2); font-weight: 600; min-height: 36px; padding: .25rem .7rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .12s; }
.chip:active { transform: translateY(2px); box-shadow: none; }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; }
label { font-weight: 650; font-size: var(--fs-2); display: block; margin-bottom: .25rem; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--rule-2); border-radius: 8px; padding: .55rem .7rem; min-height: 44px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-wash); }
textarea { min-height: 96px; resize: vertical; }
.field { min-width: 0; }
.fields { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } .fields > [style*="span"] { grid-column: auto !important; } }
.help { color: var(--ink-3); font-size: var(--fs-2); margin-top: .25rem; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: .8rem 1rem; margin: 0; }
legend { font-weight: 700; padding: 0 .3rem; }
.tag { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--fs-1); font-weight: 650; padding: .08rem .5rem; border-radius: 4px; border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--card); white-space: nowrap; }
.tag.ok { color: var(--ok); background: var(--ok-wash); border-color: #b5e6c8; }
.tag.warn { color: var(--warn); background: var(--warn-wash); border-color: #f2d2b6; }
.tag.info { color: var(--accent-ink); background: var(--accent-wash); border-color: #cfd6e3; }
.tag.my { color: var(--my); background: var(--my-wash); border-color: #dcd7e8; }
.notice { border-left: 3px solid var(--warn); background: var(--warn-wash); padding: .7rem 1rem; border-radius: 0 8px 8px 0; color: #4a1f06; font-size: var(--fs-2); }
.notice.info { border-color: var(--accent); background: var(--accent-wash); color: #1f2f4d; }
.notice.my { border-color: var(--my); background: var(--my-wash); color: #2f2748; }
.src { font-size: var(--fs-2); color: var(--ink-3); }
.price { font-size: var(--fs-4); font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-sm { font-size: var(--fs-4); font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { border: 1.5px dashed var(--rule-2); border-radius: var(--radius); padding: var(--s4); background: var(--card); }
.empty p { margin: 0 0 .4rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 999px; vertical-align: middle; margin: 0 .3rem 0 .6rem; }
.dot.live { background: var(--accent); }
.dot.link { background: transparent; border: 2px solid var(--ink-3); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .3rem 0; border-bottom: 1px solid var(--rule); }
section + section { margin-top: var(--s6); }
@media (max-width: 680px) { section + section { margin-top: var(--s5); } }

/* ───── 홈: 01 마스트헤드 ───── */
.mast { background: var(--card); border-bottom: 1px solid var(--rule); padding: var(--s5) 0 var(--s4); position: relative; overflow: hidden; }
.mast::before { /* 공책 격자 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .45; mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.mast .wrap { position: relative; }
.mast-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s5); align-items: end; }
@media (max-width: 900px) { .mast-grid { grid-template-columns: 1fr; gap: var(--s4); } }
.mast h1 { margin: .3rem 0 0; }
.mast h1 span { display: block; }
.mast h1 em { font-style: normal; color: var(--accent); background: linear-gradient(transparent 62%, var(--hot-wash) 62%); }
.mast h1 .l3 { color: var(--ink-2); font-weight: 700; }
.mast-note dl { margin: 0; border-top: 3px solid var(--ink); }
.mast-note dl > div { display: grid; grid-template-columns: 3.2rem 1fr; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.mast-note dt { font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .06em; color: var(--accent); font-weight: 600; padding-top: .15rem; }
.mast-note dd { margin: 0; font-weight: 600; font-size: var(--fs-2); }
.quick { margin-top: var(--s4); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.4fr) auto; gap: 0; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.q-field { padding: .45rem .9rem .5rem; border-right: 1px solid var(--rule); min-width: 0; }
.q-field label { font-size: var(--fs-2); font-weight: 650; color: var(--ink-2); margin: 0; }
.q-field select, .q-field input { border: 0; padding: .1rem 0; min-height: 34px; font-weight: 650; background: transparent; box-shadow: none; }
.q-field select:focus, .q-field input:focus { box-shadow: none; }
.q-go { border-radius: 0; border: 0; box-shadow: none; min-height: 100%; padding: 0 1.6rem; font-size: var(--fs-3); }
.q-go:active { transform: none; background: var(--accent-ink); }
@media (max-width: 820px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .q-field { border-bottom: 1px solid var(--rule); }
  .q-field.grow { grid-column: 1 / -1; border-right: 0; }
  .q-go { grid-column: 1 / -1; min-height: 50px; }
}

/* ───── 홈: 02 생애주기 · 03 단계 상세 ───── */
.home > .wrap > :first-child { margin-top: var(--s5); }
.life-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); margin-top: var(--s5); align-items: start; }
@media (max-width: 900px) { .life-grid { grid-template-columns: 1fr; gap: var(--s4); } }
.stage-keys { display: grid; gap: .7rem; }
.stage-group-label { font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .1em; color: var(--ink-3); margin: 0 0 .35rem; text-transform: uppercase; }
/* 단계 카드: 모든 카드가 같은 너비·높이 (2칸 격자). 예전 54px 세로 버튼 11개보다 짧고, 칩보다는 크게 */
.stage-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stage-group .stage-group-label { grid-column: 1 / -1; margin-bottom: -2px; }
.stage-key {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; column-gap: .5rem; row-gap: .1rem;
  width: 100%; height: 56px; text-align: left;
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--rule-2); border-radius: 10px;
  padding: .5rem .8rem; cursor: pointer; line-height: 1.25; /* font: inherit 뒤에 둬야 덮어써지지 않음 */
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.stage-key:hover { border-color: var(--ink); }
.stage-key[aria-selected='true'] { background: var(--accent-wash); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stage-key[aria-selected='true'] .sk-range { color: var(--accent-ink); }
.sk-label { grid-column: 1; grid-row: 1; font-weight: 750; font-size: var(--fs-3); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-range { grid-column: 1; grid-row: 2; font-family: var(--mono); font-size: var(--fs-1); color: var(--ink-3); }
.sk-state { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: .3rem; }
.sk-state .dot { margin: 0; width: .5rem; height: .5rem; }
.legend { margin-top: var(--s3); }
.legend .dot:first-child { margin-left: 0; }
.life-detail .sec-head { border-top-color: var(--accent); }
.stage-panel { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: var(--s4) var(--s4) var(--s3); animation: panel-in .32s cubic-bezier(.2,.8,.2,1); }
@keyframes panel-in { from { opacity: .2; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.sp-title { border-bottom: 1px solid var(--rule); padding-bottom: var(--s3); margin-bottom: var(--s3); }
.sp-title h3 { font-size: var(--fs-5); font-weight: 850; letter-spacing: -0.045em; margin: 0; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.sp-range { font-family: var(--mono); font-size: var(--fs-3); font-weight: 500; color: var(--accent); letter-spacing: 0; }
.sp-summary { font-size: var(--fs-3); color: var(--ink-2); margin: .5rem 0 0; max-width: 40rem; }
.sp-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); }
@media (max-width: 640px) { .sp-cols { grid-template-columns: 1fr; } }
.sp-count { margin: var(--s3) 0 0; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.sp-count .big { font-size: var(--fs-5); font-weight: 850; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
ol.checks { list-style: none; counter-reset: c; padding: 0; margin: 0; }
ol.checks li { counter-increment: c; display: grid; grid-template-columns: 1.8rem 1fr; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
ol.checks li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-1); color: var(--accent); padding-top: .18rem; }
.sp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: var(--s4) 0 var(--s3); }

/* 홈: 04 숫자 · 05 읽는 법 */
.band { margin-top: var(--s6); }
.figures { margin: 0 0 var(--s3); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figures > div { padding: var(--s3) var(--s3) var(--s3) 0; border-right: 1px solid var(--rule); }
.figures > div + div { padding-left: var(--s3); }
.figures > div:last-child { border-right: 0; }
.figures dt { font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.figures dd { margin: .25rem 0; font-size: var(--fs-5); font-weight: 850; letter-spacing: -0.045em; line-height: 1.05; }
.figures dd small { font-size: var(--fs-2); font-weight: 600; margin-left: .15rem; color: var(--ink-2); letter-spacing: 0; }
.figures p { margin: 0; font-size: var(--fs-2); color: var(--ink-2); }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figures > div:nth-child(2) { border-right: 0; } .figures > div:nth-child(n+3) { border-top: 1px solid var(--rule); } .figures > div:nth-child(3) { padding-left: 0; } }
.read-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.read-cols article { padding: 0 var(--s4) 0 0; }
.read-cols article + article { border-left: 1px solid var(--rule); padding-left: var(--s4); }
.read-cols h3 { font-size: var(--fs-3); }
.read-cols p { color: var(--ink-2); font-size: var(--fs-2); margin: 0; }
@media (max-width: 820px) { .read-cols { grid-template-columns: 1fr; gap: var(--s3); } .read-cols article + article { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s3); } }

/* ───── 학원 찾기 ───── */
.page-head { padding: var(--s5) 0 var(--s3); }
.page-head h1 { font-size: var(--fs-6); }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr) auto; gap: var(--s3); align-items: end; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); padding: var(--s3) 0; }
.filter-bar .btn { min-height: 44px; }
@media (max-width: 1000px) { .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-bar .grow { grid-column: 1 / -1; } .filter-bar .btn { grid-column: 1 / -1; } }
.search-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: var(--s3) 0; }
.search-meta p { margin: 0; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.seg a { padding: .45rem .9rem; text-decoration: none; color: var(--ink); font-weight: 650; font-size: var(--fs-2); min-height: 40px; display: inline-flex; align-items: center; }
.seg a + a { border-left: 1.5px solid var(--ink); }
.seg a[aria-current='page'] { background: var(--ink); color: #fff; }
.nearby { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: start; }
@media (max-width: 960px) { .nearby { grid-template-columns: 1fr; } }
.nearby-map { position: sticky; top: 80px; display: grid; gap: var(--s2); }
@media (max-width: 960px) { .nearby-map { position: static; } }
.radius-bar { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.radius-bar .kicker { margin: 0 .3rem 0 0; }
.map-frame { position: relative; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #e8ebf3; background-image: linear-gradient(var(--rule-2) 1px, transparent 1px), linear-gradient(90deg, var(--rule-2) 1px, transparent 1px); background-size: 40px 40px; }
.map { height: min(62vh, 560px); min-height: 320px; width: 100%; }
@media (max-width: 960px) { .map { height: 360px; } }
.map-fail { position: absolute; inset: auto 12px 12px; background: var(--card); padding: .5rem .75rem; border-radius: 8px; margin: 0; font-size: var(--fs-2); }
.map-foot { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.pin.in { background: var(--hot); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(12,19,48,.35); }
.pin.out { background: #fff; border: 2px solid var(--ink-3); width: 16px; height: 16px; opacity: .8; }
.pin.in { line-height: 1; }
.leaflet-container { font-family: var(--font); }
.count-line { margin: 0 0 .25rem; font-size: var(--fs-3); }
.count-line strong { font-size: var(--fs-5); font-weight: 850; letter-spacing: -0.04em; color: var(--hot); margin-right: .1rem; }
.alist { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s3); counter-reset: a; }
.grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-list { grid-template-columns: 1fr; } }
.unlocated { margin-top: var(--s4); border-top: 1px solid var(--rule); padding-top: var(--s3); }
details summary { cursor: pointer; font-weight: 700; min-height: 32px; }

/* 학원 카드: 머리(이름) · 거리 · 가격표(점선 리더) · 꼬리 */
.acard { background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: var(--s3) var(--s3) .75rem; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'head dist' 'addr addr' 'fees fees' 'foot foot'; column-gap: var(--s3); height: 100%; transition: border-color .15s, box-shadow .15s; }

.acard-head { grid-area: head; min-width: 0; }
.acard-head .kicker { margin-bottom: .15rem; }
.acard h3 { font-size: var(--fs-4); margin: 0 0 .4rem; }
.acard h3 a { color: var(--ink); text-decoration: none; }
.acard h3 a:hover { text-decoration: underline; }
.acard-dist { grid-area: dist; text-align: right; display: flex; flex-direction: column; align-items: flex-end; max-width: 9rem; }
.acard-dist .dist { font-size: var(--fs-4); font-weight: 850; letter-spacing: -0.03em; color: var(--hot); line-height: 1.1; }
.acard-addr { grid-area: addr; margin: .5rem 0 .35rem; }
.fee-lines { grid-area: fees; list-style: none; padding: 0; margin: 0 0 .4rem; font-size: var(--fs-2); }
.fee-lines li { display: flex; align-items: baseline; gap: .4rem; padding: .12rem 0; }
.fee-lines .dots { flex: 1; border-bottom: 1.5px dotted var(--rule-2); transform: translateY(-3px); min-width: 1rem; }
.fee-lines .fee-note { font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .04em; color: var(--warn); }
.acard > p.small:not(.acard-addr) { grid-area: fees; margin: 0 0 .4rem; }
.acard-foot { grid-area: foot; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: .6rem; margin-top: auto; }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-2); }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
/* 표 머리: 굵은 먹선 대신 가는 선 + 옅은 글자 → 표가 무거워 보이지 않게 */
thead th { background: transparent; font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--rule-2); padding-top: .6rem; padding-bottom: .45rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-table th[scope='row'] { position: sticky; left: 0; background-color: var(--card); min-width: 7.5rem; z-index: 1; box-shadow: 1px 0 0 var(--rule); font-weight: 700; }
.compare-table td { min-width: 12rem; }
.compare-table thead th { vertical-align: bottom; text-transform: none; font-family: var(--font); font-size: var(--fs-2); letter-spacing: -0.01em; color: var(--ink); border-bottom: 1px solid var(--rule-2); }
@media (max-width: 680px) { .compare-table th[scope='row'] { min-width: 6rem; max-width: 6.5rem; font-size: var(--fs-2); } .compare-table td { min-width: 10.5rem; } }
.scroll-hint { font-size: var(--fs-2); color: var(--ink-3); }

/* 일반 페이지 머리 (비교함·우리 아이·상세) */
main > .wrap.stack { padding-top: var(--s5); }
main > .wrap.stack > h1:first-child, main > .wrap.stack > div:first-child > h1 { border-bottom: 3px solid var(--ink); padding-bottom: var(--s3); }

/* ───── 우리 아이 ───── */
.my-head { background: var(--card); border: 2px solid var(--my); border-radius: 14px; padding: 1.25rem; box-shadow: 0 4px 0 var(--my); }
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 2px solid var(--ink); margin: 1rem 0; }
.tabs button { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: .6rem .85rem; min-height: 44px; cursor: pointer; color: var(--ink-2); white-space: nowrap; transition: color .15s, border-color .15s; }
.tabs button:active { transform: translateY(1px); }
.tabs button[aria-selected='true'] { color: var(--my); border-bottom-color: var(--my); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.timeline li { border-left: 3px solid #dcd7e8; padding-left: .9rem; }
.roadmap { display: grid; gap: .4rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roadmap .yr { border: 1px solid var(--rule-2); border-radius: 8px; padding: .5rem .65rem; background: var(--card); font-size: var(--fs-2); }
.roadmap .yr .num { font-family: var(--mono); font-size: var(--fs-1); color: var(--ink-3); }
.roadmap .yr.now { border: 2px solid var(--my); background: var(--my-wash); font-weight: 750; }
.week { display: grid; gap: .5rem; grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 720px) { .week { grid-template-columns: 1fr; } }
.week .day { background: var(--card); border: 1px solid var(--rule-2); border-radius: 8px; padding: .5rem; min-height: 5rem; }
.week .slot { background: var(--my-wash); border-radius: 6px; padding: .25rem .4rem; font-size: var(--fs-2); margin-top: .3rem; }
.week .slot.overlap { background: var(--warn-wash); outline: 1px solid #f2d2b6; }
.entry-body { white-space: pre-wrap; }
dialog { border: 2px solid var(--ink); border-radius: 14px; padding: 1.25rem; max-width: min(92vw, 520px); box-shadow: 0 6px 0 var(--ink); }
dialog::backdrop { background: rgba(12,19,48,.45); }

/* ───── 글 ───── */
.prose { max-width: 46rem; padding-top: var(--s5); }
.prose header h1 { border-bottom: 3px solid var(--ink); padding-bottom: var(--s3); font-size: var(--fs-6); }
.prose h2 { margin-top: 2rem; padding-top: .75rem; border-top: 1px solid var(--rule); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: .3rem 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: .5rem; align-items: flex-start; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.checklist input { width: 1.2rem; min-height: 1.2rem; margin-top: .3rem; flex: none; accent-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .hdr, .ftr, .dev-banner, .no-print { display: none !important; } body { background: #fff; } }

/* ───── 평생교육: 강좌·기관 ───── */
.lifelong-bar { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr) auto auto; }
.inst-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) auto; }
@media (max-width: 1000px) { .lifelong-bar, .inst-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lifelong-bar .grow, .inst-bar .grow { grid-column: 1 / -1; } .lifelong-bar .btn, .inst-bar .btn { grid-column: 1 / -1; } }
.checks-inline { display: flex; flex-direction: column; gap: .2rem; justify-content: flex-end; }
.checks-inline label { display: flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.checks-inline input { width: 1.1rem; min-height: 1.1rem; accent-color: var(--accent); }
.pmeta { grid-area: fees; margin: .6rem 0 .4rem; display: grid; gap: .15rem; }
.pmeta > div { display: grid; grid-template-columns: 4.6rem 1fr; gap: .5rem; padding: .2rem .35rem; margin: 0 -.35rem; border-radius: 4px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.pmeta > div:last-child { border-bottom: 0; }
.pmeta dt { font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .04em; color: var(--ink-3); padding-top: .1rem; }
.pmeta dd { margin: 0; min-width: 0; }
.pcard .acard-dist .dist { font-size: var(--fs-4); }
.icard .inotes { grid-area: fees; margin: 0 0 .4rem; }
.icard .inotes li { padding: .2rem 0; }
.kind-keys { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: var(--s2); }
@media (max-width: 1000px) { .kind-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kind-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kind-key { display: flex; flex-direction: column; justify-content: space-between; gap: .3rem; min-height: 72px; padding: .6rem .75rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 750; box-shadow: 0 3px 0 var(--ink); transition: transform .07s, box-shadow .07s, background .15s; }
.kind-key .num { font-family: var(--mono); font-size: var(--fs-2); color: var(--ink-3); font-weight: 600; }
.kind-key:hover { background: var(--accent-wash); }
.kind-key:active { transform: translateY(3px); box-shadow: none; }
.kind-key[aria-current='page'] { background: var(--accent-wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 3px 0 var(--ink); }
.kind-key[aria-current='page'] .num { color: var(--accent-ink); }
.more-kinds a[aria-current='page'] { font-weight: 800; }
.home-life { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; }
@media (max-width: 900px) { .home-life { grid-template-columns: 1fr; gap: var(--s4); } }
.aud-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aud-keys a { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .65rem .8rem; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 750; box-shadow: 0 3px 0 var(--ink); transition: transform .07s, box-shadow .07s, background .15s; }
.aud-keys a:hover { background: var(--accent-wash); }
.aud-keys a:active { transform: translateY(3px); box-shadow: none; }
.aud-keys .num { font-family: var(--mono); font-size: var(--fs-1); color: var(--ink-3); font-weight: 600; }
.aud-keys .num, .kind-key .num { white-space: nowrap; }
@media (max-width: 400px) { .nav a { padding: .5rem .32rem; font-size: var(--fs-2); } .hdr .wrap { gap: .25rem; } }
@media (max-width: 350px) { .logo { font-size: 0; gap: 0; } }
.kind-keys { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kind-keys.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kind-keys, .kind-keys.seven { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kind-keys, .kind-keys.seven { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.life-tabs { margin-bottom: var(--s3); }
.lcard .acard-addr { color: var(--ink-2); }

/* 커서를 올리면 그 덩어리가 살짝 도드라짐 — 장사하셈의 ‘떠오름’을 EduStep에 맞게 걸러서:
   · 결과 카드(.acard): 같은 움직임을 2/3로 (2px 들림 + 먹색 그림자 4px). 3열로 빽빽하고 모서리가 둥글어 6px는 무거움
   · 데이터 표(.table-wrap): 누르는 곳이 아니고 읽는 중 글자가 움직이면 안 되므로 들지 않고, 먹선 + 얇은 그림자만
   · 입력 폼이 든 .card 는 제외 (쓰는 중에 상자가 움직이지 않게) */
.acard, .table-wrap { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
@media (hover: hover) {
  .acard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); }
  .table-wrap:hover { box-shadow: 3px 3px 0 var(--ink); border-color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .acard:hover { transform: none; } }

/* 오와 열: 생애주기(왼쪽)와 단계 상세(오른쪽)의 머리·본문 시작·아래 끝을 같은 선에 */
.life-grid { align-items: stretch; }
.life-grid > section + section { margin-top: 0; }
.life-grid .sec-head { min-height: 5.6rem; margin-bottom: var(--s3); }
.life-detail { display: flex; flex-direction: column; }
.life-detail .stage-panel { flex: 1; }
@media (max-width: 900px) { .life-grid .sec-head { min-height: 0; } }
.life-list { display: flex; flex-direction: column; }
.life-list .legend { margin-top: auto; padding-top: var(--s3); margin-bottom: 0; }

/* ───── 지역 요약 ───── */
.region-table th[scope='row'] a { font-weight: 750; color: var(--ink); text-decoration: none; }
.region-table th[scope='row'] a:hover { text-decoration: underline; }
.region-table th:first-child, .region-table td:first-child { width: 22%; }
.region-office .sec-head .sec-no { min-width: 2.6rem; text-align: center; }
.region-lead { max-width: 46rem; margin-top: var(--s3); }
.region-lead p { margin: 0 0 .35rem; color: var(--ink-2); }
.region-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
@media (max-width: 820px) { .region-cols { grid-template-columns: 1fr; gap: 0; } }
.gcard { grid-template-areas: 'head head' 'addr addr' 'foot foot'; }
.gcard .acard-addr { color: var(--ink-2); font-size: var(--fs-2); }
.guide-article .prose { margin: 0; }
.prose .lead { font-size: var(--fs-4); margin: var(--s3) 0 .3rem; }
.example-tag { margin-left: .3rem; vertical-align: 1px; }

/* ───── 연결: 공공 상담 창구 ───── */
.hcard { grid-template-areas: 'head head' 'body body' 'foot foot'; grid-template-rows: auto 1fr auto; }
.hcard-body { grid-area: body; }
.hwhat { margin: .5rem 0 .4rem; color: var(--ink-2); }
.inside-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .inside-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .inside-keys { grid-template-columns: 1fr; } }

/* ───── 추후 서비스 예정 ───── */
.tag.soon { color: var(--accent-ink); background: var(--accent-wash); border: 1px dashed var(--accent); }
.soon-dot { font-size: var(--fs-1); color: var(--ink-3); font-weight: 600; }
.seg a[aria-current='page'] .soon-dot { color: #c9d2e2; }
.upcoming-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .upcoming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .upcoming-grid { grid-template-columns: 1fr; } }
.ucard { grid-template-areas: 'head head' 'addr addr' 'foot foot'; grid-template-rows: auto 1fr auto; border-style: dashed; }
.ucard .acard-addr { color: var(--ink-2); font-size: var(--fs-2); }
.upcoming-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.upcoming-cols .band { margin-top: var(--s4); }
@media (max-width: 900px) { .upcoming-cols { grid-template-columns: 1fr; gap: 0; } }
/* 광고 자리: 목록 밖, 위아래 여백과 ‘광고’ 표시 */
.ad-slot { margin: var(--s5) 0; padding-top: var(--s2); border-top: 1px solid var(--rule); }
.ad-label { font-family: var(--mono); font-size: var(--fs-1); color: var(--ink-3); margin: 0 0 var(--s2); letter-spacing: .06em; }

