/* ==========================================================================
   공간정보산업진흥원 홈페이지 스타일
   - 색상·글꼴·간격은 아래 :root 값만 바꾸면 사이트 전체에 반영됩니다.
   - 본문 작성용 클래스는 "본문 작성용 요소" 부분을 참고하세요.
   ========================================================================== */

:root {
  /* 색상 */
  --brand: #183889;        /* 대표 남색 */
  --brand-deep: #112a6b;   /* 눌렀을 때 */
  --brand-bright: #112fb9; /* 강조 선 */
  --brand-tint: #eaf0fb;   /* 옅은 남색 바탕 */
  --sky: #35aae2;          /* 보조 하늘색 */
  --ink: #202635;          /* 본문 글자 */
  --ink-2: #505766;        /* 보조 글자 */
  --ink-3: #657086;        /* 날짜 등 */
  --line: #dfe3ec;         /* 테두리 */
  --line-soft: #e8ebf1;    /* 목록 구분선 */
  --paper: #f3f6fc;        /* 옅은 바탕 */
  --card: #f8f9fc;         /* 카드 바탕 */
  --footer: #eef0f5;
  --white: #ffffff;
  --focus: #35aae2;

  /* 글꼴 */
  --font: "Pretendard GOV Variable", "Pretendard GOV", "Pretendard Variable", Pretendard,
          "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1rem;        /* 16 본문 */
  --fs-lg: 1.1875rem;   /* 19 */
  --fs-xl: 1.4375rem;   /* 23 */
  --fs-2xl: 1.6875rem;  /* 27 */
  --fs-3xl: 3.0625rem;  /* 49 */

  --wrap: 1200px;
  --gutter: 4%;
  --radius: 12px;       /* 카드·상자 */
  --radius-sm: 7px;     /* 버튼 */
  --header-h: 85px;
  --shadow: 0 2px 5px rgba(24, 37, 75, .045);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.65;
  letter-spacing: -0.03em; color: var(--ink); background: var(--white);
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(var(--wrap), 92%); margin: 0 auto; }
.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: absolute; left: -999px; top: 8px; z-index: 300; padding: 10px 16px; background: #fff; color: var(--brand); font-weight: 700; }
.skip-link:focus { left: 8px; }

/* 버튼 꺾쇠(›) */
.btn::after { content: "›"; font-weight: 400; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.btn.no-chev::after { content: none; }

/* 외부 링크(새 창) 표시 */
.ext::after {
  content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em; vertical-align: -0.02em;
  background: currentColor; opacity: .65; transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 1.5h6v6M10.5 1.5 4 8M8.5 7v3.5h-7v-7H5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 1.5h6v6M10.5 1.5 4 8M8.5 7v3.5h-7v-7H5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn.ext::after { font-size: inherit; }

/* 아이콘 */
.ico { width: 43px; height: 43px; color: var(--brand); display: block; flex: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px 24px;
  border: 1px solid var(--brand); border-radius: var(--radius-sm); background: #fff; color: var(--brand);
  font-weight: 700; font-size: var(--fs-md); cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--brand-tint); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-line { background: #fff; color: var(--brand); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: var(--fs-sm); gap: 8px; }

/* ---------- 상단 ---------- */
.util { background: var(--brand); color: #fff; font-size: var(--fs-xs); }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.util nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.util a:hover { text-decoration: underline; }

.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid #e5e8ef; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: var(--header-h); }
.logo { flex: none; display: block; line-height: 0; }
.logo img { width: 268px; max-width: 100%; height: auto; }

.gnb { flex: 1; align-self: stretch; }
.gnb > ul { list-style: none; display: flex; justify-content: space-between; height: 100%; }
.gnb > ul > li { position: relative; flex: 1; }
.gnb .top {
  display: flex; align-items: center; justify-content: center; height: 100%; min-height: var(--header-h);
  font-size: var(--fs-lg); font-weight: 700; white-space: nowrap; position: relative; padding: 0 4px;
}
.gnb .top::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px;
  background: var(--brand-bright); transform: scaleX(0); transition: transform .15s ease;
}
.gnb .top:hover, .gnb > ul > li.is-current .top { color: var(--brand-bright); }
.gnb > ul > li:hover .top::after, .gnb > ul > li.is-current .top::after, .gnb .top:focus-visible::after { transform: scaleX(1); }

.gnb .sub { list-style: none; display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 22px 4px 28px; text-align: center; }
.gnb .sub a { display: block; padding: 5px 2px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; border-radius: 4px; }
.gnb .sub a:hover, .gnb .sub a:focus-visible { color: var(--brand); background: var(--paper); }
.site-header.is-open .gnb .sub { display: block; }
.site-header.is-open::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--mega-h, 260px);
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 24px -18px rgba(24, 37, 75, .35); z-index: -1;
}

.menu-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line); background: #fff; border-radius: 5px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; 
}
.menu-btn .bars { width: 16px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-btn .bars::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }

/* 전체메뉴(모바일 메뉴 겸용) */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(16, 26, 56, .45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--brand); color: #fff; }
.drawer-head strong { font-size: var(--fs-lg); }
.drawer-close { width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; }
.drawer details { border-bottom: 1px solid var(--line-soft); }
.drawer summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--ink-3); }
.drawer details[open] summary { color: var(--brand); }
.drawer details[open] summary::after { content: "−"; }
.drawer details ul { list-style: none; padding: 4px 20px 14px; background: var(--paper); }
.drawer details li a { display: block; padding: 10px 12px; font-size: var(--fs-sm); }
.drawer details li a[aria-current="page"] { font-weight: 700; color: var(--brand); }
.drawer .drawer-services { padding: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 메인: 첫 화면 ---------- */
.hero { position: relative; background: var(--paper) url("../img/hero-map.webp") no-repeat right center; background-size: auto 100%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 25%, var(--paper) 43%, rgba(243, 246, 252, 0) 68%); }
.hero .wrap { position: relative; min-height: 440px; padding: 62px 18px 65px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 20px; margin-bottom: 24px; }
.eyebrow::after { content: ""; display: block; width: 36px; height: 2px; background: var(--brand-bright); margin-top: 10px; }
.hero h1 { font-size: clamp(2rem, 4vw, var(--fs-3xl)); line-height: 1.22; letter-spacing: -0.065em; margin-bottom: 16px; font-weight: 800; }
.hero h1 span { color: var(--brand); }
.hero .desc { font-size: 17px; max-width: 540px; margin-bottom: 30px; color: #454b56; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 메인: 공통 ---------- */
.home-section { padding: 42px 0 0; }
.home-section.last { padding-bottom: 56px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.heading p { color: var(--ink-2); }
.bar-title, .content h2 { border-left: 5px solid var(--brand); padding-left: 13px; }
.bar-title { font-size: var(--fs-2xl); line-height: 1.2; font-weight: 800; letter-spacing: -0.045em; }

/* 주요 사업 카드 */
.cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; overflow: hidden; display: block; height: 100%; min-height: 215px; padding: 25px 28px 52px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.card::before {
  content: ""; position: absolute; right: -40px; top: -65px; width: 210px; height: 140px; transform: rotate(-28deg);
  border-radius: 45%; background: linear-gradient(120deg, transparent, rgba(53, 170, 226, .2)); pointer-events: none;
}
.cards li:nth-child(even) .card::before { background: linear-gradient(120deg, transparent, rgba(224, 203, 226, .53)); }
.card > * { position: relative; }
.card h3 { font-size: var(--fs-xl); margin: 13px 0 7px; line-height: 1.25; }
.card p { font-size: var(--fs-sm); color: var(--ink-2); }
.card .arrow {
  position: absolute; bottom: 15px; right: 19px; width: 25px; height: 25px; border: 1px solid #d2dae9; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; line-height: 1; color: var(--ink-2); background: #fff;
}
.card:hover { border-color: #b9c4dc; box-shadow: 0 6px 16px rgba(24, 37, 75, .08); }
.card:hover h3 { color: var(--brand); }

/* 2단 */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

/* 소식 상자 */
.news-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; min-height: 265px; display: flex; flex-direction: column; }
.tabs { display: flex; background: #f0f3f8; }
.tabs [role="tab"] { flex: 1; border: 0; background: none; color: #424b60; font-weight: 700; padding: 13px 7px; }
.tabs [role="tab"]:hover { color: var(--brand); }
.tabs [role="tab"][aria-selected="true"] { background: var(--brand); color: #fff; }
.news-box [role="tabpanel"] { flex: 1; }
.news-more { display: block; padding: 10px 20px 14px; text-align: right; font-size: var(--fs-sm); color: var(--brand); font-weight: 700; border-top: 1px solid var(--line-soft); }
.news-more:hover { text-decoration: underline; }

.post-list { list-style: none; padding: 12px 20px; }
.post-list li { border-bottom: 1px solid var(--line-soft); }
.post-list li:last-child { border: 0; }
.post-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: var(--fs-sm); }
.post-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list a:hover .t { color: var(--brand); text-decoration: underline; }
.post-list time { flex: none; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { flex: none; background: #edf0f5; color: #4b5870; border-radius: 20px; padding: 2px 12px; font-size: 12px; }
.tag.is-notice { background: var(--brand); color: #fff; }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); }

/* 홍보 상자 */
.promo {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 265px; padding: 35px 30px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, #eef3fd, #e8e1f6);
}
.promo h2 { font-size: var(--fs-2xl); color: #172d77; line-height: 1.3; margin-bottom: 12px; font-weight: 800; }
.promo p { margin-bottom: 20px; font-size: var(--fs-sm); color: #4b5466; }
.promo .btn { background: transparent; }
.promo img { width: 48%; margin-left: auto; mix-blend-mode: multiply; border-radius: 6px; }

/* 진흥원 소개 · 주요 서비스 */
.about { display: flex; align-items: center; gap: 14px; }
.about > div > * + * { margin-top: 14px; }
.about p { color: var(--ink-2); }
.about img { width: 40%; mix-blend-mode: multiply; }
.textlink { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.stats { border-left: 1px solid var(--line); padding-left: 32px; }
.statrow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 25px; text-align: center; }
.statrow li + li { border-left: 1px solid #e5e8ef; }
.statrow a { display: block; padding: 5px; font-weight: 700; }
.statrow a:hover { color: var(--brand); }
.statrow .ico { width: 32px; height: 32px; margin: 0 auto 10px; }

/* 바로가기 */
.quick { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quick a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 15px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; font-weight: 700; }
.quick a:hover { border-color: #b9c4dc; color: var(--brand); }
.quick .ico { width: 28px; height: 28px; }
.quick .go { margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 18px; }

/* ---------- 하단 ---------- */
.site-footer { background: var(--footer); color: #50586a; font-size: var(--fs-xs); }
.related { border-bottom: 1px solid #dde1ea; }
.related .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 14px 0; }
.related h2 { font-size: var(--fs-xs); color: var(--ink); }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.related a:hover { color: var(--brand); text-decoration: underline; }
.footer-main { display: flex; align-items: center; gap: 32px; padding: 28px 0; }
.footer-main .flogo img { width: 230px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; font-size: var(--fs-sm); }
.footer-links a { color: var(--ink); font-weight: 600; }
.footer-links a.strong { color: var(--brand); font-weight: 800; }
.footer-links a:hover { text-decoration: underline; }
.footer-info p { margin: 6px 0; }
.footer-info .contacts span { display: inline-block; margin-right: 18px; }
.footer-info a:hover { text-decoration: underline; }

/* ---------- 하위 페이지 ---------- */
.page-head { position: relative; background: var(--paper) url("../img/hero-map.webp") no-repeat right center; background-size: auto 100%; border-bottom: 1px solid #e5e8ef; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 40%, rgba(243, 246, 252, .55) 80%, rgba(243, 246, 252, .3)); }
.page-head .wrap { position: relative; padding: 38px 0 40px; }
.page-head h1 { font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 800; letter-spacing: -0.055em; margin-top: 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.breadcrumb li + li::before { content: "›"; margin: 0 8px 0 4px; color: var(--ink-3); }
.breadcrumb a:hover { text-decoration: underline; }

.page-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); padding: 44px 0 88px; }
.lnb { align-self: start; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lnb h2 { font-size: var(--fs-lg); font-weight: 800; padding: 22px 20px; background: var(--brand); color: #fff; }
.lnb ul { list-style: none; padding: 8px; }
.lnb a { display: block; padding: 11px 14px; border-radius: 6px; color: var(--ink-2); font-weight: 600; }
.lnb a:hover { background: var(--paper); color: var(--brand); }
.lnb a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); font-weight: 800; }

/* ---------- 본문 작성용 요소 ---------- */
.content { min-width: 0; }
.content > * + * { margin-top: 16px; }
.content h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.045em; margin-top: 56px; line-height: 1.25; }
.content > h2:first-child, .content > .toc + h2 { margin-top: 0; }
.content h3 { font-size: var(--fs-lg); font-weight: 700; margin-top: 34px; color: var(--brand); }
.content h4 { font-size: var(--fs-md); font-weight: 700; margin-top: 22px; }
.content p, .content li { max-width: none; }
.content ul:not([class]), .content ol:not([class]) { padding-left: 1.3em; }
.content ul:not([class]) li::marker { color: var(--brand); }
.content li + li { margin-top: 6px; }
.content strong { font-weight: 700; }
.content a:not([class]) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.content .note { font-size: var(--fs-sm); color: var(--ink-3); }
.content .lead-text { font-size: var(--fs-lg); line-height: 1.7; }
.content .actions-inline, .content .post-meta, .content .post-nav { max-width: none; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; background: var(--paper); border-radius: var(--radius); margin-bottom: 40px; }
.toc a { padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }
.toc a:hover { border-color: var(--brand); color: var(--brand); }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-top: 2px solid var(--brand); font-size: var(--fs-sm); line-height: 1.6; }
.tbl caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--paper); font-weight: 700; white-space: nowrap; }
.tbl tbody th { background: var(--card); font-weight: 600; width: 22%; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.dl { display: grid; grid-template-columns: 9em 1fr; border-top: 2px solid var(--brand); margin-top: 16px; }
.dl dt, .dl dd { padding: 14px 6px; border-bottom: 1px solid var(--line); margin: 0; }
.dl dt { font-weight: 700; color: var(--brand); background: var(--card); padding-left: 14px; }
.dl dd { padding-left: 16px; }

.figure { margin: 24px 0 0; }
.figure img { display: block; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.figure figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.figure figcaption a { color: var(--brand); text-decoration: underline; }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fig-grid .figure { margin: 0; }

/* 절차 (순서가 있는 단계에만 사용) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 0 !important; }
.steps li { counter-increment: step; padding: 18px 18px 20px; max-width: none; margin: 0 !important; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 50%; background: var(--brand); color: #fff; font-size: var(--fs-sm); font-weight: 700; }
.steps strong { display: block; font-size: var(--fs-md); margin-bottom: 4px; }
.steps span { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; display: block; }

.fold { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fold summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; background: var(--card); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "펼치기 +"; font-size: var(--fs-sm); color: var(--brand); flex: none; }
.fold[open] summary::after { content: "접기 −"; }
.fold[open] summary { border-bottom: 1px solid var(--line); }
.fold > div { padding: 16px 18px; }
.fold > div > * + * { margin-top: 12px; }
.fold img + img { margin-top: 12px; }

.box { padding: 20px 22px; background: var(--paper); border: 1px solid #d6e0f3; border-radius: var(--radius); }
.box > * + * { margin-top: 8px; }

.timeline { list-style: none; border-top: 2px solid var(--brand); }
.timeline > li { display: grid; grid-template-columns: 6.5em 1fr; gap: 0 16px; padding: 20px 0; border-bottom: 1px solid var(--line); max-width: none; margin: 0 !important; }
.timeline .year { grid-row: span 2; font-size: var(--fs-xl); font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.2; }
.timeline ul { list-style: none; }
.timeline ul li { display: grid; grid-template-columns: 2.6em 1fr; max-width: none; margin-top: 4px; }
.timeline .m { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline > li > details { grid-column: 2; margin-top: 8px; }
.timeline summary { cursor: pointer; color: var(--brand); font-size: var(--fs-sm); font-weight: 700; }

.org { text-align: center; margin-top: 24px; }
.org .node { display: inline-block; padding: 12px 22px; border: 1px solid var(--brand); border-radius: 8px; font-weight: 700; background: #fff; }
.org .head { background: var(--brand); color: #fff; font-size: var(--fs-lg); padding: 14px 44px; border-radius: 999px; }
.org .stem { width: 1px; height: 28px; background: #b9c4dc; margin: 0 auto; }
.org .divs { display: grid; grid-template-columns: 3fr 4fr; gap: 24px; border-top: 1px solid #b9c4dc; padding-top: 28px; }
.content .org h3.node { margin: 0; font-size: var(--fs-md); color: var(--brand); background: var(--brand-tint); }
.org .units { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 20px; }
.org .units li { padding: 14px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-weight: 600; max-width: none; margin: 0; }
.org .units small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--fs-xs); }

.actions-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.greeting { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.greeting-photo { margin: 0; order: 2; position: sticky; top: 24px; }
.greeting-photo img { border-radius: var(--radius); background: var(--paper); }
.greeting-text > * + * { margin-top: 18px; }
.greeting .sign { margin-top: 32px; font-size: var(--fs-lg); text-align: right; }
.greeting .sign strong { font-size: var(--fs-xl); margin-left: 8px; }
.ci-intro { display: grid; grid-template-columns: 287px 1fr; gap: 32px; align-items: start; }
.ci-intro > div > * + * { margin-top: 12px; }
.name-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 0 !important; }
.name-list li { margin: 0 !important; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: var(--fs-sm); }
.route { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0 !important; }
.route li { margin: 0 !important; font-size: var(--fs-sm); }
.route li + li::before { content: "›"; margin: 0 10px; color: var(--brand); font-weight: 700; }
.link-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 0 !important; }
.link-grid li { margin: 0 !important; }
.link-grid a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-weight: 700; color: var(--ink) !important; text-decoration: none !important; }
.link-grid a:hover { border-color: var(--brand); color: var(--brand) !important; }

/* ---------- 게시판 ---------- */
.board-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.board-count { font-size: var(--fs-sm); color: var(--ink-2); }
.board-count b { color: var(--brand); }
.board { width: 100%; border-top: 2px solid var(--brand); font-size: var(--fs-sm); }
.board th, .board td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.board thead th { background: var(--paper); font-weight: 700; }
.board td.title { text-align: left; font-size: var(--fs-md); }
.board td.title a:hover { color: var(--brand); text-decoration: underline; }
.board .cat { display: inline-block; margin-right: 8px; padding: 2px 10px; font-size: 12px; border-radius: 20px; background: #edf0f5; color: #4b5870; vertical-align: 1px; }
.board .no, .board .date { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-variant-numeric: tabular-nums; }
.pager [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

.post-head { border-top: 2px solid var(--brand); border-bottom: 1px solid var(--line); padding: 20px 14px; background: var(--card); }
.content .post-head h2 { font-size: var(--fs-xl); border: 0; padding: 0; margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px !important; font-size: var(--fs-sm); color: var(--ink-3); }
.post-body { padding: 28px 14px; border-bottom: 1px solid var(--line); margin-top: 0 !important; }
.post-body > * + * { margin-top: 14px; }
.post-files { padding: 16px 14px; border-bottom: 1px solid var(--line); margin-top: 0 !important; font-size: var(--fs-sm); }
.post-files ul { list-style: none; }
.post-nav { display: flex; justify-content: flex-end; margin-top: 24px !important; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: grid; grid-template-columns: 2em 1fr auto; gap: 8px; background: var(--card); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--brand); font-weight: 800; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1.3; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 18px 20px 20px 3.1em; }
.faq .a > * + * { margin-top: 10px; }

.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.sitemap section { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.content .sitemap h2 { font-size: var(--fs-lg); margin: 0; padding: 16px 18px; border: 0; background: var(--brand); color: #fff; }
.sitemap ul { list-style: none; padding: 8px !important; }
.sitemap li { margin: 0 !important; }
.sitemap li a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink) !important; text-decoration: none !important; }
.sitemap li a:hover { background: var(--paper); color: var(--brand) !important; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .gnb .top { font-size: var(--fs-xs); }
  .logo img { width: 220px; }
  .site-header .bar { gap: 18px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 70px; }
  .gnb { display: none; }
  .util .util-name { display: none; }
  .util .wrap { justify-content: flex-end; }
  .cards, .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .hero::before { background: linear-gradient(90deg, var(--paper) 15%, rgba(243, 246, 252, .91) 50%, rgba(243, 246, 252, .33)); }
  .hero .wrap { min-height: 380px; padding: 45px 0; }
  .heading p { display: none; }
  .stats { border: 0; padding: 0; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-body { grid-template-columns: minmax(0, 1fr); padding-top: 0; gap: 24px; }
  .lnb { min-width: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin: 0 -4.35%; position: sticky; top: 0; z-index: 10; background: #fff; }
  .lnb h2 { display: none; }
  .lnb ul { display: flex; overflow-x: auto; gap: 4px; padding: 8px 4%; scrollbar-width: none; }
  .lnb ul::-webkit-scrollbar { display: none; }
  .lnb li { flex: none; }
  .lnb a { padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-size: var(--fs-sm); }
  .lnb a[aria-current="page"] { background: var(--brand); color: #fff; }
  .content { padding-top: 12px; }
  .greeting { grid-template-columns: 1fr; gap: 24px; }
  .greeting-photo { order: 0; position: static; max-width: 200px; }
}
@media (max-width: 720px) {
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 6px; }
  .dl dd { padding-top: 6px; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .timeline .year { grid-row: auto; }
  .timeline > li > details { grid-column: auto; }
  .org .divs { grid-template-columns: 1fr; }
  .ci-intro { grid-template-columns: 1fr; }
  .board thead { display: none; }
  .board, .board tbody, .board tr, .board td { display: block; width: 100%; }
  .board tr { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .board td { border: 0; padding: 0; text-align: left; }
  .board td.no, .board td.files { display: none; }
  .board td.date { margin-top: 6px; }
}
@media (max-width: 480px) {
  .util { font-size: 11px; }
  .hero .wrap { min-height: 0; }
  .hero .desc { font-size: var(--fs-sm); }
  .eyebrow { font-size: var(--fs-sm); }
  .card { padding: 18px 14px 46px; min-height: 205px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14px; }
  .home-section { padding-top: 30px; }
  .bar-title { font-size: var(--fs-xl); }
  .promo { padding: 22px 16px; }
  .promo h2 { font-size: 22px; }
  .quick a { font-size: 14px; padding: 12px; gap: 7px; }
  .post-list a { font-size: 13px; gap: 7px; }
  .post-list time { font-size: 11px; }
  .btn { padding: 10px 14px; font-size: 14px; }
  .about img { width: 32%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .util, .site-header, .lnb, .site-footer .related, .toc, .skip-link { display: none !important; }
  .page-body { display: block; padding: 0; }
  .page-head { background: none; }
}

/* 페이지 안 바로가기 링크는 밑줄 없이 */
.content .toc a { text-decoration: none; color: var(--ink); }
.content .toc a:hover { color: var(--brand); }

/* ---------- 본문 탭 (바로가기 목록이 있는 페이지에 자동 적용) ---------- */
.content-tabs {
  position: relative; display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 36px;
  background: #f0f3f8; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.content-tab {
  flex: 1 1 0; min-width: max-content; padding: 14px 18px; text-align: center; font-weight: 700; color: #424b60;
  border-right: 1px solid var(--line);
}
.content-tab:last-child { border-right: 0; }
.content-tab:hover { color: var(--brand); background: #e7ecf5; }
.content-tab[aria-selected="true"] { background: var(--brand); color: #fff; }
.content-tab:focus-visible { outline-offset: -3px; }
.tab-panel:focus { outline: none; }
.tab-panel > * + * { margin-top: 16px; }
.content .tab-panel > h2:first-child { margin-top: 0; }
.tab-pager { display: flex; justify-content: space-between; gap: 8px; max-width: none !important; margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.tab-pager .next { margin-left: auto; }
.tab-pager .prev::after { content: none; }
.tab-pager .prev::before { content: "‹"; font-weight: 400; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
@media (min-width: 1024px) {
  .content-tabs { position: sticky; top: 0; z-index: 5; box-shadow: 0 6px 12px -10px rgba(24, 37, 75, .35); }
}
@media (max-width: 1023px) {
  .content-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 8px; }
  .content-tabs::-webkit-scrollbar { display: none; }
  .content-tab { flex: 0 0 auto; padding: 12px 16px; font-size: var(--fs-sm); }
}
@media print {
  .content-tabs, .tab-pager { display: none !important; }
  .tab-panel[hidden] { display: block !important; }
}

/* ---------- 조직도 ---------- */
.content .org-summary { color: var(--ink-2); }
.orgchart { --rail: #c3cde0; margin-top: 28px !important; padding: 32px clamp(16px, 3vw, 36px) 36px; background: var(--paper); border-radius: var(--radius); }
.orgchart .ceo {
  display: flex; align-items: center; gap: 8px; width: max-content; margin: 0 auto; padding: 14px 40px;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: var(--fs-lg); box-shadow: 0 6px 14px -8px rgba(24, 56, 137, .6);
}
.orgchart .ceo svg { width: 22px; height: 22px; }
.orgchart .branches { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 56px; }
.orgchart .branches::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 28px; background: var(--rail); }
.orgchart .branches::after { content: ""; position: absolute; top: 28px; left: calc((100% - 28px) / 4); right: calc((100% - 28px) / 4); height: 2px; background: var(--rail); }
.orgchart .branch { position: relative; }
.orgchart .branch::before { content: ""; position: absolute; left: calc(50% - 1px); top: -28px; width: 2px; height: 28px; background: var(--rail); }
.content .orgchart .branch-head {
  margin: 0; padding: 14px 16px; text-align: center; font-size: var(--fs-md); font-weight: 800; color: #fff;
  background: linear-gradient(120deg, #183889, #2650b4); border-radius: var(--radius);
}
.orgchart .units { list-style: none; position: relative; margin: 0 0 0 22px; padding: 14px 0 0 !important; }
.orgchart .units > li { position: relative; padding-left: 26px; margin: 10px 0 0 !important; max-width: none; }
.orgchart .units > li:first-child { margin-top: 0 !important; }
.orgchart .units > li::before { content: ""; position: absolute; left: 0; top: -10px; bottom: 0; width: 2px; background: var(--rail); }
.orgchart .units > li:first-child::before { top: -14px; }
.orgchart .units > li:last-child::before { bottom: auto; height: 39px; }
.orgchart .units > li:first-child:last-child::before { height: 43px; }
.orgchart .units > li::after { content: ""; position: absolute; left: 0; top: 28px; width: 26px; height: 2px; background: var(--rail); }
.orgchart .units.sub { margin-left: 18px; padding-top: 10px !important; }
.orgchart .units.sub > li:first-child::before { top: -10px; }
.orgchart .units.sub > li:first-child:last-child::before { height: 39px; }
.orgchart .unit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 56px;
}
.orgchart .unit strong { font-size: var(--fs-md); font-weight: 800; color: var(--ink); }
.orgchart .unit .duty { grid-column: 1; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; }
.content .orgchart a.unit { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.orgchart a.unit::after { content: "연락처 ›"; grid-column: 2; grid-row: 1 / span 2; font-size: var(--fs-xs); font-weight: 700; color: var(--brand); white-space: nowrap; }
.orgchart a.unit:hover { border-color: var(--brand); box-shadow: 0 4px 12px -6px rgba(24, 56, 137, .35); }
.orgchart a.unit:hover strong { color: var(--brand); }
.orgchart .units.sub .unit { background: var(--brand-tint); border-color: #cfdaf0; }

.contact-table td { vertical-align: middle; }
.contact-table .work { font-weight: 600; color: var(--ink); }
.contact-table .dept { color: var(--ink-2); }
.content .contact-table .num a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #cfdaf0; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums;
}
.content .contact-table .num a::before {
  content: ""; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h3l2 5-2 1.5a11 11 0 0 0 5.5 5.5L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h3l2 5-2 1.5a11 11 0 0 0 5.5 5.5L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.content .contact-table .num a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 720px) {
  .orgchart { padding: 24px 14px 28px; }
  .orgchart .branches { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 32px; }
  .orgchart .branches::after, .orgchart .branch::before { display: none; }
  .orgchart .units { margin-left: 14px; }
  .orgchart .units > li { padding-left: 18px; }
  .orgchart .units > li::after { width: 18px; }
  .orgchart a.unit::after { content: "›"; font-size: 20px; font-weight: 400; }
  .contact-table thead { display: none; }
  .contact-table, .contact-table tbody, .contact-table tr { display: block; }
  .contact-table tr:not([hidden]) { display: grid; }
  .contact-table tr { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .contact-table td { padding: 0; border: 0; }
  .contact-table .work { grid-column: 1; }
  .contact-table .dept, .contact-table td:nth-child(3) { grid-column: 1; display: inline; font-size: var(--fs-xs); color: var(--ink-3); }
  .contact-table td:nth-child(3) { grid-row: 3; }
  .contact-table .num { grid-column: 2; grid-row: 1 / span 3; }
}

/* 문서 제·개정 이력 (정관 등) */
.content .doc-history { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 20px; font-size: var(--fs-sm); color: var(--ink-2); }
.doc-history b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.doc-history span { padding: 4px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-variant-numeric: tabular-nums; }
.doc-history span.latest { background: var(--brand-tint); border-color: #cfdaf0; color: var(--brand); font-weight: 700; }

/* 탭 바로 아래 공통 소개 (탭 위에 쓴 내용이 자동으로 여기로 옮겨짐) */
.content .tab-intro { margin: -12px 0 32px; }
.tab-intro > * + * { margin-top: 14px; }
.content .tab-intro + .tab-intro { margin-top: 0; }

/* ---------- 조직도 (부서 단추 + 직원 표) ---------- */
.content .org-summary { color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.org-date { padding: 3px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: var(--fs-xs); font-weight: 700; }
.org2 { --rail: #b7c7e8; margin-top: 20px !important; padding: 34px 28px 30px; text-align: center; background: linear-gradient(180deg, #f8faff, var(--paper)); border: 1px solid var(--line); border-radius: var(--radius); }
.org2 button {
  min-height: 48px; padding: 11px 10px; border: 1px solid var(--rail); border-radius: 8px; background: #fff;
  color: var(--brand); font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; transition: background .15s, color .15s, box-shadow .15s;
}
.org2 button:hover { border-color: var(--brand); background: var(--brand-tint); }
.org2 .org-chief button, .org2 .org-branch > button { min-width: 170px; background: var(--brand); border-color: var(--brand); color: #fff; font-size: var(--fs-md); }
.org2 .org-chief button { min-width: 150px; border-radius: 999px; padding: 12px 28px; }
.org2 .org-chief button:hover, .org2 .org-branch > button:hover { background: var(--brand-deep); }
.org2 button[aria-pressed="true"] { background: var(--brand-bright) !important; border-color: var(--brand-bright) !important; color: #fff !important; box-shadow: 0 0 0 3px rgba(53, 170, 226, .45); }
.org-chief { position: relative; }
.org-chief::after { content: ""; position: absolute; left: calc(50% - 1px); top: 100%; width: 2px; height: 28px; background: var(--rail); }
.org-branches { position: relative; display: grid; grid-template-columns: 3fr 4fr; gap: 20px; margin-top: 56px; }
.org-branches::before { content: ""; position: absolute; top: -28px; height: 2px; left: calc((100% - 20px) * 3 / 14); right: calc((100% - 20px) * 2 / 7); background: var(--rail); }
.org-branch { position: relative; padding: 18px 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.org-branch::before { content: ""; position: absolute; left: calc(50% - 1px); top: -29px; width: 2px; height: 28px; background: var(--rail); }
.org-teams { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-top: 30px; }
.org-teams::before { content: ""; position: absolute; left: 8%; right: 8%; top: -15px; height: 2px; background: var(--rail); }
.org-teams::after { content: ""; position: absolute; left: calc(50% - 1px); top: -30px; width: 2px; height: 15px; background: var(--rail); }

.content .staff-heading { margin-top: 40px; }
.staff-table td { vertical-align: middle; }
.staff-table .pos { white-space: nowrap; color: var(--ink-2); }
.staff-table .task { color: var(--ink); min-width: 200px; }
.staff-table .none { color: var(--ink-3); }
.content .staff-table .num a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #cfdaf0; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.content .staff-table .num a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 720px) {
  .org2 { padding: 22px 12px; }
  .org-branches { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .org-chief::after, .org-branches::before, .org-branch::before, .org-teams::before, .org-teams::after { display: none; }
  .org-teams { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-table thead { display: none; }
  .staff-table, .staff-table tbody { display: block; }
  .staff-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .staff-table th, .staff-table td { padding: 0; border: 0; }
  .staff-table .pos { font-size: var(--fs-xs); color: var(--ink-3); }
  .staff-table .task { grid-column: 1; grid-row: 2; min-width: 0; font-size: var(--fs-sm); color: var(--ink-2); }
  .staff-table .num { grid-column: 2; grid-row: 1 / span 2; }
}
.org2 { padding-left: 20px; padding-right: 20px; }
.org-branch { padding-left: 10px; padding-right: 10px; }
.org-teams button { padding: 11px 6px; font-size: 14px; word-break: keep-all; }

/* 조직도 부서 단추: 글자는 한 줄로, 자리가 모자라면 단추가 다음 줄로 넘어감 */
.org-teams { display: flex; flex-wrap: wrap; justify-content: center; }
.org-teams button { flex: 1 1 auto; white-space: nowrap; padding: 11px 14px; font-size: var(--fs-sm); }
@media (max-width: 720px) {
  .org-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-teams button { padding: 11px 6px; font-size: 14px; }
}
@media (max-width: 1240px) {
  .org-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 조직도 직원 표 정렬: 모든 부서 표의 칸 너비를 같게, 직위·전화는 가운데 / 담당업무는 왼쪽 */
@media (min-width: 721px) {
  .staff-table { table-layout: fixed; }
  .staff-table th:nth-child(1) { width: 18%; }
  .staff-table th:nth-child(3) { width: 22%; }
  .staff-table thead th, .staff-table .pos, .staff-table td.num { text-align: center; }
  .staff-table thead th:nth-child(2), .staff-table .task { text-align: left; }
  .staff-table .task { min-width: 0; padding-left: 20px; }
  .staff-table thead th:nth-child(2) { padding-left: 20px; }
}
@media (min-width: 721px) {
  .staff-table thead th.num { text-align: center; }
}

/* ---------- 법령·정관 본문 ---------- */
.content h3.law-art { margin-top: 30px; font-size: var(--fs-md); font-weight: 800; color: var(--brand); }
.content h4.law-art { margin-top: 20px; font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
.content h3.buchik { margin-top: 40px; padding: 10px 16px; background: var(--paper); border-radius: 8px; color: var(--ink); font-size: var(--fs-md); }
.content .tab-panel > h3.buchik:nth-child(2) { margin-top: 8px; }
.content .law-para { padding-left: 1.3em; text-indent: -1.3em; margin-top: 8px; }
.content .law-art + p, .content .law-art + .law-para { margin-top: 8px; }
.content .law-items { list-style: none; padding: 0 0 0 2.4em !important; margin-top: 6px; }
.content .law-items li { margin-top: 4px; padding-left: 1.4em; text-indent: -1.4em; color: var(--ink); }
.amend { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; margin-left: 4px; letter-spacing: 0; }

/* ==============================
   페이지 상단 이동 버튼
============================== */

.scroll-top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    background-color: #183889;
    color: #ffffff;
    border: 1px solid #183889;
    border-radius: 8px;

    font-family: inherit;
    cursor: pointer;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s;
}

.scroll-top-btn[hidden] {
    display: none;
}

.scroll-top-btn span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.scroll-top-btn:hover {
    background-color: #112fb9;
}

.scroll-top-btn:focus-visible {
    outline: 3px solid #35aae2;
    outline-offset: 4px;
}

/* 모바일 화면 */
@media (max-width: 768px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 20px;
        width: 48px;
        height: 48px;
        border-radius: 6px;
    }
}

/* 모션 감소 설정 대응 */
@media (prefers-reduced-motion: reduce) {
    .scroll-top-btn {
        transition: none;
    }
}

/* =========================================
   찾아오시는 길 - 위치 안내 지도
========================================= */

.location-map {
  width: 100%;
  margin: 24px 0 20px;
  overflow: hidden;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  background-color: #f5f7fa;
}

.location-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* 모바일 화면 */
@media (max-width: 768px) {
  .location-map {
      margin: 16px 0;
      border-radius: 6px;
  }
}

/* =========================================
   메인 레이어팝업
========================================= */

.layer-popup {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(16, 26, 56, .45);
}
.layer-popup[hidden] { display: none; }

.layer-popup-panel {
  position: relative;
  width: 100%; max-width: 560px;
  padding: 40px 40px 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 40px rgba(16, 26, 56, .3);
  animation: layerPopupIn .2s ease-out;
}
.layer-popup-title {
  margin: 0 0 14px;
  text-align: center;
  color: var(--brand);
  font-size: var(--fs-xl);
  line-height: 1.35;
}
.layer-popup-body {
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.6;
}
.layer-popup-body { max-height: 60vh; overflow-y: auto; }
.layer-popup-body p { margin: 0 0 12px; text-align: left; word-break: keep-all; }
.layer-popup-body ul { margin: 0 0 10px; padding-left: 18px; font-size: var(--fs-sm); }
.layer-popup-body li { margin-bottom: 6px; }
.layer-popup-body strong { color: var(--ink); }
.layer-popup-actions {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.layer-popup-x {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  border: 0; background: none;
  color: var(--ink-2); font-size: 28px; line-height: 1; cursor: pointer;
}
.layer-popup-x:hover { color: var(--brand); }

@keyframes layerPopupIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .layer-popup-panel { padding: 32px 20px 20px; }
  .layer-popup-title { font-size: var(--fs-lg); }
  .layer-popup-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .layer-popup-panel { animation: none; }
}
