/* ============================================================
   ChartControl — 인증 콤프 게이트 레이어 (auth-design-v1.css) · 2026-10-15
   ------------------------------------------------------------
   ★ 성격: 독립 게이트 레이어. 게이트: <html data-site-auth-v1="on"> (+ index.html 링크 1줄).
   ★ 원본: design-library/auth-design-reference.html (승인 시안). **수치는 그 파일에서 읽었다.**
   ★ 경계(#116·#128 교훈): 이 레이어는 **클래스 주도 표면만** 덮는다 — 공용 틀(AuthShell,
     인라인 0) · hero 배지 · hero 제목 · 3단 스테퍼(is-active/is-done) · 브랜드 · 푸터.
     폼 내부 인라인 87곳은 별도 단계(②기계적 추출 → ③신규 마크업) 대상 — !important 금지 규칙 유지.
   ★ 색은 전부 제품 토큰. 시안의 자체 변수를 옮기지 않는다 — auth-shell 이 이미 같은 역할의
     토큰을 갖고 있다(auth-v2.css 가 `.auth-shell` 스코프에서 종이 팔레트로 덮는다):
         시안 --ink      → var(--color-text-primary)    oklch(0.18 …)
         시안 --t2       → var(--color-text-secondary)  oklch(0.42 …)
         시안 --t3       → var(--color-text-tertiary)   oklch(0.50 …)
         시안 --edge     → var(--color-border-default)  oklch(0.82 …)
         시안 --line     → var(--color-border-subtle)   oklch(0.88 …)
         시안 --mag-ink  → var(--color-brand)           oklch(0.48 0.19 328) = 밝은 배경에서 읽히는 마젠타
         시안 --mag      → var(--brand-primary-500)     원색 마젠타(테두리·면용)

   ★★★★ (2026-10-15 검토) 원안에서 고친 것 — 세 가지가 시안과 반대였다

     ① **`.auth-hero-body h1` 은 죽은 선택자였다.** `.auth-hero-body` 안에는 h1 이 없다 —
        순수 텍스트다(pages-auth.jsx:476). 제목은 형제 요소 `.auth-hero-title`(div)다.
        그래서 "제목 서체" 규칙이 아무 일도 하지 않았다. 게이트 가드(#128)는 클래스와
        data-/aria- 속성만 검사하므로 **요소 이름 수준의 죽은 선택자는 잡지 못한다** —
        그래서 아래 e2e 활성화 점검(flow-w)을 함께 넣었다. 그쪽은 실제로 적용됐는지 본다.

     ② **표시 서체가 시안과 반대였다.** 원안은 `--font-display: Fraunces, Georgia, serif`.
        그런데 승인 시안에는 **세리프가 한 글자도 없다** — `--disp:'Inter',…,sans-serif`
        이고 `serif` 라는 문자열은 그 `sans-serif` 의 꼬리뿐이다. body·h1 모두 `--disp` 를 쓴다.
        게다가 그 선택자는 `auth-v2.css` 의 `--font-display: var(--font-sans)` 와
        **특정도가 같다**(둘 다 `html[attr] .auth-shell` = 0,2,1) — 즉 승부가 index.html 의
        링크 **순서**로 갈린다. 링크를 앞에 놓으면 산세리프, 뒤에 놓으면 세리프가 되고
        화면만 보고는 왜 그런지 알 수 없다. 시안이 산세리프이므로 **이 선언을 지웠다** —
        auth-v2 의 값이 곧 시안의 값이다. 바꿀 것이 없으면 건드리지 않는 것이 가장 안전하다.

     ③ **스테퍼 색이 시안과 반대였다.** 시안은 활성·완료 점을 **먹색(--ink)으로 채우고
        글자를 흰색**으로 둔다(`.wsteps .st.done .dot,.wsteps .st.act .dot
        { background:var(--ink); border-color:var(--ink); color:#fff }`).
        원안은 완료를 마젠타로 채우고 활성에 마젠타 발광 테를 줬다 — 시안에 없는 처리다.

   ★ 시안에 **없어서 넣지 않은 것**: `auth-alert` 3종. 승인 시안에는 공지·배너 컴포넌트가
     아예 없고 필드 단위 오류(`.field.err input` 테두리 + `.msg`)만 있다. 원안은 세 종의
     테두리 색을 바꿨는데, 그것은 이식이 아니라 **새 디자인 결정**이다. 공지 규격이 시안에
     추가되면 그때 넣는다(없는 것을 지어내지 않는다 — 이 저장소의 규칙).
   ★★★ **특정도를 조상 클래스로 올렸다 — 링크 순서에 승부를 맡기지 않는다(#116 선례).**
     원안의 `html[data-site-auth-v1="on"] .auth-shell .auth-hero-badge` 는
     `auth-v2.css` 의 `html[data-site-design="v2"] .auth-shell .auth-hero-badge` 와
     **특정도가 같다**(둘 다 0,3,1). 동률이면 index.html 의 링크 **순서**가 결정하므로,
     활성화할 때 링크를 어디에 넣느냐에 따라 적용되기도 하고 안 되기도 한다 — 그리고
     화면만 보고는 왜 그런지 알 수 없다(#128 에서 font-display 로 겪은 것과 같은 함정).
     실재하는 조상(`.auth-shell__hero .auth-hero-content` / `.auth-shell__form .auth-progress`
     / `.auth-shell__form .auth-shell__foot`)을 더해 (0,5,1) 이상으로 만들어, 링크를 어디에
     넣어도 이 레이어의 뜻이 유지된다.
   ★ gate-css-selectors.test.ts 가 이 파일을 자동 검사(레이어 자동 발견 · #128 일반화).
   ============================================================ */

/* ---------- 1. hero 배지 — 시안 `.vtag`/`.nchip` 규격(알약) ---------- */
/*
   시안: mono 10px / 800 / ls .12em · 색 --mag-ink · 테두리 1px rgba(mag,.35) ·
         radius 99px · padding 4px 9px.
   ★ 현행 v2 배지는 알약이 아니라 **왼쪽 26px 줄 + 왼쪽 패딩 38px** 이다. 알약으로 바꾸려면
     그 줄(`::before`)을 함께 지워야 한다 — 남기면 알약 안에 줄이 박힌다(실측).
*/
html[data-site-auth-v1="on"] .auth-shell .auth-shell__hero .auth-hero-content .auth-hero-badge {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--color-brand);
  border-radius: var(--r-full);
  background: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-brand);
}
html[data-site-auth-v1="on"] .auth-shell .auth-shell__hero .auth-hero-content .auth-hero-badge::before { content: none; }

/* ---------- 2. hero 제목 — 시안 h1 수치 ---------- */
/*
   시안 h1: font-size clamp(30px,4vw,44px) · line-height 1.05 · ls -.03em · weight 800.
   ★ 서체는 건드리지 않는다 — 시안의 `--disp` 가 산세리프이고 현행 v2 도 산세리프다(위 ②).
*/
html[data-site-auth-v1="on"] .auth-shell .auth-shell__hero .auth-hero-content .auth-hero-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
}

/* ---------- 3. 3단 스테퍼 — 시안 `.wsteps` 규격 ---------- */
/*
   시안: 점 26px 원 · 테두리 1.5px --edge · mono 11px/800 · 색 --t3
         활성·완료 → 면 --ink · 테두리 --ink · 글자 #fff
         라벨 mono 10px/700 ls .1em --t3, 활성 라벨 → --ink
         연결선 1.5px --line, 완료 → --ink
*/
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-progress .auth-progress__num {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--color-border-default);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-tertiary);
  background: none;
}
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-progress .auth-progress__step.is-active .auth-progress__num,
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-progress .auth-progress__step.is-done .auth-progress__num {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  /* ★ 먹색 면 위의 글자다 — 토큰이 아니라 흰색으로 둔다(시안도 #fff 고정). */
  color: #fff;
}
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-progress .auth-progress__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-text-tertiary);
}
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-progress .auth-progress__step.is-active .auth-progress__label {
  color: var(--color-text-primary);
}
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-progress .auth-progress__line {
  height: 1.5px;
  background: var(--color-border-subtle);
}
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-progress .auth-progress__line.is-done {
  background: var(--color-text-primary);
}

/* ---------- 4. 브랜드 글자 — 시안 `.brandmark` 규격 ---------- */
/* 시안: mono 12px / 800 / ls .14em. */
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-shell__brand span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

/* ---------- 5. 푸터 — 시안 `footer` 규격 ---------- */
/*
   시안: mono 10.5px · ls .1em · 색 --t3. **대문자 변환은 없다.**
   ★ 원안은 11px / ls .08em / uppercase 였다. 11px 짜리 링크 글자를 대문자로 바꾸면
     읽기가 더 어려워지고, 시안에 없는 처리다.
*/
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-shell__foot .auth-foot-copy,
html[data-site-auth-v1="on"] .auth-shell .auth-shell__form .auth-shell__foot .auth-foot-links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--color-text-tertiary);
}
