/* 대한의료봉사협회 공통 스타일: 토큰·리셋·머리글·전체메뉴·바로가기·팝업·속페이지 머리·탭·폼·페이지 번호·바닥글 */

:root {
    --navy-950: #0d1941;
    --navy-900: #001d79;
    --navy-700: #013763;
    --navy-600: #07509a; /* 머리글 후원하기 단추 (시안 색) */
    --navy-50: #eef2fb;
    --teal-700: #016b79;
    --teal-600: #0b8291;
    --teal-50: #e8f5f6;
    --red-600: #e4032d;
    --ink-900: #131416;
    --ink-700: #33363d;
    --ink-500: #58616a;
    --ink-400: #646e7d; /* 작은 글자용: 흰 바탕 5.2:1, bg-soft 4.8:1 */
    --ink-300: #b1b8be;
    --line: #e5e8eb;
    --line-strong: #cdd1d5;
    --bg: #ffffff;
    --bg-soft: #f4f6f9;
    --bg-tint: #f1f5fb;
    --r-xl: 40px;
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 12px;
    --r-xs: 8px;
    --pill: 999px;
    /* 좌우 여백: 폭에 따라 서서히 늘어남(1100 이하 24 · 1280 약 47 · 1440 약 72 · 1600 이상 96). 넓은 화면의 본문 최대 폭은 1560/1208 그대로 */
    --gutter: clamp(24px, calc(16vw - 158px), 96px);
    --wrap: calc(1560px + 2 * var(--gutter));
    --wrap-narrow: calc(1208px + 2 * var(--gutter));
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    --shadow-card: 0 8px 30px rgba(13, 25, 65, .08);
    --shadow-pop: 0 16px 48px rgba(13, 25, 65, .16);
    --hd-util: 48px;
    --hd-bar: 108px;
    --hd-h: 156px; /* = 위 띠 + 메뉴 줄. 본문 시작·고정 요소·앵커 위치가 이 값을 쓴다 */
    --mbar-h: 0px;
    --sec-gap: 120px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); }
body {
    margin: 0;
    padding-top: var(--hd-h);
    padding-bottom: var(--mbar-h);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-700);
    letter-spacing: -0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--ink-900); line-height: 1.35; letter-spacing: -0.03em; }
table { border-collapse: collapse; border-spacing: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--navy-50); color: var(--navy-950); }

.ico { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 600; padding: 12px 20px; border-radius: var(--r-xs); background: var(--navy-900); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), var(--safe-l)); padding-right: max(var(--gutter), var(--safe-r)); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding-left: max(var(--gutter), var(--safe-l)); padding-right: max(var(--gutter), var(--safe-r)); }
.site-main { display: block; min-height: 50vh; }
.site-main:focus { outline: none; }

/* ---------- 공통 구역·제목·배지 ---------- */
.sec { margin-top: var(--sec-gap); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-title { font-size: 40px; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.sec-lead { margin-top: 10px; font-size: 17px; color: var(--ink-500); }
.sub-body { padding-top: 64px; padding-bottom: 160px; }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-xs); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--bg-soft); color: var(--ink-500); }
.badge-navy { background: var(--navy-50); color: var(--navy-900); }
.badge-teal { background: var(--teal-50); color: var(--teal-700); }
.badge-red { background: var(--red-600); color: #fff; }
.badge-line { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-500); }
.badge-main { background: var(--navy-50); color: var(--navy-900); height: 24px; font-size: 12px; border-radius: var(--pill); }
.dot-red { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red-600); }

/* ---------- 단추 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--pill); font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-950); }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-600); }
.btn-line { background: #fff; border-color: var(--line-strong); color: var(--ink-900); }
.btn-line:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-soft { background: var(--bg-soft); color: var(--ink-900); }
.btn-soft:hover { background: var(--line); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 40px; font-size: 18px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-more { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-700); white-space: nowrap; transition: border-color .2s, color .2s; }
.btn-more .ico { width: 16px; height: 16px; }
.btn-more:hover { border-color: var(--navy-900); color: var(--navy-900); }
.circle-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink-900); transition: border-color .2s, color .2s, background-color .2s; }
.circle-btn .ico { width: 20px; height: 20px; }
.circle-btn:hover { border-color: var(--navy-900); color: var(--navy-900); }
.circle-btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- 폼 ---------- */
.form-row { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .is-full { grid-column: 1 / -1; }
.label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ink-900); }
.req { margin-left: 2px; color: var(--red-600); }
.input, .select, .textarea { display: block; width: 100%; height: 52px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; font-size: 16px; color: var(--ink-900); transition: border-color .2s, box-shadow .2s; }
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(0, 29, 121, .12); }
.textarea { height: auto; min-height: 180px; padding: 14px 18px; line-height: 1.7; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358616a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.input-pill, .select-pill { border-radius: var(--pill); }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-700); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-900); }
.help { margin-top: 6px; font-size: 13px; color: var(--ink-400); }
.field-error { margin-top: 6px; font-size: 13px; color: var(--red-600); }
.trap-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree-box { padding: 20px 24px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: 14px; color: var(--ink-500); line-height: 1.7; }
.agree-box dt { font-weight: 700; color: var(--ink-700); }

/* 검색 줄: [분류 select] + 알약 입력칸(돋보기) + 검색 단추 */
.searchbar { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 48px auto 0; max-width: 1200px; }
.searchbar .select { flex: none; width: 160px; height: 56px; border-radius: var(--pill); }
.searchbar-field { position: relative; flex: 1 1 auto; max-width: 960px; }
.searchbar-field .ico { position: absolute; left: 22px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-400); pointer-events: none; }
.searchbar-field .input { height: 56px; padding-left: 54px; border-radius: var(--pill); }
.searchbar .btn { flex: none; width: 160px; height: 56px; }

.flash-wrap { padding-top: 24px; }
.flash { padding: 14px 20px; border-radius: var(--r-sm); background: var(--teal-50); color: var(--teal-700); font-weight: 600; }
.flash + .flash { margin-top: 8px; }
.flash-error { background: #fdecef; color: #b1001f; }
.flash-info { background: var(--navy-50); color: var(--navy-900); }

/* ---------- 로고 ---------- */
.logo-img { display: block; width: auto; }
.logo-main { height: 42px; }
.logo-central { height: 48px; }
/* 본회: 엠블럼 + 공식 워드마크(원래 회색 그림) + 아래 작은 영문 이름(회색, 워드마크 폭에 맞춤) — 10-20 시안 */
.logo-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; --logo-word-h: 23px; }
.logo-lockup .logo-emblem { height: 50px; }
.logo-lockup-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; width: calc(var(--logo-word-h) * 1207 / 163); }
.logo-word-main { display: block; width: 100%; height: auto; }
/* 영문 이름: 글자 크기·자간을 워드마크 높이에 비례시켜 워드마크와 폭이 같게(1440 에서 약 9px). 10-20 운영자 지시로 로고 전체를 시안 13 크기로 줄임 */
.logo-en { display: block; font-size: calc(var(--logo-word-h) * .39); font-weight: 500; line-height: 1; letter-spacing: .04em; color: #5a5858; white-space: nowrap; }
/* 하위 사이트: 엠블럼 + 작은 워드마크 / 큰 사이트 이름 */
/* 시도 지회 공식 로고 그림(엠블럼 + 지회 이름 + 영문 한 장). 높이만 정하고 좁으면 비율 그대로 줄인다 */
.logo-branch { height: 50px; max-width: 100%; object-fit: contain; object-position: left center; }
.ft-logo .logo-branch { height: 38px; }
.logo-branch.is-tall { height: 64px; }
.ft-logo .logo-branch.is-tall { height: 48px; }
.logo-sub { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-emblem { display: block; flex: none; width: auto; height: 54px; }
.logo-txt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-width: 0; }
.logo-word { display: block; width: auto; height: 16px; opacity: .85; }
.logo-name { display: block; font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--navy-950); letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 머리글 ---------- */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; transition: box-shadow .25s; }
.hd.is-scrolled { box-shadow: 0 6px 24px rgba(13, 25, 65, .08); }
/* 위 남색 띠 */
.hd-util { height: var(--hd-util); background: var(--navy-700); color: #fff; }
.hd-util :focus-visible { outline-color: #fff; }
.hd-util-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.hd-slogan { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, .92); white-space: nowrap; text-overflow: ellipsis; }
.hd-util-right { display: flex; align-items: center; gap: 18px; flex: none; margin-left: auto; }
.hd-util-links { display: flex; align-items: center; }
.hd-util-links li { display: flex; align-items: center; }
.hd-util-links li + li::before { content: ""; display: block; width: 1px; height: 12px; background: rgba(255, 255, 255, .5); }
.hd-util-links a, .hd-util-btn { display: block; padding: 6px 18px; font-size: 14px; font-weight: 500; line-height: 1.4; color: #fff; transition: opacity .2s; }
.hd-util-links li:last-child a, .hd-util-links li:last-child .hd-util-btn { padding-right: 4px; }
.hd-util-links a:hover, .hd-util-btn:hover { opacity: .75; }
.hd-sns { display: flex; align-items: center; gap: 8px; }
.hd-sns-btn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; transition: opacity .2s; }
.hd-sns-btn .ico { width: 15px; height: 15px; }
.hd-sns-btn:hover { opacity: .8; }
.hd-sns-youtube { background: #e62117; }
.hd-sns-instagram { background: linear-gradient(45deg, #f2a03d 0%, #e1306c 50%, #8a3ab9 100%); }
.hd-sns-blog { background: #03a94d; }
.hd-sns-facebook { background: #1877f2; }
.hd-util-search { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; border-radius: 50%; color: #fff; transition: background-color .2s; }
.hd-util-search .ico { width: 22px; height: 22px; }
.hd-util-search:hover, .hd-util-search[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
/* 메뉴 줄 */
.hd-bar { position: relative; height: var(--hd-bar); border-bottom: 1px solid var(--line); background: #fff; }
.hd-bar-in { position: static; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.hd-logo { display: flex; align-items: center; flex: none; min-width: 0; height: 100%; }
/* 1차 메뉴: 열린 메뉴 = 옅은 남색 바탕 + 위쪽 꺾쇠, 현재 위치 = 파란 글자 */
.gnb { display: flex; justify-content: center; flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 clamp(8px, 2vw, 40px); }
.gnb-list { display: flex; align-items: center; justify-content: space-evenly; width: 100%; max-width: 920px; height: 100%; }
.gnb-item { position: relative; display: flex; align-items: center; height: 100%; }
.gnb-link { position: relative; display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 14px 0 20px; border-radius: var(--r-sm); font-size: 19px; font-weight: 700; color: var(--navy-950); white-space: nowrap; transition: color .2s, background-color .2s; }
.gnb-caret { width: 18px; height: 18px; opacity: 0; transform: rotate(180deg); transition: opacity .2s; }
.gnb-link:hover, .gnb-link.is-active { color: var(--navy-600); }
.gnb-item.is-open > .gnb-link { background: var(--navy-50); color: var(--navy-600); }
.gnb-item.is-open > .gnb-link .gnb-caret { opacity: 1; }
.hd-tools { display: flex; align-items: center; flex: none; }
.hd-divider { display: block; width: 1px; height: 40px; margin-right: 32px; background: var(--line-strong); }
.hd-search-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy-950); transition: background-color .2s, color .2s; }
.hd-search-btn .ico { width: 28px; height: 28px; }
.hd-search-btn:hover, .hd-search-btn[aria-expanded="true"] { background: var(--bg-soft); color: var(--navy-900); }
.hd-donate { display: inline-flex; align-items: center; gap: 8px; height: 54px; margin-left: 24px; padding: 0 24px 0 26px; border-radius: var(--pill); background: var(--navy-600); color: #fff; font-size: 17px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .2s; }
.hd-donate:hover { background: var(--navy-700); }
.hd-donate .ico { width: 21px; height: 21px; }
.hd-donate .hd-donate-arrow { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.hd-donate:hover .hd-donate-arrow { transform: translateX(3px); }
.hd-menu-btn { display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: var(--r-xs); color: var(--ink-900); }
.hd-menu-ico { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 24px; }
.hd-menu-ico i { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.hd-menu-ico i:last-child { width: 15px; }
.hd-menu-btn:hover { color: var(--navy-900); }

/* 펼침 판: 1차 메뉴마다 그 아래로 떨어지는 흰 카드 (10-20 시안) */
.gnb-drop { position: absolute; z-index: 5; left: 0; top: calc(50% + 29px); width: max-content; min-width: 300px; padding: 10px; border: 1px solid rgba(13, 25, 65, .06); border-radius: var(--r-md); background: #fff; box-shadow: 0 18px 44px rgba(13, 25, 65, .14), 0 2px 6px rgba(13, 25, 65, .05); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .22s var(--ease), visibility 0s .22s; }
/* 1차 메뉴와 판 사이 틈을 마우스가 지나도 닫히지 않게 */
.gnb-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.gnb-item.is-open > .gnb-drop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .22s var(--ease), visibility 0s; }
.gnb-drop-items { display: grid; gap: 2px; }
.gnb-drop-link { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 9px 18px 9px 14px; border-radius: var(--r-sm); color: var(--ink-900); transition: background-color .15s, color .15s; }
.gnb-drop-link:hover, .gnb-drop-link:focus-visible { background: var(--navy-50); }
.gnb-drop-link:focus-visible { outline-offset: -2px; }
.gnb-drop-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; color: var(--navy-600); }
.gnb-drop-ico .ico { width: 30px; height: 30px; }
.gnb-drop-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gnb-drop-title { font-size: 17px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.gnb-drop-desc { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink-400); white-space: nowrap; }
.gnb-drop-link.is-active .gnb-drop-title { color: var(--navy-600); }
/* 기념일: 아이콘 + 제목 + 한 줄 설명 */
.gnb-drop-rich { min-width: 320px; }
.gnb-drop-rich .gnb-drop-link { padding-top: 10px; padding-bottom: 10px; }
/* 협회소개: 1열 (아이콘 + 제목) */
.gnb-drop-list { min-width: 248px; }
/* 주요사업(사업본부 + 人SIDE): 2열, 위에서 아래로 채움 */
.gnb-drop-grid .gnb-drop-items { grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 8), auto); grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 4px; }
.gnb-drop-grid .gnb-drop-link { min-height: 46px; padding-top: 7px; padding-bottom: 7px; gap: 12px; }
.gnb-drop-grid .gnb-drop-title { font-size: 15px; font-weight: 600; }
.gnb-drop-grid .gnb-drop-ico .ico { width: 26px; height: 26px; }
.gnb-drop-link.no-ico { padding-left: 18px; }

/* 검색 판 (머리글 아래로 펼침) */
.hd-search { position: absolute; left: 0; right: 0; top: 100%; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(13, 25, 65, .08); }
.hd-search-in { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.hd-search-form { display: flex; align-items: center; gap: 12px; flex: 0 1 820px; min-width: 0; }
.hd-search-field { position: relative; flex: 1 1 auto; min-width: 0; }
.hd-search-field .ico { position: absolute; left: 22px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-400); pointer-events: none; }
.hd-search-field .input { height: 56px; padding-left: 54px; border-radius: var(--pill); }
.hd-search-field .input::-webkit-search-cancel-button { cursor: pointer; }
.hd-search-go { flex: none; width: 140px; height: 56px; }
.hd-search-close { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-900); transition: border-color .2s, color .2s; }
.hd-search-close .ico { width: 20px; height: 20px; }
.hd-search-close:hover { border-color: var(--navy-900); color: var(--navy-900); }

/* 사이트 선택 상자 (바닥글) */
.spk { position: relative; }
.spk > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; user-select: none; }
.spk > summary::-webkit-details-marker { display: none; }
.spk-arrow { width: 16px; height: 16px; color: var(--ink-500); transition: transform .2s; }
.spk[open] .spk-arrow { transform: rotate(180deg); }
.spk-cur { white-space: nowrap; }
.spk-panel { position: absolute; z-index: 130; top: calc(100% + 10px); right: 0; display: grid; grid-template-columns: 190px 1fr; gap: 28px; width: 620px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-pop); text-align: left; }
.spk-group { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--teal-700); }
.spk-col > .spk-group:first-child { margin-top: 0; }
.spk-list a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-700); white-space: nowrap; transition: color .2s; }
.spk-list a:hover { color: var(--navy-900); }
.spk-list a.is-current { color: var(--navy-900); font-weight: 700; }
.spk-list-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.spk-ft > summary { min-width: 180px; height: 40px; padding: 0 12px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.spk-ft .spk-panel { top: auto; bottom: calc(100% + 8px); }

/* ---------- 전체메뉴 ---------- */
.allmenu { position: fixed; inset: 0; z-index: 300; overflow-y: auto; overscroll-behavior: contain; background: #fff; opacity: 0; transition: opacity .2s; }
.allmenu.is-open { opacity: 1; }
.am-top { position: sticky; top: 0; z-index: 2; background: #fff; }
.am-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hd-bar); }
.am-top-in::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line-strong); }
.am-top .wrap { position: relative; }
.am-logo { display: flex; align-items: center; min-width: 0; }
.am-util { display: flex; align-items: center; margin-left: auto; }
.am-util li { display: flex; align-items: center; }
.am-util li + li::before { content: ""; display: block; width: 1px; height: 12px; background: var(--line-strong); }
.am-util a { display: block; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-700); transition: color .2s; }
.am-util a:hover { color: var(--navy-900); }
.am-tools { display: flex; align-items: center; gap: 16px; flex: none; }
.am-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink-700); border-radius: 50%; color: var(--ink-900); transition: background-color .2s, color .2s; }
.am-close:hover { background: var(--navy-950); border-color: var(--navy-950); color: #fff; }
.am-close .ico { width: 20px; height: 20px; }
.am-body > .wrap { padding-top: 40px; padding-bottom: 96px; }
/* 데스크톱: 왼쪽 묶음 제목 + 오른쪽 격자 한 줄씩 */
.am-sec { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 40px; align-items: start; }
.am-sec + .am-sec { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.am-title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3; }
.am-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: inherit; text-align: left; cursor: default; pointer-events: none; }
.am-arrow { display: none; width: 20px; height: 20px; color: var(--ink-400); transition: transform .2s; }
.am-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 24px; padding-top: 7px; }
.am-cell-title { display: inline-block; font-size: 16px; font-weight: 700; color: var(--ink-900); transition: color .2s; }
.am-cell-title:hover, .am-cell-title.is-current { color: var(--navy-900); }
.am-sub { margin-top: 10px; }
.am-sub a { display: block; padding: 3px 0; font-size: 14px; color: var(--ink-500); transition: color .2s; }
.am-sub a:hover { color: var(--navy-900); }
.am-cell-wide { grid-column: span 3; }
.am-sub-cols { columns: 3; column-gap: 24px; }
.am-sub-cols li { break-inside: avoid; }
/* 기념일 묶음: 아이콘 + 이름 + 한 줄 설명 */
.am-grid-rich { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
.am-cell-rich { display: flex; align-items: flex-start; gap: 12px; }
.am-cell-ico { display: grid; place-items: center; flex: none; width: 26px; height: 26px; color: var(--navy-600); }
.am-cell-ico .ico { width: 26px; height: 26px; }
.am-cell-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 1px; }
.am-cell-name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.am-cell-desc { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--ink-500); }

/* SNS 동그라미 단추 */
.sns-list { display: flex; align-items: center; gap: 8px; }
.sns-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink-500); transition: border-color .2s, color .2s; }
.sns-btn .ico { width: 18px; height: 18px; }
.sns-btn:hover { border-color: var(--navy-900); color: var(--navy-900); }

/* ---------- 오른쪽 고정 바로가기 ---------- */
.quick { position: fixed; right: var(--safe-r); bottom: 96px; z-index: 90; }
.quick-list { display: flex; flex-direction: column; gap: 2px; }
.quick-item { display: flex; align-items: center; justify-content: center; width: 64px; height: 72px; border-radius: 6px 0 0 6px; background: var(--navy-950); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; transition: background-color .2s; }
.quick-item:hover { background: var(--navy-900); }
.to-top { position: fixed; right: var(--safe-r); bottom: 32px; z-index: 90; display: grid; place-items: center; width: 64px; height: 56px; border: 1px solid var(--line-strong); border-right: 0; border-radius: 6px 0 0 6px; background: #fff; color: var(--navy-950); opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.to-top .ico { width: 22px; height: 22px; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
.to-top:hover { background: var(--navy-50); }
.mbar { display: none; }
/* 오른쪽 고정 바로가기(64px)에 가리지 않게: 화면이 좁아 wrap 바깥 여백이 모자랄 때만 오른쪽 여백을 더 준다 */
.quick-safe { padding-right: max(var(--gutter), var(--safe-r), calc(80px - max(0px, (100vw - var(--wrap)) / 2))); }

/* ---------- 팝업 ---------- */
.pops { position: absolute; z-index: 95; top: calc(var(--hd-h) + 24px); left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); pointer-events: none; }
.pop { width: 360px; overflow: hidden; border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-pop); pointer-events: auto; }
.pop-img img { display: block; width: 100%; height: auto; max-height: calc(100vh - var(--hd-h) - 94px); object-fit: contain; background: #fff; }
.pop-bar { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; height: 46px; padding: 0 8px; background: var(--navy-950); color: #fff; font-size: 14px; }
.pop-today, .pop-close { display: inline-flex; align-items: center; min-height: 46px; padding: 0 8px; color: #fff; }
.pop-today { gap: 8px; }
.pop-check { flex: none; width: 16px; height: 16px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 3px; }
.pop-close { font-weight: 700; }
.pop-today:hover, .pop-close:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 속페이지 머리 ---------- */
.subhead { padding-top: 80px; text-align: center; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--ink-400); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { display: inline-flex; align-items: center; transition: color .2s; }
.crumbs a:hover { color: var(--navy-900); }
.crumbs .ico { width: 16px; height: 16px; }
.crumbs .crumbs-sep { width: 14px; height: 14px; color: var(--ink-300); }
.crumbs [aria-current] { color: var(--ink-500); font-weight: 600; }
.subhead-title { margin-top: 16px; font-size: 40px; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.subhead-lead { margin: 12px auto 0; max-width: 760px; font-size: 16px; color: var(--ink-500); }
.tabbox { display: flex; justify-content: center; margin-top: 40px; }
.tabbox-in { position: relative; display: flex; min-width: 0; max-width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.tabbox-list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.tabbox-list::-webkit-scrollbar { display: none; }
.tabbox-link { display: flex; align-items: center; justify-content: center; min-width: 140px; height: 56px; padding: 0 22px; border-radius: var(--r-sm); font-size: 16px; font-weight: 600; color: var(--ink-700); white-space: nowrap; transition: background-color .2s, color .2s; }
/* 가로로 넘칠 때: 끝 흐림 + 넘김 단추 (site.js 가 .is-scrollable/.at-start/.at-end 를 붙임) */
.tabbox-in::before, .tabbox-in::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 64px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.tabbox-in::before { left: 0; border-radius: calc(var(--r-md) - 1px) 0 0 calc(var(--r-md) - 1px); background: linear-gradient(90deg, #fff 35%, rgba(255, 255, 255, 0)); }
.tabbox-in::after { right: 0; border-radius: 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) 0; background: linear-gradient(270deg, #fff 35%, rgba(255, 255, 255, 0)); }
.tabbox.is-scrollable:not(.at-start) .tabbox-in::before, .tabbox.is-scrollable:not(.at-end) .tabbox-in::after { opacity: 1; }
.tabbox-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink-900); box-shadow: 0 2px 8px rgba(13, 25, 65, .12); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s, border-color .2s, color .2s; }
.tabbox-arrow .ico { width: 18px; height: 18px; }
.tabbox-arrow:hover { border-color: var(--navy-900); color: var(--navy-900); }
.tabbox-prev { left: 8px; }
.tabbox-next { right: 8px; }
.tabbox.is-scrollable:not(.at-start) .tabbox-prev, .tabbox.is-scrollable:not(.at-end) .tabbox-next { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s, border-color .2s, color .2s; }
.tabbox-link:hover { background: var(--bg-soft); color: var(--ink-900); }
.tabbox-link.is-active { background: var(--navy-950); color: #fff; }

/* ---------- 본문 HTML ---------- */
.prose { font-size: 17px; line-height: 1.8; color: var(--ink-700); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: 26px; }
.prose h3 { margin-top: 1.6em; font-size: 22px; }
.prose h4 { margin-top: 1.4em; font-size: 19px; }
.prose a { color: var(--navy-900); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ol { padding-left: 1.3em; list-style: decimal; }
.prose li + li { margin-top: .3em; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--r-sm); }
.prose figure img { margin: 0 auto; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-400); text-align: center; }
.prose blockquote { padding: 16px 24px; border-left: 3px solid var(--teal-600); background: var(--bg-soft); border-radius: 0 var(--r-xs) var(--r-xs) 0; color: var(--ink-500); }
.prose hr { border: 0; height: 1px; background: var(--line); }
.prose table { width: 100%; font-size: 15px; }
.prose-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; color: var(--ink-900); }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-sm); }
.prose video { display: block; width: 100%; height: auto; max-height: 80vh; background: #000; border-radius: var(--r-sm); }

/* ---------- 페이지 번호 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 64px; }
.pager-list { display: flex; align-items: center; gap: 4px; }
.pager-num { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: var(--pill); font-size: 15px; font-weight: 600; color: var(--ink-500); transition: background-color .2s, color .2s; }
a.pager-num:hover { background: var(--bg-soft); color: var(--ink-900); }
.pager-num.is-current { background: var(--navy-900); color: #fff; }
.pager-gap { display: grid; place-items: center; min-width: 24px; height: 40px; color: var(--ink-400); }
.pager-step { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.pager-step .ico { width: 18px; height: 18px; }
a.pager-step:hover { color: var(--navy-900); }
.pager-step.is-disabled { color: var(--ink-300); }

/* ---------- 빈 내용·오류 ---------- */
.empty { display: flex; flex-direction: column; align-items: center; padding: 80px 20px; text-align: center; }
.empty-ico { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-300); }
.empty-ico .ico { width: 36px; height: 36px; }
.empty-msg { margin-top: 20px; font-size: 17px; font-weight: 600; color: var(--ink-500); }
.empty-sub { margin-top: 6px; font-size: 14px; color: var(--ink-400); }
.err { padding: 120px 0 160px; text-align: center; }
.err-in { display: flex; flex-direction: column; align-items: center; }
.err-ico { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--navy-50); color: var(--navy-900); }
.err-ico .ico { width: 40px; height: 40px; }
.err-code { margin-top: 24px; font-size: 15px; font-weight: 700; color: var(--teal-700); letter-spacing: .04em; }
.err-title { margin-top: 8px; font-size: 32px; font-weight: 700; }
.err-msg { margin-top: 12px; max-width: 560px; color: var(--ink-500); }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- 바닥글 ---------- */
.ft { margin-top: 0; border-top: 1px solid var(--line); background: #fff; }
.ft-top { border-bottom: 1px solid var(--line); }
.ft-top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 81px; padding-top: 12px; padding-bottom: 12px; }
.ft-links { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.ft-links li { display: flex; align-items: center; }
.ft-links li + li::before { content: ""; display: block; width: 1px; height: 12px; margin: 0 14px; background: var(--line-strong); }
.ft-links a, .ft-link-btn { font-size: 14px; color: var(--ink-500); transition: color .2s; }
.ft-links a:hover, .ft-link-btn:hover { color: var(--navy-900); }
.ft-links .is-strong { font-weight: 700; color: var(--ink-900); }
.ft-top-right { display: flex; align-items: center; gap: 16px; }
.ft-body { padding: 48px 0; }
.ft-body-in { display: flex; justify-content: space-between; gap: 48px; }
.ft-info { min-width: 0; }
.ft-logo { display: inline-flex; }
.ft-logo .logo-main { height: 36px; }
.ft-logo .logo-central { height: 34px; }
.ft-logo .logo-emblem { height: 36px; }
.ft-logo .logo-word { height: 12px; }
.ft-logo .logo-name { font-size: 18px; }
.ft-addr { margin-top: 22px; font-size: 14px; line-height: 1.85; color: var(--ink-500); }
.ft-addr a:hover { color: var(--navy-900); }
.ft-sep { margin: 0 8px; color: var(--line-strong); }
.ft-item { white-space: nowrap; }
.ft-copy { margin-top: 16px; font-size: 13px; color: var(--ink-400); letter-spacing: 0; }
/* PC버전(휴대폰·태블릿 폭에서만)·모바일 버전(PC버전을 고른 동안) 단추 */
.ft-view { display: inline-flex; align-items: center; height: 34px; margin-top: 20px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-700); transition: color .2s, border-color .2s; }
.ft-view:hover { color: var(--navy-900); border-color: var(--navy-900); }
.ft-view.is-narrow-only { display: none; }

/* 대화 상자 */
.dlg { width: calc(100% - 40px); max-width: 520px; padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink-700); box-shadow: var(--shadow-pop); }
.dlg::backdrop { background: rgba(13, 25, 65, .5); }
.dlg-in { padding: 32px; }
.dlg-in p { margin-top: 12px; line-height: 1.75; }
.dlg-title { font-size: 22px; font-weight: 700; }
.dlg-actions { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ---------- 공통 JS 부품 ---------- */
.ks-viewport { position: relative; overflow: hidden; touch-action: pan-y; }
.ks-track { position: relative; display: flex; transition: transform .55s var(--ease); will-change: transform; }
.ks-slide { flex: 0 0 100%; min-width: 0; }
.ks-dragging .ks-track, .ks-noanim .ks-track { transition: none; }
.ks-dragging { cursor: grabbing; user-select: none; }
.ks-dots { display: flex; align-items: center; gap: 0; }
/* 점은 겉보기 8px, 누르는 곳은 14×28 (현재 점은 32px 막대) */
.ks-dots button { position: relative; width: 14px; height: 28px; transition: width .3s var(--ease); }
.ks-dots button::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 8px; margin-top: -4px; border-radius: var(--pill); background: var(--ink-300); transition: background-color .3s; }
.ks-dots button.is-active { width: 38px; }
.ks-dots button.is-active::before { background: var(--navy-950); }
.ks-nav { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: #fff; }
.ks-nav button { display: grid; place-items: center; width: 44px; height: 42px; color: var(--ink-900); }
.ks-nav button .ico { width: 20px; height: 20px; }
.ks-nav button:hover { color: var(--navy-900); }
.ks-count { font-size: 14px; font-weight: 600; color: var(--ink-500); font-variant-numeric: tabular-nums; }
[data-ks-toggle] .ico-play { display: none; }
.is-paused [data-ks-toggle] .ico-play { display: inline-block; }
.is-paused [data-ks-toggle] .ico-pause { display: none; }
.ks-single .ks-dots, .ks-single [data-ks-prev], .ks-single [data-ks-next], .ks-single [data-ks-toggle], .ks-single .ks-nav, .ks-single .ks-count { display: none; }
.tk-viewport { position: relative; overflow: hidden; }
.tk-track { position: relative; display: flex; width: max-content; will-change: transform; }
.tk-item { flex: none; }
.acc-head { display: flex; align-items: center; width: 100%; text-align: left; }
.acc-body[hidden] { display: none; }
[role="tabpanel"][hidden] { display: none; }

/* 라이트박스 */
.lb { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 72px 88px; background: rgba(9, 13, 32, .92); opacity: 0; transition: opacity .2s; }
.lb.is-open { opacity: 1; }
.lb-fig { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; border-radius: var(--r-xs); background: #111; }
.lb-cap { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .85); text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .12); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 20px; top: 50%; margin-top: -26px; }
.lb-next { right: 20px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; top: 30px; left: 0; right: 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .7); pointer-events: none; }
.lb.is-single .lb-prev, .lb.is-single .lb-next, .lb.is-single .lb-count { display: none; }

/* ---------- 반응형 ---------- */
/* 탭 상자: 고정 바로가기(오른쪽 64px) 앞에서 끝나게 폭을 제한하고, 넓은 화면은 탭을 넓게 */
@media (min-width: 769px) {
    .tabbox-in { max-width: min(100%, calc(100vw - 160px)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .tabbox { margin-top: 56px; }
    .tabbox-link { min-width: 136px; padding: 0 16px; }
}
@media (min-width: 1280px) {
    .tabbox { margin-top: 64px; }
    .tabbox-link { min-width: 176px; height: 60px; }
}
@media (min-width: 1440px) {
    .tabbox-link { min-width: 200px; }
}
@media (min-width: 1600px) {
    .tabbox-link { min-width: 220px; }
}
/* 탭이 많아 가로로 넘기는 상자(주요사업 15개)는 탭을 넓히지 않는다 */
@media (min-width: 1024px) {
    .tabbox:not(.is-few) .tabbox-link { min-width: 140px; }
}

@media (min-width: 1600px) {
    :root { --hd-bar: 112px; --hd-h: 160px; }
    .gnb-link { font-size: 20px; }
}
/* 1280~1439: 로고·간격을 조금 줄인다 */
@media (max-width: 1439px) {
    .gnb-link { font-size: 18px; padding: 0 12px 0 16px; }
    .logo-lockup { gap: 10px; --logo-word-h: 22px; }
    .logo-branch { height: 46px; }
    .logo-branch.is-tall { height: 60px; }
    .logo-lockup .logo-emblem { height: 48px; }
    .logo-lockup-txt { gap: 5px; }
    .hd-divider { margin-right: 20px; }
    .hd-donate { margin-left: 16px; padding: 0 20px 0 22px; height: 50px; font-size: 16px; }
}
@media (max-width: 1279px) {
    :root { --sec-gap: 100px; --hd-util: 44px; --hd-bar: 100px; --hd-h: 144px; }
    .hd-util-links a, .hd-util-btn { padding: 6px 12px; font-size: 13px; }
    .hd-util-right { gap: 12px; }
    .hd-slogan { font-size: 13px; }
    .hd-bar-in { gap: 16px; }
    .gnb { padding: 0 8px; }
    .gnb-link { height: 46px; padding: 0 8px 0 12px; gap: 4px; font-size: 17px; }
    .gnb-caret { width: 16px; height: 16px; }
    .gnb-drop { top: calc(50% + 27px); }
    .logo-lockup { gap: 9px; --logo-word-h: 21px; }
    .logo-branch { height: 42px; }
    .logo-branch.is-tall { height: 54px; }
    .logo-lockup .logo-emblem { height: 44px; }
    .logo-lockup-txt { gap: 4px; }

    .logo-emblem { height: 46px; }
    .logo-word { height: 13px; }
    .logo-name { font-size: 20px; }
    .logo-central { height: 40px; }
    /* 메뉴 줄 검색 단추는 위 띠의 검색과 겹치므로 뺀다 */
    .hd-search-btn, .hd-divider { display: none; }
    .hd-donate { margin-left: 0; height: 46px; padding: 0 18px; font-size: 15px; gap: 6px; }
    .hd-donate .ico { width: 18px; height: 18px; }
    .hd-donate .hd-donate-arrow { display: none; }
    .am-sec { grid-template-columns: 180px minmax(0, 1fr); column-gap: 24px; }
    .am-title { font-size: 22px; }
    .am-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .am-grid-rich { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .am-cell-wide { grid-column: span 2; }
    .am-sub-cols { columns: 2; }
}

@media (max-width: 1024px) {
    :root { --hd-util: 0px; --hd-h: 64px; --hd-bar: 64px; }
    .ft-view.is-narrow-only { display: inline-flex; }
    .hd-util, .gnb, .hd-divider, .hd-donate { display: none; }
    .hd-bar-in { gap: 12px; }
    .logo-main { height: 34px; }
    .logo-central { height: 30px; }
    .logo-lockup { gap: 8px; }
    .logo-lockup { --logo-word-h: 18px; }
    .logo-branch, .ft-logo .logo-branch { height: 34px; }
    .logo-branch.is-tall, .ft-logo .logo-branch.is-tall { height: 44px; }
    .logo-lockup .logo-emblem { height: 36px; }
    .logo-lockup-txt { gap: 0; }
    .logo-en { display: none; }
    .logo-emblem { height: 34px; }
    .logo-sub { gap: 8px; }
    .logo-txt { gap: 3px; }
    .logo-word { height: 11px; }
    .logo-name { font-size: 16px; }
    .hd-tools { gap: 0; }
    .hd-search-btn { display: grid; }
    .hd-search-btn .ico { width: 24px; height: 24px; }
    .hd-menu-btn { display: grid; }
    .hd-search-in { gap: 10px; padding-top: 16px; padding-bottom: 16px; }
    .hd-search-form { flex: 1 1 auto; gap: 8px; }
    .hd-search-field .ico { left: 16px; }
    .hd-search-field .input { height: 48px; padding-left: 44px; font-size: 16px; }
    .hd-search-go { width: auto; height: 48px; padding: 0 20px; }
    .hd-search-close { width: 44px; height: 44px; }
    .spk-ft .spk-panel { position: fixed; top: auto; bottom: calc(var(--mbar-h) + var(--safe-b) + 16px); left: max(var(--gutter), var(--safe-l)); right: max(var(--gutter), var(--safe-r)); width: auto; max-height: calc(70vh - var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; grid-template-columns: 1fr; gap: 4px; padding: 20px; }
    .spk-ft .spk-col-region .spk-group { margin-top: 16px; }

    .am-top-in { flex-wrap: wrap; height: auto; min-height: 64px; column-gap: 12px; row-gap: 0; }
    .am-logo { min-height: 64px; }
    .am-util { order: 3; flex: 1 1 100%; margin: 0 0 10px -10px; }
    .am-util a { padding: 8px 10px; font-size: 14px; }
    .am-top-in::after { bottom: 0; }
    .am-body > .wrap { padding-top: 8px; padding-bottom: 64px; }
    .am-sec, .am-sec + .am-sec { display: block; margin: 0; padding: 0; border-top: 0; border-bottom: 1px solid var(--line); }
    .am-title { margin: 0; font-size: 20px; }
    .am-toggle { display: flex; justify-content: space-between; width: 100%; padding: 20px 0; pointer-events: auto; cursor: pointer; }
    .am-arrow { display: block; }
    .am-toggle[aria-expanded="true"] .am-arrow { transform: rotate(180deg); }
    .am-panel { display: none; padding-bottom: 24px; }
    .am-sec.is-open .am-panel { display: block; }
    .am-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding-top: 0; }
    .am-cell-title { display: flex; align-items: center; width: 100%; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink-700); }
    .am-cell-wide { grid-column: 1 / -1; }
    .am-grid-rich { gap: 0 20px; }
    .am-cell-rich { align-items: center; padding: 8px 0; color: var(--ink-900); }
    .am-cell-rich .am-cell-name { font-size: 15px; font-weight: 600; }
    .am-cell-rich .am-cell-desc { font-size: 13px; color: var(--ink-400); }
    .am-sub { margin: 0 0 8px; }
    .am-sub a { display: flex; align-items: center; min-height: 40px; padding: 4px 0; }
    .am-sub-cols { columns: 2; }

    .ft-body-in { flex-direction: column; gap: 36px; }
}

@media (max-width: 1023px) {
    .sec-title { font-size: 34px; }
    .subhead-title { font-size: 34px; }
    .form-grid { grid-template-columns: 1fr; }
    .tabbox.is-few .tabbox-in { width: 100%; }
    .tabbox.is-few .tabbox-list { flex: 1 1 auto; grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); overflow: visible; }
    .tabbox.is-few .tabbox-link { min-width: 0; height: auto; min-height: 52px; padding: 6px 8px; line-height: 1.3; text-align: center; white-space: normal; }
}

@media (max-width: 768px) {
    :root { --mbar-h: 56px; }
    body { padding-bottom: calc(var(--mbar-h) + var(--safe-b)); }
    .quick { display: none; }
    .quick-safe { padding-right: max(var(--gutter), var(--safe-r)); }
    .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: calc(56px + var(--safe-b)); padding: 0 var(--safe-r) var(--safe-b) var(--safe-l); background: var(--navy-950); }
    .mbar-list { display: flex; height: 56px; }
    .mbar-list li { flex: 1 1 0; min-width: 0; }
    .mbar-item { display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
    .mbar-item .ico { width: 20px; height: 20px; }
    .mbar-list li + li .mbar-item { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12); }
    .to-top { top: auto; right: max(16px, var(--safe-r)); bottom: calc(var(--mbar-h) + 16px + var(--safe-b)); width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: var(--shadow-card); }
    /* 휴대폰: 한 장씩 가운데. 길면 덮개 안에서 스크롤, 그림 높이는 띠까지 한 화면에 들어오게 */
    .pops { position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; align-items: center; max-width: none; margin: 0; padding: max(20px, env(safe-area-inset-top)) max(20px, var(--safe-r)) max(20px, var(--safe-b)) max(20px, var(--safe-l)); overflow-y: auto; overscroll-behavior: contain; background: rgba(13, 25, 65, .5); pointer-events: auto; }
    .pop { flex: none; width: min(360px, 100%); margin: auto 0; }
    .pop.is-wait { display: none; }
    .pop-img img { max-height: calc(100vh - 86px); max-height: calc(100dvh - 46px - max(20px, env(safe-area-inset-top)) - max(20px, var(--safe-b))); object-fit: contain; background: #fff; }
    .ft-top-in { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
    .ft-top-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }
}

@media (max-width: 767px) {
    :root { --gutter: 20px; --sec-gap: 64px; }
    body { font-size: 15px; }
    .sec-head { margin-bottom: 24px; }
    .sec-title { font-size: 28px; }
    .sec-lead { font-size: 15px; }
    .subhead { padding-top: 48px; }
    .subhead-title { font-size: 28px; margin-top: 12px; }
    .subhead-lead { font-size: 15px; }
    .tabbox { margin-top: 28px; }
    .tabbox-list { grid-auto-columns: max-content; }
    .tabbox-link { min-width: 100px; height: 48px; padding: 0 16px; font-size: 15px; }
    .tabbox.is-few .tabbox-link { min-height: 48px; padding: 6px 4px; font-size: 14px; }
    .tabbox-in::before, .tabbox-in::after { width: 44px; }
    .tabbox-arrow { width: 30px; height: 30px; margin-top: -15px; }
    .tabbox-prev { left: 4px; }
    .tabbox-next { right: 4px; }
    .sub-body { padding-top: 40px; padding-bottom: 96px; }
    .btn { height: 48px; padding: 0 24px; font-size: 15px; }
    .btn-lg { height: 54px; font-size: 16px; }
    .searchbar { flex-wrap: wrap; gap: 8px; margin-top: 32px; }
    .searchbar .select { width: 100%; height: 48px; }
    .searchbar-field { flex: 1 1 100%; }
    .searchbar-field .input { height: 48px; }
    .searchbar .btn { width: 100%; height: 48px; }
    .prose { font-size: 16px; }
    html:not(.js) .prose table { display: block; overflow-x: auto; }
    .pager { gap: 2px; margin-top: 40px; }
    .pager-step span { display: none; }
    .pager-num { min-width: 36px; height: 36px; font-size: 14px; }
    .ft-body { padding: 36px 0 40px; }
    .ft-sep { margin: 0 6px; }
    .ft-links { display: grid; grid-template-columns: repeat(2, max-content); row-gap: 10px; }
    .ft-links li:nth-child(odd)::before { display: none; }
    .err { padding: 72px 0 96px; }
    .err-title { font-size: 26px; }
    .lb { padding: 64px 12px; }
    .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; }
    .lb-prev { left: calc(50% - 64px); }
    .lb-next { right: calc(50% - 64px); }
    .am-tools { gap: 10px; }
    .am-tools .sns-list { gap: 6px; }
    .am-grid-rich { grid-template-columns: minmax(0, 1fr); }
    .dlg-in { padding: 24px; }
}

@media (max-width: 420px) {
    .logo-name { font-size: 15px; }
    .logo-main { height: 30px; }
    .logo-central { height: 26px; }
    .am-tools .sns-list { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media print {
    .hd, .quick, .to-top, .mbar, .allmenu, .pops, .ft-top-right, .ft-view { display: none !important; }
    body { padding: 0; }
}

/* ---------- 큰 첫 화면(기념일 첫 화면·본회 메인 히어로 공통, 10-20 운영자 시안) ---------- */
.is-day-landing, .dl-hero { --dl-blue: #1450c8; --dl-sky: #e9f2fd; }
.dl-hero { --dl-h: clamp(460px, 36vw, 620px); position: relative; overflow: hidden; background: linear-gradient(180deg, #f1f7fe 0%, var(--dl-sky) 100%); }
.dl-hero::before { content: ""; position: absolute; left: calc(50% - 760px); bottom: -320px; width: 640px; height: 640px; border: 64px solid rgba(255, 255, 255, .55); border-radius: 50%; pointer-events: none; }
/* 그림 칸: 첫 화면 기본 높이(--dl-h) × 그림 비율(약 1.9:1) 폭으로 오른쪽에 붙이고(최대 74%), 왼쪽 가장자리만 바탕색으로 흐리게 */
.dl-hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: min(74%, calc(var(--dl-h) * 1.9)); }
.dl-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 7%, #000 16%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 7%, #000 16%); }
.dl-hero-in { position: relative; z-index: 1; display: flex; align-items: center; min-height: var(--dl-h); padding-top: 48px; padding-bottom: 56px; }
.dl-hero-txt { max-width: 46%; }
.dl-hero.no-art .dl-hero-txt { max-width: 760px; }
.dl-when { font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0; color: var(--dl-blue); }
.dl-title { margin-top: 14px; font-size: clamp(44px, 4.45vw, 78px); font-weight: 900; line-height: 1.13; letter-spacing: -0.045em; color: var(--navy-950); }
.dl-title-ln { display: block; }
.dl-title-ln.is-accent { color: var(--dl-blue); }
.dl-tagline { margin-top: 28px; font-size: clamp(22px, 1.95vw, 30px); font-weight: 500; line-height: 1.45; letter-spacing: -0.03em; color: var(--ink-900); }
.dl-desc { position: relative; max-width: 420px; text-wrap: balance; margin-top: 24px; padding-top: 24px; font-size: 16px; line-height: 1.7; color: var(--ink-500); }
.dl-desc::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--dl-blue); }

/* 기념일 첫 화면 1025~1279: 그림이 글 쪽으로 들어오지 않게 폭을 줄이고 흐림을 넓힌다 */
@media (min-width: 1025px) and (max-width: 1279px) {
    .dl-hero-art { width: min(62%, calc(var(--dl-h) * 1.9)); }
    .dl-hero-art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 10%, #000 22%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 10%, #000 22%); }
}

/* 기념일 첫 화면: 1024 이하는 글 → 그림 차례로 쌓는다 */
@media (max-width: 1024px) {
    .dl-hero { display: flex; flex-direction: column; }
    .dl-hero::before { left: -280px; top: -260px; bottom: auto; }
    .dl-hero-art { position: relative; order: 2; width: 100%; aspect-ratio: 850 / 448; max-height: 480px; }
    .dl-hero-art img { object-position: center 40%; -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .6) 12%, #000 30%); mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .6) 12%, #000 30%); }
    .dl-hero-in { min-height: 0; padding-top: 56px; padding-bottom: 8px; }
    .dl-hero.no-art .dl-hero-in { padding-bottom: 56px; }
    .dl-hero-txt, .dl-hero.no-art .dl-hero-txt { max-width: 640px; }
    .dl-title { font-size: 56px; }
    .dl-tagline { font-size: 24px; }
}

@media (max-width: 767px) {
    .dl-hero-in { padding-top: 40px; }
    .dl-hero.no-art .dl-hero-in { padding-bottom: 40px; }
    .dl-when { font-size: 14px; }
    .dl-title { margin-top: 10px; font-size: clamp(34px, 10.4vw, 46px); line-height: 1.15; }
    .dl-tagline { margin-top: 20px; font-size: 19px; }
    .dl-desc { margin-top: 18px; padding-top: 18px; font-size: 15px; }
}
