/* 부속 페이지 공용 스타일 (기준표·가이드·개인정보처리방침·404). 해석기(index.html)만 자체 스타일을 쓴다.
   디자인 기준: 이전 RECOMP 기록 앱(legacy/tracker.html)의 흑백 에디토리얼 체계 — index.html과 같은 토큰.
   로고만 빅아트 Works 제목과 같은 Fraunces(assets/fonts/recomp-logo.woff2). */
@font-face { font-family: "RECOMP Logo"; src: url("fonts/recomp-logo.woff2") format("woff2"); font-weight: 500; font-display: block; }
:root {
  --ink: #0a0a0a; --paper: #fafafa; --line: #1a1a1a; --faint: #d8d8d8; --mute: #6b6b6b;
  --panel: #ffffff; --grid: #ededed; --goal: #d6a93c;
  /* 글자·행간 규칙 — docs/design.md. 글자 크기는 아래 다섯 단계와 큰 숫자 세 단계만 쓴다 */
  --fs-1: 20px;   /* 제목 */
  --fs-2: 16px;   /* 작은 제목·강조 값 */
  --fs-3: 14px;   /* 본문 */
  --fs-4: 12px;   /* 보조 — 설명·표·단추 */
  --fs-5: 11px;   /* 작은 글 — 라벨·날짜·단위·각주 */
  --fs-n1: 56px;  /* 큰 숫자 1 — 숫자·로고·쪽 첫 제목 전용 */
  --fs-n2: 36px;  /* 큰 숫자 2 */
  --fs-n3: 28px;  /* 큰 숫자 3 */
  --lh-0: 1.1;  /* 큰 글자(--fs-n*) — 큰 숫자·로고·쪽 첫 제목, 기호 */
  --lh-1: 1.4;  /* 한 줄 라벨·제목·단추 */
  --lh-2: 1.7;  /* 이어 읽는 글 */
  --mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
button, input, select, textarea { line-height: var(--lh-1); }   /* 폼 요소의 기본 행간(normal)도 규칙 값으로 */
body { background: var(--paper); color: var(--ink); line-height: var(--lh-2); -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: anywhere; font-family: ui-sans-serif, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

header { border-bottom: 2px solid var(--line); padding: 32px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; text-decoration: none; }
.brand b { font-family: "RECOMP Logo", Georgia, serif; font-size: var(--fs-n2); font-weight: 500; letter-spacing: -0.005em; line-height: var(--lh-0); }
.brand .tag { font-size: var(--fs-5); letter-spacing: 0.32em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--faint); padding: 4px 8px; }
.reset { margin-left: auto; border: 1px solid var(--faint); text-decoration: none; font-size: var(--fs-5); letter-spacing: 0.1em; color: var(--ink); padding: 8px 12px; }   /* 가이드에서 해석기로 가는 주 행동 — 회색 아님 */
.reset:hover { border-color: var(--ink); color: var(--ink); }

.crumbs { font-family: var(--mono); font-size: var(--fs-5); color: var(--mute); letter-spacing: 0.06em; margin-top: 16px; }
.crumbs a { color: var(--ink); }   /* 링크는 회색으로 두지 않는다 (docs/design.md 3) */
.intro { padding: 28px 0 28px; border-bottom: 1px solid var(--faint); }
.kicker { font-family: var(--mono); font-size: var(--fs-5); letter-spacing: 0.3em; color: var(--mute); margin-bottom: 12px; }
.intro h1 { font-size: var(--fs-n2); font-weight: 800; letter-spacing: -0.04em; line-height: var(--lh-0); margin-bottom: 12px; }
.intro p { font-size: var(--fs-2); line-height: var(--lh-2); max-width: 680px; }
.btn { display: inline-block; margin-top: 20px; background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 12px 20px; font-size: var(--fs-4); letter-spacing: 0.14em; font-weight: 600; }
.btn:hover { background: #2a2a2a; }

.sec { padding: 28px 0; border-bottom: 1px solid var(--faint); }
.sechead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sechead .n { font-family: var(--mono); font-size: var(--fs-5); color: var(--mute); letter-spacing: 0.1em; flex-shrink: 0; }
.sechead h2, .sechead h1 { font-size: var(--fs-2); font-weight: 700; letter-spacing: 0.02em; }
.sechead .rule { flex: 1; height: 1px; background: var(--faint); }
.sec > p { font-size: var(--fs-3); line-height: var(--lh-2); max-width: 760px; }
.sec > p + p { margin-top: 8px; }
.note, .sec > .note { font-size: var(--fs-4); color: var(--mute); margin-top: 12px; line-height: var(--lh-2); }

.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-3); background: var(--panel); }
thead th { text-align: right; font-size: var(--fs-5); letter-spacing: 0.1em; color: var(--mute); padding: 8px 8px; border-bottom: 2px solid var(--line); font-weight: 600; white-space: nowrap; }
thead th:first-child, tbody td:first-child { text-align: left; }
tbody td { padding: 8px 8px; text-align: right; border-bottom: 1px solid var(--faint); font-family: var(--mono); }
tbody td:first-child { font-family: inherit; font-weight: 600; }
tbody tr.mid { background: var(--grid); }
/* 글이 들어가는 표 (가이드): 왼쪽 정렬, 본문 글꼴 */
table.text thead th, table.text tbody td { text-align: left; }
table.text tbody td { font-family: inherit; line-height: var(--lh-1); vertical-align: top; }
table.text tbody td:first-child { white-space: nowrap; }
td .sub { display: block; font-size: var(--fs-5); font-weight: 400; color: var(--mute); margin-top: 0px; white-space: normal; }

/* 용어 설명 목록 (가이드) */
.defs { border-top: 2px solid var(--line); background: var(--panel); }
.defs dt { font-weight: 700; font-size: var(--fs-3); padding: 12px 12px 4px; }
.defs dd { font-size: var(--fs-3); line-height: var(--lh-2); padding: 0 12px 12px; border-bottom: 1px solid var(--faint); }
.sec .note a, .sec > p a { color: var(--ink); }

.grid-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid-links a { display: block; border: 1px solid var(--faint); background: var(--panel); padding: 12px 16px; text-decoration: none; }
.grid-links a:hover { border-color: var(--ink); }
.grid-links a b { display: block; font-size: var(--fs-2); }
.grid-links a span { display: block; font-size: var(--fs-5); color: var(--mute); margin-top: 4px; }
.grid-links a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid-links a.on span { color: #bdbdbd; }
.pager { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pager a { border: 1px solid var(--line); padding: 12px 16px; text-decoration: none; font-size: var(--fs-4); letter-spacing: 0.08em; font-weight: 600; }
.pager a:hover { background: #f0f0f0; }

/* 글 위주 페이지 (개인정보처리방침·404) */
.wrap.narrow { max-width: 760px; }
.meta { font-family: var(--mono); font-size: var(--fs-5); color: var(--mute); letter-spacing: 0.1em; margin: 28px 0 12px; }
.page-h1 { font-size: var(--fs-n3); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.lead { border: 1px solid var(--line); background: var(--panel); padding: 16px 16px; font-size: var(--fs-3); }
.sec ul { padding-left: 20px; margin-top: 8px; }
.sec li { font-size: var(--fs-3); line-height: var(--lh-2); }
.sec li + li { margin-top: 4px; }
.sec ul + p { margin-top: 8px; }

footer { padding: 28px 0 48px; font-size: var(--fs-5); color: var(--mute); line-height: var(--lh-2); }
footer .disc { border-left: 2px solid var(--faint); padding-left: 12px; max-width: 640px; }
footer .disc p + p { margin-top: 4px; }
footer a { color: var(--ink); }

@media (max-width: 820px) { .grid-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  header { padding: 20px 0 16px; }
  .brand b { font-size: var(--fs-n3); }
  .intro h1 { font-size: var(--fs-n3); }
  .reset { padding: 8px 8px; font-size: var(--fs-5); letter-spacing: 0.04em; }   /* 폰에서도 '해석하러 가기'를 둔다 — 기준표를 다 읽은 뒤 해석기로 갈 단추가 없었다 (2026-11-13 리뷰 하13) */
  .brand .tag { display: none; }
  thead th, tbody td { padding: 8px 4px; font-size: var(--fs-5); }   /* 폰 표는 작은 글 단계 — 첫 칸 '입문 전'이 두 줄로 갈렸다 */
  thead th { font-size: var(--fs-5); letter-spacing: 0.02em; }
}
/* 제목 아래 작성 주체·게시일·갱신일, 쪽 끝 참고문헌 (2026-11-09 리뷰 중8) */
.byline, .intro .byline { font-size: var(--fs-5); color: var(--mute); letter-spacing: 0.04em; margin: -4px 0 12px; }
.byline a { color: var(--mute); }
.refs ol { padding-left: 20px; max-width: 860px; }
.refs li { font-size: var(--fs-4); line-height: var(--lh-2); color: var(--mute); margin-bottom: 4px; }
/* 자주 묻는 질문 (가이드·기준표, 2026-11-12 RX06). 질문 앞 Q.·답 앞 A.는 화면에만 붙인다 — 원고·FAQPage 문장에는 없다
   (검색 결과·AI 답변에 'Q.'가 섞이지 않게). 대체 글을 비워(content: "Q." / "") 화면 낭독기는 읽지 않는다. 앞 줄은 대체 글 문법을 모르는 브라우저용 */
.faq-item { padding: 12px 0; border-top: 1px solid var(--faint); max-width: 760px; }
.faq-item:last-child { border-bottom: 1px solid var(--faint); }
.faq-q { font-size: var(--fs-2); font-weight: 700; line-height: var(--lh-1); }
.faq-a { font-size: var(--fs-3); line-height: var(--lh-2); margin-top: 4px; }
.faq-q::before, .faq-a::before { font-family: var(--mono); font-weight: 700; margin-right: 8px; }
.faq-q::before { content: "Q."; content: "Q." / ""; color: var(--ink); }
.faq-a::before { content: "A."; content: "A." / ""; color: var(--mute); }
