/* 사이트 공통 기본(2026-12-03): 서체 · 색 토큰(라이트 · 다크) · 기본 요소. 다섯 페이지 <head>의 첫 스타일보다 먼저 읽는다.
   다크 색은 /site.js의 라이트 · 다크 전환이 켜고 끄므로, 이 파일은 /site.js보다 앞에 둔다.
   고친 뒤에는 다섯 페이지와 404의 ?v= 값을 함께 올린다(배포 때 값이 모두 같은지 검사한다). */
  /* 서체: Apple 기기는 기기 기본 서체(SF Pro, 한글 Apple SD Gothic Neo), 그 밖의 기기는 Pretendard.
     Pretendard는 앱과 같은 PocaSans(Pretendard에서 쓰는 글자만 남긴 서체, SIL OFL 1.1)를 이 사이트에서 직접 불러온다
     (배포 때 사이트에 쓰인 글자만 남긴 /fonts/*.woff2를 먼저, 없으면 웹 빌드가 assets/assets/fonts/에 넣는 .otf. 'Pretendard'는 예약 서체 이름이라 줄인 서체는 PocaSans로 부른다). */
  @font-face { font-family: "PocaSans"; src: url("/fonts/PocaSans-Regular.woff2") format("woff2"), url("/app/assets/assets/fonts/PocaSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "PocaSans"; src: url("/fonts/PocaSans-SemiBold.woff2") format("woff2"), url("/app/assets/assets/fonts/PocaSans-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
  @font-face { font-family: "PocaSans"; src: url("/fonts/PocaSans-Bold.woff2") format("woff2"), url("/app/assets/assets/fonts/PocaSans-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
  :root {
    --bg: #ffffff; --fg: #1c1c1e; --sub: #6c6c70; --line: #e5e5ea; --card: #f6f6f8; --card-on: #e5e5ea; --accent: #F7003A;
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #000000; --fg: #f2f2f7; --sub: #a1a1a6; --line: #2c2c2e; --card: #1c1c1e; --card-on: #3a3a3c; --accent: #F7003A; --pill-on: #262628; }
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "PocaSans", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
    line-height: 1.65; font-size: 16px; -webkit-text-size-adjust: 100%;
    word-break: keep-all; overflow-wrap: anywhere;
  }
  main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
  header { margin-bottom: 24px; }
  h1 { font-size: 26px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
  h2 { font-size: 18px; margin: 32px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  h2:first-of-type { border-top: 0; }
  p, li { margin: 6px 0; }
  ul { padding-left: 20px; }
  .lang { display: flex; gap: 8px; margin: 16px 0 8px; }
  .lang a {
    text-decoration: none; color: var(--fg); background: var(--card);
    padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  }
  .lang a:hover { color: var(--accent); }
  .box { background: var(--card); border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
  a { color: var(--accent); }
  .meta { color: var(--sub); font-size: 14px; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
  th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
  th { color: var(--sub); font-weight: 600; width: 34%; }
  /* 화면 낭독용 숨김 글자(ㅍㅋㅇㅂ를 자모로 읽지 않게 "포카이불"로 등) */
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* 페이지 머리의 앱 아이콘 + 제목 */
  .brand { display: flex; align-items: center; gap: 14px; }
  .brand img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.12); flex: none; }
  .brand h1 { margin: 0; }
  /* 빨강 바탕 버튼(글자 크기는 /site.css의 다듬기 규칙에서 19px) */
  .btn {
    display: inline-block; margin: 8px 0 4px; padding: 10px 18px; border-radius: 999px;
    background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  }
  /* #id로 들어와도 위 메뉴 줄에 가리지 않게(접힌 질문 포함) */
  details[id] { scroll-margin-top: 64px; }
