/* 공개 사이트 공통 헤더·푸터(site-chrome.js가 그린다). 여섯 공개 페이지와 /apply·/apply-call·/study 허브가
   같은 파일을 쓴다 — 각 화면의 자체 스타일과 섞이지 않게 site- 접두 클래스·자체 변수만 쓴다.
   색·글꼴은 landing.html의 디자인 토큰(사이트 개편 2차)과 같은 값이다. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&family=Noto+Serif+KR:wght@600&display=swap');

/* 헤더 높이 — 헤더 자체와 "본문 위 여백"(헤더에 첫 제목이 가려지지 않게)이 같은 변수를 쓴다(PC 72px / 900px 이하 64px). */
:root { --site-header-h: 72px; }
@media (max-width: 900px) { :root { --site-header-h: 64px; } }
/* 헤더는 화면 위에 고정(position: fixed)이라 흐름에서 빠진다 — 이 표시가 붙은 문서는 body 위에 헤더 높이만큼 여백을 둔다.
   공개 여섯 페이지는 <html class="cb-fixed-header">로 서버가 내려주고, 접수·아카데미·404·예약 확인은 mountStandaloneHeader가 붙인다. */
html.cb-fixed-header body { padding-top: calc(var(--site-header-h) + 1px); } /* + 헤더 아래 테두리 1px */
html.cb-fixed-header { scroll-padding-top: calc(var(--site-header-h) + 8px); }

.site-header, .site-footer {
  --site-bg: #F7F3EC;
  --site-line: #E6E0D4;
  --site-navy: #1F2A44;
  --site-sub: #6B6B6B;
  --site-coral: #F26B4E;
  --site-coral-hover: #E35B3E;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  box-sizing: border-box;
}
.site-header *, .site-footer * { box-sizing: border-box; }

/* ── 헤더(상단 고정) — 화면 폭 전체. backdrop-filter는 쓰지 않는다(쓰면 예약 패널의 바텀시트·배경막(position: fixed)이
   화면이 아니라 헤더 기준으로 붙는다). ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: #F7F3EC;
  border-bottom: 1px solid var(--site-line);
}
.site-header-inner {
  max-width: 1088px; margin: 0 auto; height: var(--site-header-h); padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.site-logo {
  font-family: 'Noto Serif KR', 'Batang', '바탕', serif; font-size: 23px; font-weight: 600; color: var(--site-navy);
  text-decoration: none; letter-spacing: .01em; flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.site-nav-link {
  font-size: 15px; font-weight: 500; color: var(--site-navy); text-decoration: none;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
}
.site-nav-link:hover { background: rgba(31, 42, 68, .05); }
/* 현재 메뉴 표시 — 포인트 코랄 */
.site-nav-link.is-active { color: var(--site-coral); font-weight: 700; }
/* 헤더 [예약하기] — 주 버튼(코랄 바탕 흰 글, radius 10px·높이 48px) */
.site-header-cta, .site-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: 48px; padding: 0 20px; border-radius: 10px; border: 1.5px solid var(--site-coral);
  background: var(--site-coral); color: #fff; font-size: 15px; font-weight: 700; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.site-header-cta:hover, .site-btn-primary:hover { background: var(--site-coral-hover); border-color: var(--site-coral-hover); }
.site-header-cta { cursor: pointer; }

/* ── [예약하기] 선택 패널: PC는 버튼 아래 드롭 패널, 모바일(640px 이하)은 화면 아래 바텀시트 ── */
.site-book { position: relative; flex-shrink: 0; }
.site-book-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 320; width: 360px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--site-line); border-radius: 14px; box-shadow: 0 16px 36px rgba(31, 42, 68, .14);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.site-book-panel[hidden], .site-book-backdrop[hidden] { display: none; }
.site-book-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 4px; }
.site-book-title { font-family: 'Noto Serif KR', 'Batang', '바탕', serif; font-size: 17px; font-weight: 600; color: var(--site-navy); }
.site-book-close {
  width: 36px; height: 36px; border: none; background: transparent; border-radius: 8px; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--site-navy);
}
.site-book-close:hover { background: rgba(31, 42, 68, .05); }
.site-book-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--site-line); border-radius: 12px;
  background: #fff; color: var(--site-navy); text-decoration: none;
}
.site-book-card:hover, .site-book-card:focus-visible { border-color: var(--site-navy); background: rgba(31, 42, 68, .03); outline: none; }
.site-book-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.site-book-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-book-name { font-size: 16px; font-weight: 700; }
.site-book-desc { font-size: 14px; color: var(--site-sub); line-height: 1.5; }
.site-book-arrow { color: var(--site-coral); font-weight: 700; flex-shrink: 0; }
.site-book-backdrop { position: fixed; inset: 0; z-index: 310; background: rgba(31, 42, 68, .35); }
@media (min-width: 641px) {
  .site-book-backdrop { background: transparent; }
}
@media (max-width: 640px) {
  .site-book-panel {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none;
    border-radius: 18px 18px 0 0; border-bottom: none; padding: 16px 16px max(20px, env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(31, 42, 68, .16);
  }
}

/* ── 접수 화면 전환 탭(/apply·/apply-call 제목 위) ── */
.site-apply-tabs {
  display: flex; gap: 8px; margin: 0 0 16px; font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}
.site-apply-tab {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 44px; padding: 0 10px; border-radius: 10px; border: 1.5px solid #1F2A44; background: transparent;
  color: #1F2A44; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.site-apply-tab:hover { background: rgba(31, 42, 68, .05); }
.site-apply-tab.is-active { background: #1F2A44; color: #fff; }
.site-menu-toggle {
  display: none; flex-shrink: 0; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  padding: 12px 10px; flex-direction: column; justify-content: space-between;
}
.site-menu-toggle span { display: block; height: 2px; width: 100%; background: var(--site-navy); border-radius: 2px; }

@media (max-width: 900px) {
  .site-header-inner { gap: 8px; padding: 0 12px; }
  .site-logo { font-size: 21px; }
  .site-book { margin-left: auto; }
  .site-header-cta { padding: 0 16px; font-size: 14.5px; }
  .site-menu-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 12px 12px;
    background: var(--site-bg); border-bottom: 1px solid var(--site-line);
    box-shadow: 0 10px 20px rgba(31, 42, 68, .06);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav-link { font-size: 16px; padding: 12px 10px; }
}

/* ── 푸터 ── */
.site-footer {
  background: var(--site-navy); color: rgba(255, 255, 255, .72); text-align: center;
  padding: 48px 16px 56px; font-size: 14px; line-height: 1.7;
}
.site-footer-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.site-footer-brand { font-family: 'Noto Serif KR', 'Batang', '바탕', serif; font-size: 18px; font-weight: 600; color: #fff; }
.site-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; }
.site-footer-nav a { color: rgba(255, 255, 255, .88); text-decoration: none; font-size: 14px; }
.site-footer-nav a:hover { color: var(--site-coral); }
.site-footer-nav { text-wrap: balance; }
.site-footer-dot { color: rgba(255, 255, 255, .35); }
.site-footer-links { display: flex; flex-direction: column; gap: 6px; }
.site-footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14px; }
.site-footer-links a:hover { color: var(--site-coral); }
.site-footer-biz { color: rgba(255, 255, 255, .55); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.site-footer-biz-check { color: inherit; text-decoration: underline; }
.site-footer-biz-check:hover { color: var(--site-coral); }
.site-footer-disclaimer { margin: 0; max-width: 520px; text-align: center; color: rgba(255, 255, 255, .42); font-size: 12px; line-height: 1.6; }
