/* g5sol head/tail — published from docs/mockup_head_tail_v1 (루미, 2026-09-25)
   Tokens are scoped to the new chrome + main so board skins keep g5sol.css :root values. */
.g5-ht, .ht-wrapper.is-index, .ht-top, .ht-drawer, .ht-drawer-backdrop {
  --g5-bg: #f3f4f6;
  --g5-surface: #ffffff;
  --g5-ink: #111827;
  --g5-ink-2: #374151;
  --g5-muted: #6b7280;
  --g5-muted-2: #9ca3af;
  --g5-line: #e5e7eb;
  --g5-line-strong: #d1d5db;
  --g5-accent: #3b82f6;
  --g5-accent-hover: #2563eb;
  --g5-accent-soft: #eff6ff;
  --g5-accent-mid: #dbeafe;
  /* secondary accent — logo mark / primary CTA / hero strip only */
  --g5-secondary-from: #6366f1;
  --g5-secondary-to: #8b5cf6;
  --g5-secondary-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --g5-ft-bg: #111827;
  --g5-ft-muted: #9ca3af;
  --g5-radius-sm: 10px;
  --g5-radius: 14px;
  --g5-radius-lg: 16px;
  --g5-radius-pill: 999px;
  --g5-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.06);
  --g5-shadow-sm: 0 1px 2px rgba(16,24,40,.04);
  --g5-font: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --g5-space: 8px;
  --g5-pad-x: 24px;
  --g5-max: 1200px;
  --g5-header-h: 64px;
  --g5-header-h-m: 56px;
  --mob-bar-h: 60px;
}
.g5-ht, .ht-top, .ht-drawer { font-family: var(--g5-font); -webkit-font-smoothing: antialiased; }
.g5-ht *, .g5-ht *::before, .g5-ht *::after,
.ht-drawer *, .ht-drawer *::before, .ht-drawer *::after,
.pm-main *, .pm-main *::before, .pm-main *::after { box-sizing: border-box; }
.g5-ht a, .ht-drawer a, .pm-main a { color: inherit; text-decoration: none; }
.g5-ht ul, .g5-ht ol, .ht-drawer ul, .pm-main ul, .pm-main ol { list-style: none; margin: 0; padding: 0; }
.g5-ht button, .ht-top, .ht-drawer button, .pm-main button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
.pm-main img, .ht-drawer img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.ht-skip a { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; background: #111827; color: #fff; }
.ht-skip a:focus { left: 8px; top: 8px; }
.ht-sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ========== SVG icon base ========== */
.ht-ico {
  width: 22px; height: 22px;
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== PC Header ========== */
.ht-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--g5-header-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--g5-line);
}
.ht-header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--g5-max);
  margin: 0 auto;
  padding: 0 var(--g5-pad-x);
}
.ht-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--g5-ink);
  min-height: 44px;
}
/* logo v1 (A 스파클 버블): 심볼은 <img> SVG. 크기는 기존 마크 그대로 — PC 30(.ht-header__bar), 모바일 28(g5sol_ht_m.css) */
.ht-logo__mark { display: block; flex-shrink: 0; border-radius: 0; background: none; }
.ht-header__bar .ht-logo__mark { width: 30px; height: 30px; }
.ht-logo__word { white-space: nowrap; }
/* GNB */
.ht-gnb {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 8px;
}
.ht-gnb__item {
  position: relative;
  flex-shrink: 0;
}
.ht-gnb__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--g5-ink-2);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s;
}
.ht-gnb__link:hover { color: var(--g5-accent); }
.ht-gnb__item.is-active .ht-gnb__link {
  color: var(--g5-accent);
}
.ht-gnb__item.is-active .ht-gnb__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--g5-accent);
  border-radius: 2px;
}
.ht-gnb__chev {
  width: 14px; height: 14px;
  opacity: .55;
}
.ht-gnb__drop {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 140px;
  padding: 6px;
  background: var(--g5-surface);
  border: 1px solid var(--g5-line);
  border-radius: var(--g5-radius-sm);
  box-shadow: var(--g5-shadow);
  z-index: 30;
}
.ht-gnb__item:hover .ht-gnb__drop,
.ht-gnb__item:focus-within .ht-gnb__drop { display: block; }
.ht-gnb__drop a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g5-ink-2);
  border-radius: 6px;
}
.ht-gnb__drop a:hover {
  background: var(--g5-accent-soft);
  color: var(--g5-accent);
}

/* Search pill */
.ht-search {
  flex: 0 1 200px;
  max-width: 220px;
  min-width: 140px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 14px;
  background: var(--g5-bg);
  border: 1px solid var(--g5-line);
  border-radius: var(--g5-radius-pill);
  transition: border-color .15s, background .15s;
}
.ht-search:focus-within {
  background: #fff;
  border-color: var(--g5-accent);
}
.ht-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--g5-ink);
  outline: none;
  font-family: inherit;
}
.ht-search__input::placeholder { color: var(--g5-muted); }
.ht-search__btn {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--g5-muted);
  border-radius: 50%;
}
.ht-search__btn:hover { color: var(--g5-accent); }

/* Header actions */
.ht-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 4px;
}
.ht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--g5-radius-pill);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.ht-btn--ghost {
  color: var(--g5-ink-2);
  border: 1px solid var(--g5-line);
  background: #fff;
}
.ht-btn--ghost:hover {
  border-color: var(--g5-line-strong);
  color: var(--g5-ink);
}
.ht-btn--primary {
  color: #fff;
  background: var(--g5-secondary-grad);
  border: 0;
  box-shadow: 0 1px 2px rgba(99,102,241,.25);
}
.ht-btn--primary:hover { filter: brightness(1.05); }

/* Avatar / member dropdown */
.ht-avatar-wrap { position: relative; }
.ht-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--g5-line);
  background: var(--g5-accent-soft);
  color: var(--g5-accent);
  font-size: 13px;
  font-weight: 800;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .15s;
}
.ht-avatar:hover, .ht-avatar-wrap.is-open .ht-avatar {
  border-color: var(--g5-accent);
}
.ht-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--g5-line);
  border-radius: var(--g5-radius-sm);
  box-shadow: var(--g5-shadow);
  z-index: 40;
}
.ht-avatar-wrap.is-open .ht-dropdown { display: block; }
.ht-dropdown__head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--g5-line);
  margin-bottom: 4px;
}
.ht-dropdown__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--g5-ink);
}
.ht-dropdown__meta {
  font-size: 12px;
  color: var(--g5-muted);
  margin-top: 2px;
}
.ht-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g5-ink-2);
  border-radius: 6px;
}
.ht-dropdown a:hover {
  background: var(--g5-accent-soft);
  color: var(--g5-accent);
}
.ht-dropdown a.is-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}
.ht-dropdown__ico { width: 18px; height: 18px; opacity: .7; }
/* ========== Footer ========== */
.ht-footer {
  background: var(--g5-ft-bg);
  color: var(--g5-ft-muted);
  margin-top: auto;
}
.ht-footer__inner {
  max-width: var(--g5-max);
  margin: 0 auto;
  padding: 32px var(--g5-pad-x) 28px;
}
.ht-footer__brand {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
/* logo v1: 푸터 브랜드 앞 컬러 심볼 20px (PC·모바일 공통 클래스) */
.ht-footer__brand { display: flex; align-items: center; gap: 8px; }
.g5-ht .ht-footer__logo { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.ht-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.ht-footer__links a {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}
.ht-footer__links a:hover { color: #fff; }
.ht-footer__visit {
  font-size: 12px;
  color: var(--g5-muted);
  margin-bottom: 12px;
}
.ht-footer__note {
  font-size: 12px;
  color: var(--g5-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ht-footer__copy {
  font-size: 12px;
  color: #6b7280;
  padding-top: 14px;
  border-top: 1px solid #1f2937;
}

/* Top button */
.ht-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--g5-line);
  box-shadow: var(--g5-shadow);
  color: var(--g5-ink-2);
  display: grid; place-items: center;
  z-index: 90;
  transition: background .15s, color .15s, border-color .15s;
}
.ht-top:hover {
  background: var(--g5-accent);
  border-color: var(--g5-accent);
  color: #fff;
}

/* ========== PC @1024 tighten ========== */
@media (max-width: 1100px) {
  .ht-gnb__link { padding: 8px 9px; font-size: 13px; }
  .ht-search { flex-basis: 160px; max-width: 170px; min-width: 120px; }
  .ht-btn--primary { padding: 0 12px; }
  .ht-header__bar { gap: 8px; }
  .ht-gnb { gap: 0; margin-left: 4px; }
}
.ht-footer__visit strong { color: #e5e7eb; font-weight: 700; }
.ht-footer__note { display: flex; align-items: center; gap: 6px; }
.ht-footer__note .ht-ico { width: 15px; height: 15px; color: #93c5fd; }
.ht-top .ht-ico { width: 20px; height: 20px; }

/* ========== Layout: full-width container (legacy #aside removed) ========== */
.ht-wrapper #container_wr { width: auto; max-width: var(--g5-max, 1200px); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ht-wrapper #container { float: none; width: auto; min-height: 480px; }
.ht-wrapper.is-index #container_wr { max-width: none; padding: 0; }
.ht-wrapper.is-index #container { margin: 0; min-height: 0; }
.ht-footer { margin-top: 64px; }
.ht-wrapper.is-index + .ht-footer { margin-top: 0; }

/* skip link: legacy #skip_to_container a (default.css) beat .ht-skip → 1px box + padding showed as a black square */
#skip_to_container.ht-skip a { left: -9999px; width: auto; height: auto; font-size: 14px; line-height: 1.4; overflow: visible; background: #111827; color: #fff; padding: 10px 16px; border-radius: 8px; }
#skip_to_container.ht-skip a:focus, #skip_to_container.ht-skip a:active { left: 8px; top: 8px; width: auto; height: auto; }

/* specificity fix: `.g5-ht a` / `.g5-ht button` resets (0,1,1) were overriding single-class components */
.g5-ht .ht-btn--primary, .ht-drawer .ht-btn--primary { color: #fff; }
.g5-ht .ht-btn--ghost, .ht-drawer .ht-btn--ghost { color: var(--g5-ink-2); border: 1px solid var(--g5-line); background: #fff; }
.g5-ht .ht-btn--ghost:hover, .ht-drawer .ht-btn--ghost:hover { border-color: var(--g5-line-strong); color: var(--g5-ink); }
.g5-ht .ht-avatar, .ht-drawer .ht-avatar { border: 2px solid var(--g5-line); background: var(--g5-accent-soft); color: var(--g5-accent); }
.g5-ht .ht-avatar:hover, .g5-ht .ht-avatar-wrap.is-open .ht-avatar { border-color: var(--g5-accent); }
.g5-ht .ht-dropdown { min-width: 200px; }
.g5-ht .ht-dropdown__meta { overflow-wrap: anywhere; }

/* narrow desktop window fallback (<768; mobile UAs get theme/basic/mobile instead) */
#hd_pop { width: auto; max-width: 1200px; }
@media (max-width: 767px) {
  .g5-ht.ht-header { height: auto; }
  .g5-ht .ht-header__bar { flex-wrap: wrap; row-gap: 6px; padding: 8px 16px 4px; }
  .g5-ht .ht-header__bar .ht-logo { order: 1; }
  .g5-ht .ht-header__bar .ht-actions { order: 2; margin-left: auto; }
  .g5-ht .ht-header__bar .ht-search { order: 3; flex: 1 1 100%; max-width: none; min-width: 0; }
  .g5-ht .ht-header__bar .ht-gnb { order: 4; flex: 1 1 100%; margin-left: -8px; overflow-x: auto; scrollbar-width: none; }
  .g5-ht .ht-gnb::-webkit-scrollbar { display: none; }
  .g5-ht .ht-gnb__drop { display: none !important; }
  .g5-ht .ht-footer__inner { padding-left: 16px; padding-right: 16px; }
  .ht-wrapper #container_wr { padding: 0 16px; }
}
@media (max-width: 359px) {
  .g5-ht .ht-actions .ht-btn--primary { padding: 0 10px; font-size: 12px; }
  .g5-ht .ht-logo__word { display: none; }
}

/* PC footer adult notice badge (mockup_pc_main_v1 .pm-adult · 헤라 REPORT 2026-09-25) */
.ht-footer .pm-adult {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 12px; font-weight: 600; line-height: 1.5; color: #e5e7eb;
  background: #1f2937;
  border-radius: 8px;
}
.ht-footer .pm-adult .ht-ico { width: 16px; height: 16px; flex-shrink: 0; color: #93c5fd; }
