/*
 * 혁명가들 — "조판한 시간표", 일정이 주인공 (docs/03-DESIGN.md)
 * 신문지 바탕 + 먹 세 단계(100 · 77 · 65%) + 형광 연두 한 가지(질서유지인 조끼 색). 정당 색(빨강·파랑·노랑·주황)은 쓰지 않는다.
 * 연두(--signal)는 화면마다 주 행동 하나 · "오늘" 표시 · 곧 시작 · 일정 변경 · focus 에만 (03-DESIGN 색). 글자는 늘 먹.
 * 위계는 크기 · 굵기 · 먹 단계로만 — 상자 · 기울기 · 색 · 움직임으로 강조하지 않는다. 팻말(3px 먹 · 6px 그림자 · 테이프)은 화면에 하나.
 * 글자 역할 7개(+ 작은 역할) · 굵기 넷(400 읽기 · 600 항목/라벨/시각 · 700 제목/배지 · 800 페이지 제목). 500 · 900 은 쓰지 않는다.
 * Black Han Sans 는 .hero__title · .placard__date · .error-page__code · .logo__word 넷뿐.
 * font 줄임 속성을 쓰지 않는다 (font-variant-numeric 이 풀린다). color-mix · style="" 없음 (CSP). 텍스트에 opacity 를 쓰지 않는다
 * (예외: JS 가 막은 .opt 하나).
 * 모션: 쉬는(기본) 상태가 언제나 최종 상태다. @keyframes 는 transform 만(opacity 0 · scale 0 시작 금지 — MotionSafetyTest).
 *
 * 구역: 1 토큰 → 2 기본(글자 역할) → 3 레이아웃 → 4 컴포넌트 → 5 페이지 → 6 모션 → 7 동작 줄이기 → 8 print
 */

/* ══ 1. 토큰 ═══════════════════════════════════════════════════════════ */
:root {
	--paper: #f3f1ea;
	--surface: #fbfaf6;
	--sunk: #e6e3d9;
	--sunk-2: #d9d5c8;  /* 칩 hover — 그 위에 ink-3 · line-ui 를 두지 않는다 (4.13 · 2.71:1) */
	--ink: #141414;     /* 글자 1 — 종이 위 16.30:1 */
	--ink-2: #4a4741;   /* 글자 2 — 종이 위 8.19:1 */
	--ink-3: #66625a;   /* 글자 3 — 종이 위 5.37:1, 캡션 · 숫자만 */
	--on-ink-2: #d3cfc3; /* 먹 바탕 위 보조 글자 — 11.83:1 */
	--line: #d3cfc3;    /* 꾸밈 헤어라인만 (행 · 섹션 사이) */
	--line-ui: #857f73; /* 컨트롤 1px 테두리 — 종이 위 3.52:1 */
	--signal: #d6f23c;  /* 형광 연두 — 위 글자는 늘 --ink (14.58:1) */
	--signal-deep: #b9d61c;
	--hazard: #f2cf00;  /* 검수 전 띠 (로컬 전용) */
	--hazard-2: #f7e36a;
	--tape: rgba(20, 20, 20, .08);

	--display: "Black Han Sans", "Pretendard Variable", Pretendard, sans-serif;
	--text: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

	--t-display: clamp(2rem, 1.5rem + 2vw, 2.5rem);      /* 32 → 40 */
	--t-title: clamp(1.625rem, 1.25rem + 1.6vw, 2rem);   /* 26 → 32 */
	--t-q: clamp(1.375rem, 1.2rem + .8vw, 1.625rem);     /* 22 → 26 */
	--t-heading: 1.25rem;  /* 20 */
	--t-item: 1.0625rem;   /* 17 */
	--t-body: 1rem;        /* 16 */
	--t-label: .9375rem;   /* 15 */
	--t-time: .9375rem;    /* 15 */
	--t-meta: .875rem;     /* 14 */
	--t-caption: .8125rem; /* 13 */
	--lh-display: 1.1;
	--lh-title: 1.3;
	--lh-heading: 1.3;
	--lh-item: 1.45;
	--lh-body: 1.7;
	--lh-meta: 1.5;
	--lh-label: 1.25;

	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
	--sec-gap: var(--s7);
	--wrap: 1180px;    /* 헤더 · 푸터 · 넓은 화면 상세 */
	--col: 760px;      /* 홈 · 목록 · 날짜 · 글 — 가운데 한 단 */
	--col-find: 640px; /* 집회 찾기 */
	--gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); /* 가로 노치 · 둥근 모서리 아래로 글자가 가지 않게 */
	--time-col: 3.5rem; /* 행의 시각 칸 — 접힌 묶음 머리도 이 폭만큼 들여 쓴다 */
	--hang: 8px;       /* 행 · 날짜 머리 선이 글 단 밖으로 나가는 폭 (hover 바탕이 글자에 붙지 않게) */
	--bar-h: 69px;     /* 상세 액션바 높이 (1px 선 + 8 + 52 + 8) — 문의 버튼이 그 위로 비킨다 */

	--r: 4px;
	--r-pill: 999px;
	--lift-3: 6px 6px 0 var(--ink); /* 팻말에만 */

	--dur-press: 90ms;
	--dur-hover: 160ms;
	--dur-step: 240ms;
	--ease-out: cubic-bezier(.2, .8, .2, 1);

	--z-day: 2;
	--z-bar: 5;
	--z-help: 8;
	--z-skip: 10;

	color-scheme: light;
}

@media (min-width: 768px) {
	:root { --gutter: max(28px, env(safe-area-inset-left), env(safe-area-inset-right)); --time-col: 4rem; }
}

@media (min-width: 1024px) {
	:root {
		--t-heading: 1.375rem; --t-item: 1.125rem; --t-body: 1.0625rem; --t-label: 1rem; --t-time: 1rem; --t-meta: .9375rem;
		--sec-gap: var(--s8);
	}
}

/* ══ 2. 기본 ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 8px; }
/* 붙박이 띠(위저드 바 · 상세 액션바 · 날짜 머리)와 오른쪽 아래 문의 버튼이 키보드 focus 를 가리지 않게 — focus 이동 때 브라우저가
   이만큼 비켜 스크롤한다. 문의: 16 + 52 + 16 · 상세(1024 미만): 액션바 + 12 + 52 + 16 (아래 규칙이 구체성으로 이긴다) */
html:has(.help) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
html:has(.quiz__bar:not([hidden])) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (max-width: 1023.98px) {
	html:has(.actionbar) { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
	html:has(.page-detail .help) { scroll-padding-bottom: calc(var(--bar-h) + 12px + 52px + 16px + env(safe-area-inset-bottom)); }
}
/* 날짜 머리(sticky top:0) 아래로 — 행 링크와 접힌 묶음 머리. 머리로 건너뛰는 #day-… 앵커는 그대로 맨 위 */
.rows a, .continuing > summary { scroll-margin-top: 64px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--text);
	font-size: var(--t-body);
	font-weight: 400;
	line-height: var(--lh-body);
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ol, ul, fieldset, legend { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; } /* 제목 크기는 아래 글자 역할이 정한다 */
:where(ol, ul)[role="list"] { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button { font-family: inherit; color: inherit; }
summary { cursor: pointer; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--signal); }
[data-q]:focus, main:focus, .results:focus { outline: none; box-shadow: none; }

.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;
}

.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: var(--z-skip);
	padding: 8px 14px; background: var(--ink); color: var(--paper); font-weight: 700;
}
.skip-link:focus { top: 8px; }
.skip-link--2:focus { left: 220px; }

.ico {
	width: 1.1em; height: 1.1em; flex: none;
	fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── 글자 역할 (03-DESIGN 글꼴 표) — 크기 · 굵기 · 줄 간격 · 자간 · 먹 단계는 여기서만. 16px 아래는 자간 0 ── */
/* DISPLAY — 화면에 하나 */
.hero__title, .placard__date, .error-page__code {
	font-family: var(--display); font-weight: 400; font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: -0.01em;
}
/* LOGO */
.logo__word { font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1; letter-spacing: 0; }
/* TITLE */
.page-title, .detail__title { font-size: var(--t-title); font-weight: 800; line-height: var(--lh-title); letter-spacing: -0.025em; }
/* QUESTION */
.quiz__q { font-size: var(--t-q); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
/* HEADING */
.sec-title, .day__date, .prose h2, .placard__time { font-size: var(--t-heading); font-weight: 700; line-height: var(--lh-heading); letter-spacing: -0.02em; }
/* ITEM */
.row__title, .opt__label, .relax h2, .help__opt { font-size: var(--t-item); font-weight: 600; line-height: var(--lh-item); letter-spacing: -0.01em; }
/* BODY — 글 페이지는 본문 흐름(main 의 바로 아래 p · ul/ol 의 li)만. 빵부스러기(nav > ol > li)는 CAPTION 그대로 */
.prose > p, .prose > ul > li, .prose > ol > li, .empty, .sign__empty, .error-page__text, .detail__size {
	font-size: var(--t-body); font-weight: 400; line-height: var(--lh-body); letter-spacing: -0.01em;
}
.empty, .sign__empty { color: var(--ink-2); }
/* LABEL */
.btn, .chip, .site-nav a, .link-row, .continuing > summary, .refine > summary, .past > summary {
	font-size: var(--t-label); font-weight: 600; line-height: var(--lh-label); letter-spacing: 0;
}
.site-nav a { color: var(--ink-2); }
/* TIME */
.row__time { font-size: var(--t-time); font-weight: 600; line-height: 1.45; letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* META */
.row__where, .hero__meta, .page-meta, .result-count, .detail__org, .placard__note, .placard__route, .opt__hint, .detail__kind, .detail__tag {
	font-size: var(--t-meta); font-weight: 400; line-height: var(--lh-meta); letter-spacing: 0; color: var(--ink-2);
}
.detail__kind { color: var(--ink-3); }
/* CAPTION */
.row__meta, .row__time.is-unknown, .hero__basis, .page-desc, .page-rel, .day__carry, .agenda__note, .fine, .crumbs, .quiz__hint,
.quiz__hidden-note, .trust, .sources__kind, .sources__checked, .placard__area, .past-row__when, .past-row__where, .help__note,
.site-footer__basis, .site-footer__notice, .site-footer__legal {
	font-size: var(--t-caption); font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--ink-3);
}
/* SMALL LABEL */
.chips__label, .detail__label, .placard__label, .quiz__pill-k, .opts__group {
	font-size: var(--t-caption); font-weight: 700; line-height: 1.4; letter-spacing: 0; color: var(--ink-3);
}
/* EYEBROW */
.detail__h, .notes__title { font-size: .875rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; color: var(--ink-2); }
/* BADGE — 예외만 (취소 · 연기 · 일정 변경 · 검수 전 · 오늘 · 곧 시작) */
.status, .draft-tag, .soon.is-soon, .day__rel.is-today, .placard__rel.is-today, .page-rel.is-today {
	font-size: var(--t-caption); font-weight: 700; line-height: 1.4; letter-spacing: 0;
}
/* COUNT — 라벨보다 크지 않게 */
.chip__n, .seg__n, .opt__n, .day__count {
	font-size: var(--t-caption); font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ink-3);
}
.day__count { font-size: .875rem; }
.chip__n { color: var(--ink-2); } /* 칩 hover 가 sunk-2 라서 */

/* 숫자 열 맞춤 */
.hero__meta, .page-meta, .result-count, .placard__time, .daynav a { font-variant-numeric: tabular-nums; }
/* 데이터로 만든 제목은 balance 하지 않는다 ("전국 집회 / ·행진 일정" 같은 줄바꿈) — 고정 문구 둘만 */
.sec-title, .quiz__q { text-wrap: balance; }
/* 줄 길이 */
.prose > p, .prose > ul > li, .prose > ol > li, .detail__summary, .empty, .notes li { max-inline-size: 36em; }
.page-desc, .hero__basis, .fine, .day__carry, .site-footer__notice { max-inline-size: 40em; }

/* ══ 3. 레이아웃 ════════════════════════════════════════════════════════ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* 위저드 단계(step-in) 시작 위치가 375px 에서 가로 스크롤을 만들지 않게. clip 은 스크롤 컨테이너를 만들지 않아 sticky 가 그대로 동작한다 */
main { overflow-x: clip; }
/* 가운데 한 단 */
.home, .page-list main, .page-date main, .prose, .error-page { max-width: calc(var(--col) + 2 * var(--gutter)); }
.find { max-width: calc(var(--col-find) + 2 * var(--gutter)); }

/* 개발 배너 */
.dev-banner {
	margin: 0; padding: 6px var(--gutter); font-size: .875rem; text-align: center;
	background: var(--ink); color: var(--paper);
}
.dev-banner--draft {
	color: var(--ink);
	background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--hazard-2) 14px 28px);
}
.dev-banner code { font-size: .8125rem; background: rgba(255, 255, 255, .6); padding: 1px 5px; border-radius: var(--r); }

/* 헤더 — 한 줄 56px (≥768 64px), 붙박이가 아니다 */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo__mark { /* 브랜드 표시 (파비콘과 같은 팻말) */
	width: 22px; height: 22px; flex: none; fill: var(--signal); stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round;
}
.logo__word { padding-top: 2px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-wide { display: none; }

.btn-find--header {
	position: relative; display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 12px;
	border-radius: var(--r); background: var(--signal); color: var(--ink);
	font-size: .9375rem; font-weight: 700; line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap;
}
.btn-find--header::after { content: ""; position: absolute; inset: -4px 0; } /* 누르는 자리 44px */
.btn-find--header:hover { background: var(--signal-deep); }
.btn-find--header[aria-current] { background: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (min-width: 768px) {
	.site-header__bar { min-height: 64px; gap: 16px; }
	.logo__word { font-size: 1.375rem; }
	.nav-wide { display: block; }
	.site-nav a { padding: 0 10px; }
}

/* 빵부스러기 — 상세 · 글 페이지만, 한 줄 */
.crumbs ol { display: flex; padding-top: var(--s3); white-space: nowrap; }
.crumbs li { flex: none; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 꾸밈 글자(/ · → · ▸ · ✓)는 content: "…" / "" 로 화면 읽기에서 뺀다 — 이 문법을 모르는 브라우저는 앞 선언을 쓴다 */
.crumbs li + li::before { content: "/"; content: "/" / ""; margin: 0 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink-2); text-decoration: underline; }
.page-detail .crumbs li:last-child { display: none; } /* 제목은 바로 아래 h1 */

/* 푸터 */
.site-footer {
	margin-top: var(--s8); padding: var(--s6) 0 calc(40px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--ink); background: var(--sunk);
}
.site-footer__basis { color: var(--ink-2); } /* 사이트에 하나뿐인 숫자 각주 */
.site-footer__links { display: flex; flex-wrap: wrap; column-gap: 16px; margin-top: var(--s2); }
.site-footer__links a {
	display: inline-flex; align-items: center; min-height: 44px;
	font-size: .875rem; font-weight: 400; color: var(--ink-2); text-decoration: none;
}
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__notice { margin-top: var(--s3); line-height: 1.7; }
.site-footer__legal { margin-top: var(--s2); }

/* 섹션 공용 */
.sec { padding-top: var(--sec-gap); }
.sec-title { margin-bottom: var(--s3); }
.more {
	display: inline-flex; align-items: center; min-height: 44px;
	font-size: .875rem; font-weight: 600; color: var(--ink-2); text-underline-offset: 3px;
}
.more:hover { color: var(--ink); }
.more::after { content: " →"; content: " →" / ""; white-space: pre; }
.fine { margin-top: var(--s2); }
.fine a { color: var(--ink-2); text-underline-offset: 3px; }
.empty { padding: var(--s5) 0 var(--s3); }
.empty__action { margin-top: var(--s1); }

/* ══ 4. 컴포넌트 ════════════════════════════════════════════════════════ */

/* 버튼 — 그림자 · 들림 없음 */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
	border: 1px solid var(--line-ui); border-radius: var(--r); background: var(--paper); color: var(--ink);
	text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--sunk); }
.btn--signal { border-color: transparent; background: var(--signal); font-weight: 700; }
.btn--signal:hover { background: var(--signal-deep); }
.btn--xl { width: 100%; min-height: 52px; padding: 12px 20px; font-size: 1.0625rem; font-weight: 700; }
.btn--sm { min-height: 40px; padding: 6px 12px; font-size: .875rem; }
@media (min-width: 768px) {
	.btn--xl { width: auto; }
}
/* 글자 버튼 — .btn 과 함께 써도(위저드 '이전') 단독으로 써도(목록 '조건 바꾸기') 같은 모양 */
.btn--text, .btn.btn--text {
	position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
	border: 0; border-radius: 0; background: transparent; color: var(--ink-2);
	font-size: var(--t-label); font-weight: 600; line-height: var(--lh-label); letter-spacing: 0;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.btn--text:hover, .btn.btn--text:hover { background: transparent; color: var(--ink); }

/* 배지 — 예외만 */
.status { display: inline-block; padding: 1px 6px; border-radius: var(--r); background: var(--ink); color: var(--paper); white-space: nowrap; }
.status.is-changed { background: var(--signal); color: var(--ink); }
.draft-tag { display: inline-block; padding: 1px 6px; border-radius: var(--r); background: var(--hazard); color: var(--ink); white-space: nowrap; }
.day__rel.is-today, .placard__rel.is-today, .page-rel.is-today {
	display: inline-block; padding: 1px 6px; border-radius: var(--r); background: var(--signal); color: var(--ink);
}

/* 곧 시작 — app.js 가 오늘(KST) 시작 시각과 비교해 글자를 넣는다. 60분 안만 연두 */
.soon { display: inline-block; font-size: var(--t-caption); line-height: 1.4; color: var(--ink-3); white-space: nowrap; }
.soon.is-soon { padding: 1px 8px; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); }

/* 칩 — 조용한 sunk 알약, 테두리 없음. 0 칩은 두지 않는다 (JS 없는 집회 찾기만 예외) */
.chips { margin-top: var(--s4); }
.chips__label { display: block; margin-bottom: var(--s2); }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
	border-radius: var(--r-pill); background: var(--sunk); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.chip::after { content: ""; position: absolute; inset: -4px 0; } /* 누르는 자리 44px */
.chip:hover { background: var(--sunk-2); }
.chip--on, .chip--on:hover { background: var(--ink); color: var(--paper); }
.chip--on .chip__n { color: var(--on-ink-2); }

/* 기간 세그먼트 — 한 줄 5칸, 라벨 위 · 숫자 아래. 고른 칸은 먹 바탕(연두 없음), focus 링은 칸 안쪽 */
.seg__list {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
	border: 1px solid var(--line-ui); border-radius: var(--r); overflow: hidden;
}
.seg__list > li { display: flex; min-width: 0; }
.seg__list > li + li { border-left: 1px solid var(--line-ui); }
.seg__cell {
	display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	min-width: 0; min-height: 52px; padding: 6px 4px; background: var(--paper); color: var(--ink);
	text-align: center; text-decoration: none;
}
.seg__label { font-size: .875rem; font-weight: 600; line-height: 1.25; }
a.seg__cell:hover { background: var(--sunk); }
.seg__cell.is-on, a.seg__cell.is-on:hover { background: var(--ink); color: var(--paper); }
.seg__cell.is-on .seg__n { color: var(--on-ink-2); }
.seg__cell.is-zero { color: var(--ink-3); }
.seg__cell:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--signal); }

/* 조건 알약 (✕ 로 그 조건만 빼기) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
	position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px 0 12px;
	border: 1px solid var(--line-ui); border-radius: var(--r-pill); background: var(--paper); color: var(--ink);
	font-size: .875rem; font-weight: 600; line-height: 1.25; text-decoration: none;
}
.pill::after { content: ""; position: absolute; inset: -6px 0; } /* 누르는 자리 44px */
.pill:hover { background: var(--sunk); }
.pill__x { width: 14px; height: 14px; color: var(--ink-2); }

/* 접기 — 머리에 무엇이 몇 건인지 늘 적는다. 펼친 내용은 움직이지 않는다 */
.continuing > summary, .refine > summary, .past > summary {
	display: flex; align-items: center; gap: 8px; min-height: 44px; list-style: none;
}
.continuing > summary::-webkit-details-marker, .refine > summary::-webkit-details-marker, .past > summary::-webkit-details-marker { display: none; }
.continuing > summary::before, .refine > summary::before, .past > summary::before {
	content: "▸"; content: "▸" / ""; display: inline-block; flex: none; width: 1em; text-align: center; color: var(--ink-2);
}
.continuing[open] > summary::before, .refine[open] > summary::before, .past[open] > summary::before { transform: rotate(90deg); }
.continuing > summary:hover, .refine > summary:hover, .past > summary:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 한 줄 링크 (숫자 = 도착 페이지 숫자) */
.link-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.link-row + .link-row { border-top: 0; } /* 줄이 이어지면 헤어라인 하나 (상세의 "이날 전국 집회" · "{장소} 집회 더 보기") */
.link-row .ico { width: 18px; height: 18px; color: var(--ink-2); }
.link-row:hover > span { text-decoration: underline; text-underline-offset: 3px; }

/* 팻말 — 3px 먹 + 6px 그림자 + 테이프 한 장. 화면에 하나 (홈 제호 · 상세 언제·어디서 · 집회 찾기의 지금 질문) */
.sign, .placard {
	position: relative; border: 3px solid var(--ink); border-radius: var(--r); background: var(--surface); box-shadow: var(--lift-3);
}
.sign::before, .placard::before { /* 테이프 */
	content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; margin-left: -32px;
	background: var(--tape); transform: rotate(-4deg);
}

/* 날짜 묶음 — 머리(sticky) · 앞 날짜 안내 · 행(시각순) · 접힌 여러 날 행사 */
.day { margin-top: var(--s5); }
.day__head {
	position: sticky; top: 0; z-index: var(--z-day); display: flex; align-items: baseline; gap: 12px;
	margin: 0 calc(var(--hang) * -1); padding: 12px var(--hang) 8px;
	background: var(--paper); border-bottom: 1px solid var(--ink);
	font-size: var(--t-body); font-weight: 400; line-height: 1.3;
}
.day__head a { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; text-decoration: none; }
.day__head a:hover .day__date { text-decoration: underline; text-underline-offset: 4px; }
.day__rel { font-size: .875rem; color: var(--ink-3); white-space: nowrap; }
.day__count { flex: 0 1 auto; margin-left: auto; text-align: right; }
.day__carry { margin-top: var(--s2); }

.continuing {
	margin: 0 calc(var(--hang) * -1); padding: 0 var(--hang);
	border-top: 1px solid var(--line);
}
/* 접힌 묶음 머리는 행 제목 칸에 맞춰 들여 쓴다 (▸ 1em + 틈 8px 를 빼고) */
.continuing > summary { padding-left: calc(var(--time-col) + 12px - 1em - 8px); color: var(--ink-2); }
.continuing > summary:hover { color: var(--ink); }
.continuing > .rows > .row:first-child { border-top: 1px solid var(--line); }

/* 행 — 집회 한 건. 상자 · 아이콘 없음, 제목은 줄이지 않는다, 행 전체가 링크 */
.rows { margin: 0; padding: 0; list-style: none; }
.row {
	position: relative; display: grid; grid-template-columns: var(--time-col) minmax(0, 1fr); column-gap: 12px; align-items: baseline;
	margin: 0 calc(var(--hang) * -1); padding: 14px var(--hang);
}
.row + .row { border-top: 1px solid var(--line); }
@media (min-width: 768px) {
	.row { column-gap: 20px; padding-top: 16px; padding-bottom: 16px; }
	.continuing > summary { padding-left: calc(var(--time-col) + 20px - 1em - 8px); }
}
.row__title a { text-decoration: none; }
.row__title a::after { content: ""; position: absolute; inset: 0; }
.row__title a:focus-visible { outline: none; box-shadow: none; }
.row__title a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--signal); }
.row__title .status, .row__title .draft-tag { vertical-align: .12em; }
.row__where { margin-top: 2px; }
.row__meta { margin-top: 2px; }
.row--off .row__title a, .row--off .row__time { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-3); }
.row--past .row__time { color: var(--ink-3); }
.row--draft::after { /* 검수 전 6px 줄무늬 (로컬 전용) */
	content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 6px; border-radius: 2px; pointer-events: none;
	background: repeating-linear-gradient(-45deg, var(--ink) 0 4px, var(--hazard) 4px 8px);
}
.row:active { background: var(--sunk); }
@media (hover: hover) and (pointer: fine) {
	.row:hover { background: var(--surface); }
	.row:hover .row__title a { text-decoration: underline; text-underline-offset: 3px; }
	.row:active { background: var(--sunk); }
}

/* 지난 집회 짧은 줄 */
.past-rows { margin: 0; padding: 0; list-style: none; }
.past-row + .past-row { border-top: 1px solid var(--line); }
.past-row a { display: grid; gap: 1px; padding: 12px 0; text-decoration: none; }
.past-row__when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.past-row__title { font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.past-row a:hover .past-row__title { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.past-row--off .past-row__title { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-3); }
.past-row--draft a { padding-left: 12px; border-left: 6px solid var(--hazard); }

/* 노선도 — 3곳 이상일 때만, 움직이지 않는다 */
.route-line { /* 번호 없는 노선 (상세의 ol 은 aria-hidden 이라 role 이 없다) */
	position: relative; display: flex; justify-content: space-between; gap: 6px; margin: 12px 0 2px; padding: 18px 0 0;
	list-style: none;
}
.route-line::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 3px; background: var(--ink); }
.route-line li {
	position: relative; flex: 1 1 0; min-width: 0; font-size: var(--t-caption); font-weight: 600; line-height: 1.3; text-align: center;
}
.route-line li::before {
	content: ""; position: absolute; top: -18px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
	border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--surface);
}
.route-line li:first-child { text-align: left; }
.route-line li:first-child::before { left: 0; margin-left: 0; }
.route-line li:last-child { text-align: right; }
.route-line li:last-child::before { left: auto; right: 0; margin-left: 0; }

/* 붙박이 띠 — 상세 액션바 · 위저드 바 */
.actionbar, .quiz__bar {
	position: sticky; bottom: 0; z-index: var(--z-bar); display: flex; align-items: center; gap: 8px;
	margin: var(--s6) calc(var(--gutter) * -1) 0; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
	background: var(--paper); border-top: 1px solid var(--ink);
}
/* 상세 액션바(1024 미만에만 보인다)는 sticky 가 아니라 화면 아래 고정 — sticky 면 글 끝에서 막대가 글과 함께 올라가
   그 위에 띄운 문의 버튼 밑으로 들어가, 버튼이 '공유'를 가리고 누름을 가져갔다. 버튼은 글 단(--col)에 맞춘다.
   막대가 글 끝 · 푸터를 덮지 않게 푸터 아래를 막대 높이만큼 비운다 (아래 문의 절) */
.actionbar {
	position: fixed; left: 0; right: 0; margin: 0;
	padding-right: max(var(--gutter), calc(100% - var(--col) - var(--gutter)));
}
.actionbar .btn--signal { flex: 1 1 auto; width: auto; }
.quiz__bar [data-go="results"] { flex: 1 1 auto; }

/* 알림 · 알아 둘 점 */
.notice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: var(--s4); padding: 12px 14px; border-radius: var(--r); }
.notice strong { font-size: 1rem; font-weight: 700; }
.notice--off { background: var(--ink); color: var(--paper); }
.notice--changed { background: var(--signal); color: var(--ink); }
.notes { margin-top: var(--s5); padding: 14px 16px; border-radius: var(--r); background: var(--sunk); }
.notes ul { display: grid; gap: 4px; margin-top: 6px; }
.notes li { position: relative; padding-left: 14px; font-size: .9375rem; line-height: 1.65; }
.notes li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--ink); }

/* 문의 — 오른쪽 아래, 화면에 하나뿐인 떠 있는 요소. 먹 알약(연두 아님 · 그림자 없음 — 종이색 1px 테두리로 어두운 내용과 떨어진다).
   패널은 버튼 위로 열린다. 상세(<1024)에서는 액션바 위로, /find 에는 없다(템플릿), 인쇄하지 않는다 */
.help {
	position: fixed; z-index: var(--z-help);
	right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
}
.help__btn {
	display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 18px 0 16px;
	border: 1px solid var(--paper); border-radius: var(--r-pill); background: var(--ink); color: var(--paper);
	font-size: var(--t-label); font-weight: 600; line-height: 1; letter-spacing: 0; list-style: none; cursor: pointer; user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.help__btn::-webkit-details-marker { display: none; }
.help__btn .ico { width: 22px; height: 22px; stroke-width: 2; }
.help__btn:hover, .help[open] > .help__btn { background: var(--ink-2); }
/* 패널 높이: 화면 - (버튼 아래 16 + 버튼 52 + 틈 8) - 위 여백 20. dvh 가 되면 보이는 높이로 (iOS 도구 막대가 보일 때 100vh 는 더 크다) */
.help__panel {
	position: absolute; right: 0; bottom: calc(100% + 8px);
	inline-size: min(20rem, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
	max-block-size: calc(100vh - 96px - env(safe-area-inset-bottom));
	max-block-size: calc(100dvh - 96px - env(safe-area-inset-bottom));
	overflow-y: auto;
	padding: 16px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--surface); color: var(--ink);
}
.help__title { margin-bottom: var(--s3); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.help__opt {
	display: flex; align-items: center; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--line-ui); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.help__opt + .help__opt { margin-top: var(--s2); }
.help__opt:hover { background: var(--sunk); }
.help__note { margin-top: var(--s3); overflow-wrap: anywhere; }
.help__copy {
	display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s1); padding: 0 2px;
	border: 0; background: transparent; color: var(--ink-2); font-size: .875rem; font-weight: 600; line-height: 1.25;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.help__copy:hover { color: var(--ink); }
.help__status { margin-top: var(--s2); font-size: .875rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.help__status:empty { margin: 0; } /* role=status 는 늘 트리에 두고 비면 접기만 */
@media (max-width: 1023.98px) {
	/* 고정 액션바 위로 (막대 높이 + 12). 막대가 움직이지 않으니 스크롤 어디서든 겹치지 않는다 */
	.page-detail .help { bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); }
	.page-detail .help__panel {
		max-block-size: calc(100vh - var(--bar-h) - 92px - env(safe-area-inset-bottom)); /* 12 + 52 + 8 + 위 여백 20 */
		max-block-size: calc(100dvh - var(--bar-h) - 92px - env(safe-area-inset-bottom));
	}
	/* 페이지 끝의 고지 · 링크가 고정 액션바 밑에 깔리지 않게, 문의 버튼이 있으면 그 밑에도 */
	.page-detail .site-footer { padding-bottom: calc(40px + var(--bar-h) + env(safe-area-inset-bottom)); }
	.page-detail .site-footer:has(+ .help) { padding-bottom: calc(40px + var(--bar-h) + 12px + env(safe-area-inset-bottom)); }
}
/* 큰 글자(앱의 시스템 글자 크기 · textZoom)로 액션바가 --bar-h 보다 높아져도 문의 버튼이 그 위에 있게 — anchor positioning 이 되면
   고정 값 대신 막대의 윗변에 붙인다 (막대가 없으면 고정 값). 막대는 늘 보이므로 앵커 때문에 버튼을 숨기지 않는다 */
@supports (anchor-name: --a) {
	@media (max-width: 1023.98px) {
		.actionbar { anchor-name: --actionbar; }
		.page-detail .help {
			position-anchor: --actionbar; position-visibility: always;
			bottom: calc(anchor(top, calc(var(--bar-h) + env(safe-area-inset-bottom))) + 12px);
		}
	}
}

/* ══ 5. 페이지 ══════════════════════════════════════════════════════════ */

/* ── 홈 — 제호 팻말 → 기간 칩 → 일정 → 지역·주제 ──────────────── */
.hero { padding-top: var(--s5); }
.sign { padding: 24px 16px 18px; }
.hero__meta { margin-top: var(--s2); }
.sign__empty { margin-top: var(--s3); }
.sign__action { margin-top: var(--s3); }
.hero__basis { margin-top: var(--s3); }
.hero__basis a { color: var(--ink-2); text-underline-offset: 3px; white-space: nowrap; }
.hero__basis a:hover { color: var(--ink); }
@media (min-width: 768px) {
	.sign { max-inline-size: 34rem; padding: 28px 24px 22px; }
}
.periods { margin-top: var(--s6); }
.agenda { margin-top: var(--s6); }
.agenda__note + .day { margin-top: var(--s2); } /* "오늘 알려진 집회가 없어요." 는 첫 날짜 묶음과 붙여 읽는다 */
.agenda__all { margin-top: var(--s6); }
.agenda__past { margin-top: var(--s4); }
.browse .chips { margin-top: var(--s4); }
.browse #regions .chips { margin-top: 0; }

/* ── 목록 · 날짜 ─────────────────────────────────── */
.page-head { padding-top: var(--s5); }
.page-desc, .result-count, .page-meta { margin-top: var(--s2); }
.page-rel { margin-bottom: var(--s2); }
.result-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: var(--s3); }
.filters { margin-top: var(--s5); }
.refine { margin-top: var(--s2); }
.refine__on { font-weight: 400; color: var(--ink-2); }
.refine__on::before { content: "· "; content: "· " / ""; }
.refine__body { padding-bottom: var(--s2); }
.refine__body .chips:first-child { margin-top: var(--s2); }
.results { margin-top: var(--s4); }
.results > .day:first-of-type { margin-top: var(--s2); }

.daynav__list {
	position: relative; /* 알약 안 sr-only "건" 이 스크롤 줄 밖으로 나가 페이지를 넓히지 않게 (375px) */
	display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
	margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter);
}
.daynav__list::-webkit-scrollbar { display: none; }
.daynav__list li { flex: none; }
.daynav a {
	position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
	border-radius: var(--r-pill); background: var(--sunk); color: var(--ink);
	font-size: .875rem; font-weight: 600; line-height: 1.25; text-decoration: none; white-space: nowrap;
}
.daynav a::after { content: ""; position: absolute; inset: -4px 0; }
.daynav a:hover { background: var(--sunk-2); }
/* 마우스(가는 포인터)로는 가로 스크롤을 알아보기 어렵다 — 가는 스크롤 막대를 보인다 */
@media (hover: hover) and (pointer: fine) {
	.daynav__list { scrollbar-width: thin; scrollbar-color: var(--line-ui) transparent; }
	.daynav__list::-webkit-scrollbar { display: block; height: 8px; background: transparent; }
	.daynav__list::-webkit-scrollbar-thumb { background: var(--line-ui); border-radius: var(--r-pill); }
}
@media (min-width: 768px) {
	.daynav__list { flex-wrap: wrap; overflow: visible; margin: 0; padding: 8px 0; }
}

.relax { margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); }
.relax .chips__list { margin-top: var(--s3); }
.relax__find { margin-top: var(--s4); }

.past { margin-top: var(--s7); border-top: 1px solid var(--line); }
.past > summary { color: var(--ink-2); }
.past > summary:hover { color: var(--ink); }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--s3); }
.pager a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
	font-size: .875rem; font-weight: 600; line-height: 1.25; color: var(--ink-2); text-decoration: none;
}
.pager a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-date .empty + .link-row { margin-top: 0; }

/* ── 상세 ─────────────────────────────────────────── */
.detail { padding-top: var(--s3); max-width: var(--col); }
.draft-ribbon {
	margin-bottom: 14px; padding: 8px 12px; font-size: .875rem; font-weight: 700; border-radius: var(--r);
	background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--hazard-2) 14px 28px);
}
.detail__kicker { display: flex; flex-wrap: wrap; align-items: baseline; }
.detail__tag { font-weight: 600; text-decoration: none; }
.detail__tag:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 가운뎃점은 링크 밖 글자처럼 보이게 (inline-block 이라 링크 밑줄이 번지지 않는다) */
.detail__kicker > * + *::before {
	content: "·"; content: "·" / ""; display: inline-block; margin: 0 6px; color: var(--ink-3); font-weight: 400;
}
.detail__title { margin-top: var(--s2); }
.detail__org { margin-top: var(--s2); }
.detail__label { margin-right: 8px; }
.trust { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: var(--s1); }
.trust--solid::before { content: "✓ "; content: "✓ " / ""; }
.trust--weak { color: var(--ink); font-weight: 600; }

.placard { margin-top: var(--s5); padding: 20px 16px 16px; }
.placard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: var(--s1); }
.placard__rel { font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.placard__time { margin-top: var(--s1); }
.placard__time.is-unknown { color: var(--ink-3); }
.placard__place { display: flex; flex-direction: column; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.placard__place strong { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.placard__route { margin-top: 6px; }
.placard__route.is-strong { color: var(--ink); font-weight: 600; }
.placard__label { margin-right: 2px; }
.detail--off .placard__date, .detail--off .placard__time { text-decoration: line-through; text-decoration-thickness: 3px; color: var(--ink-3); }
@media (min-width: 768px) {
	.placard__place strong { font-size: 1.25rem; }
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
@media (max-width: 1023.98px) {
	.only-wide { display: none !important; }
}

.detail__sec { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }
.detail__h { margin-bottom: var(--s2); }
.detail__summary { font-size: 1.125rem; line-height: 1.75; letter-spacing: -0.01em; }
.sources { display: grid; gap: var(--s3); }
.sources a {
	display: block; font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--ink);
	text-underline-offset: 3px; overflow-wrap: anywhere;
}
.sources__checked::before { content: "·"; content: "·" / ""; margin: 0 6px; }
.more-links { max-width: var(--col); margin-top: var(--s6); }

@media (min-width: 1024px) {
	.detail {
		display: grid; max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-template-areas: "ribbon ribbon" "head aside" "notice aside" "body aside"; grid-template-rows: auto auto auto 1fr;
		column-gap: 48px; align-items: start;
	}
	.draft-ribbon { grid-area: ribbon; }
	.detail__head { grid-area: head; }
	.detail > .notice { grid-area: notice; }
	.detail__aside { grid-area: aside; position: sticky; top: 24px; align-self: start; }
	.detail__aside .placard { margin-top: 12px; }
	.detail__body { grid-area: body; }
	.actionbar { display: none; }
	.more-links { max-width: calc((100% - 48px) * 7 / 12); }
}

/* ── 집회 찾기 (/find) ────────────────────────────── */
.quiz { margin-top: var(--s4); }
/* 진행 막대 — 3칸, 위 3px 선: 지금 = 먹, 답함 = ink-3, 아직 = line */
.quiz__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: var(--s5); }
.quiz__steps li { min-width: 0; }
.quiz__pill {
	display: flex; flex-direction: column; gap: 1px; min-height: 44px; padding-top: 6px;
	border-top: 3px solid var(--line); color: var(--ink); text-decoration: none;
}
.quiz__pill.is-done { border-top-color: var(--ink-3); }
.quiz__pill[aria-current="step"] { border-top-color: var(--ink); }
.quiz__pill[aria-current="step"] .quiz__pill-k, .quiz__pill:hover .quiz__pill-k { color: var(--ink); }
.quiz__pill-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-caption); line-height: 1.4; color: var(--ink-2); }
.quiz__pill-v:empty { display: none; }

.quiz__notice { margin-bottom: var(--s4); padding: 10px 14px; border-radius: var(--r); background: var(--sunk); color: var(--ink); font-size: .875rem; line-height: 1.5; }
/* role=status 는 늘 접근성 트리에 둔다 (hidden 으로 감췄다 글과 함께 꺼내면 읽지 않는 화면 읽기 도구가 있다) — 비면 접기만 */
.quiz__notice:empty { margin: 0; padding: 0; }

/* JS 없음: 세 질문이 1px 선으로 나뉘어 쌓인다. JS 있음: 지금 단계 하나가 팻말 */
.quiz__step { padding: var(--s5) 0; }
.quiz__step + .quiz__step, .quiz__submit { border-top: 1px solid var(--line); }
.quiz.is-live .quiz__step { padding: 20px 16px 16px; border: 3px solid var(--ink); border-radius: var(--r); background: var(--surface); box-shadow: var(--lift-3); }
.quiz__q { margin-bottom: var(--s3); }
legend.quiz__q { float: left; width: 100%; }
legend.quiz__q + * { clear: both; }
.quiz__hint { margin: calc(var(--s1) * -1) 0 var(--s3); }
.quiz__hidden-note { margin-top: var(--s3); }
.quiz__submit { padding-top: var(--s5); }
.quiz__nojs { margin-bottom: var(--s3); font-size: .875rem; line-height: 1.5; color: var(--ink-2); max-inline-size: 36em; }

.opt { position: relative; cursor: pointer; }
.opt__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt__input:disabled { cursor: not-allowed; }
/* 줄 선택지 (언제 · 상관없어요): 라벨 ITEM · 힌트 META · 숫자 오른쪽 */
.opt--row {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label n" "hint n";
	column-gap: 12px; align-items: center; min-height: 56px; padding: 10px 12px; border-radius: var(--r);
}
.opts--rows .opt--row + .opt--row { border-top: 1px solid var(--line); }
.opt--row .opt__label { grid-area: label; }
.opt--row .opt__hint { grid-area: hint; }
.opt--row .opt__n { grid-area: n; font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.opt--any { margin-bottom: var(--s3); border: 1px solid var(--line); }
/* 칩 선택지 (시·도 · 주제) */
.opts--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt--chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
	border-radius: var(--r-pill); background: var(--sunk);
}
.opt--chip .opt__label { font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: 0; }
.opt--chip .opt__n { color: var(--ink-2); }
.opts__group { margin: var(--s4) 0 var(--s2); }
.opt:hover { background: var(--sunk); }
.opt--chip:not(.is-zero):hover { background: var(--sunk-2); }
.opt--chip.is-zero:hover { background: var(--sunk); }
/* 고른 것 = 먹 바탕 · 종이 글자 (연두 숫자 없음) */
.opt:has(.opt__input:checked), .opt:has(.opt__input:checked):hover { background: var(--ink); color: var(--paper); }
.opt:has(.opt__input:checked) .opt__hint, .opt:has(.opt__input:checked) .opt__n { color: var(--on-ink-2); }
.opt.is-zero { color: var(--ink-3); } /* JS 없으면 고를 수 있는 0건 — 글자 대비(4.7:1 이상)는 지킨다 */
.opt.is-zero .opt__n { color: var(--ink-3); }
.opt:has(:disabled) { cursor: not-allowed; opacity: .55; } /* 흐리게는 JS 가 막은(비활성) 것만 — 텍스트 opacity 의 유일한 예외 */
.opt:has(:disabled):hover { background: transparent; }
.opt--chip:has(:disabled):hover { background: var(--sunk); }
.opt:has(.opt__input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--signal); }
.opt--row:has(.opt__input:focus-visible) { outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--signal); }
.opt__input:focus-visible { outline: none; box-shadow: none; }
@supports not selector(:has(*)) {
	/* :has 가 없는 브라우저 — 고른 값과 focus 를 라벨 글자로 */
	.opt__input:checked ~ .opt__label { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
	.opt__input:checked ~ .opt__label::before { content: "✓ "; }
	.opt__input:focus-visible ~ .opt__label { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--signal); }
}

/* ── 글 페이지 · 오류 ─────────────────────────────── */
.prose { padding-bottom: var(--s5); }
.prose .page-title { margin-top: var(--s4); }
.prose .page-lede { margin-top: var(--s2); font-size: 1.125rem; line-height: 1.6; letter-spacing: -0.01em; color: var(--ink-2); max-inline-size: 36em; }
.prose h2 { margin-top: 40px; }
/* 본문 흐름만 (바로 아래 자식) — 빵부스러기의 ol · li · a 는 다른 페이지와 같은 CAPTION 한 줄로 둔다 */
.prose > p, .prose > ul, .prose > ol { margin-top: var(--s3); }
.prose > ul, .prose > ol { padding-left: 1.25em; }
.prose > ul > li + li, .prose > ol > li + li { margin-top: 4px; }
.prose > p a, .prose > ul a, .prose > ol a { color: var(--ink); text-underline-offset: 3px; }

.error-page { padding-top: var(--s7); padding-bottom: var(--s6); }
.error-page__code { color: var(--ink-3); }
.error-page .page-title { margin-top: var(--s2); }
.error-page__text { margin-top: var(--s3); color: var(--ink-2); }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s5); }

/* ── 누름 · 탭 (M1) ───────────────────────────────── */
/* 자기 누름이 있는 요소만 탭 강조를 끈다 — 글 링크는 기본 강조 그대로. iOS 는 app.js 의 touchstart 리스너가 있어야 :active 를 그린다 */
.row a, .chip, .btn, .seg__cell, .opt, .pill, .btn-find--header, .link-row { -webkit-tap-highlight-color: transparent; }
.btn:active, .chip:not(.chip--on):active, a.seg__cell:not(.is-on):active, .pill:active, .link-row:active, .help__opt:active,
.daynav a:active, .opt--chip:not(.is-zero):active { background: var(--sunk-2); }
.opt--row:active { background: var(--sunk); }
.btn--signal:active, .btn-find--header:active { background: var(--signal-deep); }
.btn.btn--text:active { background: transparent; }
.opt:has(.opt__input:checked):active { background: var(--ink); }
.opt:has(:disabled):active { background: transparent; }
.opt--chip:has(:disabled):active { background: var(--sunk); }
.help__btn:active { background: var(--ink-2); }

/* ══ 6. 모션 — @keyframes 는 transform 만 · 넷뿐. 시작 프레임도 보이고 크기가 있다 ═══════════════ */
/* 애니메이션이 한 프레임도 돌지 않아도(백그라운드 WebView · 앱 전환 스냅샷 · 숨은 탭) 첫 화면이 다 보여야 한다 — MotionSafetyTest */
@keyframes step-in { from { transform: translateX(16px); } }
@keyframes step-back { from { transform: translateX(-16px); } }
@keyframes tick { 50% { transform: scale(1.06); } }
@keyframes pop { from { transform: scale(.85); } }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }

	/* M1 · M2 누름 90ms · hover 160ms — 바탕색만 (들림 · 그림자 없음) */
	.btn, .chip, .seg__cell, .pill, .btn-find--header, .link-row, .daynav a, .help__btn, .help__opt, .row {
		transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
	}
	.btn:active, .chip:active, .seg__cell:active, .pill:active, .btn-find--header:active, .link-row:active,
	.daynav a:active, .help__btn:active, .help__opt:active, .row:active { transition-duration: var(--dur-press); }
	/* M3 접기 표시 */
	.continuing > summary::before, .refine > summary::before, .past > summary::before { transition: transform var(--dur-hover) var(--ease-out); }
	/* M4 위저드 단계 — 단계를 바꿀 때만 (.is-moving, find.js). 처음 보이는 단계는 움직이지 않는다 */
	.quiz.is-live.is-moving .quiz__step:not([hidden]) { animation: step-in var(--dur-step) var(--ease-out); }
	.quiz.is-live.is-moving.is-back .quiz__step:not([hidden]) { animation-name: step-back; }
	/* M5 선택 채움 · 진행 막대 */
	.opt { transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
	.quiz__pill { transition: border-color var(--dur-hover) var(--ease-out); }
	/* M6 결과 수 */
	.is-tick { animation: tick 200ms var(--ease-out); }
	/* M7 곧 시작 — 처음 보일 때 */
	.soon.is-soon { animation: pop 200ms var(--ease-out); }
}

/* ══ 7. 동작 줄이기 ═════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* 보이지 않는 채 열린 문서 (app.js) */
html.still *, html.still *::before, html.still *::after { animation: none !important; }

/* ══ 8. print ═══════════════════════════════════════════════════════════ */
@media print {
	.actionbar, .quiz__bar, .help { display: none !important; }
	.skip-link, .site-nav, .btn-find--header { display: none !important; }
	.day__head, .detail__aside { position: static; }
	.sign, .placard, .quiz.is-live .quiz__step { box-shadow: none; }
}
