/* ═══════════════════════════════════════════════════════════════
   네네쌤에듀 HQ — 팝업 · 공지 · 문의 성공 (턱시도 디자인 시스템)
   변수(:root --black/--orange/--hair-d ...)는 index.html 인라인 <style>에서 상속.
   ═══════════════════════════════════════════════════════════════ */

/* ── 문의 접수 완료 인라인 문구(스펙 G) ────────────────────── */
/* 폼은 항상 그 자리에 살아있고(교체 없음), 완료 문구만 버튼 아래에서 스치듯 뜬 뒤 자연 페이드아웃.
   .lf-status / .lf-status.is-ok(초록) 기본색은 index.html 인라인 style에 정의됨 — 여기선 페이드만 보강. */
.lf-status{transition:opacity .6s ease}
.lf-status.is-fading{opacity:0}

/* ── 공지사항 섹션 (게시판 표뷰) ───────────────────────────── */
.hq-notices{background:var(--black);color:#e8e9ec;border-top:1px solid var(--hair-d)}
.hq-notices .eyebrow{margin-bottom:20px}
#hq-notices-title{
  font-family:var(--display);font-weight:400;color:#fff;
  font-size:clamp(28px,4.4vw,46px);line-height:1.2;
  margin-bottom:clamp(30px,4vw,48px);
}
.hq-nt-table{
  width:100%;max-width:860px;border-collapse:collapse;font-family:var(--body);
  border-top:1px solid var(--hair-d);
}
.hq-nt-table thead th{
  text-align:left;font-family:var(--body);font-weight:600;font-size:12.5px;letter-spacing:.04em;
  color:var(--gray-d);padding:12px clamp(10px,2vw,18px);border-bottom:1px solid var(--hair-d);
}
.hq-nt-table thead .col-no{width:66px;text-align:center}
.hq-nt-table thead .col-date{width:124px;text-align:right;white-space:nowrap}

.hq-nt-row{cursor:pointer;transition:background .18s ease}
.hq-nt-row > td{
  padding:15px clamp(10px,2vw,18px);border-bottom:1px solid var(--hair-d);
  font-size:15px;color:#e8e9ec;vertical-align:middle;
}
.hq-nt-row:hover{background:rgba(255,255,255,.045)}
.hq-nt-row:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}
.hq-nt-no{width:66px;text-align:center;color:var(--gray-d);font-size:13.5px;font-variant-numeric:tabular-nums}
.hq-nt-td-title{color:#f1f2f4;line-height:1.5}
.hq-nt-row:hover .hq-nt-ttl{color:#fff}
.hq-nt-pin{
  display:inline-block;margin-right:8px;vertical-align:middle;
  font-family:var(--display);font-weight:400;font-size:11px;letter-spacing:.06em;
  color:var(--orange);border:1px solid var(--orange);border-radius:4px;
  padding:2px 7px 3px;line-height:1;
}
.hq-nt-date{width:124px;text-align:right;white-space:nowrap;color:var(--gray-d);font-size:13px;font-variant-numeric:tabular-nums}

/* ── 공지 상세 모달 ────────────────────────────────────────── */
.hq-ntm-overlay{
  position:fixed;inset:0;z-index:130;                 /* 팝업(120)보다 위, 메뉴(150)보다 아래 */
  display:flex;align-items:center;justify-content:center;
  padding:20px;overflow-y:auto;
  background:rgba(6,7,10,.72);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .3s ease;
}
.hq-ntm-overlay.show{opacity:1}
.hq-ntm{
  position:relative;width:100%;max-width:560px;margin:auto;
  background:var(--black-2);border:1px solid var(--hair-d);border-radius:14px;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  padding:clamp(26px,4vw,40px) clamp(22px,3.4vw,34px);
  transform:translateY(14px) scale(.98);opacity:0;
  transition:transform .32s cubic-bezier(.2,.7,.2,1),opacity .32s ease;
}
.hq-ntm-overlay.show .hq-ntm{transform:none;opacity:1}
.hq-ntm-x{
  position:absolute;top:10px;right:10px;
  width:34px;height:34px;border-radius:999px;border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;line-height:1;color:#fff;
  background:rgba(255,255,255,.08);transition:background .2s ease;
}
.hq-ntm-x:hover{background:rgba(255,255,255,.16)}
.hq-ntm-x:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.hq-ntm-title{
  font-family:var(--display);font-weight:400;font-size:clamp(20px,3vw,26px);
  line-height:1.32;color:#fff;margin:0 34px 0 0;
}
.hq-ntm-date{
  margin-top:8px;padding-bottom:16px;border-bottom:1px solid var(--hair-d);
  font-size:13px;color:var(--gray-d);font-variant-numeric:tabular-nums;
}
.hq-ntm-img{display:block;width:100%;max-width:100%;height:auto;border-radius:10px;margin:20px 0 4px}
.hq-ntm-body{
  margin-top:18px;font-size:15px;line-height:1.75;color:var(--gray-d);
  white-space:pre-line;                 /* 줄바꿈 보존 */
}

/* ── 팝업 모달 ─────────────────────────────────────────────── */
.hq-pop-overlay{
  position:fixed;inset:0;z-index:120;                 /* 메뉴 오버레이(150)보다 아래 */
  display:flex;align-items:center;justify-content:center;
  padding:20px;overflow-y:auto;
  background:rgba(6,7,10,.72);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .34s ease;
}
.hq-pop-overlay.show{opacity:1}

.hq-pop-stack{
  display:flex;flex-direction:column;align-items:center;gap:16px;
  width:100%;max-width:380px;margin:auto;
}

.hq-pop-card{
  position:relative;width:100%;
  background:var(--black-2);border:1px solid var(--hair-d);border-radius:14px;
  box-shadow:0 24px 60px rgba(0,0,0,.5);overflow:hidden;
  transform:translateY(14px) scale(.98);opacity:0;
  transition:transform .34s cubic-bezier(.2,.7,.2,1),opacity .34s ease;
}
.hq-pop-overlay.show .hq-pop-card{transform:none;opacity:1}
.hq-pop-card.leaving{opacity:0;transform:translateY(8px) scale(.98)}
/* 클릭 가능한 카드(공지=상세모달 / 이벤트=링크) — 절제된 어포던스 */
.hq-pop-card.is-clickable{cursor:pointer;transition:transform .34s cubic-bezier(.2,.7,.2,1),opacity .34s ease,border-color .2s ease}
.hq-pop-card.is-clickable:hover{border-color:rgba(255,255,255,.34)}

.hq-pop-x{
  position:absolute;top:8px;right:8px;z-index:2;
  width:34px;height:34px;border-radius:999px;border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;line-height:1;color:#fff;
  background:rgba(0,0,0,.4);transition:background .2s ease;
}
.hq-pop-x:hover{background:rgba(0,0,0,.66)}
.hq-pop-x:focus-visible{outline:2px solid var(--orange);outline-offset:2px}

.hq-pop-content{display:flex;flex-direction:column}
.hq-pop-img{display:block;width:100%;height:auto;object-fit:cover}
.hq-pop-card.is-text .hq-pop-content{padding:clamp(26px,4vw,34px) clamp(22px,3vw,28px) 8px}
.hq-pop-card.is-image .hq-pop-title{padding:16px clamp(20px,3vw,24px) 0}

.hq-pop-title{
  /* james 핀셋: 본문(14.5px) 대비 과대 → 밸런스 축소 */
  font-family:var(--display);font-weight:400;font-size:16.5px;line-height:1.35;color:#fff;
}
.hq-pop-body{
  margin-top:12px;font-size:14.5px;line-height:1.7;color:var(--gray-d);
  white-space:pre-line;                 /* 줄바꿈 보존 */
  max-height:44vh;overflow-y:auto;
}
.hq-pop-link{
  align-self:flex-start;margin:16px clamp(20px,3vw,24px) 0;
  font-family:var(--display);font-weight:400;font-size:14px;letter-spacing:.04em;
  color:var(--black);background:#fff;text-decoration:none;
  padding:10px 18px;border-radius:6px;transition:background .2s ease,color .2s ease;
}
.hq-pop-card.is-text .hq-pop-link{margin-left:clamp(22px,3vw,28px)}
.hq-pop-link:hover{background:var(--orange);color:#fff}

.hq-pop-dismiss{
  display:flex;align-items:center;gap:8px;cursor:pointer;
  padding:14px clamp(20px,3vw,24px);margin-top:8px;
  border-top:1px solid var(--hair-d);
  font-size:13px;color:var(--gray-d);
}
.hq-pop-dismiss input{accent-color:var(--orange);width:15px;height:15px;cursor:pointer}
.hq-pop-dismiss:hover{color:#c9cdd6}

/* ── 모바일 ────────────────────────────────────────────────── */
@media(max-width:560px){
  .hq-pop-stack{max-width:none;width:90vw;max-width:340px}
  .hq-pop-title{font-size:15px}
  /* 공지 표: 번호 열 숨김 */
  .hq-nt-table thead .col-no,.hq-nt-no{display:none}
  .hq-nt-row > td{padding:14px 8px;font-size:14.5px}
  .hq-nt-table thead th{padding:10px 8px}
  .hq-nt-table thead .col-date,.hq-nt-date{width:auto;min-width:88px}
}

/* ── 모션 최소화 존중 ──────────────────────────────────────── */
@media(prefers-reduced-motion:reduce){
  .hq-pop-overlay,.hq-pop-card,.hq-ntm-overlay,.hq-ntm,.hq-nt-row,.lf-status{transition:none!important}
  .hq-pop-card,.hq-ntm{transform:none;opacity:1}
}
