/* === Base Layout === */
.base-skip { position: absolute; left: 0; top: 0; width: 100%; margin: 0 auto; z-index: 999999; }
.base-skip .hidden { overflow: hidden; position: absolute; line-height: 1px; font-size: 1px; text-indent: -30000px; }
.base-skip a { display: block; position: absolute; left: 0; padding: 15px 24px; height: 30px; line-height: 0px; color: #fff; background-color: #790401; }
.base-skip a:link,
.base-skip a:visited,
.base-skip a:active { top: -10000px; }
.base-skip a:hover,
.base-skip a:focus { top: 0; }
.base-layer { position: relative; z-index: 20 }
.base-wrap { position: relative; width: 100%; min-height: 100%; z-index: 0; -webkit-overflow-scrolling: touch; }

/* 2026 scroll root — #baseWrap id (survives legacy .removeClass() on donation pages) */
#baseWrap {
    position: relative;
    width: 100%;
    min-height: 100%;
    z-index: 0;
    height: 100%;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-text-300) transparent;
}
#baseWrap::-webkit-scrollbar { width: 6px; }
#baseWrap::-webkit-scrollbar-track { background: transparent; }
#baseWrap::-webkit-scrollbar-thumb { background-color: var(--color-text-300); border-radius: 8px; }
#baseWrap::-webkit-scrollbar-thumb:hover { background-color: var(--color-text-400); }
.base-wrap__content { position: relative; width: 100%; min-height: 100%; }

/* === Base Header === */
#baseHeader { width: 100%; position: absolute; top: 0; left: 0; z-index: 200; transition: transform 0.2s ease-in; will-change: transform; }
.header-inner { width: 100%; display: flex; flex-direction: column; }
#baseHeader.active .header-inner { border-bottom: 1px solid var(--color-line-100); }

/* === Util Bar === */
.header__util-bar { display: flex; position: relative; justify-content: flex-end; align-items: stretch; width: 100%; height: 44px; padding-right: 24px; border-bottom: 1px solid var(--color-line-150); background-color: var(--color-solid-white); }
.header__util-link,
.header__dropdown-inner .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; border-bottom: 1px solid transparent; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--color-text-500); background-color: transparent; }
.header__util-link:hover,
.header__util-link:focus-visible { border-bottom: 1px solid var(--color-line-150); color: var(--color-text-700); background-color: var(--color-solid-100); }
.header__util-link--last { padding-right: 22px; }
.header__dropdown { position: relative; height: 44px; }
.header__dropdown-inner { position: relative; height: 100%; }
.header__dropdown--lang .header__dropdown-inner,
.header__dropdown--branch .header__dropdown-inner { border-left: 1px solid var(--color-line-150); }
.header__dropdown--lang .btn.lang { min-width: 70px; padding: 0 12px; }
.header__dropdown--branch .btn { padding: 0 12px; border-right: 1px solid var(--color-line-150); }
.btn-region .header__dropdown-label { min-width: 80px; text-align: left; }
.header__dropdown-inner .btn .icon-caret-down { flex-shrink: 0; width: 8px; height: 5px; transition: transform 0.2s ease; }
.header__dropdown-inner .btn.active .icon-caret-down { transform: rotate(180deg); }
.header__dropdown-inner .select-list,
.header__dropdown--branch .region-wrap { display: none; position: absolute; top: calc(100% + 4px); right: 0; margin: 0; padding: 4px 0; list-style: none; background-color: var(--color-solid-white); border: 1px solid var(--color-line-150); border-radius: 6px; box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1); overflow: hidden; z-index: 201; }
.header__dropdown-inner .select-list.active,
.header__dropdown--branch .region-wrap.active { display: block; }
.header__dropdown-inner .select-list li,
.header__dropdown--branch .region-list li { margin: 0; }
.header__dropdown-inner .select-list li a,
.header__dropdown--branch .region-list a { display: block; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--color-text-500); white-space: nowrap; }
.header__dropdown-inner .select-list li a:hover,
.header__dropdown--branch .region-list a:hover { background-color: var(--color-solid-200); }
.header__dropdown-inner .select-list li a.is-current { color: var(--color-primary-500); }
.header__dropdown--branch .region-wrap { width: 120px; max-height: 320px; overflow-y: auto; }
.header__dropdown--donation .select-list { min-width: 220px; left: 0; right: auto; }

/* Mobile Menu Button */
.header__gnb-button { display: none; }

/* === GNB Bar === */
.header__gnb-bar { width: 100%; position: relative; display: flex; justify-content: center; align-items: center; height: 88px; background-color: var(--color-solid-white); transition: background-color 0.2s ease-in; }
#baseHeader .header__gnb-bar { background-color: var(--color-solid-white); }
#baseHeader.active .header__gnb-bar { background-color: var(--color-solid-white); }

/* Logo */
.header__gnb-bar h1 { position: absolute; left: 24px; }
.header__gnb-bar h1 a { display: flex; align-items: center; }
.header__logo { width: 172px; }
.header__logo--branch { width: 190px; }

/* Mobile Sitemap Button */
.header__sitemap--mobile { display: none; }

/* Desktop Menu */
.header__gnb { height: 100%; }
.gnb-list { display: flex; justify-content: center; align-items: center; height: 100%; }
.gnb-item { position: relative; display: flex; align-items: center; height: 100%; padding-inline: 16px; margin-inline: 16px; }
.gnb-link { position: relative; display: block; background-color: transparent; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: var(--color-text-600); cursor: pointer; transition: color 0.2s ease; }
.gnb-link::after { content: ""; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: var(--color-primary-500); transition: width 0.2s ease; }
.gnb-item:hover > .gnb-link,
.gnb-item:focus-within > .gnb-link,
.gnb-item.is-active > .gnb-link { color: var(--color-primary-500); }
.gnb-item:hover > .gnb-link::after,
.gnb-item:focus-within > .gnb-link::after,
.gnb-item.is-active > .gnb-link::after { width: 100%; }
.gnb-panel { display: none; gap: 12px; align-items: flex-start; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 200px; padding: 24px; background-color: var(--color-solid-white); border: 1px solid var(--color-line-150); border-radius: 16px; box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1); z-index: 100; }
.gnb-item:hover > .gnb-panel,
.gnb-item:focus-within > .gnb-panel { display: flex; animation: fadeIn 0.25s ease forwards; }
.gnb-item.is-panel-closed:hover > .gnb-panel,
.gnb-item.is-panel-closed:focus-within > .gnb-panel { display: none; animation: none; } /* 새창 링크 클릭 후 :hover/:focus-within이 남아도 패널 숨김 */
.gnb-donate { flex-shrink: 0; align-self: stretch; }
.gnb-donate-link { display: flex; flex-direction: column; justify-content: space-between; width: 200px; height: 100%; min-height: 250px; padding-block: 22px; padding-inline: 20px 24px; border-radius: 12px; background-color: #ff356b; color: var(--color-solid-white); overflow: hidden; position: relative; }
.gnb-donate-link::before { content: ""; position: absolute; top: -50%; left: -50%; width: 30%; aspect-ratio: 1; border-radius: 50%; background-color: rgba(244, 0, 65, 1); transition: transform 0.4s ease; z-index: 1; }
.gnb-donate-link:hover::before { transform: scale(20); }
.gnb-donate-title,
.gnb-donate-desc,
.gnb-donate-cta { position: relative; z-index: 2; }
.gnb-donate-title { display: block; font-size: 20px; font-weight: 800; }
.gnb-donate-desc { display: block; margin-top: 8px; font-weight: 500; line-height: 1.4; }
.gnb-donate-cta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.gnb-donate-text { font-size: 18px; font-weight: 800; }
.gnb-donate-bullet { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 24px; background-color: rgba(0, 0, 0, 0.2); }
.icon-chevron-donate { width: 6px; height: 10px; }
.lnb-list { display: grid; row-gap: 8px; column-gap: 16px; grid-template-rows: repeat(6, 1fr); list-style: none; }
.lnb-list--cols-1 { grid-template-columns: 1fr; }
.lnb-list--cols-2 { grid-template-columns: repeat(2, 1fr); }
.lnb-list--cols-3 { grid-template-columns: repeat(3, 1fr); }
.lnb-link { display: flex; justify-content: space-between; align-items: center; width: 226px; max-width: 100%; padding: 12px; border-radius: 4px; font-size: 17px; font-weight: 600; line-height: 1; color: var(--color-text-500); transition: background-color 0.15s ease; }
.lnb-link:hover { background-color: var(--color-solid-100); }
.lnb-link .icon-chevron { flex-shrink: 0; width: 14px; height: 14px; opacity: 0; }
.lnb-link:hover .icon-chevron { opacity: 1; }

/* Desktop Sitemap Button */
.header__sitemap--desktop { position: absolute; right: 24px; }
.stmap-open { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; background-color: transparent; border: 0; cursor: pointer; }
.stmap-open__icon { display: block; width: 24px; }
.stmap-open__icon span { display: block; width: 100%; height: 3px; margin: 5px 0; border-radius: 4px; background-color: var(--color-text-600); transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease; }
.stmap-open__icon span:nth-child(1) { width: 100%; }
.stmap-open__icon span:nth-child(2) { width: 80%; }
.stmap-open__icon span:nth-child(3) { width: 60%; }
.stmap-open:hover .stmap-open__icon span { width: 100%; }

/* Mobile Menu */
.header__gnb-mobile { display: none; }

/* SiteMap */
.stmap { position: fixed; width: 100%; height: 0; top: 0; left: 0; overflow-y: hidden; border-bottom: 1px solid var(--color-line-400); background-color: var(--color-solid-white); visibility: hidden; pointer-events: none; opacity: 0; transition: height 0.4s ease; z-index: 300; }
.stmap.is-open { height: 100vh; overflow-y: auto; visibility: visible; pointer-events: auto; opacity: 1; }
.stmap__head { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 40px; padding-block: 20px; padding-inline: 24px; }
.stmap__logo { display: block; }
.stmap__logo-img { width: 172px; }
.stmap__logo-img--branch { width: 180px; }
.stmap__util { display: flex; align-items: center; gap: 24px; }
.stmap__sns { display: flex; align-items: center; gap: 6px; }
.stmap__sns-link { display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; border-radius: 24px; border: 1px solid var(--color-line-150); color: var(--color-text-300); transition: border-color 0.2s ease; }
.stmap__sns-link:hover { border-color: var(--color-line-300); color: var(--color-text-400); }
.stmap__sns-link .icon-sns { flex-shrink: 0; }
.icon-sns-youtube { width: 20px; height: 20px; }
.icon-sns-blog { width: 16px; height: 20px; }
.icon-sns-facebook { width: 12px; height: 24px; }
.icon-sns-instagram { width: 24px; height: 24px; }
.stmap__close { border: 1px solid var(--color-line-300); background: var(--color-solid-white); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; padding: 0; }
.stmap__close-line { display: block; width: 18px; height: 2px; border-top: 2px solid var(--color-line-500); position: absolute; transform-origin: center; }
.stmap__close-line--1 { transform: rotate(45deg); }
.stmap__close-line--2 { transform: rotate(-45deg); }
.stmap__close:hover { background-color: var(--color-primary-400); border-color: transparent; }
.stmap__close:hover .stmap__close-line { border-color: var(--color-solid-white); }
.stmap__quick { margin-bottom: 24px; }
.stmap__quick-list { display: flex; flex-wrap: wrap; gap: 48px 48px; row-gap: 4px; margin: 0; padding: 0; list-style: none; }
.stmap__quick-item { list-style: none; }
.stmap__quick-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 20px; font-weight: 700; color: var(--color-text-500); }
.stmap__quick-link:hover { color: var(--color-primary-500); }
.stmap__section { border-top: 1px solid var(--color-line-300); padding: 24px 0; }
.stmap__title { width: 100%; font-size: 32px; font-weight: 700; color: var(--color-text-600); }
.stmap__grid { display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 40px; padding: 24px 0 32px; }
.stmap__link { color: var(--color-text-500); }
.stmap__link--depth2 { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 20px; font-weight: 700; }
a.stmap__link--depth2:hover { color: var(--color-primary-500); }
.stmap__link--depth3 { display: block; padding: 6px 0; font-size: 18px; font-weight: 500; color: var(--color-text-400); }
.stmap__link--depth3:hover { color: var(--color-primary-500); }
.stmap__sub { margin: 0; padding: 0; list-style: none; }
body.is-stmap-open { overflow: hidden; }
body.is-stmap-open #baseWrap { overflow: hidden; }
body.is-stmap-open #baseHeader { pointer-events: none; }
body.is-stmap-open #baseHeader .header__gnb-bar { background-color: var(--color-solid-white); }
.icon-chevron--quick { flex-shrink: 0; width: 14px; height: 14px; }


@media (max-width: 1500px) {
    .gnb-item:first-child > .gnb-panel { position: fixed; left: 16px; right: auto; transform: none; }
    .gnb-item:last-child > .gnb-panel { position: fixed; left: auto; right: 16px; transform: none; }
}

@media (max-width: 1024px) {
    /* === Base Header === */
    .header-inner { flex-direction: row-reverse; justify-content: space-between; height: 56px; background-color: var(--color-solid-white); }

    /* === Util Bar === */
    .header__util-bar { align-items: center; height: 100%; padding-block: 12px; padding-right: 8px; border-bottom: none; background-color: transparent; }
    .header__util-link,
    .header__dropdown--donation,
    .header__dropdown--lang { display: none; }
    .header__dropdown--lang .header__dropdown-inner,
    .header__dropdown--branch .header__dropdown-inner { border-left: none; }
    .header__dropdown--lang .header__dropdown-inner::before,
    .header__dropdown--branch .header__dropdown-inner::before,
    .header__gnb-button::before { content: ''; position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 1px; height: 20px; background-color: var(--color-line-150); }
    .header__util-link,
    .header__dropdown-inner .btn { height: 100%; }
    .header__util-link:hover,
    .header__dropdown-inner .btn:hover { color: inherit; }
    .header__dropdown-inner .btn-region { border-right: none; }
    .header__dropdown--branch { height: 100%; }
    .header__dropdown-inner { height: 100%; }
    .btn-region .header__dropdown-label { font-size: 14px; }
    #baseHeader.is-gnb-open .header__dropdown--lang { display: block; height: 100%; margin-left: 0; }
    #baseHeader.is-gnb-open .header__dropdown--lang .btn.lang { min-width: 0; height: 100%; padding: 2px 10px 2px 12px; font-size: 14px; }

    /* Logo */
    .header__logo { width: 124px; }
    .header__logo--branch { width: 146px; }

    /* Mobile Menu Button */
    .header__gnb-button { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 40px; height: 40px; }
    .gnb-open__icon { display: block; position: relative; width: 20px; height: 20px; }
    .gnb-open__icon span { display: block; width: 100%; position: absolute; height: 3px; border-top: 2px solid var(--color-text-600); border-radius: 4px; transform-origin: center; transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease, top 0.3s ease; }
    .gnb-open__icon span:nth-child(1) { top: 3px; width: 100%; }
    .gnb-open__icon span:nth-child(2) { top: 9px; width: 80%; }
    .gnb-open__icon span:nth-child(3) { top: 15px; width: 60%; }
    .header__gnb-button[aria-expanded="true"] .gnb-open__icon span { width: 100%; }
    .header__gnb-button[aria-expanded="true"] .gnb-open__icon span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .header__gnb-button[aria-expanded="true"] .gnb-open__icon span:nth-child(2) { opacity: 0; }
    .header__gnb-button[aria-expanded="true"] .gnb-open__icon span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

    /* === GNB Bar === */
    .header__gnb-bar { height: 100%; }

    /* Logo */
    .header__gnb-bar h1 { left: 16px; }
    #baseHeader.is-gnb-open .header__gnb-bar h1 { display: none; }
    .header__gnb,
    .header__sitemap--desktop { display: none; }

    /* Mobile Sitemap Button */
    .header__sitemap--mobile { position: absolute; top: 50%; left: 16px; align-items: center; height: auto; padding: 7px 12px; border: 1px solid var(--color-line-200); border-radius: 6px; background-color: var(--color-solid-white); font-family: inherit; font-size: 14px; font-weight: 600; color: var(--color-text-600); transform: translateY(-50%); }
    #baseHeader.is-gnb-open .header__sitemap--mobile { display: inline-flex; }

    /* Mobile Menu */
    .header__gnb-mobile { display: flex; position: fixed; top: 56px; right: -100%; left: auto; width: 100%; height: calc(100dvh - 56px); overflow: hidden; background-color: var(--color-solid-white); z-index: 200; pointer-events: none; transition: right 0.3s ease; -webkit-overflow-scrolling: touch; }
    #baseHeader:not(.active) .header__gnb-mobile { border-top: 1px solid var(--color-line-200); }
    .header__gnb-mobile.is-open,
    #baseHeader.is-gnb-open .header__gnb-mobile { right: 0; pointer-events: auto; }
    body.is-gnb-open { overflow: hidden; }
    body.is-gnb-open #baseWrap { overflow: hidden; }
    .mo-gnb-menu-wrap { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; }
    .mo-gnb-menu-wrap::after { content: ""; position: absolute; top: 0; left: 0; width: 100px; height: 100%; background-color: var(--color-solid-200); z-index: -1; }
    .mo-gnb-item-level1 { width: 100px; border-bottom: 1px solid var(--color-line-200); }
    .mo-gnb-item-level1 > .label { display: block; width: 100%; padding: 24px 8px 24px 12px; background-color: transparent; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--color-text-600); text-align: left; word-break: keep-all; }
    .mo-gnb-item-level1.is-active { background-color: var(--color-solid-white); }
    .mo-gnb-item-level1.is-active > .label { color: var(--color-primary-400); }
    .mo-gnb-level2-wrap { display: none; position: absolute; top: 0; bottom: 0; left: 100px; width: calc(100% - 100px); margin: 0; padding: 8px 24px 24px; overflow-y: auto; list-style: none; background-color: var(--color-solid-white); scrollbar-width: thin; scrollbar-color: var(--color-text-300) transparent; }
    .mo-gnb-level2-wrap::-webkit-scrollbar { width: 6px; }
    .mo-gnb-level2-wrap::-webkit-scrollbar-track { background: transparent; }
    .mo-gnb-level2-wrap::-webkit-scrollbar-thumb { background-color: var(--color-text-300); border-radius: 8px; }
    .mo-gnb-item-level1.is-active > .mo-gnb-level2-wrap { display: block; }
    .mo-gnb-item-level2 { display: flex; flex-direction: column; gap: 8px; width: 100%; border-bottom: 1px solid var(--color-line-150); }
    .mo-gnb-item-level2 > a,
    .mo-gnb-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding-block: 16px; border: 0; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--color-text-600); text-align: left; cursor: pointer; }
    .mo-gnb-item-level2 > a .label,
    .mo-gnb-toggle .label { display: inline-block; width: 100%; min-width: 0; }
    .mo-gnb-toggle .icon-chevron { display: block; flex-shrink: 0; width: 14px; height: 14px; color: var(--color-text-300); transform: rotate(90deg); transition: transform 0.2s ease, color 0.2s ease; }
    .mo-gnb-item-level2.is-active > a,
    .mo-gnb-item-level2.is-active > .mo-gnb-toggle { color: var(--color-primary-400); }
    .mo-gnb-item-level2.is-active > .mo-gnb-toggle .icon-chevron { transform: rotate(-90deg); color: var(--color-primary-400); }
    .mo-gnb-level3-wrap { display: none; flex-direction: column; width: 100%; margin: 0; padding: 0 0 12px 8px; list-style: none; }
    .mo-gnb-item-level2.is-active > .mo-gnb-level3-wrap { display: flex; }
    .mo-gnb-item-level3 { display: flex; width: 100%; }
    .mo-gnb-item-level3 a { display: block; padding-block: 10px; font-size: 15px; font-weight: 600; color: var(--color-text-400); }
    .mo-gnb-item-level3:first-child a { padding-top: 0; }
    .mo-gnb-item-level3 a:hover { color: var(--color-primary-400); }

    /* SiteMap */
    .stmap__head { margin-bottom: 0; padding: 12px 16px; }
    .stmap__logo { display: none; }
    .stmap__util { width: 100%; justify-content: space-between; }
    .stmap__sns-link { width: 40px; height: 40px; }
    .stmap__sns-link .icon-sns { transform: scale(0.8); }
    .stmap__close { width: 40px; height: 40px; }
    .stmap__body.container { padding: 32px 16px 40px; }
    .stmap__quick-list { gap: 16px; }
    .stmap__quick-link { font-size: 16px; }
    .stmap__title { font-size: 24px; }
    .stmap__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; padding: 16px 0 32px; }
    .stmap__link--depth2 { font-size: 16px; }
    .stmap__link--depth3 { font-size: 15px; }
}

@media (max-width: 768px) {
    #baseHeader.is-gnb-open .header__sitemap--mobile { left: 12px; }
}