/* 만든 파일 — scripts/tester-web --write 가 web/tester-guide/src/style.css 와 앱 테마의 토큰으로 짓는다. 손대지 않는다. */
:root {
  --bg: #0C0D12;
  --panel: #14161E;
  --panel-raised: #1B1E29;
  --row: #20242F;
  --line: #2A2E3B;
  --ink: #F3F4F8;
  --ink-rest: #D9DCE5;
  --ink-dim: #A9AEBE;
  --ink-faint: #6F7488;
  --ink-on-accent: #FFFFFF;
  --accent: #DE127F;
  --accent-hover: #D01177;
  --accent-strong: #EE4FA3;
  --ring: #EE4FA3;
  --warn: #FFB547;
}

/* 테스터 안내 페이지의 겉모습 — 앱의 디자인 언어(docs/design/design-language.md §6)를 웹으로 옮긴 것.
 * 색은 앱 테마(client/Assets/Resources/Sona/theme-sona-dark.uss)의 토큰을 `scripts/tester-web` 이 맨 위 :root 에 옮겨 붙인다 — 여기서 색 값을 새로 짓지 않는다.
 * 기준판은 폰 세로(360 · 누름 48 · 가장자리 16) · PC 는 넓히는 쪽. 글꼴 파일은 싣지 않는다(바깥 요청 0 — 기기의 글꼴). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 "Pretendard", "Pretendard Variable", system-ui, "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent-strong); }
/* 메일 · 웹 주소는 굽기가 넣은 <wbr>(메일 @ · . 뒤 · 웹 주소 . · / 뒤)에서만 줄을 바꾼다 — 좁은 표 칸에서 낱자 중간에서 끊기지 않게(사람 2026-10-23 · §1.361) */
.addr { overflow-wrap: normal; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.icon { flex: none; width: 20px; height: 20px; }

/* 머리 · 바닥 */
header.top { display: flex; align-items: center; min-height: 56px; }
.brand { color: var(--ink); font-size: 19px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 48px; margin-left: -6px; color: var(--ink-dim); text-decoration: none; font-size: 14px; }
.back .icon { width: 22px; height: 22px; }
main { padding-bottom: 32px; }
footer.foot { margin-top: 40px; padding-bottom: 32px; }
.legal { display: flex; flex-wrap: wrap; column-gap: 20px; border-top: 1px solid var(--line); padding-top: 8px; }
.legal a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-dim); text-decoration: none; font-size: 14px; }
.legal a.privacy { color: var(--accent-strong); font-weight: 700; }

/* 안내 페이지 */
.hero h1 { font-size: 30px; line-height: 1.25; margin: 16px 0 8px; }
.lede { color: var(--ink-dim); font-size: 16px; margin: 0; }
section { margin-top: 32px; }
section > h2 { font-size: 16px; font-weight: 600; color: var(--ink-dim); margin: 0 0 8px; }
.group { list-style: none; margin: 0; padding: 0; background: var(--panel); border-radius: 12px; overflow: hidden; }
.row { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 14px 16px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--line); }
.row .icon { margin-top: 2px; color: var(--ink-dim); }
.row-text { display: block; min-width: 0; }
.row-title { display: block; font-weight: 600; }
.row-sub { display: block; color: var(--ink-dim); font-size: 14px; }
.note { color: var(--ink-dim); font-size: 14px; margin: 8px 16px 0; }
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
ol.steps > li { counter-increment: step; position: relative; padding: 16px 16px 16px 60px; background: var(--panel); border-radius: 12px; }
ol.steps > li + li { margin-top: 8px; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--row); color: var(--ink); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
ol.steps h3 { font-size: 16px; margin: 0 0 6px; }
ol.steps p { margin: 0; color: var(--ink-dim); }
ol.steps p + p { margin-top: 6px; }
ol.steps p.caution { color: var(--ink); font-weight: 600; }
.wait { padding: 16px; }
.wait p { margin: 0 0 12px; color: var(--ink-dim); }
.wait p.fine { font-size: 13px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 24px; font-weight: 600; text-decoration: none; }
.pill.on { background: var(--accent); color: var(--ink-on-accent); }
.pill.on:hover { background: var(--accent-hover); }
.pill.off { background: var(--panel-raised); color: var(--ink-faint); }
.blank { color: var(--warn); text-decoration: underline dashed; text-underline-offset: 3px; }

/* 고지 쪽(처리방침 · 약관 · 오픈소스) — 글은 문서 그대로 */
.doc { color: var(--ink-rest); }
.doc h1 { font-size: 22px; line-height: 1.35; margin: 8px 0 16px; color: var(--ink); }
.doc h2 { font-size: 16px; line-height: 1.45; margin: 28px 0 8px; color: var(--ink); }
.doc p { margin: 0 0 12px; }
.doc strong { color: var(--ink); }
.doc em { font-style: normal; color: var(--ink-dim); }
.doc .important { color: var(--accent-strong); font-weight: 700; }
.toc { background: var(--panel); border-radius: 12px; margin: 0 0 24px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 600; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { color: var(--ink-dim); transition: transform 180ms ease-out; }
.toc[open] summary .icon { transform: rotate(180deg); }
.toc ol { list-style: none; margin: 0; padding: 0 0 8px; }
.toc a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--ink-dim); text-decoration: none; font-size: 14px; }
/* 표는 넓은 화면에서도 본문 폭 그대로 — 넘치면 표 안에서 가로로 굴린다(사람 2026-10-22 U6 · 글 폭 밖으로 펴던 규칙은 걷었다).
 * 표 칸은 낱말 폭을 지킨다(break-word — body 의 anywhere 는 칸의 최소 폭을 낱자 하나로 셈해 «AW / S» · «(서 / 울» 처럼 끊겼다 · 2026-10-23 §1.361.4) */
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.55; overflow-wrap: break-word; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
thead th { background: var(--panel-raised); color: var(--ink-dim); font-weight: 600; border-top: 0; }
tbody tr:first-child > * { border-top: 0; }
thead + tbody tr:first-child > * { border-top: 1px solid var(--line); }
table.kv th { width: 26%; color: var(--ink-dim); font-weight: 600; }
.entry-meta { color: var(--ink-faint); font-size: 12px; margin: -4px 0 8px; }
.lic p { white-space: pre-wrap; font-size: 13px; color: var(--ink-dim); }

@media (max-width: 599px) {
  .hero h1 { font-size: 26px; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 0; border-top: 1px solid var(--line); }
  table.stack tbody tr:first-child { border-top: 0; }
  table.stack td { border-top: 0; padding: 4px 12px; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--ink-faint); }
  table.kv, table.kv tbody, table.kv tr, table.kv th, table.kv td { display: block; width: 100%; }
  table.kv th { padding-bottom: 0; }
  table.kv td { border-top: 0; padding-top: 2px; }
}
