/*
 * 몇분후? 지원 사이트 — 문서(처리방침·이용약관·계정 삭제)와 첫 화면 공용(12/1 사용자: "배경도 초록색인 거 이상하고 … 신뢰가 가게끔 깔끔하고 고퀄리티로").
 * 메인 색 없음(사용자 원칙) — 앱 바탕과 같은 연회색 위 흰 종이, 글자는 먹색, 링크만 차분한 남색. 다크 모드 따로.
 * 예전 판 문서(…-2026-11-24.html 등)는 styles-2026-11.css 를 그대로 쓴다.
 */
:root {
  --canvas: #f2f2f7;
  --paper: #ffffff;
  --ink: #1c1c1e;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --hair: rgba(60, 60, 67, 0.14);
  --hair-strong: rgba(60, 60, 67, 0.24);
  --link: #2c5aa0;
  --wash: #f6f7f9;
  --note: #f4f6fa;
  --note-line: #c9d3e4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.05);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0b0b0d;
    --paper: #1c1c1e;
    --ink: #f2f2f7;
    --ink-2: #d1d1d6;
    --muted: #98989f;
    --hair: rgba(235, 235, 245, 0.12);
    --hair-strong: rgba(235, 235, 245, 0.22);
    --link: #8ab4f8;
    --wash: #232326;
    --note: #202229;
    --note-line: #3b4458;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0b0b0d;
  --paper: #1c1c1e;
  --ink: #f2f2f7;
  --ink-2: #d1d1d6;
  --muted: #98989f;
  --hair: rgba(235, 235, 245, 0.12);
  --hair-strong: rgba(235, 235, 245, 0.22);
  --link: #8ab4f8;
  --wash: #232326;
  --note: #202229;
  --note-line: #3b4458;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

/* 머리띠 — 앱 아이콘(검은 둥근 네모 + 흰 글자, 실제 앱 아이콘 모양) + 이름 */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.top-in { max-width: 760px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 10px; }
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.2px;
}
.icon {
  width: 30px; height: 30px; border-radius: 8px; background: #000; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 7.5px; font-weight: 800; letter-spacing: -0.3px; flex: none;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
}
.icon.lg { width: 64px; height: 64px; border-radius: 15px; font-size: 15px; letter-spacing: -0.5px; }
.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* 종이 */
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; }
.paper {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 52px);
}
.doc-head { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--hair); }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.2px; }
h1 { margin: 0; font-size: clamp(26px, 5vw, 32px); line-height: 1.3; letter-spacing: -0.6px; text-wrap: balance; }
.meta { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--ink-2); font-weight: 600; }

.intro { color: var(--ink-2); max-width: 64ch; }

/* 목차 */
.toc { margin: 26px 0 8px; padding: 18px 20px; background: var(--wash); border-radius: 14px; }
.toc summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "펼치기"; margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); }
.toc[open] summary::after { content: "접기"; }
.toc ol { margin: 12px 0 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 28px; font-size: 14.5px; line-height: 1.6; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

/* 본문 */
.prose { max-width: 66ch; }
.prose h2 {
  margin: 40px 0 12px; font-size: 20px; line-height: 1.45; letter-spacing: -0.3px; text-wrap: balance;
}
.prose h2 .no { color: var(--muted); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.prose h3 { margin: 26px 0 8px; font-size: 16.5px; letter-spacing: -0.1px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.25em; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.note {
  margin: 14px 0 18px; padding: 14px 16px; background: var(--note);
  border: 1px solid var(--note-line); border-radius: 12px; font-size: 15px; color: var(--ink-2);
}
.note p:last-child { margin-bottom: 0; }

/* 표 — 넓으면 표만 가로로 밀린다 */
.table { margin: 12px 0 20px; overflow-x: auto; border: 1px solid var(--hair-strong); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
th { background: var(--wash); font-weight: 650; color: var(--ink-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); width: 26%; }

.history { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.history ul { list-style: none; padding: 0; margin: 6px 0 0; }

/* 아래 */
.foot { max-width: 760px; margin: 0 auto; padding: 0 20px 40px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); }
.foot .sp { margin-left: auto; }

/* 첫 화면 */
.hero h1 { margin-top: 18px; font-size: clamp(28px, 6vw, 38px); letter-spacing: -0.8px; }
.hero .lead { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); max-width: 56ch; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.features li { background: var(--wash); border-radius: 14px; padding: 14px 16px; }
.features b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.features span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px;
  border-radius: 23px; font-weight: 650; font-size: 15px; text-decoration: none;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { border: 1px solid var(--hair-strong); color: var(--ink); }
.cards { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.card {
  display: block; background: var(--paper); border: 1px solid var(--hair); border-radius: 16px; padding: 18px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.card b { display: block; font-size: 16px; }
.card span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.card:hover b { color: var(--link); }
.section-title { margin: 36px 4px 0; font-size: 15px; color: var(--muted); font-weight: 650; }

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .top nav { gap: 12px; font-size: 13px; }
  .top nav .opt { display: none; }
  .wrap { padding: 16px 12px 40px; }
  .paper { border-radius: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .top, .foot, .toc { display: none; }
  body, .paper { background: #fff; color: #000; box-shadow: none; border: 0; }
}
