/* 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 */  /* 13px 라벨·출처·기준일 */  /* 15px 보조 설명·검색 라벨 */      /* 16px 본문 */   /* 20px 카드 제목·가격 */   /* 섹션 제목·큰 숫자 */   /* 페이지 제목 (2026-11-17 운영자: 너무 큼 → 한 단계 낮춤) */
  --card: #ffffff;
  /* 원색을 쓰지 않는다: 채도를 낮춘 남청(행동·선택) + 낮은 테라코타(강조 한 곳). 2026-11-17 운영자 요청 */
  --ok: #067647;
  --ok-wash: #e9f8ef;
  --warn: #8a3a0c;
  --warn-wash: #fdf3ea;
  --danger: #b42318;
  --my: #6a5b98;
  --my-wash: #f3f1f7;
  --wrap: 1240px;
  --gutter: 24px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px;
  --font: Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --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); background: var(--paper);
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { 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: 800; 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: 700; }
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: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .4rem; }
.sec-no { font-family: var(--mono); font-size: var(--fs-1); line-height: 1.4; display: inline-block; }
.sec-no.inline { margin-right: .4rem; }
.sec-head { display: flex; gap: var(--s3); align-items: flex-start; }
.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: 400; 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 { position: sticky; top: 0; z-index: 20; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: nowrap; }
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.logo small { font-family: var(--mono); font-weight: 400; letter-spacing: .06em; color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 4px; }
.nav { display: flex; gap: .15rem; flex-wrap: nowrap; }
.nav a { text-decoration: none; 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.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 { padding: var(--s4) 0 var(--s5); }
.ftr nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }

/* ───── 공통 부품 ───── */
.card { background: var(--card); border: 1px solid var(--rule); 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; background: var(--card); color: var(--ink); font: inherit;
  cursor: pointer; text-decoration: none; transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.btn:hover { background: var(--paper); }
.btn.primary:hover { background: #222a48; }
.btn.my { background: var(--my); color: #fff; }
.btn.ghost { 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); }
.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; background: var(--card); color: var(--ink); cursor: pointer; transition: transform .08s, box-shadow .08s, background .12s; }
.chip:active { transform: translateY(2px); box-shadow: none; }
label { font-weight: 600; font-size: var(--fs-2); display: block; margin-bottom: .25rem; color: var(--ink-2); }
input, select, textarea { font: inherit; background: var(--card); padding: .55rem .7rem; min-height: 44px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; }
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: 600; padding: .08rem .5rem; 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; color: #4a1f06; font-size: var(--fs-2); }
.notice.info { background: var(--accent-wash); color: #1f2f4d; }
.notice.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: 800; 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-radius: var(--radius); padding: var(--s4); background: var(--card); }
.empty p { margin: 0 0 .4rem; }
.note-box { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4); background: var(--card); margin-top: var(--s4); }
.note-box h2 { font-size: var(--fs-3); margin: 0 0 .5rem; }
.note-box ul { margin: 0; padding-left: 1.1rem; line-height: 1.7; }
.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 { 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 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@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; }
.mast-note dl { margin: 0; }
.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; background: var(--card); overflow: hidden; }
.q-field { padding: .45rem .9rem .5rem; min-width: 0; }
.q-field label { margin: 0; }
.q-field select, .q-field input { border: 0; padding: .1rem 0; min-height: 34px; font-weight: 600; 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); }
@media (max-width: 900px) { .life-grid { grid-template-columns: 1fr; gap: var(--s4); } }
.stage-keys { display: grid; }
.stage-group-label { font-family: var(--mono); font-size: var(--fs-1); 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 { 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); border-radius: 10px; cursor: pointer; line-height: 1.25; /* font: inherit 뒤에 둬야 덮어써지지 않음 */
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.sk-label { grid-column: 1; grid-row: 1; font-weight: 700; 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); }
.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; }
/* 단계를 눌렀을 때만 스르륵 (첫 화면에서는 움직이지 않음 — 처음 열 때 깜빡여 보이던 원인) */
.stage-panel.picked { 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 { padding-bottom: var(--s3); margin-bottom: var(--s3); }
.sp-title h3 { font-weight: 800; 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); letter-spacing: 0; }
.sp-summary { margin: .5rem 0 0; max-width: 40rem; }
.sp-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@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-weight: 800; letter-spacing: -0.04em; line-height: 1; }
ol.checks { list-style: none; counter-reset: c; padding: 0; margin: 0; }
ol.checks li { counter-increment: c; display: grid; }
ol.checks li::before { padding-top: .18rem; }
.sp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: var(--s4) 0 var(--s3); }

/* 홈: 04 숫자 · 05 읽는 법 */
.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 dt { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.figures dd { line-height: 1.05; }
.figures dd small { font-weight: 600; margin-left: .15rem; letter-spacing: 0; }
.figures p { margin: 0; }
@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(3) { padding-left: 0; } }
.read-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.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 p { 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 h1 { font-size: var(--fs-6); }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr) auto; border-bottom: 1px solid var(--rule); }
.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; overflow: hidden; }
.seg a { padding: .45rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--fs-2); min-height: 40px; display: inline-flex; align-items: center; }
.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; 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; }
.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: 800; 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); 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: 800; 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 { width: 100%; font-size: var(--fs-2); }
th, td { text-align: left; vertical-align: top; }
/* 표 머리: 굵은 먹선 대신 가는 선 + 옅은 글자 → 표가 무거워 보이지 않게 */
thead th { 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; 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 { border-radius: 14px; padding: 1.25rem; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; 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: 700; }
.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 { padding: 1.25rem; max-width: min(92vw, 520px); }

/* ───── 글 ───── */
.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(5, minmax(0, 1fr)) minmax(0, 1.4fr) auto auto; }
.inst-bar { grid-template-columns: minmax(0, 1fr) 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; 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: 700; 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: 700; 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 { font-size: var(--fs-2); } .hdr .wrap { gap: .25rem; } }
.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 (prefers-reduced-motion: reduce) { .acard:hover { transform: none; } }

/* 오와 열: 생애주기(왼쪽)와 단계 상세(오른쪽)의 머리·본문 시작·아래 끝을 같은 선에 */
.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; }
@media (max-width: 900px) { .life-grid .sec-head { min-height: 0; } }
.life-list { display: flex; flex-direction: column; }
.life-list .legend { padding-top: var(--s3); margin-bottom: 0; }

/* ───── 지역 요약 ───── */
.region-table th[scope='row'] a { font-weight: 700; 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' 'fees fees' 'foot foot'; }
.gcard .acard-addr { color: var(--ink-2); font-size: var(--fs-2); }
.gcard .kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard h3 { line-height: 1.3; min-height: 2.6em; }
.gcard .acard-addr { min-height: calc(2 * 1.6em); line-height: 1.6; }
.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; }

/* 같은 줄 카드끼리 칸 높이 맞추기 (오와 열): 제목·주소·금액·아랫줄을 줄 단위로 공유 */
.acard { grid-template-rows: auto auto 1fr auto; }
@supports (grid-template-rows: subgrid) {
  .grid-list { row-gap: 0; }
  .grid-list > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; margin-bottom: var(--s3); }
  .grid-list > li > .acard { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .grid-list > li > .acard > .acard-foot { margin-top: 0; align-self: stretch; }
}

/* ═════════ 2026-11-17 색·선·그림자 개편 (운영자 요청: 흑백·거친 선·검은 그림자 → 부드러운 색) ═════════
 * 원칙: 원색은 쓰지 않는다. 채도를 한 단계 낮춘 여섯 가지 색을 ‘구역 색’으로 돌려 쓴다.
 * 선: 검은 2px 테두리 → 옅은 1px 선. 그림자: 검은 덧그림자 → 남청빛이 도는 옅은 그림자.
 */
:root {
  --accent: #5565c0;
  --accent-ink: #3e4ca3;
  --accent-wash: #eef0fd;
  --hot-wash: #fdeee7;
  --focus: #5565c0;
  --radius: 14px;
  /* 구역 색 (진한 글자색 / 옅은 바탕) */ --c1w: #e4f5f2;  /* 민트 */ --c2w: #e6f1fb;  /* 하늘 */ --c3w: #f0ecfc;  /* 라일락 */ --c4w: #fdefe8;  /* 복숭아 */ --c5w: #fcf4df;  /* 버터 */ --c6w: #fcecf1;  /* 장미 */
  --grad: linear-gradient(90deg, var(--accent), var(--c3) 55%, var(--c6));
}

/* 머리·바닥 */
.hdr { border-bottom-color: transparent; }
.nav a:hover { background: var(--accent-wash); color: var(--accent-ink); }
.ftr { position: relative; }
.ftr::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: .85; }

/* 버튼·칩: 검은 덧그림자 대신 옅은 그림자, 누르면 살짝 내려앉음 */
.btn { border-radius: 10px; }
.btn:hover { border-color: #c5cbe6; }
.btn:active { transform: translateY(0); box-shadow: var(--sh-1); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--c3)); border-color: transparent; color: #fff; }
.btn.primary:hover { border-color: transparent; }
.btn.sm { box-shadow: var(--sh-1); }
.btn.sm:active { transform: translateY(0); box-shadow: var(--sh-1); }
.btn.ghost, .btn.ghost:hover { box-shadow: none; transform: none; }
.chip { border: 1px solid var(--rule-2); box-shadow: none; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
input, select, textarea { border-radius: 10px; }

/* 섹션 머리: 굵은 검은 괘선 → 옅은 선 + 구역 색 짧은 막대 */
.sec-head { position: relative; }
.sec-head::before { content: ''; position: absolute; left: 0; top: -2px; width: 64px; height: 3px; border-radius: 3px; background: var(--sec, var(--accent)); }
.sec-no { border: 0; border-radius: 6px; padding: .12rem .45rem; }
.band:nth-of-type(6n+1), .life-list { --sec: var(--c1); --secw: var(--c1w); }
.band:nth-of-type(6n+2), .life-detail { --sec: var(--c3); --secw: var(--c3w); }
.band:nth-of-type(6n+3) { --sec: var(--c2); --secw: var(--c2w); }
.band:nth-of-type(6n+4) { --sec: var(--c4); --secw: var(--c4w); }
.band:nth-of-type(6n+5) { --sec: var(--c5); --secw: var(--c5w); }
.band:nth-of-type(6n+6) { --sec: var(--c6); --secw: var(--c6w); }
.life-detail .sec-head { border-top-color: var(--rule); }

/* 첫 화면: 은은한 색 번짐 */
.mast-note dl { border-top: 0; background: rgba(255, 255, 255, .75); border: 1px solid var(--rule); border-radius: var(--radius); padding: .25rem 1rem; box-shadow: var(--sh-1); }
.mast-note dl > div:last-child { border-bottom: 0; }
.mast-note dl > div:nth-child(1) dt { color: var(--c1); }
.mast-note dl > div:nth-child(2) dt { color: var(--c3); }
.mast-note dl > div:nth-child(3) dt { color: var(--c4); }
.q-go { background: linear-gradient(135deg, var(--accent), var(--c3)); }

/* 생애주기: 묶음마다 색 */
.stage-key[aria-selected='true'] .sk-range { color: var(--g, var(--accent-ink)); }
.stage-group:nth-child(5n+1) { --g: var(--c4); --gw: var(--c4w); }
.stage-group:nth-child(5n+2) { --g: var(--c1); --gw: var(--c1w); }
.stage-group:nth-child(5n+3) { --g: var(--c2); --gw: var(--c2w); }
.stage-group:nth-child(5n+4) { --g: var(--c3); --gw: var(--c3w); }
.stage-group:nth-child(5n+5) { --g: var(--c5); --gw: var(--c5w); }
.stage-group-label { color: var(--g, var(--ink-3)); }
.stage-key .dot.live { background: var(--g, var(--accent)); }

/* 카드: 옅은 선 + 옅은 그림자, 올리면 살짝 떠오름 */
.acard { border-radius: var(--radius); }
.card { border-color: var(--rule); border-radius: var(--radius); box-shadow: var(--sh-1); }
@media (hover: hover) {
  .acard:hover { transform: translateY(-2px); }
}
/* 안내 글 카드: 묶음 색 띠 (위쪽 안쪽 그림자라 칸 배치에 영향 없음) */
.band .gcard { box-shadow: inset 0 3px 0 var(--sec, var(--accent)), var(--sh-1); }
.gcard .kicker { color: var(--sec, var(--ink-3)); }

/* 종류 고르기 칸: 칸마다 구역 색 */
.kind-key, .aud-keys a { background: var(--card); }
.kind-key:nth-child(6n+1), .aud-keys a:nth-child(6n+1) { --k: var(--c1); --kw: var(--c1w); }
.kind-key:nth-child(6n+2), .aud-keys a:nth-child(6n+2) { --k: var(--c3); --kw: var(--c3w); }
.kind-key:nth-child(6n+3), .aud-keys a:nth-child(6n+3) { --k: var(--c2); --kw: var(--c2w); }
.kind-key:nth-child(6n+4), .aud-keys a:nth-child(6n+4) { --k: var(--c4); --kw: var(--c4w); }
.kind-key:nth-child(6n+5), .aud-keys a:nth-child(6n+5) { --k: var(--c5); --kw: var(--c5w); }
.kind-key:nth-child(6n+6), .aud-keys a:nth-child(6n+6) { --k: var(--c6); --kw: var(--c6w); }
.kind-key .num, .aud-keys a .num { color: var(--k); }
.kind-key:hover, .aud-keys a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--k); background: var(--card); }
.kind-key:active, .aud-keys a:active { transform: translateY(0); box-shadow: var(--sh-1); }
.kind-key[aria-current='page'], .aud-keys a[aria-current='page'] { background: var(--kw); border-color: var(--k); }

/* 나머지 굵은 검은 선 */
.filter-bar { border-top: 1px solid var(--rule); }
.seg { border: 1px solid var(--rule-2); border-radius: 10px; background: var(--card); box-shadow: var(--sh-1); }
.seg a + a { border-left: 1px solid var(--rule); }
.seg a[aria-current='page'] { background: var(--accent); color: #fff; }
.map-frame { border: 1px solid var(--rule-2); border-radius: var(--radius); box-shadow: var(--sh-1); }
.tabs { border-bottom: 1px solid var(--rule-2); }
dialog { border: 1px solid var(--rule); border-radius: 18px; }
.my-head { border: 1px solid #ddd6f0; box-shadow: var(--sh-1); background: linear-gradient(135deg, #fff, var(--my-wash)); }
main > .wrap.stack > h1:first-child, main > .wrap.stack > div:first-child > h1, .prose header h1 {
  border-bottom: 1px solid var(--rule);
}
.empty { border: 1px dashed var(--rule-2); }
.note-box { box-shadow: var(--sh-1); }
.tag { border-radius: 6px; }

/* 숫자 묶음·읽을거리: 칸마다 옅은 색 바탕 타일 */
.figures > div:nth-child(n) { border: 0; }
.figures > div:nth-child(4n+1) { --tc: var(--c1); --tw: var(--c1w); }
.figures > div:nth-child(4n+2) { --tc: var(--c3); --tw: var(--c3w); }
.figures > div:nth-child(4n+3) { --tc: var(--c2); --tw: var(--c2w); }
.figures > div:nth-child(4n+4) { --tc: var(--c4); --tw: var(--c4w); }
.read-cols { gap: 12px; }
.read-cols article:nth-child(n) { border-radius: var(--radius); }
.read-cols article:nth-child(3n+1) { --tc: var(--c2); }
.read-cols article:nth-child(3n+2) { --tc: var(--c5); }
.read-cols article:nth-child(3n+3) { --tc: var(--c6); }

/* 첫 화면 보조 문장·비교표 미리보기 (2026-11-17) */
.mast-sub { margin: var(--s3) 0 0; font-size: var(--fs-3); max-width: 34rem; }
.cmp-preview { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); box-shadow: var(--sh-1); overflow-x: auto; }
.cmp-preview table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-preview th[scope='row'] { width: 9.5rem; color: var(--ink-2); font-weight: 600; font-size: var(--fs-2); background: var(--paper); }
.cmp-preview thead th { font-family: var(--font); text-transform: none; letter-spacing: -0.01em; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--rule-2); }
.cmp-preview thead th:nth-child(2) { box-shadow: inset 0 3px 0 var(--c1); }
.cmp-preview thead th:nth-child(3) { box-shadow: inset 0 3px 0 var(--c3); }
.cmp-preview thead th:nth-child(4) { box-shadow: inset 0 3px 0 var(--c4); }
.cmp-preview thead th a { color: var(--ink); text-decoration: none; }
.cmp-preview thead th a:hover { text-decoration: underline; }
.cmp-preview tbody tr:last-child th, .cmp-preview tbody tr:last-child td { border-bottom: 0; }

/* 목록 ‘더 보기’ */
.more-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: var(--s4) 0 0; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--font); }
tbody th[scope='row'], td.n, th.n { white-space: nowrap; }

/* 기록장 고르기 (아이마다 + 나의 배움) */
.profile-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { font: inherit; font-weight: 700; min-height: 40px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); cursor: pointer; box-shadow: var(--sh-1); }
.pchip:hover { border-color: var(--my); }
.pchip[aria-pressed='true'] { background: var(--my-wash); border-color: var(--my); color: var(--my); }
.pchip.self[aria-pressed='true'] { background: var(--c1w); border-color: var(--c1); color: var(--c1); }
.pchip.add { border-style: dashed; box-shadow: none; color: var(--ink-2); font-weight: 600; }

/* 대학 정보 */
.univ-bar { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr) auto; }
@media (max-width: 900px) { .univ-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .univ-bar .grow, .univ-bar .btn { grid-column: 1 / -1; } }
.univ-table, .dept-table, .trend-table { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); box-shadow: var(--sh-1); overflow-x: auto; }
.univ-table table, .dept-table table, .trend-table table { width: 100%; border-collapse: collapse; }
.univ-table tbody th[scope='row'], .dept-table tbody th[scope='row'] { white-space: normal; min-width: 11rem; font-weight: 700; }
.univ-table th a { color: var(--ink); text-decoration: none; }
.univ-table th a:hover { text-decoration: underline; }
.u-meta { display: block; font-weight: 400; margin-top: .1rem; }
.univ-table thead th, .dept-table thead th, .trend-table thead th { white-space: nowrap; }
.univ-table tbody tr:hover, .dept-table tbody tr:hover { background: var(--accent-wash); }
.bar-cell { display: flex; align-items: center; gap: .6rem; }
.bar-cell .bar { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--c2), var(--c3)); min-width: 2px; }
.trend-table { max-width: 640px; }
.bar-cell { min-width: 9rem; }
.bar-cell .num { white-space: nowrap; }
@media (max-width: 440px) { .nav a { padding: .5rem .5rem; } }
@media (max-width: 380px) { .nav a { padding: .5rem .35rem; } }

/* 첫 화면 제목: 크기 낮추고, 색은 진한 남색 하나 + 강조어만 그라데이션 글자 (밑줄 형광 제거) */
.mast h1 { line-height: 1.22; letter-spacing: -0.035em; font-weight: 800; color: #1c2246; }
.mast h1 .l3 { color: #1c2246; font-weight: 800; }
.mast-sub { color: #5a627f; }

/* 그림자 (2026-11-17 운영자: 우하향, 얇게, 검정 말고 색) — 라일락·남청빛, 오른쪽 아래로 짧게 */
@media (hover: hover) {
  .acard:hover, .kind-key:hover, .aud-keys a:hover, .btn:hover { transform: translate(-1px, -1px); }
}
.btn:active, .kind-key:active, .aud-keys a:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(108, 99, 196, .14); }
.pin.in { box-shadow: 2px 2px 4px rgba(108, 99, 196, .35); }
dialog { box-shadow: 8px 12px 32px rgba(108, 99, 196, .25); }
dialog::backdrop { background: rgba(40, 36, 90, .35); }
.life-detail .sec-head { flex-wrap: wrap; }
.age-pick { margin-left: auto; align-self: center; }
.age-pick select { min-width: 12rem; font-weight: 600; border-color: var(--c3); color: var(--ink); background-color: var(--c3w); }
@media (max-width: 640px) { .age-pick { margin-left: 0; width: 100%; } .age-pick select { width: 100%; } }

/* 단계 상세 — 바로가기 타일 (2026-11-17 개편: 단추 줄 → 같은 크기 타일) */
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: var(--s3); }
.act { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: .2rem; border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; --a: var(--accent); --aw: var(--accent-wash); }
.act:hover { transform: translate(-1px, -1px); border-color: var(--a); }
.act:active { transform: translate(1px, 1px); }
.act-tag { justify-self: start; font-size: var(--fs-1); font-weight: 700; color: var(--a); background: var(--aw); border-radius: 6px; padding: .05rem .45rem; }
.act-title { font-weight: 700; font-size: var(--fs-3); line-height: 1.35; }
.act-desc { font-size: var(--fs-1); color: var(--ink-3); line-height: 1.45; }
.act-arrow { position: absolute; right: .85rem; top: .8rem; color: var(--a); font-weight: 800; }
.act-academy { --a: #fff; --aw: rgba(255,255,255,.18); background: linear-gradient(135deg, var(--accent), var(--c3)); border-color: transparent; color: #fff; }
.act-academy .act-desc { color: rgba(255,255,255,.85); }
.act-academy:hover { border-color: transparent; }
.act-course { --a: var(--c1); --aw: var(--c1w); }
.act-place { --a: var(--c2); --aw: var(--c2w); }
.act-univ { --a: var(--c4); --aw: var(--c4w); }
.act-ext { --a: var(--ink-2); --aw: var(--paper); }
.act-record { --a: var(--my); --aw: var(--my-wash); }

/* 그림자 통일 (2026-11-17 운영자: 모든 그림자 같은 색·방향) — 고른 상태·타일·칩도 같은 우하향 라일락 그림자 */
.pchip[aria-pressed='true'] { box-shadow: inset 0 0 0 1px var(--my), var(--sh-1); }
.pchip.self[aria-pressed='true'] { box-shadow: inset 0 0 0 1px var(--c1), var(--sh-1); }
.pchip.add, .chip { box-shadow: var(--sh-1); }
.act-record { border-style: solid; border-color: #d9d2ee; }
.act-grid + .src, .act-grid + p { margin-top: var(--s3); }

/* 지역 세 칸 (시·도 / 시·군·구 / 읍·면·동) */
.area-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.area-pick select:disabled { opacity: .55; }
@media (max-width: 1000px) { .filter-bar .field:has(.area-pick) { grid-column: 1 / -1; } }
.area-pick.compact { gap: 0; }
.area-pick.compact select { border: 0; padding: .1rem .2rem .1rem 0; min-height: 34px; font-weight: 600; background-color: transparent; box-shadow: none; }
.area-pick.compact select + select { border-left: 1px solid var(--rule); padding-left: .5rem; }
@media (max-width: 760px) { .quick .q-area { grid-column: 1 / -1; } }
/* 그림자 조금 더 또렷하게 (우하향 라일락) */

/* 홈 흐름: 1 찾기 → 2 비교 → 3 기록 (2026-11-17 재구성) */
.flow { list-style: none; padding: 0; margin: var(--s4) 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: none; }
.flow li { position: relative; }
.flow li + li::before { left: -11px; top: 50%; color: var(--ink-3); font-weight: 700; }
.flow a { display: grid; grid-template-columns: 2.2rem 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; border: 1px solid var(--rule); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.flow-no { grid-row: 1 / 3; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--fc); }
.flow li:nth-child(1) { --fc: var(--accent); }
.flow li:nth-child(2) { --fc: var(--c1); }
.flow li:nth-child(3) { --fc: var(--my); }
.flow-t { font-weight: 800; }
.flow-d { color: var(--ink-3); }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } .flow li + li::before { left: 1.6rem; top: -6px; transform: translate(-50%, -50%); } }

/* 나이로 찾기: 머리 하나 + 목록/상세 두 칸 */
.life-band .sec-head { flex-wrap: wrap; }
.life-band .life-grid { margin-top: 0; }
.life-band .life-grid .sec-head { display: none; }
/* 흐름: 화살표 대신 이어지는 단계 막대 */
.flow a { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; border-top: 4px solid var(--fc); padding-top: .8rem; background: rgba(255, 255, 255, .85); }
.flow li:first-child a { border-radius: 0 0 0 12px; }
.flow li:last-child a { border-radius: 0 0 12px 0; }
@media (max-width: 640px) { .flow a { border-radius: 0 !important; border-top-width: 0; border-left: 4px solid var(--fc); } .flow li:first-child a { border-radius: 12px 12px 0 0 !important; } .flow li:last-child a { border-radius: 0 0 12px 12px !important; } }
@media (max-width: 820px) { .quick .q-field:not(.grow) { grid-column: 1 / -1; } }

/* 2026-11-17 운영자: 둥근 카드 윗부분 얇은 색 띠 디자인은 쓰지 않음 → 모두 제거, 색은 작은 표지(번호·라벨)에만 */
.band .gcard, .band .gcard:hover { box-shadow: var(--sh-1); }
@media (hover: hover) { .band .gcard:hover { box-shadow: var(--sh-2); } }
.read-cols h3 { display: flex; align-items: center; gap: .5rem; }
.read-cols h3::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tc); flex: none; }
.cmp-preview thead th:nth-child(n) { box-shadow: none; }
.flow a, .flow li:first-child a, .flow li:last-child a { padding-top: .7rem; }
.flow a:hover { border-color: #cdd2ee; }
@media (max-width: 640px) { .flow a, .flow li:first-child a, .flow li:last-child a { border-radius: 12px !important; } }

/* 글꼴: 모두 Pretendard (2026-11-17 운영자). 숫자는 고정폭 숫자로 */
:root { --mono: Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; }
body, button, input, select, textarea { font-family: var(--font); }
.num, .kicker, .sec-no, .mini, .figures dt, .chip, .sk-range, .logo small { font-family: var(--font); font-variant-numeric: tabular-nums; }
.kicker, .mini, .figures dt, .stage-group-label { letter-spacing: .02em; text-transform: none; }

/* 밀도 (2026-11-17 운영자: 큰 글자·큰 표로 한 화면에 정보가 적어지지 않게) — 글자 한 단계씩, 여백 줄임 */
:root {  /* 13 */   /* 14 */  /* 15 본문 */ /* 17 카드 제목 */  /* 20~24 섹션 제목·큰 숫자 */     /* 24~32 페이지 제목 */
  --s5: 32px; --s6: 48px;
}
body { line-height: 1.6; }
.mast { padding: var(--s4) 0 var(--s3); }
.mast h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.band { margin-top: var(--s5); }
.sec-head { margin-bottom: var(--s3); padding-top: .75rem; }
.cmp-preview thead th { font-size: var(--fs-2); padding: .55rem .65rem; }
.act { min-height: 0; padding: .65rem 2rem .65rem .8rem; }
.read-cols article:nth-child(n) { padding: .75rem 1rem; }
.acard { padding: .75rem .85rem .6rem; }
.page-head { padding: var(--s4) 0 var(--s3); }
.flow a { padding: .55rem .8rem; }

/* 장식 띠 전부 제거 (섹션 제목 위 짧은 색 막대, 바닥 그라데이션 선, 제목 밑 그라데이션) */
.sec-head::before, .ftr::before { content: none; }
main > .wrap.stack > h1:first-child, main > .wrap.stack > div:first-child > h1, .prose header h1 { background: none; }
/* 이용 흐름: 상자 대신 한 줄 단계 표시 */
.flow { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--s3); }
.flow li { display: flex; align-items: center; }
.flow li + li::before { content: ''; position: static; transform: none; display: block; width: 28px; height: 1px; background: var(--rule-2); margin: 0 10px; }
.flow a, .flow li:first-child a, .flow li:last-child a { display: flex; align-items: center; gap: .5rem; padding: 0; border: 0; border-radius: 0 !important; background: none; box-shadow: none; }
.flow a:hover { transform: none; box-shadow: none; }
.flow a:hover .flow-t { text-decoration: underline; }
.flow-no { width: 1.5rem; height: 1.5rem; font-size: var(--fs-1); }
.flow-t { font-size: var(--fs-2); }
.flow-d { font-size: var(--fs-1); }
@media (max-width: 640px) { .flow { flex-direction: column; align-items: flex-start; gap: 6px; } .flow li + li::before { content: none; } .flow a, .flow li:first-child a, .flow li:last-child a { border: 0; } }

/* 대학 평가·발표 모음: 카드 대신 분류별 목록 (이름·발표처 / 설명 / 최근 소식) */
.rep-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 900px) { .rep-list { grid-template-columns: 1fr; gap: var(--s3); } }
.rep-kind { margin: 0 0 .4rem; font-size: var(--fs-1); font-weight: 700; color: var(--ink-3); }
.rep-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.rep-group li { display: grid; gap: .15rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.rep-name { font-weight: 700; font-size: var(--fs-3); color: var(--ink); text-decoration: none; }
.rep-name span { color: var(--accent); font-size: var(--fs-2); }
.rep-name:hover { text-decoration: underline; }
.rep-by { font-size: var(--fs-1); color: var(--ink-3); }
.rep-what { font-size: var(--fs-2); color: var(--ink-2); line-height: 1.55; }
.rep-recent { justify-self: start; margin-top: .2rem; font-size: var(--fs-1); color: var(--accent-ink); background: var(--accent-wash); border-radius: 6px; padding: .1rem .45rem; text-decoration: none; }
.rep-recent:hover { text-decoration: underline; }
.how-steps { margin: .4rem 0 .6rem; padding-left: 1.2rem; line-height: 1.8; font-size: var(--fs-2); }

/* ═════════ 2026-11-17 디자인 시스템 v2 — 자신감 있는 데이터 화면 ═════════
 * 기준: 표 머리 14px 700 · 본문 15px · 주요 수치 20px 800 · 행 경계 #D8DEE9 · 주요 머리 #202D4C · 보조 머리 #E9EDF5
 *       본문 #25324B · 보조 #526078 · 선택 = 2px 테두리 + 바탕 + ✓ · 표·데이터 칸은 그림자 없이 또렷한 선
 * 피할 것: 모든 표를 남색으로 칠하기, 모든 카드에 그림자. 남색 머리는 비교표처럼 판단에 쓰는 표에만.
 */
:root {
  --navy: #202d4c;
  --head: #e9edf5;
}
.sub, .small.sub, p.sub { color: var(--ink-2); }

/* 표 공통 */
table { border-collapse: collapse; }
th, td { padding: .7rem .85rem; border-bottom: 1px solid var(--rule-2); font-size: var(--fs-3); }
thead th { background: var(--head); color: var(--navy); font-size: .875rem; font-weight: 700; letter-spacing: 0; text-transform: none; font-family: var(--font); border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
tbody th[scope='row'] { color: var(--navy); font-weight: 600; }
td.n, th.n { font-variant-numeric: tabular-nums; }
.table-wrap, .univ-table, .dept-table, .trend-table, .cmp-preview { border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: none; background: #fff; overflow-x: auto; }
@media (hover: hover) { .table-wrap:hover { box-shadow: none; border-color: var(--rule-2); } }
.univ-table tbody tr:hover, .dept-table tbody tr:hover, .cmp-preview tbody tr:hover { background: #f7f9fd; }
.univ-table td.num, .dept-table td.num { font-weight: 600; color: var(--navy); }

/* 판단용 표(비교 예시·비교함): 남색 머리, 항목 열 고정, 큰 수치 */
.cmp-preview thead th, .compare-table thead th { background: var(--navy); color: #fff; font-size: .9375rem; padding: .8rem .85rem; border-bottom: 0; }
.cmp-preview thead th a, .compare-table thead th a { color: #fff; }
.cmp-preview thead th:first-child { color: #c9d1e6; font-weight: 600; }
.cmp-preview th[scope='row'], .compare-table th[scope='row'] { background: #f3f5fa; color: var(--navy); font-weight: 600; position: sticky; left: 0; z-index: 1; }
.cmp-preview td.strong { font-size: 1.25rem; font-weight: 800; color: var(--navy); }

/* 숫자 칸(현황): 하나의 판 + 칸 나눔선, 또렷한 수치, 진한 설명 */
.figures { gap: 0; border: 1px solid var(--rule-2); border-radius: 10px; background: #fff; overflow: hidden; }
.figures > div:nth-child(n) { background: #fff; border-radius: 0; box-shadow: none; padding: .9rem 1.1rem; border-right: 1px solid var(--rule-2); }
.figures > div:last-child { border-right: 0; }
.figures dt { color: var(--ink-2); font-size: .875rem; font-weight: 600; }
.figures dt::before { content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tc); margin-right: .4rem; vertical-align: middle; }
.figures dd { color: var(--navy); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin: .2rem 0 .1rem; }
.figures dd small { color: var(--ink-2); font-size: .9375rem; }
.figures p { color: var(--ink-2); font-size: .875rem; }
@media (max-width: 760px) { .figures > div:nth-child(2n) { border-right: 0; } .figures > div:nth-child(n+3) { border-top: 1px solid var(--rule-2); } }

/* 읽을거리 3열: 그림자 없이 선으로 */
.read-cols article:nth-child(n) { box-shadow: none; border: 1px solid var(--rule-2); background: #fff; }
.read-cols h3 { color: var(--navy); font-size: 1rem; }
.read-cols p { color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }

/* 검색창: 입력칸 경계 또렷하게 */
.quick { box-shadow: none; border-radius: 12px; }
.q-field { border-right: 1px solid var(--rule-2); }
.q-field label { color: var(--navy); font-weight: 700; font-size: .8125rem; }
.area-pick.compact select + select { border-left-color: var(--rule-2); }
input, select, textarea { color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(85, 101, 192, .18); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 상단 메뉴 */
.nav a { font-size: .9375rem; font-weight: 700; }

/* 나이 단계 고르기: 선택 = 2px 테두리 + 바탕 + ✓ */
.stage-key { border: 1px solid var(--rule-2); box-shadow: none; }
.stage-key:hover { border-color: var(--g, var(--accent)); }
.stage-key[aria-selected='true'] { border: 2px solid var(--g, var(--accent)); padding: calc(.45rem - 1px) calc(.7rem - 1px); }
.stage-key[aria-selected='true'] .sk-state::before { content: '✓'; color: var(--g, var(--accent)); font-weight: 800; margin-right: .2rem; }
.stage-key[aria-selected='true'] .sk-state .dot { display: none; }
.sk-label { color: var(--navy); }
.sk-range { color: var(--ink-2); }

/* 단계 상세: 제목 영역 / 주요 정보 / 체크리스트(표의 행처럼) / 행동 */
.stage-panel { padding: 0; overflow: hidden; border: 1px solid var(--rule-2); box-shadow: none; background: #fff; }
.sp-title { background: var(--head); border-bottom: 1px solid var(--rule-2); padding: 1rem 1.25rem; margin: 0; }
.sp-title .kicker { color: var(--ink-2); font-weight: 600; margin-bottom: .15rem; }
.sp-title h3 { color: var(--navy); }
.sp-range { color: var(--ink-2); font-weight: 600; }
.sp-summary { color: var(--ink); font-size: .9375rem; margin-top: .3rem; }
.sp-cols { padding: 1rem 1.25rem 0; gap: 1.5rem; }
.sp-cols .mini { color: var(--navy); font-weight: 700; font-size: .875rem; border-bottom: 1px solid var(--navy); padding-bottom: .4rem; margin-bottom: 0; }
.sp-cols ul.plain li { border-bottom: 1px solid var(--rule-2); padding: .55rem 0; }
ol.checks li { grid-template-columns: 2rem 1fr; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--rule-2); font-size: .9375rem; }
ol.checks li::before { content: counter(c, decimal-leading-zero); font-family: var(--font); font-weight: 800; font-size: .8125rem; color: #fff; background: var(--navy); border-radius: 6px; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; padding: 0; }
.sp-count .big { color: var(--navy); font-size: 1.75rem; }
.stage-panel .act-grid { padding: 0 1.25rem; }
.stage-panel > .src { padding: 0 1.25rem 1rem; }
.act { box-shadow: none; border: 1px solid var(--rule-2); }
.act:hover { box-shadow: var(--sh-1); }
.act-academy { border: 0; }

/* 카드 목록(학원·강좌·기관): 그림자 대신 선, 올리면만 살짝 */
.acard { box-shadow: none; border: 1px solid var(--rule-2); }
@media (hover: hover) { .acard:hover { box-shadow: var(--sh-1); border-color: #c3cbe0; } }
.acard h3, .acard h3 a { color: var(--navy); }
.kind-key, .aud-keys a { box-shadow: none; border: 1px solid var(--rule-2); }
.kind-key[aria-current='page'], .aud-keys a[aria-current='page'] { border: 2px solid var(--k); box-shadow: none; }

/* 바닥: 대비 높이기 */
.ftr { background: #fff; color: var(--ink-2); font-size: .875rem; border-top: 1px solid var(--rule-2); }
.ftr a { color: var(--navy); }

/* 섹션 제목 */
.sec-head h2 { color: var(--navy); font-size: 1.625rem; }
.sec-no { background: var(--head); color: var(--navy); font-weight: 800; }

/* 접근성 (WCAG 2.2 AA): 글자로 쓰는 구역 색을 진하게 (바탕색은 그대로), 표 안 링크 밑줄 */
:root {
  --c1: #1f7a6d; --c2: #2f6fa8; --c3: #6650b8; --c4: #b0502b; --c5: #85610f; --c6: #a3435d;
  --hot: #b0502b;
}
.figures dd.fnote { font-size: .875rem; font-weight: 400; color: var(--ink-2); margin: 0; letter-spacing: 0; }
.univ-table th a, .dept-table th a, .cmp-preview thead th a { text-decoration: underline; text-decoration-color: #b7c0d8; text-underline-offset: 3px; }
.table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--navy); color: #fff; padding: .5rem .9rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }
.quick select:focus-visible, .quick input:focus-visible, .area-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.compare-table thead th button, .compare-table thead th .btn { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.55); box-shadow: none; }
.compare-table thead th button:hover { background: rgba(255,255,255,.12); }
.leaflet-control-attribution a { text-decoration: underline; }
.pair-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pair-bar .pchip { min-height: 36px; font-size: .875rem; padding: .25rem .7rem; }
@media (max-width: 640px) { .compare-table th[scope='col'], .compare-table td { min-width: 0; } .compare-table th[scope='row'] { min-width: 5.5rem; width: 24%; } }
@media (max-width: 640px) { .compare-table { min-width: 0 !important; width: 100%; table-layout: fixed; } .compare-table td, .compare-table th { word-break: keep-all; overflow-wrap: anywhere; padding: .6rem .5rem; } }
@media (max-width: 640px) { .compare-table select { width: 100%; min-width: 0; } .compare-table th[scope='row'] { max-width: none; } }
@media (max-width: 640px) { .compare-table th[scope='col'], .compare-table td { width: auto; } .compare-table th[scope='row'], .compare-table thead th:first-child { width: 26%; min-width: 0; } .compare-table .price-sm { font-size: 1.0625rem; } }
@media (max-width: 640px) { .compare-table thead th a { word-break: break-all; } }
.strong-num { font-weight: 800; color: var(--navy); }

/* 비교함 — 보고서 형태 */
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; border-bottom: 2px solid var(--navy); padding-bottom: .75rem; }
.report-head h2 { margin: 0; font-size: 1.375rem; color: var(--navy); }
.report-head p { margin: .2rem 0 0; }
.report-sum { display: flex; gap: 0; margin: 0; border: 1px solid var(--rule-2); border-radius: 10px; background: #fff; overflow: hidden; }
.report-sum > div { padding: .5rem 1rem; }
.report-sum > div + div { border-left: 1px solid var(--rule-2); }
.report-sum dt { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.report-sum dd { margin: .1rem 0 0; font-size: 1.125rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.report-table td { vertical-align: middle; }
.fee-cell { display: grid; gap: .35rem; }
.fee-num { font-size: 1.25rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.fee-bar { display: block; height: 8px; border-radius: 6px; background: #edf0f6; overflow: hidden; }
.fee-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4f5fc0, #6650b8); }
.report-checks { border: 1px solid var(--rule-2); border-radius: 10px; background: #fff; padding: .85rem 1.1rem; }
.report-checks h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--navy); }
.report-checks ul { margin: 0; padding-left: 1.1rem; line-height: 1.8; font-size: .9375rem; }
@media (max-width: 640px) { .report-sum { width: 100%; } .report-sum > div { flex: 1; } .fee-num { font-size: 1.0625rem; } }
@media (min-width: 900px) { .scroll-hint { display: none; } }

/* 구성: 상단 메뉴 현재 위치, 묶음 탭, 바닥 사이트맵 */
.nav a[aria-current='page'] { background: var(--accent-wash); color: var(--accent-ink); }
.section-tabs { margin-bottom: var(--s3); box-shadow: none; }
.section-tabs a { font-size: .9375rem; }
.ftr-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s3); }
.ftr-map nav { display: flex; flex-direction: column; gap: .35rem; }
.ftr-map p { margin: 0 0 .2rem; font-weight: 800; color: var(--navy); font-size: .875rem; }
.ftr-map a { font-size: .875rem; }
@media (max-width: 760px) { .ftr-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 재진단 적용 (2026-11-17): 선·글자 대비 한 단계 더, 내용이 상자 크기를 정하게 */
input, select, textarea { border: 1.5px solid #b9c4d5; }
.quick { border: 1.5px solid #b9c4d5; }
.sec-head { border-top: 1px solid #c5cedd; }
.life-grid { align-items: start; }
.life-detail .stage-panel { flex: none; }
.life-list .legend { margin-top: var(--s3); }

/* 전국 분포 + 자료 기준 + 주의 (한 섹션) */
.dist-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); align-items: start; }
@media (max-width: 860px) { .dist-grid { grid-template-columns: 1fr; } }
.dist-map { margin: 0; border: 1px solid var(--rule-2); border-radius: 12px; background: #fff; padding: .75rem; }
.dist-map img { display: block; width: 100%; height: auto; object-fit: contain; }
.dist-map figcaption { margin-top: .4rem; }
.dist-side { display: grid; gap: var(--s3); }
.figures.figures-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
@media (max-width: 760px) { .figures.figures-3 { grid-template-columns: 1fr; } .figures.figures-3 > div:nth-child(n) { border-right: 0; border-top: 1px solid var(--rule-2); } .figures.figures-3 > div:first-child { border-top: 0; } }
.read-tips { border: 1px solid var(--rule-2); border-radius: 12px; background: #fff; padding: .9rem 1.1rem; }
.read-tips h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--navy); }
.read-tips ul { margin: 0; padding-left: 1.1rem; line-height: 1.75; font-size: .9375rem; color: var(--ink); }
.read-tips strong { color: var(--navy); }
.dist-map img { max-height: 440px; }
.top-areas { border: 1px solid var(--rule-2); border-radius: 12px; background: #fff; padding: .9rem 1.1rem; }
.top-areas h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--navy); }
.top-areas ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.top-areas li { display: grid; grid-template-columns: 3rem 1fr 4.5rem; align-items: center; gap: .6rem; font-size: .9375rem; }
.top-areas li a { color: var(--navy); font-weight: 700; text-decoration: none; }
.top-areas li a:hover { text-decoration: underline; }
.top-areas .num { text-align: right; font-weight: 700; color: var(--navy); }
.ta-bar { height: 10px; border-radius: 6px; background: #edf0f6; overflow: hidden; }
.ta-bar span { display: block; height: 100%; background: linear-gradient(90deg, #4f5fc0, #6650b8); border-radius: 6px; }

/* ═════════ 선명도 (2026-11-17 운영자: "사이트가 선명하지 못하다") ═════════
 * 흐릿함의 원인을 걷어냄: 번지는 그림자, 첫 화면 색 번짐·격자 무늬, 그라데이션 단추, 얇게 그려지는 글자(antialiased), 연한 회색 글자, 13px 글자.
 * 대신: 1px 또렷한 선, 단색, 진한 글자, 본문 굵기 450, 가장 작은 글자 14px.
 */
:root {
  --ink: #18223a;
  --ink-3: #4f5b74;
  --paper: #f1f3f7;
  --rule: #d5dbe6;
  --rule-2: #c3cbda;
  --sh-1: none;
  --sh-2: 0 0 0 1px #9aa6c0;
}
body { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; font-weight: 400; color: var(--ink); }
.sub, .small.sub, p.sub, .src, .kicker, .mini, .sk-range, .act-desc, .flow-d { color: var(--ink-2); }
small, .small, .src { font-size: .875rem; }
strong, b, th { font-weight: 700; }
/* 첫 화면: 색 번짐·격자 제거, 흰 바탕 + 아래 선 */
.mast { border-bottom: 1px solid var(--rule-2); }
.mast::before, .mast::after { display: none; }
.mast h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent-ink); }
/* 단추: 그라데이션 → 단색 */
.btn.primary, .q-go, .act-academy { background: var(--accent-ink); }
.btn.primary:hover, .q-go:hover { background: #33408d; }
.fee-bar span, .ta-bar span, .bar-cell .bar { background: var(--accent-ink); }
/* 그림자 대신 선 */
.acard, .card, .stage-key, .act, .kind-key, .aud-keys a, .seg, .pchip, .chip, .quick, .stage-panel, .table-wrap, .figures, .read-tips, .top-areas, .dist-map, .report-sum, .report-checks, .note-box, .my-head, .flow a { box-shadow: none !important; }
@media (hover: hover) {
  .acard:hover, .act:hover, .kind-key:hover, .aud-keys a:hover, .stage-key:hover { border-color: #7f8cab; transform: none; }
  .btn:hover { transform: none; box-shadow: none; border-color: #7f8cab; }
}
.btn { font-weight: 700; }
.hdr { box-shadow: none; border-bottom: 1px solid var(--rule-2); background: #fff; backdrop-filter: none; }
.nav a { color: var(--ink); }
/* 숫자·제목 */
h1, h2, h3, .sec-head h2 { color: var(--ink); }
.num, .fee-num, .figures dd, .report-sum dd { color: var(--ink); }
.year-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.year-chips .pchip { font-size: .875rem; min-height: 36px; padding: .25rem .7rem; }
.memo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.memo-body { white-space: pre-wrap; margin: .4rem 0 .6rem; font-size: .9375rem; }

/* 저장 위치 고르기 (학습 기록 맨 위) */
.store-mode { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .5rem .75rem; padding: .6rem .8rem; border: 1px solid var(--rule-2); border-radius: 8px; background: #fff; }
.store-mode-h { font-weight: 700; font-size: var(--fs-2); color: var(--ink); }
.store-seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 7px; overflow: hidden; }
.store-seg button { font: inherit; font-size: var(--fs-2); font-weight: 600; padding: .35rem .8rem; min-height: 36px; border: 0; background: #fff; color: var(--ink-2); cursor: pointer; }
.store-seg button + button { border-left: 1px solid var(--rule-2); }
.store-seg button[aria-pressed='true'] { background: var(--accent-ink); color: #fff; }
.store-seg button:disabled { cursor: wait; }
.store-mode > .btn { justify-self: start; }
.store-mode-s { grid-column: 1 / -1; margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .store-mode { grid-template-columns: 1fr; } .store-seg { width: 100%; } .store-seg button { flex: 1; } }
.drive-sync .kv-table { width: 100%; border-collapse: collapse; }
.drive-sync .kv-table th, .drive-sync .kv-table td { text-align: left; vertical-align: top; padding: .45rem .6rem; border-top: 1px solid var(--rule); }
.drive-sync .kv-table th { width: 11rem; font-weight: 700; color: var(--ink); background: #f3f5f9; }
@media (max-width: 560px) { .drive-sync .kv-table th { width: 7rem; } }
.read-tips li strong { display: block; color: var(--ink); }

/* 로고 키움 (2026-11-17) */
.hdr .wrap { min-height: 72px; }
.logo { gap: .6rem; font-weight: 800; letter-spacing: -0.035em; }
.logo svg { width: 34px; height: 34px; }
.logo small { font-size: .8125rem; padding: .05rem .35rem; }
@media (max-width: 760px) { .hdr .wrap { min-height: 60px; } .logo svg { width: 30px; height: 30px; } }
@media (max-width: 440px) { .hdr .wrap { gap: .2rem; } .nav a { padding-left: .3rem; padding-right: .3rem; } }
@media (min-width: 761px) { .nav a { font-size: 1rem; } }

/* 홈 학습 기록: 카드가 곧 입구 */
.my-go { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.my-go-card { display: grid; grid-template-rows: auto 1fr auto; gap: .3rem; padding: .9rem 1rem; border: 1px solid var(--rule-2); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); min-height: 132px; }
.my-go-card:hover { border-color: var(--accent-ink); background: #f7f8fc; }
.my-go-card:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.my-go-t { font-weight: 700; font-size: 1.0625rem; }
.my-go-d { font-size: var(--fs-2); color: var(--ink-2); line-height: 1.55; }
.my-go-a { justify-self: start; font-size: var(--fs-2); font-weight: 700; color: var(--accent-ink); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.my-go-foot { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: .9rem 0 0; }
@media (max-width: 900px) { .my-go { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .my-go { grid-template-columns: 1fr; } .my-go-card { min-height: 0; } }
.sp-links { list-style: none; margin: 0; padding: 0; }
.sp-links li { display: grid; gap: .1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.sp-links li > a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.sp-links li > a:hover { text-decoration-color: currentColor; color: var(--accent-ink); }
.sp-links .sub { line-height: 1.5; }
.sp-block { padding: 1rem 1.25rem .25rem; }
.sp-block-h { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; border-bottom: 1.5px solid var(--ink); padding-bottom: .35rem; margin-bottom: .5rem; }
.sp-block-h .mini { border: 0; margin: 0; padding: 0; }
.sp-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.sp-picks a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: .5rem; padding: .55rem .7rem; border: 1px solid var(--rule-2); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; min-height: 52px; align-content: center; }
.sp-picks a:hover { border-color: var(--accent-ink); background: #f7f8fc; }
.sp-picks a:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.pk-l { font-weight: 700; font-size: .9375rem; }
.pk-h { grid-column: 1; grid-row: 2; font-size: .8125rem; color: var(--ink-2); }
.pk-n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; color: var(--accent-ink); font-size: .9375rem; }

/* 연령별 패널: 학원 검색·교습비 비교 표 + 강좌 검색 + 학습 기록 */
.sp-fee { width: 100%; font-size: .9375rem; }
.sp-fee th, .sp-fee td { padding: .5rem .55rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.sp-fee thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-2); background: #f3f5f9; border-bottom: 1px solid var(--rule-2); }
.sp-fee tbody th { font-weight: 700; color: var(--ink); }
.sp-fee .n { text-align: right; white-space: nowrap; }
.sp-fee .strong { font-weight: 700; color: var(--ink); }
.sp-fee .go { text-align: right; width: 1%; white-space: nowrap; }
.sp-fee .go a { font-weight: 700; font-size: .875rem; color: var(--accent-ink); }
.sp-note { margin: .55rem 0 0; line-height: 1.55; }
.sp-cta { margin: .55rem 0 .9rem; }
.sp-rows { border-top: 1px solid var(--rule-2); }
.sp-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; align-items: baseline; padding: .7rem 1.25rem; border-bottom: 1px solid var(--rule); }
.sp-row:last-child { border-bottom: 0; }
.sp-row .mini { margin: 0; border: 0; padding: 0; }
.sp-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.sp-inline a { font-weight: 600; color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.sp-inline a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
@media (max-width: 560px) {
  .sp-fee thead th:nth-child(4), .sp-fee td:nth-child(4) { display: none; }
  .sp-row { grid-template-columns: 1fr; gap: .3rem; }
}
/* 왼쪽 연령 목록을 오른쪽 패널 높이에 맞춰 위·아래 끝선 정렬 */
@media (min-width: 901px) {
  .life-list .stage-keys { flex: 1; }
  .life-detail .stage-panel { padding-top: var(--s3); }
}

/* 홈 검색: 분야 칸 추가 (지역 | 분야 | 과목 | 학원명 | 검색) */
.quick:has(.area-pick) { grid-template-columns: minmax(0, 2.2fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.1fr) auto; }
@media (max-width: 760px) { .quick:has(.area-pick) { grid-template-columns: 1fr 1fr; } .quick .q-go { grid-column: 1 / -1; } }

/* 홈 검색 결과 · 교습비 비교 */
.hs-results { margin-top: var(--s5); padding: 1.1rem 1.25rem 1.25rem; border: 1px solid var(--rule-2); border-radius: 12px; background: #fff; scroll-margin-top: 84px; }
.hs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem 1.25rem; flex-wrap: wrap; border-bottom: 1.5px solid var(--ink); padding-bottom: .65rem; margin-bottom: .75rem; }
.hs-head h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.hs-sum { margin: 0; font-size: .9375rem; color: var(--ink); }
.hs-tools { display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; }
.hs-tools select { min-height: 36px; font-size: .875rem; padding: .2rem .5rem; width: auto; }
.hs-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; white-space: nowrap; }
.hs-check input { width: auto; min-height: 0; }
.hs-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hs-table th, .hs-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.hs-table thead th { background: #202d4c; color: #fff; font-size: .8125rem; font-weight: 600; }
.hs-table tbody th { font-weight: 700; min-width: 11rem; }
.hs-table tbody th a { color: var(--ink); }
.hs-table .n { text-align: right; white-space: nowrap; }
.hs-meta { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-2); }
.hs-go { text-align: right; white-space: nowrap; width: 1%; }
.hs-foot { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-top: .7rem; }
.hs-foot p { margin: 0; flex: 1 1 22rem; }
.hs-empty { margin: .5rem 0; color: var(--ink-2); }
.hs-compare { margin-top: 1.25rem; padding-top: 1rem; border-top: 1.5px solid var(--ink); scroll-margin-top: 84px; }
.hs-compare h3 { margin: 0 0 .6rem; font-size: 1.125rem; }

/* 연령별: 왼쪽 목록 높이를 오른쪽 패널에 맞춤 */
@media (min-width: 901px) {
  .life-grid { align-items: stretch; }
  .life-list { display: flex; flex-direction: column; }
  .life-list > .stage-keys { flex: 1 1 auto; }
}

/* 홈: 평생교육 소개형 */
.ll-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1rem 1.25rem; border: 1px solid var(--rule-2); border-radius: 12px; background: #fff; }
.ll-figs { display: flex; gap: 2.25rem; margin: 0; flex-wrap: wrap; }
.ll-figs div { display: grid; gap: .1rem; }
.ll-figs dt { font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.ll-figs dd { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.ll-figs dd small { font-size: .875rem; font-weight: 600; margin-left: .15rem; color: var(--ink-2); }
.ll-go { display: flex; gap: .5rem; flex-wrap: wrap; }

/* 홈: 이용 안내 (보조 정보, 작게) */
.home-note { margin: var(--s6, 3rem) 0 var(--s5); padding: .9rem 1.1rem; border-top: 1px solid var(--rule-2); color: var(--ink-2); font-size: .875rem; line-height: 1.65; }
.home-note h2 { font-size: .9375rem; margin: 0 0 .35rem; color: var(--ink); }
.home-note p { margin: 0; }
.home-note-links { margin-top: .45rem !important; display: flex; gap: .3rem 1.1rem; flex-wrap: wrap; }
.home-note-links a { font-weight: 600; color: var(--ink); }
.dlg-title { margin: 0 0 .5rem; font-size: 1.0625rem; }
/* 연령별 표: 모든 행 한 줄, 같은 높이 */
.sp-fee tbody th { white-space: nowrap; }
.sp-fee tbody th .pk-h { display: inline; margin-left: .4rem; font-size: .8125rem; font-weight: 400; color: var(--ink-2); }
.sp-fee tbody tr { height: 2.6rem; }
@media (max-width: 1100px) { .sp-fee tbody th .pk-h { display: none; } }

/* 상단 우측 우로보로스 인장 */
.mast-grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.mast-seal { flex: none; width: 128px; height: 128px; margin-right: .5rem; opacity: .92; }
.mast-seal svg { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .mast-seal { width: 76px; height: 76px; margin-right: 0; } }
@media (max-width: 420px) { .mast-seal { display: none; } }

/* 첫 화면 오른쪽 배경 그림 (왼쪽 글자 쪽은 흰색으로 사라지게) */
.mast { background: linear-gradient(90deg, #fff 0%, #fff 46%, rgba(255,255,255,.7) 62%, rgba(255,255,255,.12) 100%), url(/assets/hero-texture.jpg) right top / 62% auto no-repeat, #fff; }
@supports (background-image: image-set(url(a.webp) type('image/webp'))) {
  .mast { background: linear-gradient(90deg, #fff 0%, #fff 46%, rgba(255,255,255,.7) 62%, rgba(255,255,255,.12) 100%), image-set(url(/assets/hero-texture.webp) type('image/webp'), url(/assets/hero-texture.jpg) type('image/jpeg')) right top / 62% auto no-repeat, #fff; }
}
.mast-seal { display: none; }
@media (max-width: 760px) { .mast { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.9) 30%, #fff 60%), url(/assets/hero-texture.jpg) center top / cover no-repeat, #fff; } }

/* ───────── 명료성 레이어 (장사하셈 컨셉: 또렷한 잉크 선 + 눌러볼 곳은 들리며 남색 단단한 그림자) ───────── */
:root { --edge: #2a3654; --line-row: #aeb8c9; --pop: #2e4569; }

/* 표: 바깥선·머리선은 진한 남색, 행 구분선은 한 단계 진하게, 행에 올리면 강조 */
.table-wrap, .sp-fee, .region-table, .compare-table { border: 1.5px solid var(--edge) !important; border-radius: 10px; }
.sp-fee { border-collapse: separate !important; border-spacing: 0; overflow: hidden; }
.table-wrap table th, .table-wrap table td, .sp-fee th, .sp-fee td, .region-table th, .region-table td, .compare-table th, .compare-table td, .kv-table th, .kv-table td { border-bottom: 1px solid var(--line-row) !important; }
.table-wrap thead th, .sp-fee thead th, .region-table thead th, .compare-table thead th { border-bottom: 1.5px solid var(--edge) !important; }
.table-wrap tbody tr:last-child > *, .sp-fee tbody tr:last-child > * { border-bottom: 0 !important; }
.table-wrap tbody tr, .sp-fee tbody tr { transition: background-color .12s ease, box-shadow .12s ease; }
.table-wrap tbody tr:hover, .sp-fee tbody tr:hover { background: #eef2fa; box-shadow: inset 4px 0 0 var(--pop); }

/* 상자·카드: 1.5px 진한 선 */
.card, .acard, .stage-key, .stage-panel, .my-go-card, .ll-row, .hs-results, .quick, .read-tips, .act { border: 1.5px solid var(--edge) !important; box-shadow: none !important; }
.stage-panel { border-radius: 14px; }

/* 눌러볼 곳: 들리면서 오른쪽 아래 남색 단단한 그림자 */
.acard, .stage-key, .my-go-card, .btn, .sp-inline a, .hs-go .btn { transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease; }
.acard:hover, .stage-key:hover, .my-go-card:hover, .my-go-card:focus-visible, .acard:focus-within { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pop) !important; }
.stage-key[aria-selected='true'] { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pop) !important; border-color: var(--pop) !important; }
.btn { border: 1.5px solid var(--edge); box-shadow: none; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--pop) !important; }
.btn:active, .acard:active, .stage-key:active, .my-go-card:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--pop) !important; }
.btn.primary, .q-go { border-color: var(--pop); }
@media (prefers-reduced-motion: reduce) {
  .acard, .stage-key, .my-go-card, .btn, .table-wrap tbody tr, .sp-fee tbody tr { transition: none; }
  .acard:hover, .stage-key:hover, .my-go-card:hover, .btn:hover, .stage-key[aria-selected='true'] { transform: none; }
}
.sp-area { display: inline-flex; align-items: center; gap: .35rem; }
.sp-area select { width: auto; min-height: 32px; padding: .15rem 1.6rem .15rem .5rem; font-size: .875rem; border: 1.5px solid var(--edge, #2a3654); border-radius: 6px; background-color: #fff; }
.sp-area select:disabled { opacity: .55; }

/* 지도에 올리지 못한 학원: 점선 테두리로 따로 표시 */
.tag.nomap { color: var(--ink-2); background: var(--card); border: 1px dashed var(--ink-2); }
.nomap-t { color: var(--ink-2); text-decoration: underline dotted; text-underline-offset: 2px; }

/* 교육 소식 */
.news-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin: var(--s3) 0 var(--s4); }
.news-bar .seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.news-sec { margin-bottom: var(--s5); }
.news-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem var(--s3); border-bottom: 1.5px solid var(--edge); padding-bottom: .4rem; }
.news-head h2 { font-size: var(--fs-4, 1.15rem); margin: 0; }
.news-head p { margin: 0; }
.news-list { list-style: none; margin: 0 0 var(--s2); padding: 0; }
.news-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; padding: .55rem .2rem; border-bottom: 1px solid var(--line-row); }
.news-row:hover { box-shadow: inset 3px 0 0 var(--pop); }
.news-date { color: var(--ink-3); font-size: var(--fs-1); }
.news-t { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.news-t:hover, .news-t:focus-visible { text-decoration: underline; }
.news-src { color: var(--ink-2); font-size: var(--fs-1); white-space: nowrap; }
@media (max-width: 640px) { .news-row { grid-template-columns: 2.8rem minmax(0, 1fr); row-gap: .1rem; } .news-src { grid-column: 2; } }
#news .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); }

/* 글자 또렷하게: 고정 굵기 Pretendard + 본문 보조 글자색 진하게 (2026-11-18) */
:root { --ink-2: #333e57; }

/* 시·도별 학원 수: 칸 맞춤(6열 → 태블릿 4열 → 폰 3열), 지역명(진한 글자)과 숫자(강조색·고정폭 숫자) 구분 */
.area-grid { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.area-grid a { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .55rem .8rem; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--card); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.area-grid a:hover, .area-grid a:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pop); }
.ag-name { color: var(--ink); font-weight: 600; }
.ag-n { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ag-n small { color: var(--ink-3); font-weight: 400; font-size: .78em; margin-left: .12rem; }
@media (max-width: 900px) { .area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .area-grid a { padding: .5rem .7rem; } }
.ag-name, .ag-n { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .area-grid a { transition: none; } .area-grid a:hover { transform: none; } }

/* 메뉴에 '홈' 추가 뒤 좁은 화면: 로고 아래 둘째 줄에 메뉴를 한 줄로 고르게 (넘치면 메뉴 줄만 옆으로 밀기) */
@media (max-width: 900px) {
  .hdr .wrap { flex-wrap: wrap; row-gap: 0; padding-top: .35rem; }
  .hdr .wrap > .nav { order: 2; width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule); }
  .hdr .wrap > .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .5rem .5rem; min-height: 44px; }
}
@media (max-width: 400px) { .nav a { padding: .5rem .3rem; } }
/* 메뉴가 둘째 줄로 내려가므로 폰에서도 로고 글자 보이기 (예전 440px 이하 숨김 해제) */
@media (max-width: 440px) { .logo { font-size: 1.25rem; gap: .45rem; } .logo svg { width: 28px; height: 28px; } }

/* ── 연령별 학원 안내 다듬기 (2026-11-18): 카드 한 줄, 묶음별 은은한 색, 패널 머리 색 맞춤 ── */
.stage-panel.g1 { --g: var(--c4); --gw: var(--c4w); }
.stage-panel.g2 { --g: var(--c1); --gw: var(--c1w); }
.stage-panel.g3 { --g: var(--c2); --gw: var(--c2w); }
.stage-panel.g4 { --g: var(--c3); --gw: var(--c3w); }
.stage-panel.g5 { --g: var(--c5); --gw: var(--c5w); }
/* 카드: 이름과 나이를 한 줄에 (이름 왼쪽, 나이 오른쪽) */
.stage-key { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 46px; padding: .6rem .85rem; background: color-mix(in srgb, var(--gw, #fff) 55%, #fff); border-color: color-mix(in srgb, var(--g, var(--rule)) 28%, var(--rule)); }
.stage-key .sk-label { font-size: var(--fs-3); }
.stage-key .sk-range { font-size: var(--fs-2); color: color-mix(in srgb, var(--g, var(--ink-3)) 70%, var(--ink-3)); margin-left: auto; }
.stage-key .sk-state:empty { display: none; }
.stage-key:hover { background: var(--gw, var(--accent-wash)); }
.stage-key[aria-selected='true'] { background: var(--gw); }
.stage-key[aria-selected='true'] .sk-label { color: color-mix(in srgb, var(--g) 55%, var(--ink)); }
.stage-group-label { font-weight: 700; letter-spacing: .04em; }
.stage-keys { gap: .9rem; }
/* 패널 머리: 고른 묶음 색으로 은은하게 */
.stage-panel .sp-title { background: var(--gw, var(--head)); border-bottom-color: color-mix(in srgb, var(--g, var(--rule-2)) 30%, var(--rule-2)); }
.stage-panel .sp-title h3 { color: color-mix(in srgb, var(--g, var(--navy)) 45%, var(--ink)); }
.stage-panel .sp-title .sp-range { color: var(--g, var(--ink-3)); font-weight: 600; }
/* 넓은 화면에서는 왼쪽 목록이 있으니 위쪽 '연령대 선택'은 숨김 (폰에서만) */
.life-band .age-pick { display: none; } /* 바로 아래 연령 목록과 중복 */
/* 왼쪽 목록: [묶음 이름 | 연령 카드] 2칸 표 형태, 연령 10개를 세로 한 줄씩 — 카드 폭이 넓어 이름·나이가 한 줄에 */
@media (min-width: 901px) {
  .life-list, .life-list .stage-keys { height: 100%; }
  .life-list .stage-keys { display: flex; flex-direction: column; justify-content: space-between; gap: .4rem; }
  .stage-group { grid-template-columns: 6.5rem minmax(0, 1fr); grid-auto-rows: auto; align-items: center; column-gap: .75rem; }
  .stage-group .stage-group-label { grid-column: 1; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: var(--fs-2); }
  .stage-group .stage-key { grid-column: 2; height: 46px; min-height: 0; padding: 0 .9rem; line-height: 1.3; }
  .stage-group { row-gap: 4px; }
}

/* 맨 위 검색창: 시·군·구·읍·면·동 칸도 다른 칸과 같은 모양 (둥근 테두리·회색 바탕 없이 세로 구분선만) */
.quick .area-pick.compact select,
.quick .area-pick.compact select:disabled { border: 0; border-radius: 0; background-color: transparent; box-shadow: none; opacity: 1; }
.quick .area-pick.compact select:disabled { color: var(--ink-3); cursor: not-allowed; }
.quick .area-pick.compact select + select { border-left: 1px solid var(--rule-2); padding-left: .6rem; }
.quick select, .quick input { border-radius: 0; }
/* 검색 버튼: 자기 모서리·테두리 없이 검색창 오른쪽 끝을 꽉 채움 (모서리는 검색창이 overflow:hidden 으로 잘라 곡선을 하나로) */
#top-search .q-go, .quick .q-go.btn { border: 0; border-radius: 0; margin: 0; align-self: stretch; box-shadow: none; transform: none; }
.quick .q-go:hover, .quick .q-go:focus-visible { transform: none; box-shadow: none; filter: brightness(1.08); }
.quick .q-go:focus-visible { outline: 3px solid var(--accent-wash); outline-offset: -4px; }

/* 안내 상자: 왼쪽 얇은 색 띠 없이 은은한 바탕 + 같은 색 계열 테두리 한 겹 */
.notice { border: 1px solid color-mix(in srgb, var(--warn) 30%, #fff); border-left-width: 1px; border-radius: 8px; }
.notice.info { border-color: color-mix(in srgb, var(--accent) 25%, #fff); }
.notice.my { border-color: color-mix(in srgb, var(--my) 25%, #fff); }

/* 학원 검색 조건: 홈 검색창과 같은 모양 (한 상자 안에 칸을 세로선으로 나누고, 검색 버튼은 오른쪽 끝을 꽉 채움) */
.filter-bar { gap: 0; padding: 0; align-items: stretch; border: 1.5px solid var(--edge); border-radius: 12px; overflow: hidden; background: var(--card); }
.filter-bar:has(.area-pick) { grid-template-columns: minmax(0, 2.6fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr) auto; }
.filter-bar .field { padding: .55rem .8rem .5rem; border-left: 1px solid var(--rule-2); display: flex; flex-direction: column; justify-content: center; gap: .1rem; }
.filter-bar .field:first-child { border-left: 0; }
.filter-bar .field label { font-size: var(--fs-1); font-weight: 700; color: var(--ink); margin: 0; }
.filter-bar select, .filter-bar input, .filter-bar .area-pick select, .filter-bar .area-pick select:disabled { border: 0; border-radius: 0; background-color: transparent; box-shadow: none; min-height: 34px; padding: .1rem .2rem .1rem 0; font-weight: 600; opacity: 1; }
.filter-bar .area-pick { gap: 0; }
.filter-bar .area-pick select + select { border-left: 1px solid var(--rule-2); padding-left: .6rem; }
.filter-bar .area-pick select:disabled { color: var(--ink-3); }
.filter-bar .fb-go { border: 0; border-radius: 0; margin: 0; min-width: 6.5rem; min-height: 0; box-shadow: none; transform: none; align-self: stretch; }
.filter-bar .fb-go:hover, .filter-bar .fb-go:focus-visible { transform: none; box-shadow: none; filter: brightness(1.08); }
@media (max-width: 1000px) {
  .filter-bar:has(.area-pick) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar .field { border-left: 0; border-top: 1px solid var(--rule-2); }
  .filter-bar .field:nth-child(even) { border-left: 1px solid var(--rule-2); }
  .filter-bar .field:first-child { border-top: 0; grid-column: 1 / -1; }
  .filter-bar .field:first-child ~ .field:nth-child(odd) { border-left: 1px solid var(--rule-2); }
  .filter-bar .field:first-child ~ .field:nth-child(even) { border-left: 0; }
  .filter-bar .field.grow, .filter-bar .field:first-child ~ .field.grow.grow { grid-column: 1 / -1; border-left: 0; }
  .filter-bar .fb-go { grid-column: 1 / -1; min-height: 48px; }
}

/* 지역별 현황 시·도 탭: 칸 맞춤 (9열 → 폰 4열), 고른 탭은 남색 */
.office-tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: var(--s4) 0 var(--s3); }
.office-tabs button { min-height: 40px; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.office-tabs button:hover { background: var(--accent-wash); }
.office-tabs button[aria-selected='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 700px) { .office-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.list-note { margin: 0 0 .5rem; }

/* 화면 아래 비교함 */
.cmp-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1.5px solid var(--edge); box-shadow: 0 -4px 16px rgba(30, 42, 80, .10); padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); }
.cmp-dock-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.cmp-dock-h { margin: 0; white-space: nowrap; }
.cmp-dock-h .num { color: var(--accent); font-weight: 700; }
.cmp-dock-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.cmp-chip { display: flex; align-items: center; justify-content: space-between; gap: .25rem; min-height: 40px; padding: 0 .25rem 0 .7rem; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--card); min-width: 0; }
.cmp-chip a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-chip button { flex: none; width: 32px; height: 32px; border: 0; background: none; color: var(--ink-3); font-size: 1.15rem; cursor: pointer; border-radius: 6px; }
.cmp-chip button:hover { background: var(--accent-wash); color: var(--ink); }
.cmp-chip.empty { border-style: dashed; border-color: var(--rule-2); color: var(--ink-3); font-size: var(--fs-2); justify-content: center; padding: 0; }
.cmp-dock-go { white-space: nowrap; }
body:has(.cmp-dock) .ftr { padding-bottom: 6rem; }
@media (max-width: 700px) {
  .cmp-dock-in { grid-template-columns: minmax(0, 1fr) auto; }
  .cmp-dock-list { grid-column: 1 / -1; grid-row: 2; }
  .cmp-chip.empty { display: none; }
  .cmp-dock-list { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
/* 섹션 탭(안내 글·학원 고르는 법 …): 폰에서도 한 줄, 넘치면 탭 줄만 옆으로 밀기 */
.section-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a { white-space: nowrap; flex: none; }

/* 검색창 위계: 항목 이름은 작고 연하게(설명), 고른 값은 크고 진하게(결과) — 홈 검색창·학원 검색 조건 공통 */
.quick .q-field label, .filter-bar .field label { margin: 0 0 .1rem; }
.quick select, .quick input, .filter-bar select, .filter-bar input,
.quick .area-pick.compact select, .filter-bar .area-pick select { font-size: 1rem; font-weight: 600; color: var(--ink); }
.quick input::placeholder, .filter-bar input::placeholder { font-weight: 400; color: var(--ink-3); }
.quick .area-pick.compact select:disabled, .filter-bar .area-pick select:disabled { font-weight: 400; color: var(--ink-3); }
.quick .q-field { padding-top: .6rem; padding-bottom: .55rem; }
/* 항목 이름: 12px은 Windows에서 깨져 보여 13.5px·굵기 600으로 (색은 회색 유지, 값 16px과 크기로 위계) */
.quick .q-field label, .filter-bar .field label { font-size: .84375rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }

/* ═══ 글자 체계 최종 정리 (2026-11-18): 크기 8단계 · 굵기 4단계 ═══
   13 설명 · 14 보조 · 15 본문 · 16 입력/메뉴 · 17 카드 제목 · 24 섹션 제목 · 28 큰 숫자 · 32 페이지 제목
   굵기 400 본문 · 600 강조 · 700 제목 · 800 큰 제목. 그동안 덧칠된 중간 크기(11.7·13.5·22·23·26px)를 여기서 정리한다. */
:root {
  --t-xs: .8125rem; --t-sm: .875rem; --t-base: .9375rem; --t-ctl: 1rem; --t-md: 1.0625rem; --t-h2: 1.5rem; --t-num: 1.75rem; --t-h1: 2rem;
  --fs-1: var(--t-xs); --fs-2: var(--t-sm); --fs-3: var(--t-base); --fs-4: var(--t-md); --fs-5: var(--t-h2); --fs-6: var(--t-h1);
}
small { font-size: var(--t-xs); }
.ag-n small, .num small, dd small { font-size: var(--t-xs); }
.quick .q-field label, .filter-bar .field label, .field label, label { font-size: var(--t-sm); }
label, .kicker, .mini, .tag, .badge-count { font-weight: 600; }
h1, .page-head h1, .mast h1 { font-size: var(--t-h1); }
h2, .sec-head h2, .report-head h2 { font-size: var(--t-h2); }
h3, .acard h3, .gcard h3, .read-tips h3, .read-cols h3, .my-go-t, .dlg-title, .home-note h2, .news-head h2 { font-size: var(--t-md); }
.sp-title h3 { font-size: var(--t-h2); }
.figures dd.num { font-size: var(--t-num); }
.logo { font-size: 1.5rem; }
@media (max-width: 760px) { h1, .page-head h1, .mast h1 { font-size: 1.625rem; } h2, .sec-head h2, .sp-title h3 { font-size: 1.25rem; } .figures dd.num { font-size: 1.5rem; } .logo { font-size: 1.25rem; } }

