/* ==========================================================================
   Shell — Header / Mobile nav / Footer
   헤더부터 네이비로 브랜드를 명확히 드러낸다.
   ========================================================================== */

/* --- Header ------------------------------------------------------------- */
.hd { position: sticky; top: 0; z-index: 90; background: var(--navy); transition: background var(--t-base), box-shadow var(--t-base); }
.hd.is-stuck { background: var(--navy-deep); box-shadow: 0 12px 30px -22px rgba(0,0,0,.9); }
.hd .container { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; margin-right: 4px; }
/* 교표 — 공식 원형 크레스트.
   링 색(#403c74)이 브랜드 네이비와 가까워 네이비 헤더 위에서는 묻힌다.
   흰 원판을 깔아 크레스트가 떠 보이게 한다(어두운 바탕 위 크레스트의 통상 처리).
   40px 에서는 둘레 글자가 읽히지 않지만, 작은 크기의 교표는 '읽는 것'이 아니라
   '알아보는 것'이라 그대로 둔다. */
.brand__emblem {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(232,198,90,.45);
  display: grid; place-items: center; overflow: hidden;
}
.brand__emblem img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.045em; white-space: nowrap; }

.gnb { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.gnb__link {
  position: relative; display: inline-flex; align-items: center; height: 38px;
  padding: 0 clamp(8px, .9vw, 13px); border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 500; color: rgba(255,255,255,.76);
  letter-spacing: -0.035em; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.gnb__link:hover { background: var(--navy-2); color: #fff; }
.gnb__link[aria-current="page"] { color: var(--yellow); font-weight: 600; }
.gnb__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 16px; height: 2px;
  border-radius: 2px; background: var(--yellow); transform: translateX(-50%);
}

.hd__act { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--line-navy); }
.hd__login { font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.78); padding: 10px 4px; }
.hd__login:hover { color: #fff; }
/* 로그아웃은 실제 동작이라 button 이다. 링크와 같은 모양을 유지한다. */
.hd__logout { border: 0; background: none; font-family: inherit; cursor: pointer; }
.hd__logout:disabled { opacity: .5; cursor: default; }
.hd__act .btn-yellow { min-height: 40px; padding: 0 17px; font-size: 14.5px; border-radius: var(--r-sm); }

.hd__burger { display: none; width: 42px; height: 42px; margin-left: auto; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.hd__burger:hover { background: var(--navy-2); }
.hd__burger span { display: block; width: 20px; height: 1.6px; border-radius: 2px; background: #fff; position: relative; }
.hd__burger span::before, .hd__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.6px; border-radius: 2px; background: #fff; }
.hd__burger span::before { top: -6px; }
.hd__burger span::after  { top: 6px; }

/* --- 모바일 메뉴 --------------------------------------------------------- */
.mnav { position: fixed; inset: 0; z-index: 95; background: var(--navy); display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform .42s var(--ease); overflow-y: auto; }
.mnav.is-open { transform: none; }
.mnav__top { height: var(--header-h); flex: none; display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); border-bottom: 1px solid var(--line-navy); }
.mnav__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); font-size: 26px; line-height: 1; color: #fff; }
.mnav__close:hover { background: var(--navy-2); }
.mnav__list { padding: 14px var(--gutter) 24px; display: grid; gap: 4px; }
.mnav__list a { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-radius: var(--r-md);
  background: var(--navy-2); font-size: 17px; font-weight: 600; color: #fff; }
.mnav__list a:hover { background: var(--navy-3); }
.mnav__list a .arw { width: 15px; height: 15px; color: var(--yellow); }
.mnav__util { margin-top: auto; padding: 18px var(--gutter) 32px; display: flex; gap: 10px; }
.mnav__util a { flex: 1; justify-content: center; }
.mnav__util .btn-soft { background: var(--navy-2); color: #fff; }
.mnav__util .btn-soft:hover { background: var(--navy-3); }

/* --- 예시 콘텐츠 고지 ---------------------------------------------------- */
.notice-bar { background: var(--white); padding-bottom: clamp(38px, 4vw, 60px); }
.notice-bar__in { background: var(--off); border-radius: var(--r-md); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.notice-bar__in .pill { flex: none; margin-top: 2px; background: #fff; }
.notice-bar p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.notice-bar b { font-weight: 700; color: var(--navy); }
.notice-bar__in p { flex: 1 1 320px; }
.notice-bar__links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.notice-bar__links a, .notice-bar__links span {
  display: inline-flex; align-items: center;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  padding: 7px 12px; border-radius: var(--r-pill); background: #fff;
  border: 1px solid var(--line); color: var(--navy-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.notice-bar__links a:hover { border-color: var(--navy-3); color: var(--navy); background: var(--off); }
/* 시안 화면 목록이 길어져 '공개 화면 / 관리자' 로 묶는다. 묶음 라벨은
   링크가 아니므로 테두리 없이 글자색만으로 구분한다. */
.notice-bar__g { font-size: 11.5px; font-weight: 700; color: var(--ink-3); align-self: center; }
.notice-bar__g:not(:first-child) { margin-left: 10px; }
.notice-bar__links span { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --- Footer ------------------------------------------------------------- */
.ft { background: var(--navy); color: var(--on-navy); }
.ft__slogan { padding: clamp(46px, 4.8vw, 72px) 0 clamp(36px, 3.8vw, 54px); text-align: center; }
.ft__slogan p { font-family: var(--font-quote); font-weight: 500; font-size: clamp(18px, 1.9vw, 25px); line-height: 1.62; letter-spacing: -0.035em; color: #fff; }
.ft__slogan b { font-weight: 600; color: var(--yellow); }

.ft__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: clamp(38px, 4vw, 58px); }
.ft__org { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.04em; }
.ft__contact { margin-top: 18px; font-size: 14px; line-height: 1.9; }
.ft__contact dt { font-size: 12.5px; color: rgba(232,198,90,.78); }
.ft__contact dd { margin: 0 0 11px; color: var(--on-navy-2); }
.ft__contact dd em { font-style: normal; border-bottom: 1px dashed rgba(255,255,255,.26); padding-bottom: 2px; }
.ft__col h3 { font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 15px; letter-spacing: -0.03em; }
.ft__col li + li { margin-top: 10px; }
.ft__col a { font-size: 14.5px; color: var(--on-navy); }
.ft__col a:hover { color: var(--yellow); }

.ft__legal { border-top: 1px solid var(--line-navy); padding: 22px 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ft__legal-links { display: flex; gap: 20px; font-size: 13.5px; }
.ft__legal-links a:first-child { color: #fff; font-weight: 600; }
.ft__copy { font-size: 12.5px; color: var(--on-navy-2); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1240px) { .gnb__link { font-size: 14.5px; padding-inline: 8px; } }
@media (max-width: 1100px) {
  .gnb, .hd__act { display: none; }
  .hd__burger { display: flex; }
  .ft__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .brand__name { font-size: 16px; }
  .brand__emblem { width: 36px; height: 36px; }
  .ft__grid { grid-template-columns: 1fr; gap: 26px; }
  .ft__legal { flex-direction: column; align-items: flex-start; }
}
