/* 9번 도움말 '처음 쓰는 법' — 가안 (2026-11-17). 그리는 곳 inc/edm_help9.lib.php, 움직임 js/edm-help9.js.
   시안 9-help.css(h9-)의 가안 부분을 도움말 판(#vaHelp · 휴대폰 아래 판 / 컴퓨터 560px 창)에 맞게 옮겼어요.
   색은 도움말 판(edm_help.css)과 같은 규칙: 다크(기본)는 판과 같은 회색, 화이트는 맨 아래 [data-theme="light"] (--lt-* 변수).
   되돌리기 = theme/basic/head.php 에서 '9번' 주석이 붙은 줄들을 지워요(백업 head.php.bak-20261117-help9). */

/* 탭이 넷이 됐어요 (처음 쓰는 법 · 사용 설명서 · 단축키 · 문의하기) */
.va-help .vh-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 420px) { .va-help .vh-tabs button { font-size: 12.5px; letter-spacing: -.3px; } }

.h9 { --h9-line: #2e2e33; --h9-line2: #45454d; --h9-card: #1f1f23; --h9-fill: #26262b; --h9-t1: #fff; --h9-t2: #cfcfd6; --h9-t3: #a5a5ad;
  --h9-ac: #ff0050; --h9-ac-t: #ff5c8d; --h9-ac-soft: rgba(255, 0, 80, .12); --h9-ac-line: rgba(255, 0, 80, .4); --h9-ink: #fff; --h9-on-ink: #111;
  margin-top: 14px; color: var(--h9-t1); font-size: 14.5px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.h9 *, .h9 *::before, .h9 *::after { box-sizing: border-box; }
.h9 button { font-family: inherit; }
.h9 b { font-weight: 800; }
.h9-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.h9-ic.h9-in { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; stroke-width: 2.3; }
.h9 button:focus-visible, .h9 summary:focus-visible { outline: 2px solid var(--h9-ac-t); outline-offset: 2px; }
.h9[data-dev="pc"] .h9-m, .h9[data-dev="m"] .h9-pc { display: none; }

/* 머리: 작은 글 + 기기 고르기 */
.h9-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.h9-sub { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--h9-t3); white-space: nowrap; }
.h9-dev { display: flex; flex: 1 1 200px; max-width: 280px; padding: 3px; gap: 2px; border-radius: 11px; background: var(--h9-fill); }
.h9-dev button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--h9-t3); font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.h9-dev button .h9-ic { width: 16px; height: 16px; }
.h9-dev button[aria-pressed="true"] { background: #3a3a42; color: var(--h9-t1); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }

/* 세 걸음 카드 */
.h9-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h9-card { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; min-height: 56px; padding: 9px 10px; text-align: left; border-radius: 14px; border: 1px solid var(--h9-line); background: var(--h9-card); color: var(--h9-t1); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.h9-card:hover { border-color: var(--h9-line2); }
.h9-num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--h9-fill); color: var(--h9-t2); font-size: 18px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.h9-ct { min-width: 0; display: block; }
.h9-ct > b { display: block; font-size: 17px; line-height: 1.25; font-weight: 900; letter-spacing: -.3px; white-space: nowrap; }
.h9-card[aria-selected="true"] { border-color: var(--h9-ac); box-shadow: 0 0 0 3px var(--h9-ac-soft); }
.h9-card[aria-selected="true"] .h9-num { background: var(--h9-ac); color: #fff; }
.h9-card[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; margin-left: -7px; background: var(--h9-card); border: solid var(--h9-ac); border-width: 0 1px 1px 0; transform: rotate(45deg); }

/* 고른 걸음의 따라 하기 */
.h9-panel { margin-top: 14px; padding: 14px 14px 16px; border-radius: 14px; border: 1px solid var(--h9-line); background: var(--h9-card); }
.h9-panel[hidden] { display: none; }
.h9-lead { margin: 0 0 12px; color: var(--h9-t2); }
.h9-ol { margin: 0; padding: 0; list-style: none; counter-reset: h9; display: grid; gap: 10px; }
.h9-ol li { counter-increment: h9; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.h9-ol li::before { content: counter(h9); width: 24px; height: 24px; border-radius: 50%; background: var(--h9-ink); color: var(--h9-on-ink); font-size: 12px; font-weight: 900; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.h9-ol li > span { padding-top: 1px; }
.h9-note { margin: 0 0 12px; padding: 9px 12px; border-radius: 11px; background: var(--h9-fill); border: 1px solid var(--h9-line); color: var(--h9-t2); font-size: 13.5px; }
.h9-ol + .h9-note, .h9-note.h9-tip { margin: 12px 0 0; }
.h9-note.h9-tip { background: var(--h9-ac-soft); border-color: var(--h9-ac-line); color: var(--h9-t1); }

/* 막힐 때 */
.h9-faq { margin-top: 22px; }
.h9-h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.25; font-weight: 900; letter-spacing: -.3px; color: var(--h9-t1); }
.h9-q { border: 1px solid var(--h9-line); background: var(--h9-card); border-radius: 11px; }
.h9-q + .h9-q { margin-top: 6px; }
.h9-q summary { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 10px 8px 12px; cursor: pointer; list-style: none; border-radius: 11px; font-size: 14px; line-height: 1.4; }
.h9-q summary::-webkit-details-marker { display: none; }
.h9-q summary > span { flex: 1; min-width: 0; }
.h9-chev { color: var(--h9-t3); transition: transform .15s; }
.h9-q[open] summary .h9-chev { transform: rotate(180deg); }
.h9-q > p { margin: 0; padding: 0 12px 12px; color: var(--h9-t2); font-size: 14px; }
.h9-tag { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--h9-fill); border: 1px solid var(--h9-line); color: var(--h9-t2); font-style: normal; font-size: 11.5px; font-weight: 800; white-space: nowrap; }

@media (max-width: 359px) { .h9-card { flex-direction: column; align-items: flex-start; gap: 6px; } .h9-ct > b { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) { .h9-card, .h9-chev { transition: none; } }

/* 화이트 */
[data-theme="light"] .h9 { --h9-line: var(--lt-divider); --h9-line2: var(--lt-border-strong); --h9-card: var(--lt-surface); --h9-fill: var(--lt-fill); --h9-t1: var(--lt-text); --h9-t2: var(--lt-text-2); --h9-t3: var(--lt-text-3);
  --h9-ac: var(--lt-accent); --h9-ac-t: var(--lt-accent-text); --h9-ac-soft: rgba(217, 47, 85, .1); --h9-ac-line: rgba(217, 47, 85, .35); --h9-ink: var(--lt-text); --h9-on-ink: #fff; }
[data-theme="light"] .h9-dev button[aria-pressed="true"] { background: var(--lt-surface); color: var(--lt-text); box-shadow: var(--lt-shadow-sm), 0 0 0 1px var(--lt-border); }
[data-theme="light"] .h9-card, [data-theme="light"] .h9-panel, [data-theme="light"] .h9-q { border-color: var(--lt-border); }
[data-theme="light"] .h9-card[aria-selected="true"] { border-color: var(--lt-accent); }

/* 2026-11-19 다른 언어(영어 · 일본어 · 중국어): 낱말이 길어서(Download · ダウンロード · はじめての使い方) 휴대폰에서 카드 · 탭 글자가 넘쳤어요.
   한국어 화면은 그대로 두고, 다른 언어에서만 카드를 번호 위 · 이름 아래로 쌓고 탭 글자는 두 줄까지 접어요. 되돌리기 = 이 묶음 삭제 (edm_help9.css.bak-20261119-help9lang) */
html:not([lang|="ko"]) .va-help .vh-tabs button { white-space: normal; line-height: 1.15; font-size: 12.5px; }
@media (max-width: 480px) {
  html:not([lang|="ko"]) .h9-card { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 9px 10px; }
  html:not([lang|="ko"]) .h9-ct { max-width: 100%; }
  html:not([lang|="ko"]) .h9-ct > b { font-size: 14px; letter-spacing: -.4px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
}

/* ── 2026-11-20 tabs (주인님: "도움말 탭 글자 잘림도 고쳐라 다 고쳐라")
   되돌리기 = 이 파일을 edm_help9.css.bak-20261120-tabs 로 되돌려요
   - 좁은 휴대폰(화면 폭 340px 아래. 341 위는 안 잘려서 그대로 둬요): 탭 네 칸이 같은 너비라 "처음 쓰는 법" · "사용 설명서"가 … 로 잘렸어요
   - 한국어: 글자 긴 탭에 칸을 더 주고, 그래도 모자라면 낱말 사이에서 두 줄로 접어요
   - 다른 언어(이미 두 줄로 접힘): 300 아래에서 글자를 조금 줄이고 낱말이 칸보다 길면 접히게 해요 */
@media (max-width:340px){
  .va-help .vh-tabs button{padding:0 2px}
  html[lang|="ko"] .va-help .vh-tabs{grid-template-columns:minmax(0,1.45fr) minmax(0,1.35fr) minmax(0,.8fr) minmax(0,1fr)}
  html[lang|="ko"] .va-help .vh-tabs button{white-space:normal;line-height:1.15;word-break:keep-all}
}
@media (max-width:300px){
  html:not([lang|="ko"]) .va-help .vh-tabs button{font-size:11.5px;letter-spacing:-.4px;overflow-wrap:anywhere}
}
@media (max-width:279px){
  html[lang|="ko"] .va-help .vh-tabs{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) minmax(0,.85fr) minmax(0,1.1fr)}
}
@media (max-width:260px){
  html:not([lang|="ko"]) .va-help .vh-tabs button{font-size:10.5px;letter-spacing:-.5px}
}
