/* =========================================================
   글사유 ON · 사이트 안내창 시안 (2026-11-19)
   브라우저 기본 알림창(alert·confirm)을 대신하는 창 3가지
     1) 안내창(.gd)      : 가운데 창. 단추 1~2개. 로그인 필요·권한·확인/취소·삭제·완료
     2) 짧은 알림(.gt)   : 아래 가운데 작은 띠. 2.4초 뒤 사라짐. 저장·복사 등
     3) 입력 오류         : 창 없이 입력칸 아래 문구 (tokens.css 의 .gs-msg / .gs-note)
   값은 tokens.css 의 var(--gs-…)만 씀. 왼쪽·위쪽 색 막대 없음.
   움직임: 0.2초 흐려짐(opacity)만. 미끄러짐·튀어오름 없음. 동작 줄이기면 끔.
   ========================================================= */

/* ---------- 1) 안내창 ---------- */
.gd-scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(30,42,63,.42);
  opacity: 0; transition: opacity var(--gs-dur) var(--gs-ease); }
.gd-scrim.on { opacity: 1; }
.gd { width: 440px; max-width: 100%; background: var(--gs-white); border-radius: var(--gs-r-card);
  box-shadow: 0 2px 6px rgba(30,42,63,.08), 0 20px 48px rgba(30,42,63,.18);
  padding: 34px 32px 26px; font-family: var(--gs-font); color: var(--gs-text); }
.gd:focus { outline: none; }
.gd-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gs-tint); color: var(--gs-navy); }
.gd-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gd-ic.is-warn { background: var(--gs-amber-tint); color: var(--gs-amber-text); }
.gd-ic.is-done { background: #EDF0F5; color: var(--gs-navy); }
.gd-title { margin-top: 20px; font-size: 22px; font-weight: 800; line-height: 1.4; color: var(--gs-navy); letter-spacing: var(--gs-ls-title); word-break: keep-all; }
.gd-text { margin-top: 8px; font-size: var(--gs-fs-ui); line-height: 1.6; color: var(--gs-text-sub); word-break: keep-all; }
.gd-text b { color: var(--gs-navy); font-weight: 700; }
.gd-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 30px; }
.gd-btns .gs-btn, .gd-btns .gs-btn-line { height: var(--gs-btn-md); min-width: 96px; padding: 0 22px; font-size: 16.5px; }
/* 되돌릴 수 없는 일(삭제)의 단추: 남색. 호박색 주 단추와 구분 */
.gs-btn.is-navy { background: var(--gs-navy); color: #fff; }
.gs-btn.is-navy:hover { background: #2A3954; }

/* ---------- 2) 짧은 알림 ---------- */
.gt { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 1001;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 15px 22px 15px 18px; border-radius: var(--gs-r-item);
  background: var(--gs-navy); color: #fff; font: 600 var(--gs-fs-ui)/1.4 var(--gs-font);
  box-shadow: 0 10px 28px rgba(30,42,63,.25);
  opacity: 0; transition: opacity var(--gs-dur) var(--gs-ease); pointer-events: none; }
.gt.on { opacity: 1; }
.gt svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gs-amber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 휴대폰 (900px 미만) ---------- */
@media (max-width: 899px) {
  .gd { width: 100%; max-width: 400px; padding: 28px 22px 20px; }
  .gd-ic { width: 44px; height: 44px; }
  .gd-title { margin-top: 16px; font-size: 20px; }
  .gd-btns { margin-top: 26px; }
  .gd-btns .gs-btn, .gd-btns .gs-btn-line { flex: 1; min-width: 0; height: 50px; padding: 0 12px; }
  .gt { bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .gd-scrim, .gt { transition: none; } }

/* ---------- 사이트에 붙이며 더한 것 (2026-11-19) ---------- */
/* 옛 화면에 얹혀도 글꼴·여백이 흐트러지지 않게 */
.gd-scrim, .gd-scrim * , .gt, .gt * { box-sizing: border-box; }
.gd-title, .gd-text { padding: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: left; }
.gd-btns button { font-family: var(--gs-font); }
.gd-scrim { z-index: 2500; }      /* 옛 팝업 · 고정 머리말(95~1000) 위, 기다림 화면(3000) 아래 */
.gt { z-index: 2501; }
/* 서버 안내 쪽(bbs/alert.php 등): 뒤에 빈 바탕만 */
html.gd-page, html.gd-page body { background: var(--gs-sand); }
.gd-page-main { min-height: 60vh; }
.gd-scrim.is-static { position: fixed; }
.gd-noscript { padding: 40px; text-align: center; }
/* 08 입력 오류: 옛 입력칸에도 */
.gs-ferr-on { box-shadow: inset 0 0 0 2px var(--gs-error) !important; background-color: var(--gs-error-bg) !important; }
p.gs-ferr { margin: 7px 0 0; font-family: var(--gs-font); line-height: 1.4; text-align: left; }
