/* 소방 타임머신 (2026-11-16) — 검색용 쪽(전체·설비·질문). 틀은 quiz.css 의 .qz(가벼운 틀)를 그대로 쓰고 tm- 만 여기에.
   시안: law-history/timemachine/entry/seo.html · 정본 docs/features/fire-timemachine.md
   바뀐 값은 파란 글씨 하나(사용자 2026-11-11) — 강조 주황과 따로 쓴다 */
.qz { --tm-chg: #2457c5; --tm-tag: #b34700; }

.qz .tm { display: flex; flex-direction: column; gap: 12px; }
.qz .tm-crumb { font-size: 13px; color: var(--qz-muted); margin: 0; }
.qz .tm-crumb a { color: var(--qz-muted); }
.qz .tm-h { font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; margin: 0; }
.qz .tm-h small { display: block; font-size: 13px; font-weight: 400; color: var(--qz-muted); letter-spacing: 0; margin-top: 4px; }
.qz .tm-lead { margin: 0; color: var(--qz-muted); }
.qz .tm-lead b { color: var(--qz-fg); }
.qz .tm-h2 { font-size: 17px; font-weight: 700; margin: 12px 0 0; }
.qz .tm-cond { font-size: 13px; font-weight: 700; color: var(--qz-muted); margin: 4px 0 -4px; }

/* 개정 이력 표 — 시행일 | 기준 | 근거 */
.qz .tm-tl { width: 100%; border-collapse: collapse; background: var(--qz-card); border: 1px solid var(--qz-line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.qz .tm-tl th, .qz .tm-tl td { padding: 8px; border-top: 1px solid var(--qz-line); text-align: left; vertical-align: top; }
.qz .tm-tl thead th { border-top: 0; color: var(--qz-muted); background: var(--qz-bg); font-weight: 400; }
.qz .tm-tl tbody th { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 사이트 전체 대비 규칙(contentsNew.css :root tr > td > b:not([class]))이 주황으로 덮어 이름표를 단다 */
.qz .tm-tl .tm-a { font-size: 15px; font-weight: 700; color: var(--qz-fg); }
.qz .tm-tl tbody tr + tr .tm-a { color: var(--tm-chg); }
.qz .tm-tl small { color: var(--qz-muted); }
.qz .tm-tl td.tm-basis { color: var(--qz-muted); word-break: keep-all; }
.qz .tm-t { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.qz .tm-t.back { background: var(--qz-accent-soft); color: var(--tm-tag); }
.qz .tm-t.may { background: var(--qz-chip); color: var(--qz-muted); }

.qz .tm-go { display: block; text-align: center; background: #c75500; color: #fff; font-weight: 700; font-size: 16px; border-radius: 12px; padding: 12px; text-decoration: none; }
.qz .tm details { background: var(--qz-card); border: 1px solid var(--qz-line); border-radius: 12px; padding: 0 12px; }
.qz .tm summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.qz .tm details p { font-size: 13px; line-height: 1.6; margin: 0 0 12px; word-break: break-all; }
.qz .tm-note { font-size: 13px; color: var(--qz-muted); margin: 0; }

/* 목록 — 다른 질문 · 설비 모음 */
.qz .tm-list { list-style: none; margin: 0; padding: 0; background: var(--qz-card); border: 1px solid var(--qz-line); border-radius: 12px; overflow: hidden; }
.qz .tm-list li + li { border-top: 1px solid var(--qz-line); }
.qz .tm-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px; color: var(--qz-fg); text-decoration: none; }
.qz .tm-list b { font-weight: 700; }
.qz .tm-list span { font-weight: 700; text-align: right; }
.qz .tm-list small { grid-column: 1 / -1; color: var(--tm-chg); font-size: 13px; }
.qz .tm-list small.same { color: var(--qz-muted); }
.qz .tm-all { margin: 0; }
.qz .tm-all a { color: var(--qz-accent); font-weight: 700; }

/* 전체 모음 — 분류별 설비 칸 */
.qz .tm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz .tm-grid a { display: flex; justify-content: space-between; gap: 8px; background: var(--qz-card); border: 1px solid var(--qz-line); border-radius: 12px; padding: 12px; color: var(--qz-fg); text-decoration: none; font-weight: 700; }
.qz .tm-grid small { color: var(--qz-muted); font-weight: 400; }

/* 검색용 설명 글은 맨 아래 접기 한 줄 (2026-11-06 사용자) */
.qz .tm details.tm-seo { background: none; border: 0; padding: 0; font-size: 13px; color: var(--qz-muted); }
.qz .tm details.tm-seo summary { font-weight: 400; }
.qz .tm details.tm-seo h2 { font-size: 15px; margin: 0 0 4px; }

/* ---------- 질문 쪽 개편 (2026-11-28, 시안 V2-Question · V5-Q) ----------
   색은 타임머신 앱 변수와 같은 값(timemachine-app.css .tma) + 주황 단추 #cc4d00(흰 글자 4.5:1). 모서리 8·12·999, 간격 4의 배수 */
.qz .tmq { --fg: #1d1b19; --sub: #6e6a66; --line: #e6e6e8; --chg: #2457c5; --btn: #cc4d00; --tagfg: #b34700; --soft: #fff1e6;
    font-size: 15px; line-height: 1.5; color: var(--fg); }
.qz .tmq .ico { width: 20px; height: 20px; stroke-width: 1.75; flex: none; }
.qz .tmq-loc { position: relative; min-height: 44px; }
.qz .tmq-loc .tm-crumb { min-height: 44px; line-height: 44px; padding-right: 48px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz .tmq-find > summary { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; list-style: none; cursor: pointer; border-radius: 8px; color: var(--fg); }
.qz .tmq-find > summary::-webkit-details-marker { display: none; }
.qz .tm .tmq-find { background: none; border: 0; padding: 0; }
.qz .tmq-field { display: flex; align-items: center; gap: 8px; height: 52px; box-sizing: border-box; padding: 0 16px; background: #fff; border: 1px solid var(--fg); border-radius: 12px; }
.qz .tmq-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--fg); }
.qz .tmq-h { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.qz .tmq-h span { font-size: 15px; font-weight: 400; color: var(--sub); letter-spacing: 0; }
.qz .tmq-now { display: flex; flex-direction: column; gap: 4px; }
.qz .tmq-k { font-size: 13px; color: var(--sub); }
.qz .tmq-v { font-size: 22px; font-weight: 700; line-height: 1.35; }
.qz .tmq-link { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--fg); text-decoration: none; }
.qz .tmq-cond { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qz .tmq-cond th, .qz .tmq-cond td { padding: 8px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.qz .tmq-cond tr:first-child th, .qz .tmq-cond tr:first-child td { border-top: 0; }
.qz .tmq-cond th { width: 42%; font-size: 13px; font-weight: 400; color: var(--sub); }
.qz .tmq-cond .tm-a { font-size: 15px; font-weight: 700; color: var(--fg); }
.qz .tmq-cond small { display: block; font-size: 13px; color: var(--sub); }

/* 연도 칸 */
.qz .tmq-year { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 16px; }
.qz .tmq-old { font-size: 15px; font-weight: 700; color: var(--tagfg); background: var(--soft); border-radius: 8px; padding: 12px; }
.qz .tmq-yr { display: flex; flex-direction: column; gap: 4px; }
.qz .tmq-yc { font-size: 13px; color: var(--sub); }
.qz .tmq-yl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.qz .tmq-yy { font-size: 15px; font-weight: 700; color: var(--btn); font-variant-numeric: tabular-nums; }
.qz .tmq-yd { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.qz .tmq-ya { font-size: 17px; font-weight: 700; line-height: 1.35; }
.qz .tmq-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--tagfg); background: var(--soft); border-radius: 6px; padding: 0 8px; line-height: 1.7; white-space: nowrap; }
.qz .tmq-tag.may { color: var(--sub); background: #efece8; }
.qz .tmq-yf { margin: 0; display: flex; gap: 8px; }
.qz .tmq-yi { width: 120px; height: 48px; box-sizing: border-box; display: flex; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; flex: none; }
.qz .tmq-yi input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--fg); font-variant-numeric: tabular-nums; }
.qz .tmq-go { flex: 1; height: 48px; border: 0; border-radius: 12px; background: var(--btn); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.qz .tmq-go.is-wait { opacity: .5; }
.qz .tmq-all { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg); text-decoration: none; }

/* 개정 이력 — 날짜 | 값 | 꺾쇠, 줄을 누르면 근거·원문 */
.qz .tmq-h2 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.qz .tmq-tl { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qz .tm .tmq-tl details { background: none; border: 0; border-radius: 0; padding: 0; border-top: 1px solid var(--line); }
.qz .tm .tmq-tl details:first-child { border-top: 0; }
.qz .tm .tmq-tl summary, .qz .tm .tmq-fold summary { display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px; gap: 8px; align-items: start; min-height: 52px; box-sizing: border-box; padding: 12px 16px; font-weight: 400; list-style: none; cursor: pointer; }
.qz .tm .tmq-tl summary::-webkit-details-marker, .qz .tm .tmq-fold summary::-webkit-details-marker { display: none; }
.qz .tmq-tl details.is-y summary { box-shadow: inset 3px 0 0 var(--btn); }
.qz .tmq-d { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; padding-top: 2px; }
.qz .tmq-a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.qz .tmq-a b { font-size: 15px; font-weight: 700; }
.qz .tmq-a b.is-chg { color: var(--chg); }
.qz .tmq-a small { font-size: 13px; color: var(--sub); }
.qz .tmq-cv { color: var(--sub); display: flex; padding-top: 2px; }
.qz .tmq .tmq-cv .ico { width: 16px; height: 16px; transition: transform .15s; }
.qz details[open] > summary .tmq-cv .ico { transform: rotate(180deg); }
.qz .tm .tmq-src { padding: 0 16px 12px; font-size: 13px; line-height: 1.6; color: var(--fg); word-break: keep-all; overflow-wrap: anywhere; }
.qz .tm .tmq-src p { margin: 0 0 8px; font-size: 13px; }
.qz .tm .tmq-src .tmq-basis { color: var(--sub); font-weight: 700; }

/* 공유 — 카톡 노랑 그대로(design-rules.md 「색」) */
.qz .tmq-share { display: flex; gap: 8px; }
.qz .tmq-kakao { flex: 1; height: 48px; border: 0; border-radius: 12px; background: #fee500; color: #191919; font: inherit; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.qz .tmq .tmq-kakao .ico { width: 18px; height: 18px; color: #191919; }
.qz .tmq-sq { width: 48px; height: 48px; flex: none; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.qz .tmq-fold { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qz .tm .tmq-fold details { background: none; border: 0; padding: 0; }
.qz .tm .tmq-fold summary { grid-template-columns: minmax(0, 1fr) 20px; min-height: 48px; align-items: center; font-size: 15px; }
.qz .tmq-rh { display: flex; justify-content: space-between; align-items: center; }
.qz .tmq-rh .tmq-h2 { margin: 0; }
.qz .tmq-rh a { min-height: 44px; display: flex; align-items: center; font-size: 13px; color: var(--sub); }
.qz .tmq .tmq-rel { margin-top: 8px; }
.qz .tmq .tmq-rel a { min-height: 52px; box-sizing: border-box; align-items: center; padding: 8px 16px; }
.qz .tmq .tmq-rel b { font-weight: 400; }
.tmq-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #1d1b19; color: #fff; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 8px 16px; z-index: 50; max-width: 90%; overflow-wrap: anywhere; }

/* '자격증 공부해보기' 칸 — 첫 화면(.tma)·질문 쪽 공통 (2026-11-28 사용자) */
.qz .tm-cbt { min-height: 64px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid #e6e6e8; border-radius: 12px; color: #1d1b19; text-decoration: none; }
.qz .tm-cbt-i { width: 40px; height: 40px; flex: none; border-radius: 999px; background: #fff1e6; color: #cc4d00; display: grid; place-items: center; }
.qz .tm-cbt-i .ico, .qz .tm-cbt-i svg { width: 22px; height: 22px; stroke-width: 1.75; }
.qz .tm-cbt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qz .tm-cbt-t b { font-size: 15px; font-weight: 700; }
.qz .tm-cbt-t small { font-size: 13px; color: #6e6a66; }
.qz .tm-cbt-c { font-size: 17px; color: #6e6a66; }
