/*
Theme Name: 벌점과태료 리뉴얼
Description: elvenland.com 전용 테마. 외부 JS·웹폰트 0(애드센스 제외). 색 토큰은 여기 한 곳에서만 정의한다(부록 D-3).
Version: 2.0.0
Author: 벌점과태료 편집팀
*/

/* ── 색 토큰 (정본. 다른 파일에서 hex 를 새로 만들지 않는다)
   경찰 연상 금지: 파랑·흰색·금색의 관용 조합, 적·청 경광등 표현, 방패·독수리·계급장 마크 없음.
   토큰명에 police·siren·gov 를 쓰지 않는다(G2 정적 검사 대상). */
:root {
	--c1:          #76543E;
	--c2:          #F7F5F2;
	--c-bg:        var(--c2);
	--c-surface:   #FFFFFF;
	--c-ink:       #292724;
	--c-ink-2:     #625D57;
	--c-line:      color-mix(in srgb, var(--c1) 18%, white);
	--c-line-2:    color-mix(in srgb, var(--c1) 32%, white);
	--c-brand:     var(--c1);
	--c-brand-deep:color-mix(in srgb, var(--c1) 82%, black);
	--c-tint:      color-mix(in srgb, var(--c1) 9%, white);
	--c-warn:      #8A5A16;
	--c-err:       #A43B35;
	--c-ok:        #3F6B4A;

	--r:      10px;
	--r-sm:   6px;
	--sp:     8px;
	--maxw:   1120px;
	--prosew: 720px;
	--fs:     16px;
	--fs-sm:  14px;    /* 375px 실측(2026-09-11)에서 13.5px 는 보조 텍스트로도 작았다. 본문 계열 최저값. */
	--fs-xs:  13px;    /* 캡션·단위·각주 전용. 이보다 작은 값을 새로 만들지 않는다. */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
	font-size: var(--fs);
	line-height: 1.75;
	word-break: keep-all;
	overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-brand-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-brand); }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.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(--maxw); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--prosew); }
main { padding-block: 24px 48px; }

/* ── 머리말 */
.site-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 19px; text-decoration: none; color: var(--c-ink); letter-spacing: -0.01em; }
.brand span { color: var(--c-brand); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: var(--fs-sm); text-decoration: none; color: var(--c-ink-2); border-radius: var(--r-sm); }
.site-nav a:hover { background: var(--c-tint); color: var(--c-ink); }

/* ── 제목 */
h1 { font-size: 28px; line-height: 1.35; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 21px; line-height: 1.4; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17.5px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
@media (min-width: 768px) { h1 { font-size: 34px; } h2 { font-size: 23px; } }

/* ── 결론 박스 */
.concl { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 16px; margin: 0 0 20px; }
.concl-h { font-size: 17px; margin: 0 0 12px; }
.concl-cond { font-size: var(--fs-sm); color: var(--c-ink-2); margin: 0 0 10px; }
.concl-src { font-size: var(--fs-xs); color: var(--c-ink-2); margin: 12px 0 0; }
.concl-cta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.na { color: var(--c-ink-2); font-size: var(--fs-sm); }
.t-note { display: block; font-size: var(--fs-xs); color: var(--c-ink-2); }

/* ── 표 */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; font-size: var(--fs-sm); color: var(--c-ink-2); padding-bottom: 6px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
thead th { background: var(--c-tint); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.th-sub { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--c-ink-2); }
tbody th { font-weight: 600; white-space: nowrap; }
.concl-t td { font-variant-numeric: tabular-nums; }

/* 표 칸 안의 링크는 행이 촘촘해 탭 영역이 17px 밖에 안 됐다(375px 실측 2026-09-11).
   글자 크기는 그대로 두고 위아래 여백으로만 44px 를 만든다 — 행 높이는 padding 상쇄로 유지한다. */
td a, tbody th a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -11px; }

/* 375px: 표 → 카드 2열. 같은 데이터를 한 번만 렌더하므로 값이 어긋날 수 없다 */
@media (max-width: 560px) {
	.concl-t thead { display: none; }
	.concl-t, .concl-t tbody, .concl-t tr, .concl-t th, .concl-t td { display: block; width: 100%; }
	.concl-t tr { border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 10px; margin-bottom: 10px; }
	.concl-t th, .concl-t td { border: 0; padding: 3px 0; }
	.concl-t tbody th { font-size: 15.5px; margin-bottom: 4px; border-bottom: 1px solid var(--c-line); padding-bottom: 6px; }
	/* 라벨이 길면(예: '보호구역 구분 코드') min-width 만으로는 값과 붙는다
	   — '보호구역 구분 코드자료 없음' 으로 나왔다(2026-09-12 실측).
	   라벨과 값을 두 칸으로 갈라 붙지 않게 한다. */
	.concl-t td { display: flex; gap: 8px; align-items: baseline; }
	.concl-t td::before { content: attr(data-label); color: var(--c-ink-2); font-size: var(--fs-sm);
		flex: 0 0 auto; min-width: 62px; max-width: 45%; }
	.speed-t tbody th { background: var(--c-tint); border-radius: var(--r-sm); padding: 6px 8px; }
}

/* ── 알림 박스 */
.notice { border: 1px solid var(--c-line); border-left: 4px solid var(--c-line-2); background: var(--c-surface); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 18px; font-size: var(--fs-sm); }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
.notice-legal { background: var(--c-tint); border-left-color: var(--c-ink-2); }
.notice-pending { border-left-color: var(--c-warn); }
.notice-pending strong { color: var(--c-warn); }
.notice-err { border-left-color: var(--c-err); }
.notice-links { font-size: var(--fs-xs); }

/* ── 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); background: var(--c-brand); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; border: 1px solid var(--c-brand); cursor: pointer; }
.btn:hover { background: var(--c-brand-deep); color: #fff; }
.btn-ghost { background: var(--c-surface); color: var(--c-brand-deep); border-color: var(--c-line-2); }
.btn-ghost:hover { background: var(--c-tint); color: var(--c-brand-deep); }
.btn-sm { min-height: 38px; font-size: var(--fs-sm); padding: 0 12px; }

/* ── 카드 격자 */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 24px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--c-ink); transition: border-color 160ms, transform 160ms; }
.card:hover { border-color: var(--c-line-2); transform: translateY(-2px); color: var(--c-ink); }
.card-t { font-weight: 600; font-size: 15.5px; margin: 0 0 4px; }
.card-d { font-size: var(--fs-sm); color: var(--c-ink-2); margin: 0; }
.card-n { font-size: var(--fs-xs); color: var(--c-brand-deep); margin: 6px 0 0; font-variant-numeric: tabular-nums; }

/* ── 도구 */
.tool { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 16px; margin: 0 0 24px; }
.tool-noscript { font-size: var(--fs-sm); color: var(--c-ink-2); }
.f-row { margin: 0 0 14px; }
.f-row > label, .f-legend { display: block; font-size: var(--fs-sm); font-weight: 600; margin: 0 0 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
input[type="text"], input[type="number"], input[type="search"], select {
	width: 100%; min-height: 44px; padding: 8px 10px; font-size: 16px;
	border: 1px solid var(--c-line-2); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-ink);
}
/* 체크박스·라디오는 브라우저 기본이 13px 라 손가락으로 겨냥하기 작다(375px 실측 2026-09-11).
   감싼 label 이 이미 44px 라 누르는 데는 지장이 없지만, 글리프 자체도 키운다. */
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--c-brand); }

.f-unit { display: flex; align-items: center; gap: 8px; }
.f-unit input { flex: 1; }
.f-unit .unit { font-size: var(--fs-sm); color: var(--c-ink-2); white-space: nowrap; }
.f-hint { font-size: var(--fs-xs); color: var(--c-ink-2); margin: 5px 0 0; }
.pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pick label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); font-size: 14.5px; cursor: pointer; background: var(--c-surface); }
.pick label:hover { background: var(--c-tint); }
.pick input:checked + span { font-weight: 600; }
.pick label:has(input:checked) { border-color: var(--c-brand); background: var(--c-tint); }
.ac { position: relative; }
.ac-list { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); background: var(--c-surface); max-height: 260px; overflow-y: auto; }
.ac-list li { margin: 0; }
.ac-list button { display: block; width: 100%; text-align: left; min-height: 44px; padding: 8px 10px; border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.ac-list button:hover { background: var(--c-tint); }
.ac-alias { display: block; font-size: var(--fs-xs); color: var(--c-ink-2); }
.res { min-height: 128px; border-top: 1px solid var(--c-line); margin-top: 16px; padding-top: 16px; }
.res-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--c-line); font-size: 15.5px; }
.res-line .k { color: var(--c-ink-2); font-size: var(--fs-sm); }
.res-line .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.res-sub { font-size: var(--fs-xs); color: var(--c-ink-2); margin: 8px 0 0; }
.res-empty { color: var(--c-ink-2); font-size: var(--fs-sm); }
.items { list-style: none; padding: 0; margin: 0 0 12px; }
.items li { border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 10px; margin-bottom: 8px; font-size: 14.5px; }
.items .it-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.items .it-c { font-size: var(--fs-xs); color: var(--c-ink-2); }
.tool-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chk { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14.5px; }
.chk input { width: 20px; height: 20px; }

/* ── 지도·플레이어 façade */
.map-box { aspect-ratio: 16 / 9; max-width: 100%; background: var(--c-tint); border: 1px solid var(--c-line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; text-align: center; }
.map-alt { font-size: var(--fs-sm); color: var(--c-ink-2); margin: 0; }

/* 지도가 열린 뒤 — 타일 격자는 절대배치, 상자가 자르는 창이 된다.
   높이를 고정해 두어 타일이 들어와도 레이아웃이 밀리지 않는다(CLS 0). */
/* '지도 보기' 버튼 — 다른 버튼과 같은 44px 규격을 쓴다(.btn 을 따로 두지 않고
   여기서 맞춘다). 2026-09-12 실측에서 162x24 로 잡혔다. */
.map-open { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
	padding: 0 16px; border-radius: var(--r-sm); background: var(--c-brand); color: #fff;
	border: 1px solid var(--c-brand); font-size: 15px; font-weight: 600; cursor: pointer; }
.map-open:hover { background: var(--c-brand-deep); }

.map-box.map-live { display: block; padding: 0; overflow: hidden; position: relative; cursor: grab; background: var(--c-tint); }
.map-box.map-grab { cursor: grabbing; }
.map-pane { position: absolute; inset: 0; }
.map-tile { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; }
.map-marks { position: absolute; inset: 0; pointer-events: none; }
.map-mark { position: absolute; width: 11px; height: 11px; margin: -6px 0 0 -6px; border-radius: 50%;
	background: var(--c-err); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.map-ctl { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.map-zoom { width: 44px; height: 44px; font-size: 19px; line-height: 1; border: 1px solid var(--c-line-2);
	background: var(--c-surface); color: var(--c-ink); border-radius: var(--r-sm); cursor: pointer; }
.map-zoom:hover { background: var(--c-tint); }
.map-attr { position: absolute; bottom: 0; right: 0; font-size: var(--fs-xs); color: var(--c-ink-2);
	background: rgba(255,255,255,.85); padding: 2px 6px; border-top-left-radius: var(--r-sm); }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: var(--fs-sm); margin: 0; }
.player-box { aspect-ratio: 16 / 9; background: var(--c-tint); border: 1px solid var(--c-line); border-radius: var(--r); display: flex; align-items: center; justify-content: center; }

/* ── 광고 자리(예약 높이로 CLS 0) */
.ad-slot { margin: 24px 0; min-height: 100px; }
.ad-slot.ad-infeed { min-height: 120px; }

/* ── 목록 */
.list { list-style: none; padding: 0; margin: 0 0 24px; }
.list li { border-bottom: 1px solid var(--c-line); }
.list a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; min-height: 48px; padding: 10px 0; text-decoration: none; color: var(--c-ink); }
.list a:hover { color: var(--c-brand-deep); }
.list .l-n { font-size: var(--fs-sm); color: var(--c-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── 빵부스러기·메타 */
/* 현재 위치 — '홈' 한 글자가 13x14px 탭 타깃이었다(375px 실측 2026-09-11).
   글자는 작게 두되 링크마다 세로 44px 를 확보한다. 줄 높이는 음수 마진으로 되돌린다. */
.bc { font-size: var(--fs-sm); color: var(--c-ink-2); margin: 0 0 10px; line-height: 1.6; }
.bc a { color: var(--c-ink-2); display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; margin-block: -12px; margin-inline: -4px; }
.meta { font-size: var(--fs-xs); color: var(--c-ink-2); margin: 0 0 18px; }

/* ── FAQ */
.faq { margin: 0 0 24px; }
.faq details { border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); margin-bottom: 8px; }
.faq summary { min-height: 48px; display: flex; align-items: center; padding: 10px 14px; font-weight: 600; font-size: 15px; cursor: pointer; }
.faq .faq-a { padding: 0 14px 12px; font-size: 14.5px; color: var(--c-ink); }

/* ── 꼬리말 */
.site-foot { background: var(--c-surface); border-top: 1px solid var(--c-line); margin-top: 48px; padding-block: 24px 32px; font-size: var(--fs-sm); color: var(--c-ink-2); }
/* 꼬리말 링크도 24px 였다(375px 실측 2026-09-11). 세로 44px 확보. */
.site-foot a { color: var(--c-ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.foot-nav { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; align-items: center; }
.site-foot p a { margin-block: -12px; }

/* ── 모션 감소 */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
	.card:hover { transform: none; }
}

/* ── 2026 renewal: 안전한 폭 + 홈 편집 레이아웃 */
html, body { max-width: 100%; overflow-x: clip; }
.grid > *, .quick-grid > *, .step-grid > * { min-width: 0; max-width: 100%; }
.card { width: 100%; max-width: 100%; }

.ico { width: 24px; height: 24px; display: block; flex: none; }
.ico-sm { width: 18px; height: 18px; }
.ico-box { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; background: var(--c-tint); color: var(--c-brand-deep); flex: none; }
.ico-box-lg { width: 52px; height: 52px; }
.ico-box-lg .ico { width: 28px; height: 28px; }

.home-renew { padding-bottom: 24px; }
.home-hero { margin-top: -24px; padding: 52px 0 38px; background: radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--c1) 12%, transparent) 0 90px, transparent 91px), linear-gradient(135deg, var(--c-tint), var(--c-surface) 58%, color-mix(in srgb, var(--c1) 6%, white)); border-bottom: 1px solid var(--c-line); }
.home-hero-in { max-width: 900px; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: var(--c-brand-deep); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; }
.home-hero h1 { max-width: 780px; margin-bottom: 14px; font-size: clamp(31px, 5vw, 48px); line-height: 1.22; }
.home-lead { max-width: 720px; margin: 0; font-size: 17px; color: var(--c-ink-2); line-height: 1.75; }
.home-proof { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: var(--fs-sm); color: var(--c-ink-2); }
.home-proof span { display: inline-flex; gap: 6px; align-items: center; }
.home-proof a { min-height: 44px; display: inline-flex; align-items: center; }

.home-tool-sec { padding-top: 34px; }
.home-section { padding-top: 18px; }
.section-head { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin: 0 0 14px; }
.section-head h2, .camera-feature h2, .source-band h2 { margin: 0; }
.section-note { margin: 0; color: var(--c-ink-2); font-size: var(--fs-xs); white-space: nowrap; }
.section-link { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; font-size: var(--fs-sm); }
.tool-home { box-shadow: 0 14px 34px color-mix(in srgb, var(--c1) 8%, transparent); border-color: color-mix(in srgb, var(--c1) 25%, white); }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.quick-card { display: flex; gap: 12px; align-items: flex-start; min-height: 104px; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); text-decoration: none; color: var(--c-ink); transition: transform 160ms, border-color 160ms, box-shadow 160ms; }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { font-size: 16px; margin-top: 1px; }
.quick-card small { margin-top: 5px; color: var(--c-ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--c-line-2); box-shadow: 0 8px 20px color-mix(in srgb, var(--c1) 7%, transparent); color: var(--c-ink); }

.camera-feature { position: relative; overflow: hidden; margin: 42px 0 12px; padding: 28px; background: var(--c-tint); border: 1px solid var(--c-line); border-radius: 14px; }
.camera-copy { max-width: 660px; position: relative; z-index: 2; }
.camera-copy .ico-box { margin-bottom: 15px; background: var(--c-surface); }
.camera-copy p:not(.section-kicker) { color: var(--c-ink-2); max-width: 620px; margin-top: 10px; }
.camera-points { position: absolute; inset: 0 0 0 64%; opacity: .6; }
.camera-points::before, .camera-points::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--c1) 28%, transparent); border-radius: 50%; }
.camera-points::before { width: 240px; height: 240px; right: 8%; top: -30px; }
.camera-points::after { width: 150px; height: 150px; right: 20%; bottom: -45px; }
.camera-points span { position: absolute; width: 10px; height: 10px; border: 2px solid var(--c-surface); border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 1px var(--c1); }
.camera-points span:nth-child(1) { left: 24%; top: 24%; }
.camera-points span:nth-child(2) { left: 58%; top: 38%; }
.camera-points span:nth-child(3) { left: 38%; top: 62%; }
.camera-points span:nth-child(4) { left: 76%; top: 70%; }
.camera-points span:nth-child(5) { left: 68%; top: 16%; }

.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.step-card { display: flex; flex-direction: column; min-height: 160px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-surface); text-decoration: none; color: var(--c-ink); }
.step-card:hover { border-color: var(--c-line-2); color: var(--c-ink); }
.step-n { color: var(--c-brand-deep); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; margin-bottom: 18px; }
.step-card strong { font-size: 15.5px; }
.step-card small { margin-top: 7px; color: var(--c-ink-2); font-size: var(--fs-sm); line-height: 1.55; }

.source-band { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 16px; align-items: start; margin: 42px 0 8px; padding: 22px 24px; background: var(--c-surface); border-top: 2px solid var(--c1); border-bottom: 1px solid var(--c-line); }
.source-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; color: var(--c-brand-deep); background: var(--c-tint); border-radius: 50%; }
.source-band p:not(.section-kicker) { color: var(--c-ink-2); margin-top: 8px; }
.source-band a { min-height: 44px; display: inline-flex; align-items: center; }
.home-guides { padding-bottom: 8px; }

@media (max-width: 760px) {
	.home-hero { padding: 36px 0 28px; }
	.home-hero h1 { font-size: 30px; }
	.home-lead { font-size: 16px; }
	.section-head { align-items: flex-start; }
	.section-note { white-space: normal; text-align: right; }
	.quick-grid { grid-template-columns: 1fr; }
	.quick-card { min-height: 88px; }
	.step-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.camera-feature { padding: 22px 18px; }
	.camera-points { display: none; }
}
@media (max-width: 420px) {
	.section-head { display: block; }
	.section-link { margin-top: 4px; }
	.section-note { text-align: left; margin-top: 4px; }
	.step-grid { grid-template-columns: 1fr; }
	.step-card { min-height: 128px; }
	.source-band { grid-template-columns: 1fr; padding: 18px; }
	.home-proof { gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.quick-card { transition: none; }
	.quick-card:hover { transform: none; }
}

/* ── 도구 초기 렌더 공간 예약: 비동기 규정 JSON 로드 전 CLS 방지 */
#el-tool[data-tool="calc"] { min-height: 580px; }
#el-tool[data-tool="points"] { min-height: 1050px; }
#el-tool[data-tool="drunk"] { min-height: 550px; }
@media (max-width: 760px) {
	#el-tool[data-tool="calc"] { min-height: 650px; }
	#el-tool[data-tool="points"] { min-height: 1140px; }
	#el-tool[data-tool="drunk"] { min-height: 725px; }
}

/* ── 허브·단일 콘텐츠 공통 리뉴얼 */
.hub-page, .article-shell { padding-bottom: 18px; }
.hub-hero, .article-head {
	margin: 0 0 24px; padding: 24px;
	background: linear-gradient(135deg, var(--c-surface), var(--c-tint));
	border: 1px solid var(--c-line); border-radius: 14px;
}
.hub-hero .bc, .article-head .bc { margin-top: -6px; }
.hub-hero h1, .article-head h1 { margin-bottom: 10px; max-width: 880px; }
.hub-lead { max-width: 760px; color: var(--c-ink-2); font-size: 16.5px; }
.hub-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.hub-actions .btn { gap: 7px; }
.hub-note {
	display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: baseline;
	margin: 0 0 30px; padding: 12px 14px;
	border-left: 3px solid var(--c1); background: var(--c-surface);
	font-size: var(--fs-sm); color: var(--c-ink-2);
}
.hub-note strong { color: var(--c-ink); }
.hub-group { margin: 32px 0 38px; }
.hub-group .section-head { align-items: baseline; border-bottom: 1px solid var(--c-line); padding-bottom: 8px; }
.hub-group .section-head h2 { margin: 0; }
.group-count { font-size: var(--fs-xs); color: var(--c-ink-2); }
.hub-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.hub-card {
	display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
	min-height: 94px; padding: 14px 15px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r);
	text-decoration: none; color: var(--c-ink);
	transition: transform 160ms, border-color 160ms, box-shadow 160ms;
}
.hub-card:hover { transform: translateY(-2px); border-color: var(--c-line-2); box-shadow: 0 8px 18px color-mix(in srgb, var(--c1) 6%, transparent); color: var(--c-ink); }
.hub-card-title { font-weight: 600; line-height: 1.5; }
.hub-card-meta { font-size: var(--fs-xs); color: var(--c-ink-2); }

.answer-block { max-width: 920px; }
.article-prose { margin-top: 26px; }
.distinction-note { max-width: 920px; }
.related-panel {
	margin: 40px 0 24px; padding: 20px;
	background: color-mix(in srgb, var(--c2) 58%, white);
	border: 1px solid var(--c-line); border-radius: 12px;
}
.related-panel .section-head { align-items: baseline; margin-bottom: 12px; }
.related-panel h2 { margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.related-grid a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 48px; padding: 9px 11px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-sm);
	text-decoration: none; color: var(--c-ink); font-size: var(--fs-sm);
}
.related-grid a:hover { border-color: var(--c-line-2); }
.related-next { background: var(--c-surface); }

.data-strip {
	display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
	margin-top: 20px; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden;
	background: var(--c-surface);
}
.data-strip > div { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--c-line); }
.data-strip > div:last-child { border-right: 0; }
.data-strip strong, .data-strip span { display: block; }
.data-strip strong { font-size: 18px; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.data-strip span { margin-top: 4px; font-size: var(--fs-xs); color: var(--c-ink-2); }
.area-chip-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.area-chip-grid a {
	display: flex; justify-content: space-between; gap: 8px; align-items: center;
	min-height: 46px; padding: 8px 11px; border-radius: var(--r-sm);
	background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink);
}
.area-chip-grid small { color: var(--c-ink-2); white-space: nowrap; }
.panel-lead { max-width: 760px; color: var(--c-ink-2); }
.compact-grid .hub-card { min-height: 82px; }

@media (max-width: 760px) {
	.hub-hero, .article-head { padding: 18px 16px; border-radius: 10px; }
	.hub-card-grid, .related-grid { grid-template-columns: 1fr; }
	.data-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.data-strip > div:nth-child(2) { border-right: 0; }
	.data-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
	.area-chip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.related-panel { padding: 16px; }
}
@media (max-width: 420px) {
	.area-chip-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.hub-card { transition: none; }
	.hub-card:hover { transform: none; }
}

/* ── 모바일 내비게이션·푸터 터치 영역 */
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) {
	.site-head .wrap { display: block; padding-top: 4px; padding-bottom: 4px; }
	.brand { min-height: 44px; }
	.site-nav {
		width: 100%; margin-left: 0; flex-wrap: nowrap; gap: 2px;
		overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.site-nav::-webkit-scrollbar { display: none; }
	.site-nav a { flex: 0 0 auto; min-height: 44px; padding-inline: 10px; }
}


/* ── 대표 시각 슬롯: 기존 WebP를 리뉴얼 폴백으로 사용 */
.home-hero-in { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: 34px; align-items: center; }
.hero-visual, .hub-visual { margin: 0; min-width: 0; }
.editorial-visual { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-tint); }
.editorial-visual-home { box-shadow: 0 18px 42px color-mix(in srgb, var(--c1) 12%, transparent); }
.hub-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,360px); gap: 24px; align-items: center; }
.hub-visual .editorial-visual { border-radius: 10px; }

@media (max-width: 760px) {
	.home-hero-in { grid-template-columns: 1fr; gap: 20px; }
	.hero-visual { max-width: 520px; }
	.hub-hero-grid { grid-template-columns: 1fr; gap: 16px; }
	.hub-visual { max-width: 480px; }
}


.article-featured { max-width: 920px; margin: 18px 0 24px; }
.article-featured img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:12px; border:1px solid var(--c-line); background:var(--c-tint); }
.article-featured-camera { max-width: 980px; }

.renew-motion .renew-reveal { opacity:.96; transform:translateY(6px); transition:opacity 180ms ease-out, transform 180ms ease-out; }
.renew-motion .renew-reveal.is-seen { opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.renew-motion .renew-reveal, .renew-motion .renew-reveal.is-seen { opacity:1; transform:none; transition:none; }
}

