/* ════════════════════════════════════════════════════════════════
 * 쉐라폰 공통 모양 A안 (2026-10-08 Cowork) — 모든 고객 페이지가 같이 쓴다.
 *   색·글꼴 · 맨 위 머리(메뉴) · 맨 아래 꼬리(네이비) · 모바일 하단 메뉴 · 공통 버튼
 *   쓰는 법: <body class="site-a ..."> + styles.css 뒤에 <link rel="stylesheet" href="site-a.css?v=...">
 *   홈 전용 모양은 home-a.css, 약관·개인정보 등 문서 페이지는 이 파일 아래쪽 「문서 페이지」.
 * 색: 네이비 #213455 · 민트 #128A6D/#1FB892 · 회청 #EEF2F7 · 회색 단계
 * ⚠️ script.js 가 찾는 이름표는 각 페이지 머리에 그대로 둔다 — 여기서는 모양만:
 *    .navbar(높이 계산) · .nav-links · #nav-login-link · #mobile-auth-link · #mobile-admin-btn ·
 *    #custom_lang_select · #google_translate_element · .bottom-nav(보이는지 확인) · #dyn-*(꼬리)
 * ════════════════════════════════════════════════════════════════ */
:root {
  --ha-navy: #213455;
  --ha-navy-sub: #AEBACB;
  --ha-mint: #128A6D;
  --ha-mint-bright: #1FB892;
  --ha-mint-soft: #EDF8F4;
  --ha-tile: #EEF2F7;
  --ha-ink: #191B1F;
  --ha-ink-2: #333D4B;
  --ha-ink-3: #4E5968;
  --ha-ink-4: #8B95A1;
  --ha-line: #E5E8EB;
  --ha-line-soft: #F0F2F4;
  --ha-bg-soft: #F6F8FA;
}

body.site-a {
  background: #FFFFFF !important;
  color: var(--ha-ink);
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 0;
}
body.site-a *, body.site-a *::before, body.site-a *::after { box-sizing: border-box; }
body.site-a img { max-width: 100%; }
body.site-a a:focus-visible, body.site-a button:focus-visible, body.site-a input:focus-visible,
body.site-a summary:focus-visible, body.site-a select:focus-visible { outline: 2px solid var(--ha-mint-bright); outline-offset: 2px; }
.ha-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 900px) { .ha-wrap { padding-inline: 24px; } }
.ha-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 화면 크기별 보이기 (styles.css 와 같은 기준 768px) */
body.site-a .mobile-only { display: none !important; }
@media (max-width: 768px) {
  body.site-a .mobile-only { display: flex !important; }
  body.site-a .pc-only { display: none !important; }
}

/* ── 머리 ─────────────────────────────────────────────
 * 한 줄 고정 (로그인하면 script.js 가 .nav-links 에 환영 문구·로그아웃·관리자를 넣는다).
 * 환영 문구는 항상 숨기고, 로그인하면 「내 신청 조회」도 숨긴다(마이페이지가 대신).
 * 태블릿 폭(769~1039px)은 메뉴를 숨긴다 — 두 줄로 깨지므로. */
header.navbar.ha-header {
  position: sticky; top: 0; z-index: 1000;
  height: auto; padding: 0; display: block;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ha-line);
  box-shadow: none;
}
.ha-header-in { min-height: 56px; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 32px; }
@media (min-width: 769px) { .ha-header-in { min-height: 72px; } }
.ha-logo { display: flex; align-items: center; gap: 7px; text-decoration: none; flex: none; }
.ha-logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ha-logo span { font-weight: 800; font-size: 20px; color: var(--ha-navy); letter-spacing: -0.04em; }
.ha-menu { flex: 1 1 auto; display: flex; flex-wrap: nowrap; gap: 4px 26px; min-width: 0; white-space: nowrap; }
.ha-menu a { padding: 24px 0; font-size: 16px; font-weight: 600; color: var(--ha-ink-2); text-decoration: none; }
.ha-menu a:hover, .ha-menu a[aria-current="page"] { color: var(--ha-navy); }
.ha-menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ha-navy); }
@media (min-width: 769px) and (max-width: 1039px) { body.site-a .ha-menu { display: none !important; } }
@media (min-width: 1040px) and (max-width: 1279px) {
  .ha-menu { gap: 0 18px; }
  .ha-menu a { font-size: 15px; }
  header.ha-header .nav-links { gap: 12px; }
}
header.ha-header a, header.ha-header .nav-links span { white-space: nowrap; }
.ha-utils { margin-left: auto; flex: none; display: flex; align-items: center; gap: 14px; }
.ha-utils .lang-select { height: 36px; border: none; background-color: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--ha-ink-3); padding: 0 20px 0 4px; min-width: 0; border-radius: 8px; cursor: pointer;
  -webkit-appearance: none; appearance: none; background-repeat: no-repeat; background-position: right 4px center; background-size: 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5L5 7l3.5-3.5' fill='none' stroke='%234E5968' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
header.ha-header .nav-links { display: flex; align-items: center; gap: 16px; }
header.ha-header .nav-links a { font-size: 14px; color: var(--ha-ink-3); text-decoration: none; }
header.ha-header .nav-links a:hover { color: var(--ha-navy); }
header.ha-header #nav-welcome-text { display: none !important; }
header.ha-header .nav-links:has(#nav-logout-link) a[href="guest.html"] { display: none; }
header.ha-header .nav-links #admin-btn-nav { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; background: var(--ha-navy); color: #fff; margin-left: 0 !important; display: inline-flex; align-items: center; }
.ha-mobile-actions { align-items: center; gap: 4px; }
.ha-mobile-actions #mobile-auth-link { height: 32px; padding: 0 12px; border: 1px solid var(--ha-line); border-radius: 16px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--ha-ink-2); text-decoration: none; white-space: nowrap; }
.ha-mobile-actions #mobile-admin-btn { height: 32px; padding: 0 10px; border-radius: 16px; background: #FDE8EC; color: #C81E4B; font-size: 12px; font-weight: 700; align-items: center; text-decoration: none; }
/* 페이지 꼬리의 번역용 스타일(.navbar .mobile-only a#mobile-auth-link {…!important})보다 우선 */
header.navbar.ha-header .ha-mobile-actions a#mobile-auth-link { padding: 0 12px !important; font-size: 13px !important; margin-right: 0 !important; letter-spacing: -0.01em !important; }
header.navbar.ha-header .ha-mobile-actions { gap: 4px !important; }
@media (max-width: 768px) {
  .ha-header-in { min-height: 50px; padding-inline: 12px 6px; gap: 6px; }
  .ha-logo img { width: 26px; height: 26px; }
  .ha-logo span { font-size: 18px; }
  .ha-utils { gap: 2px; }
  .ha-utils .lang-select { font-size: 12px; width: 66px; min-width: 66px; padding-right: 16px; margin-right: 0 !important; background-position: right 3px center; letter-spacing: -0.01em; }
  header.navbar.ha-header .ha-mobile-actions a#mobile-auth-link { height: 30px; padding: 0 11px !important; font-size: 12px !important; }
}

/* ── 공통 버튼 ─────────────────────────────────────── */
.ha-btn { height: 44px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; text-decoration: none; }
.ha-btn.navy { background: var(--ha-navy); color: #FFFFFF; }
.ha-btn.line { border: 1px solid var(--ha-line); color: var(--ha-ink-2); font-weight: 600; }
@media (max-width: 768px) { .ha-btn { height: 40px; font-size: 13px; padding: 0 14px; } }

/* ── 꼬리 (전 페이지 같은 마크업 그대로, 네이비로) ───── */
body.site-a footer.site-footer { background: var(--ha-navy); border-top: none; color: #95A3B8; padding: 28px 0 100px; }
@media (min-width: 769px) { body.site-a footer.site-footer { padding: 44px 0 48px; } }
body.site-a .site-footer .container { max-width: 1200px; padding-inline: 16px; }
@media (min-width: 900px) { body.site-a .site-footer .container { padding-inline: 24px; } }
body.site-a .sf-links a { color: #D7DEE8; }
body.site-a .sf-links a:hover, body.site-a .sf-links .sf-strong { color: #FFFFFF; }
body.site-a .sf-label { color: var(--ha-navy-sub); }
body.site-a .sf-lead { color: #FFFFFF; }
body.site-a .sf-hours, body.site-a .sf-mail { color: #C5CFDC; }
body.site-a .sf-hours b { color: #FFFFFF; }
body.site-a .sf-ch-kakao, body.site-a .sf-ch-naver { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.3); }
body.site-a .sf-info dt { color: #95A3B8; }
body.site-a .sf-info dd { color: #D7DEE8; }
body.site-a .sf-verify { color: #D7DEE8; border-color: rgba(255,255,255,0.3); }
body.site-a .sf-bottom { border-top-color: rgba(255,255,255,0.14); }
body.site-a .sf-cert { background: transparent; border-color: rgba(255,255,255,0.2); color: #C5CFDC; }
body.site-a .sf-cert b { color: #FFFFFF; }
body.site-a .sf-copy { color: #95A3B8; }

/* ── 모바일 하단 메뉴 ──────────────────────────────── */
body.site-a .bottom-nav.ha-bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; height: calc(68px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: #FFFFFF; border-top: 1px solid var(--ha-line); display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; box-shadow: none; }
@media (min-width: 769px) { body.site-a .bottom-nav.ha-bnav { display: none !important; } }
.ha-bnav a { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ha-ink-4); text-decoration: none; }
.ha-bnav a[aria-current="page"] { color: var(--ha-navy); font-weight: 700; }
.ha-bnav a.ha-bnav-sell { justify-content: flex-end; padding-bottom: 9px; font-weight: 800; color: var(--ha-navy); }
.ha-bnav-sell .ring { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--ha-navy); border: 4px solid #FFFFFF; box-shadow: 0 4px 10px rgba(33,52,85,0.28); display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
  body.site-a main { padding-bottom: 8px; }
  body.site-a .bottom-nav.ha-bnav { height: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .ha-bnav a { height: 56px; font-size: 10px; gap: 2px; }
  .ha-bnav a svg { width: 22px; height: 22px; }
  .ha-bnav a.ha-bnav-sell { padding-bottom: 7px; }
  .ha-bnav-sell .ring { width: 46px; height: 46px; margin-top: -22px; border-width: 3px; }
  .ha-bnav-sell .ring svg { width: 20px; height: 20px; }
}

/* ── 문서 페이지 (이용약관 · 개인정보처리방침) ──────────
 * <body class="site-a doc-a"> · main.doc-page > .doc-top(.doc-tabs) + .doc-layout(aside#doc-toc + article#doc-body)
 * 본문 글(h1·h2·p·ul·table)은 예전 마크업 그대로 — 여기서 모양만 바꾼다. 조항 목록은 페이지 안 스크립트가 만든다. */
.doc-top { background: var(--ha-bg-soft); border-bottom: 1px solid var(--ha-line); }
.doc-tabs { display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; }
.doc-tabs a { flex: none; height: 38px; padding: 0 16px; border-radius: 19px; display: inline-flex; align-items: center; background: #FFFFFF; border: 1px solid var(--ha-line); font-size: 14px; font-weight: 600; color: var(--ha-ink-3); text-decoration: none; }
.doc-tabs a:hover { color: var(--ha-navy); border-color: #C9D1DB; }
.doc-tabs a[aria-current="page"] { background: var(--ha-navy); border-color: var(--ha-navy); color: #FFFFFF; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 232px minmax(0, 1fr); padding-top: 44px; padding-bottom: 88px; } }
.doc-toc { display: none; }
@media (min-width: 1024px) { .doc-toc:not(:empty) { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; } }
.doc-toc strong { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--ha-ink-4); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ha-line); }
.doc-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--ha-ink-3); text-decoration: none; word-break: keep-all; }
.doc-toc a:hover { color: var(--ha-navy); }
.doc-toc a.is-on { color: var(--ha-navy); font-weight: 700; border-left-color: var(--ha-navy); }
.doc-toc-m { margin: 0 0 8px; border: 1px solid var(--ha-line); border-radius: 12px; background: #FFFFFF; }
.doc-toc-m summary { list-style: none; cursor: pointer; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ha-ink); }
.doc-toc-m summary::-webkit-details-marker { display: none; }
.doc-toc-m[open] summary svg { transform: rotate(180deg); }
.doc-toc-m ol { list-style: none; margin: 0; padding: 0 16px 8px; }
.doc-toc-m a { display: block; padding: 10px 0; border-top: 1px solid var(--ha-line-soft); font-size: 14px; color: var(--ha-ink-3); text-decoration: none; }
@media (min-width: 1024px) { .doc-toc-m { display: none; } }
body.site-a .doc-body.legal-container { max-width: 760px; margin: 0; padding: 0; background: none; border: none; border-radius: 0; box-shadow: none; }
body.site-a .doc-body h1 { margin: 0 0 20px; font-size: 32px; line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; text-align: left; color: var(--ha-ink); }
body.site-a .doc-body h2 { margin: 40px 0 12px; padding: 28px 0 0; border-top: 1px solid var(--ha-line); border-bottom: none; font-size: 19px; line-height: 1.45; font-weight: 700; letter-spacing: -0.03em; color: var(--ha-ink); scroll-margin-top: 90px; }
body.site-a .doc-body h3 { margin: 22px 0 8px; font-size: 16px; color: var(--ha-ink); }
body.site-a .doc-body p, body.site-a .doc-body li { margin: 0 0 12px; font-size: 15px; line-height: 1.8; color: var(--ha-ink-2); word-break: keep-all; }
body.site-a .doc-body ul, body.site-a .doc-body ol { margin: 0 0 12px; padding-left: 20px; }
body.site-a .doc-body strong { color: var(--ha-ink); }
body.site-a .doc-body a { color: var(--ha-mint); }
body.site-a .doc-body table { font-size: 13px !important; }
body.site-a .doc-body th { background: var(--ha-bg-soft) !important; color: var(--ha-ink) !important; }
body.site-a .doc-body th, body.site-a .doc-body td { border-color: var(--ha-line) !important; }
@media (max-width: 768px) {
  .doc-tabs { padding: 12px 0; gap: 6px; }
  .doc-tabs a { height: 34px; padding: 0 14px; font-size: 13px; }
  .doc-layout { padding-top: 22px; padding-bottom: 40px; }
  body.site-a .doc-body h1 { font-size: 24px; margin-bottom: 16px; }
  body.site-a .doc-body h2 { margin-top: 30px; padding-top: 22px; font-size: 17px; }
  body.site-a .doc-body p, body.site-a .doc-body li { font-size: 14px; line-height: 1.75; }
}
