/* ==========================================================================
   경성고등학교 총동문회 — Design Foundation
   딥 네이비 브랜드 + 차분한 옐로우 포인트
   --------------------------------------------------------------------------
   컬러 비중 기준 — 네이비 35% / 화이트·크림 50% / 옐로우 15%
   옐로우는 '중요한 CTA · 활성 상태 · 섹션 포인트'에만 전략적으로 쓴다.
   ========================================================================== */

@font-face {
  font-family: "Pretendard Variable";
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Navy — 브랜드 기반 */
  --navy:      #172F4B;   /* Main Navy */
  --navy-2:    #294866;   /* Secondary Navy */
  --navy-3:    #3C5F80;   /* 테두리 · 호버 */
  --navy-deep: #112640;   /* 헤더 고정 시 */

  /* Yellow — 포인트 */
  --yellow:    #E8C65A;   /* Muted Yellow */
  --yellow-2:  #F5E8AB;   /* Light Yellow */
  --yellow-3:  #D9B341;   /* 호버 */

  /* Surface */
  --white: #FFFFFF;
  --cream: #F5F0DD;
  --off:   #F6F7F8;
  --ph-bg: #E7EAEE;       /* 이미지 자리 */

  /* Ink */
  --ink:   #172F4B;
  --ink-2: #566879;
  --ink-3: #8894A2;
  --on-navy:   rgba(255,255,255,.78);
  --on-navy-2: rgba(255,255,255,.58);

  /* Line */
  --line:   #E3E6EA;
  --line-2: #EEF0F3;
  --line-cream: #E7E0C6;
  --line-navy:  rgba(255,255,255,.14);

  /* Radius — 역할별로 다른 값 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(23,47,75,.04), 0 6px 18px -10px rgba(23,47,75,.18);
  --sh-2: 0 2px 6px rgba(23,47,75,.06), 0 20px 44px -18px rgba(23,47,75,.26);
  --sh-3: 0 10px 40px -14px rgba(23,47,75,.3);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-quote: "Noto Serif KR", serif;   /* 브랜드 선언문에만 */

  --container: 1240px;
  --gutter: 36px;
  --header-h: 74px;

  --ease: cubic-bezier(.22,.68,.36,1);
  --t-fast: .18s var(--ease);
  --t-base: .3s var(--ease);
  --t-slow: .6s var(--ease);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 16px; font-weight: 400;
  line-height: 1.68; letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* --- 3. Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sect { padding-block: clamp(54px, 5.4vw, 88px); }
.bg-cream { background: var(--cream); }
.bg-off   { background: var(--off); }
.bg-navy  { background: var(--navy); color: #fff; }

/* --- 4. Type ------------------------------------------------------------ */
.h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.28; letter-spacing: -0.042em; color: var(--navy); text-wrap: balance; }
.h2 { font-size: clamp(23px, 2.3vw, 31px); font-weight: 700; line-height: 1.34; letter-spacing: -0.038em; color: var(--navy); text-wrap: balance; }
.h3 { font-size: 19px; font-weight: 600; line-height: 1.44; letter-spacing: -0.03em; color: var(--navy); }
.lede { font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.72; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.on-navy .h2, .on-navy .h3 { color: #fff; }

/* 섹션 머리 */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.shead__label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 11px; font-size: 13.5px; font-weight: 600; color: var(--navy-2); }
.shead__label::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--yellow); }
.shead__sub { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.on-navy .shead__label { color: var(--yellow); }
.on-navy .shead__sub { color: var(--on-navy); }

/* --- 5. 칩 / 라벨 ------------------------------------------------------- */
.tagchip {
  display: inline-flex; align-items: center; gap: 7px; height: 33px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--cream); color: var(--navy);
  font-size: 13.5px; font-weight: 600;
}
.tagchip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow-3); }
.tagchip--navy { background: var(--navy-2); color: #fff; }
.tagchip--navy::before { background: var(--yellow); }

.pill { display: inline-flex; align-items: center; height: 27px; padding: 0 11px; border-radius: var(--r-sm); background: var(--off); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pill--cream { background: var(--cream); color: var(--navy); }
.pill--yellow { background: var(--yellow-2); color: var(--navy); }

.grade { display: inline-flex; align-items: center; height: 25px; padding: 0 10px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 700; }
.grade--vip { background: var(--navy); color: var(--yellow); }
.grade--premium { background: var(--yellow-2); color: var(--navy); }
.grade--basic { display: none; }
/* display 를 주는 컴포넌트는 UA 스타일시트의 [hidden]{display:none} 을 이겨버린다.
   JS 가 .hidden = true 로 숨기는 자리이므로 명시적으로 눌러 준다. */
.grade[hidden] { display: none; }

.tags { font-size: 14px; color: var(--ink-2); }
.tags span + span::before { content: "·"; margin: 0 6px; color: var(--ink-3); }

.place { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.place svg { width: 14px; height: 14px; flex: none; }

/* --- 6. 버튼 — 역할마다 다른 형태 --------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }

/* 옐로우 — 페이지에서 가장 중요한 행동에만 */
.btn-yellow { min-height: 50px; min-width: 104px; padding: 0 26px; border-radius: var(--r-md); background: var(--yellow); color: var(--navy); font-size: 16px; font-weight: 700; }
.btn-yellow:hover { background: var(--yellow-3); }

.btn-primary { min-height: 48px; padding: 0 24px; border-radius: var(--r-md); background: var(--navy); color: #fff; font-size: 15.5px; }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--sh-1); }

.btn-soft { min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); background: var(--off); color: var(--navy); font-size: 15px; }
.btn-soft:hover { background: var(--cream); }

.btn-line { min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--navy-2); font-size: 14px; }
.btn-line:hover { border-color: var(--navy-3); color: var(--navy); background: var(--off); }
.btn-line--call:hover { background: var(--yellow-2); border-color: var(--yellow); color: var(--navy); }
.btn-line svg { width: 15px; height: 15px; }

.btn-text { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; font-weight: 600; color: var(--navy); }
.btn-text .arw { transition: transform var(--t-base); }
.btn-text:hover { color: var(--navy-2); }
.btn-text:hover .arw { transform: translateX(4px); }
.btn-text--on-navy { color: var(--yellow); }
.btn-text--on-navy:hover { color: #fff; }

.arw { width: 16px; height: 16px; flex: none; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* --- 7. 아이콘 ---------------------------------------------------------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-chip {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--off); color: var(--navy-2);
  transition: background var(--t-base), color var(--t-base);
}
.ic-chip .ic { width: 23px; height: 23px; }

/* --- 8. 이미지 자리 ------------------------------------------------------ */
.ph { position: relative; overflow: hidden; border-radius: inherit; background: var(--ph-bg); display: grid; place-items: center; text-align: center; }
.ph--navy { background: rgba(255,255,255,.07); }
.ph__mark { width: 26px; height: 26px; margin: 0 auto 9px; color: var(--ink-3); stroke: currentColor; stroke-width: 1.3; fill: none; }
.ph--navy .ph__mark { color: rgba(232,198,90,.75); }
.ph__t { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.ph--navy .ph__t { color: rgba(255,255,255,.76); }
.ph__s { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.ph--navy .ph__s { color: rgba(255,255,255,.5); }
.ph--sm .ph__mark { width: 20px; height: 20px; margin-bottom: 5px; }
.ph--sm .ph__t { font-size: 11.5px; }

.frame { position: relative; overflow: hidden; }
.frame .ph { position: absolute; inset: 0; transition: transform var(--t-slow); }
.frame:hover .ph { transform: scale(1.04); }

/* --- 9. 모션 ------------------------------------------------------------ */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}

/* --- 10. 접근성 --------------------------------------------------------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: 14px 20px; font-size: 15px; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1023px) { :root { --gutter: 24px; } }
@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 62px; }
  .shead { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
}

/* --- 11. 아이콘 버튼 — 상태별 시각 규칙 ----------------------------------
   Default  : 배경·테두리 없음 / 차분한 그레이네이비
   Hover    : 은은한 크림 면 + 네이비 아이콘
   Selected : 네이비 면 + 옐로우 아이콘 (색 + 면 변화로 이중 구분)
   Focus    : 옐로우 아웃라인 (키보드 접근)
   Disabled : 저대비 그레이 · 상호작용 차단
   전환은 180ms 로 통일.
   ----------------------------------------------------------------------- */
.icbtn {
  position: relative;
  width: 42px; height: 38px; display: inline-grid; place-items: center;
  border-radius: var(--r-sm); background: transparent; color: var(--ink-3);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.icbtn .ic { width: 22px; height: 22px; }
.icbtn:hover { background: var(--cream); color: var(--navy); }
.icbtn.is-on, .icbtn[aria-pressed="true"] { background: var(--navy); color: var(--yellow); }
.icbtn.is-on:hover, .icbtn[aria-pressed="true"]:hover { background: var(--navy-2); color: var(--yellow); }
.icbtn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.icbtn[disabled], .icbtn[aria-disabled="true"] { color: #C4CAD1; background: transparent; pointer-events: none; }

.segmented { display: inline-flex; align-items: center; gap: 4px; }

/* 아이콘 + 라벨 조합 버튼 (모바일 도구 막대 등) */
.icbtn-l { width: auto; padding: 0 14px; gap: 8px; grid-auto-flow: column; font-size: 14.5px; font-weight: 600; color: var(--navy-2); background: var(--off); }
.icbtn-l:hover { background: var(--cream); color: var(--navy); }

/* --- 검색어 하이라이트 ------------------------------------------------- */
.hl {
  background: var(--yellow-2, #F2C75C);
  color: var(--navy);
  border-radius: 3px;
  padding: 0 1px;
  font-weight: 700;
  box-decoration-break: clone;
}

/* --- 12. 상태 색 · 상태 배지 ---------------------------------------------
   운영 화면(승인 대기 · 처리 상태)에서만 쓰는 고정 색입니다. 업종·등급 등
   '분류'를 나타내는 데 재사용하지 않습니다 — 상태색이 분류색을 흉내내면
   둘 다 못 읽습니다.

   적/녹(승인↔반려)은 적록이상에서 ΔE 4.3 으로 색만으로는 구분되지 않습니다.
   이는 상태색 의미에 내재된 한계이므로(참조 팔레트도 동일) 배지는 항상
   '아이콘 + 한글 라벨'을 함께 출력해 색에 의존하지 않게 합니다.
   보류는 '아직 판단 전'이라는 뜻이므로 색을 주지 않고 중립 그레이로 둡니다.

   배지 글자 대비(WCAG) — 승인 5.74 · 대기 4.92 · 반려 7.06 · 보류 5.17 : 전부 AA 통과
   ----------------------------------------------------------------------- */
:root {
  --st-ok:      #1E7A46;   /* 승인 */
  --st-ok-bg:   #E8F3EC;
  --st-ok-tx:   #1A6B3E;

  --st-wait:    #C08A10;   /* 대기 */
  --st-wait-bg: #FBF2DC;
  --st-wait-tx: #8A6209;

  --st-no:      #A33327;   /* 반려 */
  --st-no-bg:   #F7EAE8;
  --st-no-tx:   #8E2C21;

  --st-hold-bg: #F1F3F5;   /* 보류 — 중립 */
  --st-hold-tx: #566879;
}

.sbadge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 27px; padding: 0 10px 0 8px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.sbadge svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sbadge--ok   { background: var(--st-ok-bg);   color: var(--st-ok-tx); }
.sbadge--wait { background: var(--st-wait-bg); color: var(--st-wait-tx); }
.sbadge--no   { background: var(--st-no-bg);   color: var(--st-no-tx); }
.sbadge--hold { background: var(--st-hold-bg); color: var(--st-hold-tx); }
