/* layout.css — 기본 레이아웃 · scope: body.site
 * cms-init 자동 생성 · 자기완결형(외부 CMS 리소스 없음).
 * 레이아웃 클래스는 프로젝트 접두사 없이 참조 사이트 규칙대로 무접두사 일반 클래스
 *   (.header · .gnb · .footer …). gm-/gs- 금지(공통 카탈로그 전용).
 * 데스크탑 기준. 반응형: layout-tb.css(≤1024) · layout-mo.css(≤768).
 * 테마 색·치수는 body.site 의 --dl-* 변수로 조정.
 */

.site {
  --dl-primary: #0d3123;
  --dl-primary-dark: #082219;
  --dl-text: #222;
  --dl-text-sub: #555;
  --dl-line: #e2e6ea;
  --dl-bg-soft: #f5f7f9;
  --dl-header-h: 100px;
  --dl-max: 1520px;
  overflow-x: clip;
}

/* ── 공통 리셋(레이아웃 한정) ── */
.site a {
  /*color: inherit;*/
  text-decoration: none;
}
.header *,
.footer *,
.sub-visual *,
.sub-body * {
  box-sizing: border-box;
}

/* ── 컨테이너 inner — 폭 제한이 필요한 영역의 공통 래퍼(가운데 정렬, 기본 1440px) ──
 *   전폭 밴드(header·sub-visual·전체메뉴·footer …) 안에서 콘텐츠를 이 폭으로 묶는다.
 *   좌우 여백(padding)은 각 영역이 자기 값으로 둔다(높이·flex 등 영역별 스타일도 -inner 유지). */
.inner {
  width: 100%;
  max-width: var(--dl-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.skip {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 20px;
  background: var(--dl-primary);
  color: #fff;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}
.skip:focus {
  top: 0;
}

/* ── 헤더 ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.site:not(.main) {
  padding-top: var(--dl-header-h);
}
.header-inner {
  position: relative;
  height: var(--dl-header-h);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 80px;
}
.logo-heading {
  flex: none;
  margin: 0;
  font: inherit;
}
.logo {
  display: block;
  width: 299px;
  height: 40px;
  flex: none;
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-language-variant {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
}
.logo-language-variant[hidden] {
  display: none !important;
}
.logo-university {
  display: grid;
  grid-template-columns: 20.833% minmax(0, 76.19%);
  align-items: center;
  column-gap: 2.977%;
  width: 56.187%;
  height: 100%;
  flex: none;
}
.logo .logo-symbol {
  width: 100%;
  height: 100%;
}
.logo .logo-wordmark {
  width: 100%;
  height: 100%;
  max-height: 100%;
}
.logo-chinese-university {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  color: var(--dl-primary);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.logo-service {
  display: flex;
  width: 36.789%;
  height: 100%;
  margin-left: 7.024%;
  align-items: center;
  color: var(--dl-primary);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.logo-service--zh {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  letter-spacing: -0.04em;
}
@media (min-width: 1025px) {
  html[data-alumni-language="en"] .header-inner > .logo-heading .logo {
    width: 168px;
  }
  html[data-alumni-language="en"] .header-inner > .logo-heading .logo-university {
    width: 100%;
  }
}
.logo img.logo-main-mobile,
.hamburger-figma {
  display: none;
}

/* ── GNB (데스크탑) ── */
.gnb {
  flex: 1;
  min-width: 0;
}
.gnb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.gnb-item {
  position: relative;
  flex: 0 1 auto;
}
.gnb-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  line-height: 1;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--dl-text);
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}
.gnb-item:hover > .gnb-top,
.gnb-item:focus-within > .gnb-top {
  color: var(--dl-primary);
}

/* GNB 드롭다운 — depth2(제목) + depth3(목록) 을 열(column)로 (≤3depth) */
.gnb-sub {
  position: absolute;
  left: 0;
  top: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-top: 2px solid var(--dl-primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 1;
}
.gnb-item:hover .gnb-sub,
.gnb-item:focus-within .gnb-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gnb-sub-inner {
  display: flex;
  gap: 24px;
}
.gnb-sub-col {
  min-width: 120px;
}
.gnb-sub-title {
  display: block;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--dl-line);
  font-size: 15px;
  font-weight: 700;
  color: var(--dl-text);
  white-space: nowrap;
}
.gnb-sub-title:hover {
  color: var(--dl-primary);
}
.gnb-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gnb-sub-list a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--dl-text-sub);
  white-space: nowrap;
}
.gnb-sub-list a:hover {
  color: var(--dl-primary);
}

/* ── 우측 유틸 ── */
.util {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.util-btn {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.util-btn > span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #222;
}
.util-login,
.util-history,
.util-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}
.header .util-login {
  gap: 8px;
  min-width: 102px;
  padding: 0 14px;
  border: 0;
  border-radius: 24px;
  background: #0d3123;
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 500;
}
.util-login img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.util-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.util-history {
  min-width: 127px;
  padding: 0 14px;
  border: 2px solid var(--dl-primary);
  border-radius: 24px;
  background: transparent;
  color: var(--dl-primary);
  font-family: Pretendard, sans-serif;
  font-weight: 600;
}
.util-language {
  position: relative;
  min-width: 144px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.util-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  background: #fff;
  color: #767676;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.util-language-label {
  display: inline-flex;
  flex: 1 1 auto;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
.util-language-label font {
  display: inline-flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.util-language-toggle:hover,
.util-language.is-open .util-language-toggle {
  border-color: rgba(0, 80, 51, 0.48);
  color: var(--dl-primary);
  box-shadow: 0 4px 14px rgba(13, 49, 35, 0.1);
}
.util-language-google {
  flex: none;
  width: 22px;
  height: 22px;
}
.util-language-arrow {
  flex: none;
  width: 22px;
  height: 9px;
  margin-left: auto;
  fill: none;
  stroke: #aaa;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 20;
  width: max(100%, 176px);
  padding: 7px;
  border: 1px solid rgba(13, 49, 35, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(13, 49, 35, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}
.lang-menu li + li {
  margin-top: 2px;
}
.lang-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-menu [data-role="lang-select"] {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 38px 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2d27;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

/* Google 번역 상단 도구막대가 헤더 높이와 본문 위치를 바꾸지 않도록 한다. */
html body > .skiptranslate,
html body > iframe.skiptranslate,
iframe.goog-te-banner-frame.skiptranslate,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd.skiptranslate {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
}
html body {
  top: 0 !important;
}
.lang-menu [data-role="lang-select"]::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dl-primary);
  color: #fff;
  content: "\2713";
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
  transition: opacity 160ms ease, transform 160ms ease;
}
.lang-menu [data-role="lang-select"]:hover,
.lang-menu [data-role="lang-select"]:focus-visible {
  background: #f1f6f4;
  color: var(--dl-primary);
}
.lang-menu [data-role="lang-select"]:focus-visible {
  outline: 2px solid rgba(0, 80, 51, 0.34);
  outline-offset: -2px;
}
.lang-menu [data-role="lang-select"][aria-pressed="true"] {
  background: #e9f3ef;
  color: var(--dl-primary);
}
.lang-menu [data-role="lang-select"][aria-pressed="true"]::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.util-language-provider {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.util-language.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}
.util-language.is-open .util-language-arrow {
  transform: rotate(180deg);
}
.util-language-toggle:focus-visible {
  outline: 2px solid var(--dl-primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .lang-menu,
  .util-language-arrow {
    transition-duration: 0.01ms;
  }
}

.hamburger {
  display: none; /* 데스크탑 숨김 → layout-tb 에서 노출 */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--dl-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (min-width: 1601px) and (max-width: 1800px) {
  .header-inner {
    padding: 0 24px;
    gap: 30px;
  }
  .header-inner > .logo-heading .logo {
    width: 280px;
    height: auto;
    aspect-ratio: 299 / 40;
  }
  html[data-alumni-language="en"] .header-inner > .logo-heading .logo {
    width: 157px;
  }
  .gnb-list {
    gap: 6px;
  }
  .gnb-top {
    padding: 0 12px;
    font-size: 20px;
  }
  .util {
    gap: 8px;
  }
  .util-login,
  .util-history,
  .util-language {
    height: 38px;
    font-size: 15px;
  }
  .header .util-login {
    min-width: 94px;
    padding: 0 12px;
  }
  .util-history {
    min-width: 118px;
    padding: 0 12px;
  }
  .util-language {
    min-width: 132px;
  }
  .util-language-toggle {
    height: 38px;
    padding: 0 12px;
    gap: 8px;
    font-size: 15px;
  }
}

@media (min-width: 1281px) and (max-width: 1600px) {
  .header-inner {
    padding: 0 20px;
    gap: 14px;
  }
  .header-inner > .logo-heading .logo {
    width: 260px;
    height: auto;
    aspect-ratio: 299 / 40;
  }
  html[data-alumni-language="en"] .header-inner > .logo-heading .logo {
    width: 146px;
  }
  .gnb-list {
    gap: 4px;
  }
  .gnb-top {
    min-height: 44px;
    padding: 0 6px;
    font-size: 18px;
  }
  .util {
    gap: 6px;
  }
  .util-login,
  .util-history,
  .util-language {
    height: 36px;
    font-size: 14px;
  }
  .header .util-login {
    min-width: 84px;
    padding: 0 10px;
    gap: 6px;
  }
  .util-login img {
    width: 20px;
    height: 20px;
  }
  .util-history {
    min-width: 110px;
    padding: 0 10px;
  }
  .util-language {
    min-width: 120px;
  }
  .util-language-toggle {
    height: 36px;
    padding: 0 10px;
    gap: 6px;
    font-size: 14px;
  }
  .util-language-google {
    width: 18px;
    height: 18px;
  }
  .util-language-arrow {
    width: 18px;
    height: 8px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .header-inner {
    padding: 0 16px;
    gap: 8px;
  }
  .header-inner > .logo-heading .logo {
    width: 250px;
    height: auto;
    aspect-ratio: 299 / 40;
  }
  html[data-alumni-language="en"] .header-inner > .logo-heading .logo {
    width: 141px;
  }
  .gnb-list {
    gap: 2px;
  }
  .gnb-top {
    min-height: 42px;
    padding: 0 3px;
    font-size: 16px;
  }
  .util {
    gap: 4px;
  }
  .util-login,
  .util-history,
  .util-language {
    height: 34px;
    font-size: 13px;
  }
  .header .util-login {
    min-width: 76px;
    padding: 0 8px;
    gap: 4px;
  }
  .util-login img {
    width: 18px;
    height: 18px;
  }
  .util-history {
    min-width: 96px;
    padding: 0 8px;
  }
  .util-language {
    min-width: 104px;
  }
  .util-language-toggle {
    height: 34px;
    padding: 0 8px;
    gap: 4px;
    font-size: 13px;
  }
  .util-language-google {
    width: 17px;
    height: 17px;
  }
  .util-language-arrow {
    width: 17px;
    height: 7px;
  }
}

/* ── 전체메뉴 (sitemap) — 전체 depth. 불투명 오버레이(딤 없음). ── */
.sitemap {
  position: fixed;
  inset: 0;
  z-index: 170; /* 헤더(100)·딤(155)·모바일(160) 위 — 콘텐츠가 비쳐 보이지 않게 */
  background: #fff; /* 완전 불투명 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  overflow-y: auto;
}
.sitemap.is-open {
  opacity: 1;
  visibility: visible;
}
.sitemap-inner {
  padding: 40px 24px 60px;
}
.sitemap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--dl-primary);
}
.sitemap-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--dl-primary);
}
.sitemap-close {
  padding: 8px 18px;
  border: 1px solid var(--dl-line);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}
.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.sitemap-col h2 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dl-line);
  font-size: 18px;
  font-weight: 700;
}
.sitemap-col h2 a {
  color: var(--dl-text);
}
.sitemap-col h2 a:hover {
  color: var(--dl-primary);
}
/* depth2 → depth3 → depth4 중첩 */
.sitemap-d2 {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-d2 > li {
  margin-top: 4px;
}
.sitemap-d2 > li > a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dl-text);
}
.sitemap-d2 > li > a:hover {
  color: var(--dl-primary);
}
.sitemap-d3 {
  list-style: none;
  margin: 2px 0 8px;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--dl-line);
}
.sitemap-d3 > li > a {
  display: block;
  padding: 3.5px 0;
  font-size: 14px;
  color: var(--dl-text-sub);
}
.sitemap-d3 > li > a:hover {
  color: var(--dl-primary);
}
.sitemap-d4 {
  list-style: none;
  margin: 2px 0 4px;
  padding: 0 0 0 10px;
}
.sitemap-d4 > li > a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  color: #8a8f95;
}
.sitemap-d4 > li > a::before {
  content: "· ";
}
.sitemap-d4 > li > a:hover {
  color: var(--dl-primary);
}

/* ── 모바일 GNB (off-canvas · 전체 depth 아코디언) ── */
[data-role="mobile-nav"] {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  z-index: 160;
  background: #fff;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  flex-direction: column;
}
[data-role="mobile-nav"].is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dl-line);
}
.mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mobile-close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.mobile-close:focus-visible {
  outline: 2px solid var(--dl-primary);
  outline-offset: 2px;
}
/* 다단 아코디언 — .mnav-row(링크+토글) + 접이식 .mnav-sub, depth 무제한 재귀 */
.mnav,
.mnav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mnav {
  padding: 6px 0;
}
.mnav-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--dl-line);
}
/* .mnav-link — 하위메뉴 없는 항목은 <a>, 하위메뉴 있는 항목은 <button data-role="submenu-toggle">.
   둘 다 같은 클래스로 행 전체를 채운다(버튼도 좌측정렬 풀폭·별도 토글 버튼 없음). 하위 보유 버튼은 우측에 caret. */
.mnav-link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dl-text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.mnav-link:hover {
  color: var(--dl-primary);
}
/* 시각적 chevron — 토글 트리거는 라벨 버튼 자체(data-role="submenu-toggle"), caret 은 표시 전용 */
.mnav-caret {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.mnav-item.is-open > .mnav-row > .mnav-link > .mnav-caret {
  transform: rotate(-135deg) translate(-1px, -1px);
}
.mnav-sub {
  max-height: 0;
  overflow: hidden;
  background: var(--dl-bg-soft);
  transition: max-height 0.3s ease;
}
.mnav-item.is-open > .mnav-sub {
  max-height: 2000px;
}
/* 깊이별 들여쓰기·약화 */
.mnav-sub .mnav-link {
  font-weight: 600;
  font-size: 15px;
  padding-left: 36px;
}
.mnav-sub .mnav-sub .mnav-link {
  font-weight: 400;
  font-size: 14px;
  padding-left: 48px;
  color: var(--dl-text-sub);
}
.mnav-sub .mnav-sub .mnav-sub .mnav-link {
  padding-left: 60px;
}

/* ── 딤 (모바일 off-canvas 배경 전용 — sitemap 은 자체 불투명이라 딤 없음) ── */
.dim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.dim.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── 서브 비주얼 ── */
.sub-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
  background-color: #0d3123;
  background-image: url("/_res/skku-alumni/line/img/common/line-sub-visual-bg.png");
  background-repeat: no-repeat;
  background-position: center 41%;
  background-size: cover;
  color: #fff;
}
.sub-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 44%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.sub-visual > .inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding-right: 24px;
  padding-left: 24px;
}
.sub-visual .breadcrumb {
  padding: 20px 0 0;
  border-bottom: 0;
}
.sub-visual .breadcrumb-list {
  flex-wrap: nowrap;
  font-family: "Pretendard GOV", Pretendard, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
}
.sub-visual .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 8px;
  color: #fff;
  font-weight: 400;
}
.sub-visual .breadcrumb-home,
.sub-visual .breadcrumb-link {
  padding: 0;
  color: #fff;
}
.sub-visual .breadcrumb-toggle {
  gap: 0;
  padding: 0;
  color: #fff;
}
.sub-visual .breadcrumb-ico,
.sub-visual .breadcrumb-menu {
  display: none;
}
.sub-visual .breadcrumb-home:hover,
.sub-visual .breadcrumb-link:hover {
  color: #fff;
  text-decoration: underline;
}
.sub-visual .page-title {
  position: absolute;
  top: 107px;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-family: Paperlogy, sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

/* ── 서브 본문 컨테이너 ── */
.sub-body {
  max-width: var(--dl-max);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── breadcrumb (클릭 시 단계별 형제 드롭다운) ── */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--dl-line);
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: var(--dl-text-sub);
}
.breadcrumb-item {
  position: relative;
  display: flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 6px;
  color: #bbb;
}
.breadcrumb-home {
  display: inline-block;
  padding: 6px 4px;
}
.breadcrumb-home:hover {
  color: var(--dl-primary);
}
.breadcrumb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--dl-text-sub);
  cursor: pointer;
}
.breadcrumb-item.is-current > .breadcrumb-toggle {
  color: var(--dl-text);
  font-weight: 600;
}
.breadcrumb-toggle:hover {
  color: var(--dl-primary);
}
.breadcrumb-ico {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s;
  opacity: 0.7;
}
.breadcrumb-item.is-open > .breadcrumb-toggle .breadcrumb-ico {
  transform: rotate(-135deg);
}
.breadcrumb-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 160px;
  margin-top: 4px;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-top: 2px solid var(--dl-primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.breadcrumb-item.is-open > .breadcrumb-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.breadcrumb-menu a {
  display: block;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--dl-text-sub);
  white-space: nowrap;
}
.breadcrumb-menu a:hover {
  background: var(--dl-bg-soft);
  color: var(--dl-primary);
}
.breadcrumb-menu a.is-active {
  color: var(--dl-primary);
  font-weight: 700;
}

/* ── 서브 2단 레이아웃 (LNB + 본문) ── */
.sub-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.sub-main {
  min-width: 0;
} /* 그리드 자식 오버플로 방지 */

/* ── LNB (좌측 분류 메뉴) ── */
.lnb {
  padding-top: 40px;
}
.lnb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--dl-primary);
  color: #fff;
  border-radius: 8px 8px 0 0;
}
.lnb-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lnb-toggle {
  display: none;
} /* 데스크탑에선 항상 펼쳐 둔다 */
.lnb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--dl-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.lnb-item + .lnb-item {
  border-top: 1px solid var(--dl-line);
}
.lnb-link {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  color: var(--dl-text-sub);
  transition: background 0.15s, color 0.15s;
}
.lnb-link:hover {
  background: var(--dl-bg-soft);
  color: var(--dl-primary);
}
.lnb-link.is-active {
  background: var(--dl-bg-soft);
  color: var(--dl-primary);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--dl-primary);
}
/* LNB depth3 (활성 depth2 아래) */
.lnb-sub {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  background: #fff;
  border-top: 1px dashed var(--dl-line);
}
.lnb-sublink {
  display: block;
  padding: 8px 20px 8px 32px;
  font-size: 14.5px;
  color: var(--dl-text-sub);
  position: relative;
}
.lnb-sublink::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  width: 6px;
  height: 1px;
  background: #bbb;
}
.lnb-sublink:hover {
  color: var(--dl-primary);
}
.lnb-sublink.is-active {
  color: var(--dl-primary);
  font-weight: 700;
}

/* ── SNB (탭 메뉴) ── */
.snb {
  margin-top: 30px;
  padding: 4px;
  overflow: hidden;
  background: #e7ecea;
  border: 0;
  border-radius: 32px;
  box-shadow: none;
}
.snb-toggle {
  display: none;
}
.snb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
}
.snb-item {
  flex: 1 1 0;
  min-width: 0;
}
.snb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 12px 24px;
  color: #404040;
  background: transparent;
  border: 0;
  border-radius: 36px;
  box-shadow: none;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  font-style: normal;
  letter-spacing: 0;
}
.snb-link:hover {
  color: var(--dl-primary);
}
.snb-link.is-active {
  color: #fff;
  background: #124531;
  border-color: transparent;
}
.snb-link.is-active:hover {
  color: #fff;
}

/* ── 페이지 타이틀 ── */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0 24px;
  border-bottom: 2px solid var(--dl-text);
}
.page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dl-text);
}
.page-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.page-btn {
  padding: 8px 16px;
  border: 1px solid var(--dl-line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.page-btn:hover {
  border-color: var(--dl-primary);
  color: var(--dl-primary);
}

/* ── 본문 영역 ── */
.content {
  min-height: 300px;
  padding-top: 40px;
}

/* ── 푸터 ── */
.footer {
  margin-top: 0;
  background: #0a261b;
  color: #99b0d4;
  overflow: visible;
}
.footer-inner {
  max-width: 1600px;
  min-height: 400px;
  padding: 51px 0 50px;
}
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 0 32px;
  border: 0;
  border-bottom: 1px solid #5474af;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.footer-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: #b2bfd1;
  font-family: "Pretendard GOV", Pretendard, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}
.footer-links a:hover {
  color: #fff;
}
.footer-links .footer-strong {
  color: #ffb600;
  font-weight: 400;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 42px;
  text-align: center;
}
.footer-logo {
  display: block;
  width: 236px;
  height: 56px;
  color: #fff;
}
.footer-logo img {
  display: block;
  width: 236px;
  height: 56px;
  object-fit: contain;
}
.footer-addr,
.footer-contact,
.footer-copy {
  margin: 0;
  color: #99b0d4;
  font-family: "Pretendard GOV", Pretendard, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
.footer-addr {
  margin-top: 16px;
  font-style: normal;
}
.footer-contact {
  margin-top: 12px;
}
.footer-copy {
  margin-top: 12px;
}

/* ── 접근성: 전역 키보드 포커스 표시 (.harness/rules/a11y.md B · lint R10 짝) ──
   마우스 클릭엔 나타나지 않고 키보드 포커스에만 표시. 컴포넌트별 재정의 불필요. */
:focus-visible {
  outline: 2px solid var(--dl-primary, #2c5eff);
  outline-offset: 2px;
}
