/* 가이드 페이지(목록, 글, 용어 사전). 색, 글꼴, 분류 탭과 꼬리표는 앱(index.html)과 같은 값과 모양.
   밝게가 기본이고 기기 설정이나 앱에서 고른 어둡게(data-theme)를 따른다. 글은 흰 종이 한 장에 담고, 안쪽 칸은
   얇은 선과 옅은 바탕으로만 나눈다 */
@font-face {
  font-family: "Pretendard";
  src: url("/static/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}
:root {
  --bg: #EDF0F4; --surface: #FFFFFF; --surface-2: #F5F7FA; --ink: #1D2430; --body: #344054; --muted: #667085;
  --line: #E3E7ED; --line-soft: #EDF0F4; --chip-line: #D0D5DD; --track: #E2E6EC; --hover: #F2F6FD;
  --primary: #3563E9; --primary-tint: #EAF0FD; --primary-tint-2: #DAE5FC; --primary-text: #2B55D4; --on-primary: #FFFFFF;
  --green: #12B76A; --green-tint: #E3F8EE; --green-ink: #067647; --violet-tint: #F1EDFE; --violet-ink: #5925DC;
  --mid-tint: #FEF3DC; --mid-ink: #A15C07; --hot-tint: #FDECEC; --hot-ink: #B42318; --brand-red: #E03A3E;
  --dot-basic: #12B76A; --dot-practice: #3563E9; --dot-risk: #7A5AF8;
  --orange: #F59E0B; --orange-tint: #FEF3DC; --faint: #98A2B3; --fill: #EEF1F5; --accent: #D92D20; --on-accent: #FFFFFF;
  /* 읽는 글: 본문(--read)은 진하게, 설명줄(--sub)은 회색이어도 또렷하게, 형광펜(--hl)은 문단 속 굵은 글씨 */
  --read: #222B38; --sub: #4D5868; --hl: #FFE7A3;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 14px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F141A; --surface: #171D25; --surface-2: #1D242D; --ink: #E6EAF0; --body: #C9D1DC; --muted: #98A2B3;
    --line: #262E39; --line-soft: #202833; --chip-line: #344054; --track: #252D38; --hover: #1E2633;
    --primary: #6E95FF; --primary-tint: #1C2742; --primary-tint-2: #24335A; --primary-text: #8DAEFF; --on-primary: #0F141A;
    --green: #32D583; --green-tint: #123326; --green-ink: #75E0A7; --violet-tint: #241E3D; --violet-ink: #C3B9FF;
    --mid-tint: #3A2C12; --mid-ink: #FEC84B; --hot-tint: #3B1E22; --hot-ink: #FFB3B3; --brand-red: #E65E61;
    --dot-basic: #32D583; --dot-practice: #6E95FF; --dot-risk: #9B8AFB;
    --orange: #FDB022; --orange-tint: #3A2C12; --faint: #667085; --fill: #222A35; --accent: #FF6B6B; --on-accent: #1A0F10;
    --read: #DCE2EA; --sub: #AEB7C4; --hl: rgba(250, 204, 21, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F141A; --surface: #171D25; --surface-2: #1D242D; --ink: #E6EAF0; --body: #C9D1DC; --muted: #98A2B3;
  --line: #262E39; --line-soft: #202833; --chip-line: #344054; --track: #252D38; --hover: #1E2633;
  --primary: #6E95FF; --primary-tint: #1C2742; --primary-tint-2: #24335A; --primary-text: #8DAEFF; --on-primary: #0F141A;
  --green: #32D583; --green-tint: #123326; --green-ink: #75E0A7; --violet-tint: #241E3D; --violet-ink: #C3B9FF;
  --mid-tint: #3A2C12; --mid-ink: #FEC84B; --hot-tint: #3B1E22; --hot-ink: #FFB3B3; --brand-red: #E65E61;
  --dot-basic: #32D583; --dot-practice: #6E95FF; --dot-risk: #9B8AFB;
  --orange: #FDB022; --orange-tint: #3A2C12; --faint: #667085; --fill: #222A35; --accent: #FF6B6B; --on-accent: #1A0F10;
  --read: #DCE2EA; --sub: #AEB7C4; --hl: rgba(250, 204, 21, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* 붙어 있는 머리글(웹 64px, 폰 56px)과 폰 아래 메뉴 밑으로 주소의 #칸이나 키보드로 고른 줄이 숨지 않게(앱과 같은 값) */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); scroll-padding-bottom: 24px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }  /* 누를 때 파란 상자 대신 앱처럼 단추 바탕이 바뀐다 */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 머리글: VOLIO 로고, 메뉴(앱과 같은 알약 메뉴), 오른쪽 단추(화면 밝기, 알림, 내 정보. 앱 머리글과 같은 모양) */
.g-nav { position: sticky; top: 0; z-index: 5; background: var(--bg); }
@supports (backdrop-filter: blur(8px)) {
  .g-nav { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); }  /* 앱 머리글과 같은 흐린 바탕 */
}
.g-nav-in { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 max(32px, env(safe-area-inset-left, 0px)); }
.g-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.g-icon, .g-me { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; transition: background-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease, color 0.12s ease; }
.g-icon { padding: 0; border: 0; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); font: inherit; cursor: pointer; }
.g-icon svg { width: 19px; height: 19px; }
.g-me { background: var(--green-tint); color: var(--green-ink); font-size: 12px; font-weight: 800; }
.g-icon .i-sun { display: none; }
.g-search { display: none; }  /* 검색 단추는 폰 화면에만(앱 폰 머리글과 같게) */
:root[data-theme="dark"] .g-icon .i-sun { display: block; }
:root[data-theme="dark"] .g-icon .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .g-icon .i-sun { display: block; }
  :root:not([data-theme="light"]) .g-icon .i-moon { display: none; }
}
.g-brand { flex: none; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.g-mark { width: 34px; height: 34px; }
.g-brand-txt { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.g-brand-txt > span { font-size: 11px; font-weight: 500; color: var(--muted); }
.g-word { display: block; width: 80px; height: 14.2px; }
/* 머리글 왼쪽(앱 웹 머리글과 같은 것): 장 상태 칩, 거래 정지 알약, KST 날짜 줄 */
.g-head-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
.g-status { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 12px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-sm); }
.g-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.g-dot[data-phase="regular"] { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.g-dot[data-phase="pre"], .g-dot[data-phase="after"] { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.g-dot[data-phase="day"] { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.g-st-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.g-st-txt b { font-size: 12.5px; font-weight: 700; }
.g-st-txt span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-prog { flex: none; width: 64px; height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.g-prog i { display: block; height: 100%; border-radius: 3px; background: var(--primary); transition: width 0.4s; }
.g-halt {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}
.g-halt-cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--surface); font-size: 11px; font-weight: 800; }
.g-now { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-me img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* 로그인 전 계정 칸: 로그인 단추(앱의 로그인 창으로). 로그인 여부를 알기 전에는 자리만 둔다 */
.g-login { height: 38px; padding: 0 16px; flex: none; display: inline-flex; align-items: center; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 13.5px; font-weight: 750; text-decoration: none; white-space: nowrap; transition: background-color 0.12s ease, transform 0.08s ease; }
.g-wait { visibility: hidden; }
.g-red { fill: var(--brand-red); }
.g-menu { display: flex; gap: 2px; padding: 3px; margin-left: auto; background: var(--track); border-radius: 999px; }
.g-menu a { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--muted); text-decoration: none; white-space: nowrap; }
.g-menu a[aria-current="page"] { background: var(--surface); color: var(--primary-text); font-weight: 750; box-shadow: var(--shadow-sm); }

.g-main { padding: 8px max(16px, env(safe-area-inset-left, 0px)) 0; }

/* 폰과 좁은 창의 아래 메뉴: 앱 아래 메뉴(.tabbar)와 같은 모양. 지금 칸은 파란 글씨와 옅은 파란 바탕 */
.g-tabbar {
  display: none; position: fixed; z-index: 6; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 20px); max-width: 500px;
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
  padding: 5px; background: var(--surface); border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(16, 24, 40, 0.16);
}
.g-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 48px; border-radius: 19px; font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}
.g-tab svg { width: 20px; height: 20px; }
.g-tab[aria-current="page"] { background: var(--primary-tint); color: var(--primary-text); font-weight: 750; }
.g-tab-cnt {
  position: absolute; top: 3px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-variant-numeric: tabular-nums;
  font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

/* 분류 점과 꼬리표(앱의 분류 꼬리표와 같은 모양) */
.g-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.d-basic { background: var(--dot-basic); }
.d-practice { background: var(--dot-practice); }
.d-risk { background: var(--dot-risk); }
.g-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 650; color: var(--body); white-space: nowrap; }

/* 목록 */
.g-wrap { max-width: 840px; margin: 0 auto; padding: 22px 0 8px; }
.g-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.g-title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.g-sub { margin: 8px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--sub); }
/* 분류 탭: 앱의 뉴스 분류 탭(.chips)과 같은 값 */
.g-chips { display: flex; gap: 2px; padding: 3px; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 14px; background: var(--track); border-radius: 999px; scrollbar-width: none; }
.g-chips::-webkit-scrollbar { display: none; }
.g-chip { flex: none; text-decoration: none; border-radius: 999px; }
.g-chip span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.g-chip[aria-current="page"] span { background: var(--surface); color: var(--primary-text); font-weight: 750; box-shadow: var(--shadow-sm); }
.g-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.g-list li + li { border-top: 1px solid var(--line-soft); }
.g-row { display: flex; align-items: center; gap: 18px; padding: 16px 18px 16px 22px; color: var(--ink); text-decoration: none; }
.gr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gr-title { font-size: 17px; font-weight: 750; line-height: 1.45; letter-spacing: -0.01em; }
.gr-desc { font-size: 14.5px; line-height: 1.6; color: var(--sub); }
.gr-side { flex: none; display: flex; align-items: center; gap: 12px; }
.gr-chev { width: 18px; height: 18px; color: var(--muted); }
/* 쪽 번호: 지금 쪽은 분류 탭의 고른 칸과 같은 흰 알약 */
.g-pager { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; }
.g-pager a, .g-pager span { min-width: 36px; height: 36px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.g-pager [aria-current="page"] { background: var(--surface); color: var(--primary-text); font-weight: 800; box-shadow: var(--shadow-sm); }
.g-pager svg { width: 18px; height: 18px; }
.g-pager span.gp-arrow { opacity: 0.3; }
.g-pager .gp-gap { min-width: 20px; padding: 0; }

/* 글: 흰 종이 한 장 */
.art-layout { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 32px; justify-content: center; align-items: start; padding-top: 14px; }
.article { min-width: 0; padding: 30px 48px 34px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.art-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13px; font-weight: 650; color: var(--muted); text-decoration: none; }
.art-head { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.article .art-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--sub); }
.article h1 { margin: 0; font-size: 31px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; text-wrap: balance; }
.article .art-desc { margin: 12px 0 0; font-size: 17px; line-height: 1.65; color: var(--sub); }
/* 세 줄 요약: 옅은 파란 칸, 줄마다 체크 */
.keypoints { margin: 0 0 12px; padding: 18px 22px; border-radius: 14px; background: var(--primary-tint); }
.article .keypoints .kp-h { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--primary-text); letter-spacing: 0.02em; }
.article .keypoints ul { margin: 0; padding-left: 0; list-style: none; }
.article .keypoints li { position: relative; margin-bottom: 6px; padding-left: 26px; font-size: 16.5px; font-weight: 650; line-height: 1.6; color: var(--ink); }
.article .keypoints li::before { content: ""; position: absolute; left: 5px; top: 0.32em; width: 6px; height: 11px; border: solid var(--primary); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.article .keypoints li:last-child { margin-bottom: 0; }
.article h2 { margin: 44px 0 12px; font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
/* 본문: 17px, 진한 글자, 넉넉한 줄과 문단 간격 */
.article p, .article li { font-size: 17px; line-height: 1.85; font-weight: 450; color: var(--read); }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 22px; }
.article li { margin-bottom: 12px; }
.article li::marker { color: var(--muted); }
.article strong { color: var(--ink); font-weight: 750; }
/* 문단 속 굵은 글씨는 형광펜처럼, 굵은 용어로 시작하는 목록 줄은 용어 한 줄 아래에 설명 */
.article p strong { background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 1px; }
.article li.def > strong:first-child { display: block; margin-bottom: 1px; }
.article p a, .article li a { color: var(--primary-text); text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.article th, .article td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.article tbody tr:last-child td, .article tbody tr:last-child th { border-bottom: 0; }
.article thead th { font-size: 13px; font-weight: 700; color: var(--sub); background: var(--surface-2); }
.article tbody th { font-weight: 750; color: var(--ink); white-space: nowrap; }
.article td { color: var(--read); }
.article td.num, .article .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.box { margin: 22px 0; padding: 16px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15.5px; font-weight: 800; }
.box h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.box ul { margin-bottom: 0; }
.box li:last-child { margin-bottom: 0; }
.box p:last-child { margin-bottom: 0; }
.box.warn h3 { color: var(--hot-ink); }
.box.volio { background: var(--surface-2); box-shadow: none; }
.box.volio h3 { color: var(--primary-text); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 34px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--surface-2); }
.article .cta-box p { margin: 0; font-size: 15px; font-weight: 650; color: var(--ink); }
.cta-box a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 750; text-decoration: none; }
.art-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.art-next a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); }
.art-next a.next { text-align: right; }
.art-next span { font-size: 12px; color: var(--muted); }
.art-next b { font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.disclaimer, .article .disclaimer { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; font-weight: 400; color: var(--sub); text-align: center; text-wrap: balance; }  /* 아래 바닥글처럼 가운데 */
.art-toc { position: sticky; top: 84px; margin-top: 0; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.art-toc p { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.art-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.art-toc li::marker { color: var(--muted); font-size: 12px; }
.art-toc a { font-size: 14px; line-height: 1.45; color: var(--read); text-decoration: none; }

/* 예시 그림: 얇은 선 칸 안에 그림과 설명 */
.fig { margin: 20px 0 26px; padding: 18px 18px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.fig svg, .fig img { display: block; width: 100%; height: auto; }
.fig svg { max-width: 600px; margin: 0 auto; }
.fig img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.fig.shot { padding: 12px 12px 10px; background: var(--surface-2); box-shadow: none; }
.fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--sub); text-align: center; text-wrap: balance; }
.fig-scroll { overflow-x: auto; scrollbar-width: thin; }
.fig .tx { fill: var(--ink); font-size: 17px; font-weight: 600; }
.fig .tb { fill: var(--ink); font-size: 19px; font-weight: 800; }
.fig .tm { fill: var(--muted); font-size: 16px; }
.fig .tw { fill: #FFFFFF; font-size: 17px; font-weight: 750; }
.fig .ln { stroke: var(--line); }
.fig .ink { stroke: var(--ink); }
.fig .bg2 { fill: var(--surface-2); }
.fig .c-blue { fill: var(--primary); } .fig .s-blue { stroke: var(--primary); }
.fig .c-red { fill: var(--brand-red); } .fig .s-red { stroke: var(--brand-red); }
.fig .c-green { fill: #12B76A; } .fig .c-amber { fill: #F59E0B; } .fig .c-violet { fill: #7A5AF8; } .fig .c-gray { fill: #98A2B3; }
.fig .t-blue { fill: var(--primary-tint); } .fig .t-red { fill: var(--hot-tint); } .fig .t-amber { fill: var(--mid-tint); } .fig .t-violet { fill: var(--violet-tint); } .fig .t-green { fill: var(--green-tint); }
.fig .k-red { fill: var(--hot-ink); } .fig .k-amber { fill: var(--mid-ink); } .fig .k-violet { fill: var(--violet-ink); } .fig .k-blue { fill: var(--primary-text); } .fig .k-green { fill: var(--green-ink); }

/* 용어 사전: 묶음마다 흰 칸 하나, 안에 용어 줄 */
.gl-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gl-tools .g-chips { margin-bottom: 0; }
.gl-q { width: 240px; max-width: 100%; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 14px; }
.gl-body { display: flex; flex-direction: column; gap: 22px; }
.gl-group h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
/* 묶음 하나만 볼 때는 묶음 이름이 탭에 있으니 제목은 화면에서만 감춘다(찾을 때는 묶음마다 보인다) */
.gl-body:not(.searching) .gl-group h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gl-group dl { margin: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.gl-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 24px; padding: 18px 24px; }
.gl-item + .gl-item { border-top: 1px solid var(--line-soft); }
.gl-item dt { display: flex; flex-direction: column; gap: 2px; }
.gl-item dt b { font-size: 16.5px; font-weight: 800; }
.gl-item dt span { font-size: 13px; color: var(--sub); }
.gl-item dd { margin: 0; font-size: 16px; line-height: 1.8; font-weight: 450; color: var(--read); }
.gl-none { color: var(--muted); }

/* Q&A: 질문을 누르면 답이 펼쳐진다(용어 사전과 같은 흰 칸, 줄 사이 선) */
.qa-list { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.qa + .qa { border-top: 1px solid var(--line-soft); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px;
  font-size: 16.5px; font-weight: 750; line-height: 1.5; cursor: pointer; list-style: none; transition: background-color 0.12s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -2px; border-radius: 0; }
.qa-chev { flex: none; width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); transition: transform 0.15s ease; }
.qa[open] .qa-chev { transform: rotate(-90deg); }
.qa-a { padding: 0 24px 20px; }
.qa-a p { margin: 0; font-size: 16px; line-height: 1.8; font-weight: 450; color: var(--read); }

/* 꼬리글 */
.g-footer { max-width: 840px; margin: 40px auto 0; padding: 22px 16px 30px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.g-footer p { margin: 8px 0 0; }
.g-footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.g-footer-links a { text-decoration: none; }
.g-footer-legal { margin-top: 8px; font-size: 12.5px; }
.g-footer-legal b { font-weight: 750; color: var(--ink); }
/* 서비스 소개, 이용약관, 개인정보처리방침 */
.legal-tabs { margin-bottom: 14px; }
.legal-body { padding: 28px 32px 30px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.legal-body section + section { margin-top: 24px; }
.legal-body h2 { margin: 0 0 8px; font-size: 17px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.legal-body h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 750; color: var(--ink); }
.legal-body p, .legal-body li, .legal-body td, .legal-body th { font-size: 15px; line-height: 1.8; color: var(--read); }
.legal-body p { margin: 0; }
.legal-body p + p { margin-top: 8px; }
.legal-body ul { margin: 6px 0 0; padding-left: 20px; }
.legal-body .tbl { overflow-x: auto; margin-top: 8px; }
.legal-body table { width: 100%; border-collapse: collapse; }
.legal-body th, .legal-body td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.legal-body th { white-space: nowrap; font-weight: 750; color: var(--ink); }
.legal-body a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-body .legal-em { font-weight: 650; color: var(--ink); }
/* 이용약관과 처리방침의 정식 틀: 장(제1장 총칙), 조(제1조(목적)), 항(①), 호(1.), 표 */
.legal-body .legal-ch { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 800; }
.legal-art { margin-top: 18px; }
.legal-body .legal-art h3 { margin: 0 0 6px; font-size: 15px; font-weight: 750; }
.legal-body .legal-art > * + .lp { margin-top: 6px; }
.legal-body .lp-num { padding-left: 1.6em; text-indent: -1.6em; }
.legal-body .lp-n { display: inline-block; width: 1.6em; text-indent: 0; }
.legal-body .legal-ho { margin: 4px 0 0; padding-left: 3.2em; }
.legal-body .legal-ho li + li, .legal-body .legal-ul li + li { margin-top: 2px; }
.legal-body .legal-ul { margin: 6px 0 0; padding-left: 2.6em; }
.legal-body .tbl { margin: 8px 0 0; }
.legal-body thead th { background: var(--surface-2); }
.legal-body td:first-child { min-width: 7.5em; font-weight: 650; color: var(--ink); }

/* 누를 수 있는 것: 마우스를 올리면 옅은 바탕, 누르는 동안 살짝 작아짐(앱과 같음) */
@media (hover: hover) {
  .g-row:hover { background: var(--hover); }
  .g-row:hover .gr-title { color: var(--primary-text); }
  .g-row:hover .gr-chev { color: var(--primary-text); }
  .g-menu a:not([aria-current="page"]):hover, .g-chip:not([aria-current="page"]):hover span { color: var(--ink); }
  .g-icon:hover { background: var(--primary-tint); color: var(--primary-text); }
  .g-halt:hover { background: var(--hover); color: var(--primary-text); }
  .g-me:hover { box-shadow: 0 0 0 2px var(--green); }
  .g-login:hover { filter: brightness(1.08); }
  .g-tab:not([aria-current="page"]):hover { background: var(--hover); color: var(--ink); }
  .art-next a:hover { background: var(--hover); }
  .g-pager a:not([aria-current="page"]):hover { background: var(--track); color: var(--ink); }
  .art-back:hover, .art-toc a:hover { color: var(--primary-text); }
  .qa summary:hover { background: var(--hover); }
  .qa summary:hover .qa-chev { color: var(--primary-text); }
}
.g-chip:active span, .g-pager a:active, .cta-box a:active { transform: scale(0.97); }
.g-icon:active, .g-me:active, .g-halt:active, .g-login:active, .g-tab:active { transform: scale(0.95); }
.g-halt:active { background: var(--hover); }
.g-icon:active { background: var(--primary-tint-2); }
.g-row:active, .art-next a:active, .qa summary:active { background: var(--hover); }
@media (prefers-reduced-motion: reduce) {
  .g-chip:active span, .g-pager a:active, .cta-box a:active, .g-icon:active, .g-me:active, .g-halt:active, .g-login:active, .g-tab:active { transform: none; }
  .g-icon, .g-me, .g-login, .qa summary, .qa-chev, .g-halt, .g-prog i, .g-tab { transition: none; }
}

@media (max-width: 1279px) {
  .g-nav-in { padding-left: 24px; padding-right: 24px; }
  .g-now, .g-prog { display: none; }  /* 앱과 같이: 메뉴 6칸이 들어가게 날짜 줄과 진행 막대는 숨긴다 */
}
@media screen and (max-width: 1023.98px) {
  /* 앱이 폰 화면을 쓰는 너비(앱은 1024px 부터 웹 화면, 배율 110%, 125% 의 소수 너비도 같게): 앱 폰 화면과 같은 틀. 인쇄는 웹 틀. 가운데 520px 한 줄, 위는 로고와 검색, 로그인(로그인했으면 알림),
     아래는 앱과 같은 떠 있는 메뉴. 장 상태, 위 메뉴, 화면 밝기 단추, 프로필 사진은 앱 폰 머리글처럼 두지 않는다 */
  .g-nav { top: env(safe-area-inset-top, 0px); }
  .g-nav-in { max-width: 520px; min-height: 56px; gap: 10px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .g-head-status, .g-menu, #g-theme, .g-me { display: none; }
  .g-tools { gap: 6px; margin-left: auto; }
  .g-search { display: inline-flex; }
  .g-mark { width: 30px; height: 30px; }
  .g-word { width: 72px; height: 13px; }
  .g-main { max-width: 520px; margin: 0 auto; padding-left: 10px; padding-right: 10px; }
  .g-footer { max-width: 520px; }
  .g-tabbar { display: grid; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: calc(64px + env(safe-area-inset-top, 0px)); scroll-padding-bottom: 90px; }
}
@media (max-width: 1040px) {
  .art-layout { grid-template-columns: minmax(0, 760px); }
  .art-toc { display: none; }
}
/* 글과 목록의 폰 모양: 앱처럼 1024px 아래까지(가운데 520px 한 줄 안이라 폰과 같게) */
@media (max-width: 1023.98px) {
  .gl-tabs { flex-wrap: wrap; width: auto; border-radius: 18px; overflow-x: visible; }
  .gl-q { width: 100%; font-size: 16px; }  /* 16px 라야 아이폰이 찾기 칸을 누를 때 화면을 확대하지 않는다(앱 검색 칸과 같음) */
  .g-title { font-size: 26px; }
  .g-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .gr-side { gap: 8px; }
  .gr-chev { display: none; }
  .article { padding: 20px 18px 24px; border-radius: 16px; }
  .legal-body { padding: 20px 18px 24px; border-radius: 16px; }
  .legal-body .legal-ho { padding-left: 2.6em; }
  .legal-body td:first-child { min-width: 6em; }
  .article h1 { font-size: 25px; }
  .article .art-desc { font-size: 16px; }
  .article h2 { font-size: 21px; margin-top: 38px; }
  .article p, .article li { font-size: 16.5px; line-height: 1.8; }
  .article .keypoints li { font-size: 16px; }
  .keypoints { padding: 16px 18px; }
  .article table { font-size: 14.5px; }
  .gl-item dd { font-size: 15.5px; }
  .article th, .article td { padding: 9px 10px; }
  .article tbody th { white-space: normal; word-break: keep-all; overflow-wrap: normal; min-width: 5em; }
  .fig { padding: 12px 10px 10px; }
  .art-next { grid-template-columns: minmax(0, 1fr); }
  .art-next a.next { text-align: left; }
  .gl-item { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
  .qa summary { padding: 14px 16px; font-size: 16px; }
  .qa-a { padding: 0 16px 16px; }
  .qa-a p { font-size: 15.5px; }
}
