/* 그누보드 기본 화면(로그인·문의 관리·글쓰기 등)용 — 헤더·푸터·메뉴는 시안(cases.css 앞부분)과 동일 */
  /* ===== A 신뢰 네이비 (확정) ===== */
  :root {
    --page: #f4f5f7; --surface: #ffffff; --surface-2: #eef1f6;
    --text: #14171f; --text-2: #4a5263; --text-3: #7a8294; --line: #e3e6ec;
    --brand: #163a8a; --brand-2: #2453b8; --brand-soft: #e6ecf8;
    --cta: #d62f2b; --cta-text: #fff;
    --warm: #e8553b; --cool: #3b7be8;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 140px; }
  body { font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; background: var(--page); color: var(--text); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; word-break: keep-all; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

  /* 헤더 (홈과 동일) */
  .hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
  .logo { flex: none; display: block; line-height: 0; }
  .logo img { height: 40px; width: auto; display: block; }
  .nav { display: flex; gap: 36px; font-weight: 600; font-size: 16px; color: var(--text-2); }
  .nav a.on { color: var(--brand); }
  .hdr-cta { display: flex; gap: 10px; align-items: center; }
  .pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
  .pill.cta { background: var(--cta); color: var(--cta-text); }
  .pill.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
  .pill.brand { background: var(--brand); color: #fff; }
  .pill .m { display: none; }
  .menu { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); align-items: center; justify-content: center; }

  .phero .ph { position: relative; }
  .phero .ph img.wm { position: absolute; right: 12px; bottom: 10px; width: auto; height: 17px; object-fit: contain; transform: none; box-sizing: content-box; padding: 4px 7px; border-radius: 7px; background: rgba(188,188,188,.6); }
  @media (max-width: 640px) { .phero .ph img.wm { height: 12px; right: 8px; bottom: 7px; padding: 3px 5px; border-radius: 5px; } }
  /* 페이지 내 탭 (스크롤 이동) */
  .subnav { position: sticky; top: 77px; z-index: 30; background: var(--page); padding: 12px 0; }
  .subnav .in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .subnav .in::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); }
  .subnav a:hover { color: var(--brand); border-color: var(--brand); }

  .crumb { font-size: 14px; color: var(--text-3); padding: 20px 4px 14px; }
  .crumb b { color: var(--text-2); font-weight: 600; }

  .band { background: var(--brand); color: #fff; border-radius: 28px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
  .band h2 { color: #fff; }
  .band p { opacity: .85; margin-top: 10px; }
  
  .band .pill { background: #fff; color: #111; padding: 15px 26px; margin-top: 12px; }

  footer { margin-top: 72px; background: #eceef2; border-top: 1px solid #dde1e8; color: var(--text-3); font-size: 14px; line-height: 1.8; text-align: center; padding: 40px 0 0; }
  footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 0; }
  footer .f-logo { height: 30px; width: auto; display: block; margin: 0 auto 16px; }
  footer .f-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-bottom: 18px; font-weight: 600; color: var(--text-2); }
  footer .f-nav a:hover { color: var(--brand); }
  footer .f-info { display: grid; gap: 2px; }
  footer .f-info span { white-space: nowrap; }
  footer .f-info .sep { opacity: .4; margin: 0 8px; }
  footer .f-hours { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; color: var(--text-2); }
  footer .f-copy { margin-top: 24px; width: 100%; border-top: 1px solid #dde1e8; padding: 16px 0 24px; font-size: 13px; color: var(--text-3); }
  @media (max-width: 640px) { footer { margin-top: 48px; padding-top: 32px; font-size: 13px; } footer .f-info span { white-space: normal; } footer .f-info .sep { display: none; } footer .f-info p span { display: block; } footer .f-logo { height: 26px; } }

  /* 반응형 */
  /* ===== 휴대폰 메뉴 (☰) ===== */
  button.menu { cursor: pointer; font: inherit; font-size: 18px; color: var(--text); }
  .drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(10,14,24,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(360px, 88vw); background: var(--surface); box-shadow: -20px 0 50px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; overflow-y: auto; }
  body.menu-open { overflow: hidden; }
  body.menu-open .drawer-bg { opacity: 1; pointer-events: auto; }
  body.menu-open .drawer { transform: none; }
  .drawer-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
  .drawer-top img { height: 30px; width: auto; display: block; }
  .drawer-close { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 20px; cursor: pointer; color: var(--text); }
  .drawer nav { padding: 8px 12px; }
  .drawer .grp { padding: 12px 8px 4px; font-size: 13px; font-weight: 700; color: var(--text-3); }
  .drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 12px; border-radius: 12px; font-size: 17px; font-weight: 700; color: var(--text); }
  .drawer nav a:hover, .drawer nav a.on { background: var(--brand-soft); color: var(--brand); }
  .drawer nav a::after { content: "›"; font-size: 20px; color: var(--text-3); }
  .drawer nav a.sub { font-size: 16px; font-weight: 600; padding-left: 24px; }
  .drawer-foot { margin-top: auto; padding: 18px 20px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
  .drawer-foot .pill { width: 100%; justify-content: center; padding: 14px; font-size: 17px; }
  .drawer-foot p { font-size: 14px; color: var(--text-2); margin-top: 12px; line-height: 1.6; }


/* 반응형 헤더 (시안 공통) */
@media (max-width: 1024px) { .nav { display: none; } .menu { display: inline-flex; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hdr .wrap { height: 64px; }
  .logo img { height: 32px; }
  .menu { width: 40px; height: 40px; }
}
.hdr-cta { display: none; }
.hdr .nav { margin-left: auto; }
@media (max-width: 1024px) { .hdr-cta { display: flex; margin-left: auto; } }

/* 그누보드 화면을 흰 패널 안에 표시 */
main.g5-page { padding-top: 24px; }
main.g5-page > * { font-size: 15px; }
main.g5-page #bo_list, main.g5-page #bo_v, main.g5-page #bo_w, main.g5-page .mbskin, main.g5-page #mb_login, main.g5-page .new_win, main.g5-page #fsearch, main.g5-page #sch_res_ov { background: var(--surface); border-radius: 22px; padding: 32px; }
main.g5-page h1, main.g5-page h2 { font-family: inherit; }
main.g5-page a { color: inherit; }
@media (max-width: 640px) { main.g5-page #bo_list, main.g5-page #bo_v, main.g5-page #bo_w { padding: 20px 16px; border-radius: 18px; } }

/* 회원가입을 받지 않으므로 로그인 화면의 '회원가입' 탭 숨김 (관리자 전용 로그인) */
#mb_login .join, .mbskin a.join { display: none !important; }
.mb_log_cate h2 { width: 100% !important; }
