/* ══════════════════════════════════════════════════════════════════
   THE STEPPER 기본 규칙 + 하위 페이지 공통 부품 (2026-11-10, css/stepper-a.css 를 대체)
   쓰는 곳: index(기본 규칙만), contact·gallery·schedule·staff(기본 + 부품).
   색·글꼴·글자 크기·모서리·그림자는 css/stepper-tokens.css 변수만 쓴다. 규칙: docs/renewal/design-rules.md
   부품 모양은 메인 첫 화면 아래 구역(.mn, css/stepper-main.css)과 같은 계열이다. 첫 화면(.tg-hero)은 흉내 내지 않는다.
   휴대폰 배치 899px 이하 — 기준 출처: css/stepper-tokens.css 주석·js/stepper-layout.js MOBILE_MAX
   ══════════════════════════════════════════════════════════════════ */

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg); color: var(--c-navy);
  font-family: var(--f-sans); font-size: var(--fs-body); line-height: 1.7;
  overflow-x: hidden; word-break: keep-all; overflow-wrap: break-word;
}
body.sa-scroll-locked { overflow: hidden; }   /* 전체 화면 메뉴·사진 크게 보기가 열렸을 때 뒤 화면 잠금(js/stepper-layout.js, gallery) */
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 900; }     /* 첫 화면(.tg-hero) 계산값이 바뀌지 않도록 옛 기본값과 같게 둔다 */
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ══ 하위 페이지 부품(sb-) ══ */
.sb :where(p, figure, blockquote, ol, ul, dl, dd) { margin: 0; }
.sb :where(ol, ul) { list-style: none; padding: 0; }
.sb a { color: var(--c-blue); }
.sb a:hover { color: var(--c-blue-hover); }

.sb-wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sb-sec { padding: var(--sec-py) 0; }

/* 페이지 제목 영역: 라벨(영문은 Barlow 기울임, 한글은 Noto Sans, 14px 빨강) → 제목(Noto Serif KR 900 남색) → 설명 */
.sb-head { margin-bottom: 48px; }
.sb-label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 16px;
  font-size: var(--fs-small); font-weight: 700; line-height: 1.4; color: var(--c-red);
}
.sb-label__en { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: var(--fs-small); letter-spacing: .04em; }
.sb-title { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-section); line-height: 1.25; letter-spacing: -.02em; color: var(--c-navy); }
.sb-lead { margin-top: 16px; max-width: 720px; font-size: var(--fs-lead); line-height: 1.7; color: var(--c-sub); }

/* 버튼: 파랑 채움·파랑 선형 알약 두 종류만 */
.sb-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 var(--btn-px); border: 0; border-radius: var(--r-pill);
  font-family: var(--f-sans); font-size: var(--fs-body); font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.sb .sb-btn--fill, .sb-btn--fill { background: var(--c-blue); color: var(--c-surface); }
.sb .sb-btn--fill:hover, .sb-btn--fill:hover { background: var(--c-blue-hover); color: var(--c-surface); }
.sb .sb-btn--line, .sb-btn--line { background: var(--c-surface); color: var(--c-blue); box-shadow: var(--btn-line); }
.sb .sb-btn--line:hover, .sb-btn--line:hover { color: var(--c-blue-hover); box-shadow: inset 0 0 0 1.5px var(--c-blue-hover); }

/* 카드 */
.sb-card { background: var(--c-surface); border-radius: var(--r-card); box-shadow: var(--sh-card); }

/* 탭(알약 단추 묶음) — 선택된 탭은 파랑 채움, 나머지는 파랑 선형 */
.sb-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-tab {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h); padding: 0 var(--btn-px); border: 0; border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-blue); box-shadow: var(--btn-line);
  font-family: var(--f-sans); font-size: var(--fs-body); font-weight: 700; line-height: 1.2; cursor: pointer;
}
.sb-tab:hover { color: var(--c-blue-hover); }
.sb-tab.active { background: var(--c-blue); color: var(--c-surface); box-shadow: none; }

/* 안내 문구(불러오는 중·없음·오류) */
.sb-msg { padding: 32px; text-align: center; color: var(--c-sub); }

/* 일정 목록(세미나) — 메인 07 세미나 목록과 같은 형식 */
.sb-date { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-blue); }

/* ── 휴대폰 배치 899px 이하 — 기준 출처: css/stepper-tokens.css 주석·js/stepper-layout.js MOBILE_MAX ── */
@media (max-width: 899px) {
  .sb-wrap { padding: 0 var(--gutter-m); }
  .sb-sec { padding: var(--sec-py-m) 0; }
  .sb-head { margin-bottom: 32px; }
  .sb-title { font-size: var(--fs-section-m); }
  .sb-lead { font-size: var(--fs-body); }
  .sb-btn, .sb-tab { height: var(--btn-h-m); }
  .sb-btns .sb-btn { flex: 1 1 100%; }
  .sb-card { border-radius: var(--r-card-m); box-shadow: var(--sh-card-m); }
  .sb-msg { padding: 24px 20px; }
}
