/* ==========================================================================
   마루시 문화재단 — DREXLY 템플릿
   색·활자·컴포넌트는 00-디자인보드.png, 조판은 01-home / 02-페이지시안 / 06-mobile.
   성격: Dense public portal(고밀도 공공 포털) + 좌측 Facet Sidebar + 표·타임라인·달력 혼합.
   ========================================================================== */

:root {
  /* 색 — 디자인보드 정본 */
  --blue: #0a4cff;
  --blue-d: #0838c4;
  --blue-p: #06299a;
  --blue-w: #edf2ff;
  --blue-w2: #dde6ff;
  --lime: #c6ff00;
  --lime-d: #b0e400;
  --ink: #0b0f14;
  --gray7: #485563;
  --gray5: #66717f;
  --gray2: #e5e7eb;
  --gray1: #f4f6f8;
  --white: #ffffff;
  --navy: #0a1930;
  --navy2: #12294d;

  /* 의미색 — 디자인보드 Feedback 4종에서 읽었다(정보·성공·경고·오류) */
  --ok: #0a6b3d;
  --ok-bg: #e7f4ec;
  --warn: #8a5300;
  --warn-bg: #fff3d6;
  --err: #b3261e;
  --err-bg: #fdeceb;

  --line: #e5e7eb;
  --line-2: #cbd2dc;
  --line-3: #0b0f14;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --wrap: 1240px;
  --gutter: 28px;
  --sec: 62px;
  --r: 10px;
  --r-sm: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow: 0 1px 2px rgba(11, 15, 20, 0.05), 0 10px 26px rgba(11, 15, 20, 0.06);
  --focus: 3px solid var(--blue);
}

/* 글자 크기 3단계 — 유틸바에서 바꾼다(다양한 연령 대응) */
html { font-size: 106.25%; } /* 17px 기준 — 프롬프트 「큰 기본 글자」 */
html[data-fs="l"] { font-size: 118.75%; }  /* 19px */
html[data-fs="xl"] { font-size: 131.25%; } /* 21px */

/* 고대비 모드 — 선·글자를 검게, 파랑을 더 짙게 */
html[data-contrast="high"] {
  --blue: #002ea6;
  --blue-d: #001f75;
  --gray7: #1b232d;
  --gray5: #1b232d;
  --line: #6b7686;
  --line-2: #0b0f14;
  --blue-w: #ffffff;
  --gray1: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: -0.01em;
  /* 한국어는 어절 단위로 끊는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* .link-more 같은 클래스 display 가 [hidden] 을 이기던 문제 */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--blue); color: #fff; padding: 14px 22px; font-weight: 700;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 18px; height: 18px; }
.ico-lg { width: 28px; height: 28px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* --------------------------------------------------- 스크롤 진행 표시(시그니처) */
/* Scroll-driven animation. 미지원 브라우저에선 아예 감춘다(장식이므로 정보 손실 없음). */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block;
    position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
    background: var(--lime);
    transform-origin: 0 50%;
    animation-name: progGrow;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 0.94rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-primary:active { background: var(--blue-p); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-d); }
.btn-line { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-line:hover { background: var(--blue-w); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-onblue { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-onblue:hover { background: rgba(255, 255, 255, 0.22); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--gray2); color: var(--gray5); border-color: transparent; cursor: not-allowed; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--gray7);
  padding: 6px 2px;
}
.link-more:hover { color: var(--blue); }

/* --------------------------------------------------- 상태 표시(색+글자 병기) */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge-open { background: var(--blue-w); color: var(--blue-d); border-color: var(--blue-w2); }
.badge-soon { background: var(--warn-bg); color: var(--warn); border-color: #f0d9a0; }
.badge-soon::before { border-radius: 1px; transform: rotate(45deg); }
.badge-closed { background: var(--gray1); color: var(--gray7); border-color: var(--line); }
.badge-closed::before { border-radius: 0; width: 8px; height: 2px; }
.badge-pick { background: var(--ok-bg); color: var(--ok); border-color: #b9dfc8; }
.badge-pick::before { border-radius: 0; width: 8px; height: 8px; clip-path: polygon(0 55%, 38% 100%, 100% 12%, 100% 32%, 38% 100%, 0 72%); }
.badge-fix { background: var(--err-bg); color: var(--err); border-color: #f2c4c0; }
.badge-fix::before { border-radius: 1px; }
.badge-ready { background: #eef1f5; color: var(--gray7); border-color: var(--line); }
.badge-ready::before { background: none; border: 2px solid currentColor; width: 8px; height: 8px; }

/* --------------------------------------------------- 유틸바 + 헤더 */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }

.util { background: var(--navy); color: #dbe3ee; font-size: 0.78rem; }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.util-note { color: #b9c6d8; }
.util-tools { display: flex; align-items: center; gap: 4px; }
.util-group { display: flex; align-items: center; gap: 4px; padding-right: 10px; margin-right: 6px; border-right: 1px solid rgba(255, 255, 255, 0.22); }
.util-label { color: #b9c6d8; margin-right: 2px; }
.tool {
  background: none; border: 1px solid transparent; color: #dbe3ee;
  padding: 4px 9px; border-radius: 4px; font-size: 0.78rem; cursor: pointer; line-height: 1.5;
}
.tool:hover { background: rgba(255, 255, 255, 0.12); }
.tool[aria-pressed="true"] { background: var(--lime); color: var(--ink); font-weight: 700; }
.tool .ico-sm { width: 14px; height: 14px; vertical-align: -2px; }

.head-in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.head-in > .search { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 7px; background: var(--blue); display: grid; place-items: center; color: #fff; flex: none; }
.brand .mark .ico { width: 20px; height: 20px; }
.brand .bt b { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.brand .bt span { display: block; font-size: 0.64rem; letter-spacing: 0.14em; color: var(--gray5); font-weight: 600; }

.gnb { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.gnb a {
  position: relative; padding: 10px 14px; font-size: 0.95rem; font-weight: 600; color: var(--gray7);
  border-radius: 4px;
}
.gnb a:hover { color: var(--blue); background: var(--blue-w); }
.gnb a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.gnb a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -4px; height: 3px; background: var(--blue);
}

.search { position: relative; display: flex; align-items: center; }
.search-input {
  width: 210px; height: 44px; padding: 0 46px 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  font: inherit; font-size: 0.88rem; color: var(--ink);
}
.search-input::placeholder { color: var(--gray5); }
.search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.search-btn:hover { background: var(--gray1); }

/* 통합검색 제안 — Popover API + Anchor Positioning(@supports), 미지원 시 JS 고정 배치 */
.sugg {
  display: none; /* Popover 미지원 브라우저에서도 기본은 감춤 — JS 가 .open 으로 연다 */
  margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: #fff; box-shadow: var(--shadow); width: 320px; max-width: calc(100vw - 24px);
  inset: auto; position: fixed; z-index: 120;
}
.sugg.open { display: block; }
.sugg:popover-open { display: block; }
.sugg h2 { font-size: 0.78rem; color: var(--gray5); letter-spacing: 0.02em; margin-bottom: 8px; }
.sugg ol { display: grid; gap: 2px; margin-bottom: 12px; counter-reset: s; }
.sugg ol a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 5px; font-size: 0.9rem; }
.sugg ol a::before {
  counter-increment: s; content: counter(s);
  width: 20px; height: 20px; border-radius: 4px; background: var(--blue-w); color: var(--blue-d);
  font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; flex: none;
}
.sugg ol a:hover { background: var(--gray1); }
.sugg .sugg-foot { font-size: 0.78rem; color: var(--gray5); border-top: 1px solid var(--line); padding-top: 10px; }
@supports (anchor-name: --gs) {
  .search-input { anchor-name: --gs; }
  .sugg { position-anchor: --gs; top: calc(anchor(bottom) + 8px); right: anchor(right); }
}

.menu-btn {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer;
}

/* --------------------------------------------------- 서랍 */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 90;
  background: #fff; border-left: 1px solid var(--line); padding: 16px 18px 40px;
  transform: translateX(101%); transition: transform 0.36s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-close {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer;
}
.drawer-nav { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; padding: 10px 4px; font-size: 1rem; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.drawer-nav a[aria-current="page"] { color: var(--blue); }
.drawer-sub { margin-top: 18px; }
.drawer-sub h2 { font-size: 0.8rem; color: var(--gray5); margin-bottom: 8px; }
.drawer-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-quick a {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0.88rem; font-weight: 600;
}
.drawer-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-tools .tool {
  color: var(--ink); border-color: var(--line-2); min-height: 48px; padding: 0 14px;
  display: inline-flex; align-items: center; font-size: 0.88rem; border-radius: var(--r-sm);
}
.drawer-tools .tool[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.drawer-call { margin-top: 18px; display: grid; gap: 8px; }

.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(11, 15, 20, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.36s var(--ease), visibility 0.36s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* --------------------------------------------------- 긴급 공지 */
.alertbar { background: var(--ink); color: #fff; }
.alertbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.alertbar .tagword {
  flex: none; background: var(--lime); color: var(--ink); font-size: 0.74rem; font-weight: 800;
  padding: 3px 9px; border-radius: 3px;
}
.alertbar p { font-size: 0.9rem; }
.alertbar a.inline { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.alertbar .x {
  margin-left: auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 5px; color: #fff; cursor: pointer;
}
.alertbar .x:hover { background: rgba(255, 255, 255, 0.14); }

/* --------------------------------------------------- 히어로 */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 42%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(10, 25, 48, 0.86) 26%, rgba(10, 25, 48, 0.25) 78%, rgba(10, 25, 48, 0.45) 100%);
}
.hero-in { position: relative; padding: 74px 0 108px; max-width: 620px; }
.hero h1 { font-size: clamp(2.05rem, 4.4vw, 2.95rem); line-height: 1.24; letter-spacing: -0.035em; }
.hero .lead { margin-top: 18px; color: #ccd8ea; font-size: 1rem; max-width: 30em; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 22px; font-size: 0.82rem; color: #9fb2cc; display: flex; align-items: center; gap: 8px; }

/* 빠른 메뉴 — 히어로 하단에 걸친 짙은 띠(01-home 정본) */
.quick-hold { position: relative; margin-top: -46px; z-index: 5; }
.quick {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(12, 30, 58, 0.94); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r); overflow: hidden; backdrop-filter: blur(2px);
}
.quick a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 92px; padding: 12px 8px; color: #fff; font-size: 0.9rem; font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.14); text-align: center;
}
.quick a:first-child { border-left: 0; }
.quick a:hover { background: rgba(255, 255, 255, 0.1); }
.quick .ico { color: var(--lime); }

/* --------------------------------------------------- 섹션 뼈대 */
.sec { padding: var(--sec) 0; }
.sec-tint { background: var(--gray1); }
.sec-head { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.sec-head .t { display: flex; align-items: center; gap: 10px; }
.sec-head .t::before { content: ""; width: 10px; height: 10px; background: var(--blue); flex: none; }
.sec-title { font-size: 1.42rem; letter-spacing: -0.03em; }
.sec-head .desc { font-size: 0.86rem; color: var(--gray5); padding-bottom: 3px; }
.sec-head .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.panel-pad { padding: 22px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--gray1); border-radius: var(--r) var(--r) 0 0; }
.panel-head h3 { font-size: 1rem; }

/* --------------------------------------------------- 통합검색 블록 */
.gsearch { background: var(--blue-w); border-top: 1px solid var(--blue-w2); border-bottom: 1px solid var(--blue-w2); padding: 34px 0; }
.gsearch h2 { font-size: 1.16rem; text-align: center; }
.gsearch .box { margin: 16px auto 0; max-width: 720px; display: flex; gap: 8px; }
.gsearch .box input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px; font: inherit; font-size: 1rem;
  border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff;
}
.gsearch .box .btn { min-height: 56px; }
.gsearch .hot { margin: 14px auto 0; max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.84rem; }
.gsearch .hot b { color: var(--gray7); }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.84rem; color: var(--gray7);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* --------------------------------------------------- 행사·달력 */
.ev-wrap { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 26px; align-items: start; }
.viewswitch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.viewswitch input { position: absolute; opacity: 0; pointer-events: none; }
.viewswitch label { padding: 9px 18px; font-size: 0.86rem; font-weight: 700; color: var(--gray7); cursor: pointer; }
.viewswitch input:checked + label { background: var(--ink); color: #fff; }
.viewswitch input:focus-visible + label { outline: var(--focus); outline-offset: -3px; }

.cal { padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .m { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.02em; }
.cal-nav { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.cal-nav:hover { border-color: var(--ink); }
table.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.cal-grid caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.cal-grid th { font-size: 0.8rem; font-weight: 700; color: var(--gray5); padding: 6px 0; }
table.cal-grid th.sat { color: var(--blue); }
table.cal-grid td { padding: 1px; text-align: center; }
.day {
  width: 100%; min-height: 46px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: none; cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-variant-numeric: tabular-nums;
}
.day:hover { background: var(--gray1); }
.day .dots { display: flex; gap: 3px; height: 5px; }
.day .dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.day .dots .e { background: var(--ok); }
.day .dots .a { background: var(--navy); }
.day.out { color: #9aa4b2; cursor: default; } /* 시안보다 진하게 — 저시력 이용자가 읽을 수 있는 선까지 */
.day.out:hover { background: none; }
.day.today { background: var(--blue); color: #fff; }
.day.today .dots .e, .day.today .dots .a { background: #fff; }
.day[aria-pressed="true"] { border-color: var(--ink); border-width: 2px; }
.day.today[aria-pressed="true"] { border-color: var(--ink); }
.cal-legend { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 0.78rem; color: var(--gray7); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.cal-legend .t { background: var(--blue); }
.cal-legend .e { background: var(--ok); }
.cal-legend .a { background: var(--navy); }
.cal-foot { margin-top: 10px; font-size: 0.8rem; color: var(--gray5); text-align: center; }

.evlist { display: grid; gap: 10px; }
.ev {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 16px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.ev:hover { border-color: var(--line-2); }
.ev .date { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.ev .date b { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ev .date span { font-size: 0.76rem; color: var(--gray5); }
.ev h3 { font-size: 1rem; }
.ev h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ev .meta { margin-top: 5px; font-size: 0.84rem; color: var(--gray7); display: flex; flex-wrap: wrap; gap: 12px; }
.ev .meta span { display: inline-flex; align-items: center; gap: 5px; }
.ev .thumb { width: 72px; height: 94px; border-radius: var(--r-sm); object-fit: cover; background: var(--gray1); }
.ev-empty { padding: 26px; text-align: center; color: var(--gray5); border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 0.9rem; }

/* --------------------------------------------------- 공모(지원사업) */
.prog-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.prog { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.prog-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center;
  padding: 18px 6px; border-bottom: 1px solid var(--line);
}
.prog-item .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prog-item h3 { font-size: 1.05rem; }
.prog-item h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prog-item .meta { margin-top: 6px; font-size: 0.86rem; color: var(--gray7); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.prog-item .meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.prog-item .go { display: flex; align-items: center; gap: 10px; }
.dday { font-size: 0.8rem; font-weight: 800; color: var(--err); font-variant-numeric: tabular-nums; }

.poster { overflow: hidden; }
.poster img { width: 100%; height: auto; }
.poster .body { padding: 18px 18px 20px; }
.poster .kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; color: var(--blue); }
.poster h3 { font-size: 1.3rem; margin: 8px 0 10px; letter-spacing: -0.035em; }
.poster dl { display: grid; grid-template-columns: 58px 1fr; gap: 6px 10px; font-size: 0.86rem; color: var(--gray7); margin-bottom: 16px; }
.poster dt { color: var(--gray5); }
.poster dd { margin: 0; color: var(--ink); }

/* --------------------------------------------------- 시설 대관 타임라인 */
.fac { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fac-row { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: #fff; }
.fac-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fac-top h3 { font-size: 1.02rem; }
.fac-top .cap { font-size: 0.84rem; color: var(--gray7); }
.fac-top .btn { margin-left: auto; }
.tl-scroll { overflow-x: auto; position: relative; padding-bottom: 4px; }
.tl { display: grid; grid-template-columns: repeat(13, minmax(58px, 1fr)); gap: 3px; min-width: 640px; }
.tl .slot { border-radius: 4px; padding: 8px 4px 9px; text-align: center; font-size: 0.72rem; border: 1px solid var(--line); background: var(--gray1); color: var(--gray7); }
.tl .slot b { display: block; font-size: 0.76rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.tl .slot.free { background: var(--blue-w); border-color: var(--blue-w2); color: var(--blue-d); }
.tl .slot.full { background: #eef0f3; color: var(--gray5); text-decoration: line-through; }
.tl .slot.care { background: var(--warn-bg); border-color: #f0d9a0; color: var(--warn); }
.fac-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--gray7); margin-top: 10px; }
.fac-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 5px; border: 1px solid var(--line); }
.fac-legend .free { background: var(--blue-w); border-color: var(--blue-w2); }
.fac-legend .full { background: #eef0f3; }
.fac-legend .care { background: var(--warn-bg); border-color: #f0d9a0; }

/* --------------------------------------------------- 표(게시판·자료) */
.tbl-scroll { overflow-x: auto; position: relative; } /* position:relative 없으면 320px에서 문서가 가로로 밀린다 */
table.board { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); min-width: 640px; }
table.board caption { text-align: left; font-size: 0.84rem; color: var(--gray5); padding: 10px 2px; }
table.board th, table.board td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 0.9rem; text-align: center; }
table.board thead th { background: var(--gray1); font-size: 0.84rem; font-weight: 700; color: var(--gray7); }
table.board td.subject, table.board th.subject { text-align: left; }
table.board td.subject a { font-weight: 600; }
table.board td.subject a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
table.board tbody tr:hover { background: #fbfcfd; }
table.board .num { color: var(--gray7); white-space: nowrap; }
table.board .file { color: var(--gray7); font-size: 0.8rem; white-space: nowrap; }
table.board .file .ico-sm { vertical-align: -3px; margin-right: 3px; }
table.board.simple { min-width: 520px; }

.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px;
  font-size: 0.9rem; font-weight: 600; color: var(--gray7); cursor: pointer; border-bottom: 3px solid transparent;
}
.tabs label:hover { color: var(--blue); }
.tabs input:checked + label { color: var(--ink); font-weight: 800; border-bottom-color: var(--blue); }
.tabs input:focus-visible + label { outline: var(--focus); outline-offset: -3px; }

/* 탭 필터 — 라디오만으로 걸러진다(자바스크립트 없이 동작) */
.ntabs:has(#nt-notice:checked) tr[data-cat]:not([data-cat="공지"]),
.ntabs:has(#nt-biz:checked) tr[data-cat]:not([data-cat="사업공고"]),
.ntabs:has(#nt-job:checked) tr[data-cat]:not([data-cat="채용"]),
.ntabs:has(#nt-press:checked) tr[data-cat]:not([data-cat="보도자료"]) { display: none; }

/* 달력/목록 전환 — 라디오만으로 바뀐다(자바스크립트 없이 동작) */
.ev-sec:has(#cv-list:checked) .cal-side { display: none; }
.ev-sec:has(#cv-list:checked) .ev-wrap { grid-template-columns: minmax(0, 1fr); }

/* --------------------------------------------------- 캠페인 스트립(에디토리얼) */
.campaign { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--navy); color: #fff; border-radius: var(--r); overflow: hidden; }
.campaign .body { padding: 40px 40px 42px; }
.campaign .kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; color: var(--lime); }
.campaign h2 { font-size: 1.72rem; margin: 12px 0 14px; letter-spacing: -0.035em; line-height: 1.3; }
.campaign p { color: #c6d3e6; font-size: 0.94rem; }
.campaign ul { margin: 18px 0 22px; display: grid; gap: 8px; }
.campaign ul li { font-size: 0.9rem; color: #dbe4f1; display: flex; gap: 9px; align-items: flex-start; }
.campaign ul .ico-sm { color: var(--lime); margin-top: 4px; }
/* 사진은 시안 원본 화소가 천장이라 늘리지 않고 제 크기로 앉힌다 */
.campaign .pic { display: flex; align-items: center; justify-content: center; padding: 28px; background: var(--navy2); }
.campaign .pic img { width: 312px; max-width: 100%; height: auto; border-radius: 8px; }

/* --------------------------------------------------- 아코디언 */
.acc { border-top: 2px solid var(--ink); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 62px; padding: 12px 4px; background: none; border: 0; cursor: pointer;
  font-size: 0.98rem; font-weight: 700;
}
.acc-trigger .q { color: var(--blue); font-weight: 800; flex: none; }
.acc-trigger .ico { margin-left: auto; transition: transform 0.25s var(--ease); color: var(--gray5); }
.acc-trigger[aria-expanded="true"] .ico { transform: rotate(180deg); }
.acc-panel { padding: 2px 4px 20px 34px; color: var(--gray7); font-size: 0.92rem; }
.acc-panel.is-closed { display: none; }
.acc-panel ul { display: grid; gap: 6px; }
.acc-panel ul li { padding-left: 12px; position: relative; }
.acc-panel ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* --------------------------------------------------- 푸터 */
.site-footer { background: var(--ink); color: #aab6c6; margin-top: 10px; }
.foot-top { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; min-height: 56px; align-items: center; font-size: 0.86rem; }
.foot-links a { padding: 8px 0; }
.foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-links a.strong { color: #fff; font-weight: 700; }
.foot-main { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 30px; padding: 34px 0 30px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.foot-brand .mark { width: 32px; height: 32px; border-radius: 7px; background: var(--blue); display: grid; place-items: center; flex: none; }
.foot-brand b { font-size: 1rem; font-weight: 800; }
.foot-addr { margin-top: 14px; font-size: 0.84rem; line-height: 1.8; }
.foot-addr .sep { color: rgba(255, 255, 255, 0.3); margin: 0 8px; }
.foot-col h2 { font-size: 0.86rem; color: #fff; margin-bottom: 10px; }
.foot-col ul { display: grid; gap: 7px; font-size: 0.84rem; }
.foot-col ul a:hover { color: #fff; }
.foot-col .tel { font-size: 1.32rem; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.foot-col .hours { font-size: 0.82rem; margin-top: 6px; }
.kogl { display: flex; align-items: flex-start; gap: 12px; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; }
.kogl .mark2 { flex: none; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px; padding: 5px 8px; font-weight: 800; color: #fff; font-size: 0.74rem; }
.foot-copy { font-size: 0.8rem; padding-bottom: 26px; color: #7d8ba0; }

/* 모바일 하단 탭바 */
.tabbar { display: none; position: fixed; inset: auto 0 0 0; z-index: 70; background: #fff; border-top: 1px solid var(--line-2); }
.tabbar ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a, .tabbar button {
  width: 100%; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 0.72rem; font-weight: 600; color: var(--gray7); background: none; border: 0; cursor: pointer;
}
.tabbar a[aria-current="page"] { color: var(--blue); }
.tabbar a[aria-current="page"] .ico { color: var(--blue); }

/* --------------------------------------------------- 토스트·맨위로 */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150; transform: translate(-50%, 16px);
  min-width: 260px; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: var(--ink); color: #fff; border-radius: var(--r-sm); font-size: 0.88rem;
  box-shadow: 0 14px 34px rgba(11, 15, 20, 0.3);
  opacity: 0; visibility: hidden;
  pointer-events: none; /* 제출 버튼을 덮어 클릭을 삼키지 않게 */
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--lime); }

.to-top {
  position: fixed; right: 18px; bottom: 24px; z-index: 65; width: 48px; height: 48px;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; }

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------- 등장 효과 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------- 서브 페이지 공통 */
.crumb { padding: 16px 0; font-size: 0.82rem; color: var(--gray5); }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumb li { display: flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: "›"; color: var(--line-2); }
.crumb a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.crumb [aria-current] { color: var(--ink); font-weight: 700; }

.page-head { padding: 6px 0 26px; border-bottom: 2px solid var(--ink); }
.page-head .tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.05rem); letter-spacing: -0.035em; }
.page-head .sub { margin-top: 12px; color: var(--gray7); font-size: 0.94rem; }
.page-head .facts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.88rem; }
.page-head .facts div { display: flex; align-items: center; gap: 8px; }
.page-head .facts .k { color: var(--gray5); }
.page-head .facts .v { font-weight: 700; font-variant-numeric: tabular-nums; }

.split { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 34px; align-items: start; padding: 30px 0 var(--sec); }
.toc { position: sticky; top: 128px; }
.toc h2 { font-size: 0.82rem; color: var(--gray5); margin-bottom: 10px; }
.toc ul { border-left: 2px solid var(--line); }
.toc a { display: block; padding: 10px 14px; font-size: 0.9rem; color: var(--gray7); margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--blue); }
.toc a.is-active { color: var(--blue); font-weight: 800; border-left-color: var(--blue); background: var(--blue-w); }
@supports (scroll-target-group: auto) {
  .toc ul { scroll-target-group: auto; }
  .toc a:target-current { color: var(--blue); font-weight: 800; border-left-color: var(--blue); background: var(--blue-w); }
}
.toc .print { margin-top: 14px; }

.block { padding-bottom: 42px; }
.block h2 { font-size: 1.24rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.block h3 { font-size: 1.02rem; margin: 22px 0 10px; }
.block p + p { margin-top: 10px; }
.block .body-txt { color: var(--gray7); font-size: 0.95rem; }

table.info { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
table.info caption { text-align: left; font-size: 0.84rem; color: var(--gray5); padding: 8px 2px; }
table.info th, table.info td { border-bottom: 1px solid var(--line); padding: 14px 16px; font-size: 0.92rem; text-align: left; vertical-align: top; }
table.info th { background: var(--gray1); width: 152px; font-weight: 700; color: var(--gray7); }
table.info td { color: var(--ink); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; }
.mini .ico { color: var(--blue); margin-bottom: 10px; }
.mini h3 { font-size: 0.98rem; margin: 0 0 6px; }
.mini p { font-size: 0.88rem; color: var(--gray7); }
.mini .big { font-size: 1.32rem; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }

.timeline { display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 26px 1fr; gap: 16px; }
.tl-step .rail { display: flex; flex-direction: column; align-items: center; }
.tl-step .dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line-2); background: #fff; margin-top: 4px; flex: none; }
.tl-step .bar { width: 2px; flex: 1; background: var(--line); min-height: 22px; }
.tl-step:last-child .bar { display: none; }
.tl-step .txt { padding-bottom: 22px; }
.tl-step .txt b { display: block; font-size: 0.98rem; }
.tl-step .txt .when { font-size: 0.86rem; color: var(--gray7); font-variant-numeric: tabular-nums; margin-top: 3px; }
.tl-step .txt .note { font-size: 0.84rem; color: var(--gray5); margin-top: 4px; }
.tl-step.done .dot { border-color: var(--blue); background: var(--blue); }
.tl-step.now .dot { border-color: var(--blue); background: var(--lime); }
.tl-step.done .bar { background: var(--blue); }
.state-word { display: inline-block; margin-left: 8px; font-size: 0.78rem; font-weight: 800; color: var(--blue); }

.dl-list { display: grid; gap: 8px; }
.dl-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.dl-item .ico { color: var(--gray7); }
.dl-item .nm { font-weight: 600; font-size: 0.92rem; }
.dl-item .sz { font-size: 0.8rem; color: var(--gray5); font-variant-numeric: tabular-nums; }
.dl-item .btn { margin-left: auto; }

.note-box { border: 1px solid var(--blue-w2); background: var(--blue-w); border-radius: var(--r); padding: 18px 20px; font-size: 0.9rem; }
.note-box.warn { border-color: #f0d9a0; background: var(--warn-bg); }
.note-box.plain { border-color: var(--line); background: var(--gray1); }
.note-box h3 { font-size: 0.96rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.note-box p, .note-box li { color: var(--gray7); }
.note-box ul { display: grid; gap: 5px; margin-top: 8px; }
.note-box ul li { padding-left: 13px; position: relative; }
.note-box ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* 쉬운말 전환 — 기본은 행정 문장, 켜면 쉬운 문장으로 바꾼다 */
.easy-only { display: none; }
html[data-easy="on"] .easy-only { display: block; }
html[data-easy="on"] .hard-only { display: none; }

/* 자격 자가진단 */
.wizard { border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; background: #fff; }
.wizard fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.wizard legend { font-size: 0.96rem; font-weight: 700; padding: 0 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.9rem; font-weight: 600; background: #fff;
}
.opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt input:focus-visible + span { outline: var(--focus); outline-offset: 2px; }
.wiz-result { margin-top: 4px; font-size: 0.92rem; }
.wiz-result:empty { display: none; }
.wiz-result .r { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); }
.wiz-result .r.ok { background: var(--ok-bg); color: var(--ok); }
.wiz-result .r.no { background: var(--err-bg); color: var(--err); }
.wiz-result .r.wait { background: var(--gray1); color: var(--gray7); }

/* --------------------------------------------------- 신청서 */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 30px; }
.step { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; background: #fff; }
.step .n { font-size: 0.76rem; font-weight: 800; color: var(--gray5); letter-spacing: 0.06em; }
.step b { display: block; font-size: 0.96rem; margin-top: 4px; }
.step .s { font-size: 0.78rem; color: var(--gray5); margin-top: 4px; }
.step.done { border-color: var(--blue-w2); background: var(--blue-w); }
.step.done .n, .step.done .s { color: var(--blue-d); }
.step.now { border-color: var(--ink); border-width: 2px; padding: 13px 15px; }
.step.now .s { color: var(--ink); font-weight: 700; }

.form-sec { margin-bottom: 30px; }
.form-sec > h2 { font-size: 1.1rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.form-sec .must { font-size: 0.78rem; color: var(--gray5); font-weight: 500; margin-left: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 0.88rem; font-weight: 700; }
.field .req { color: var(--err); margin-left: 3px; }
.field .hint { font-size: 0.8rem; color: var(--gray5); }
.control {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.control::placeholder { color: #9aa4b2; }
.control:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 1px; } /* 옅은 테만 두면 초점이 보이지 않는다(날짜 칸 포함) */
.control[readonly] { background: var(--gray1); color: var(--gray7); }
textarea.control { min-height: 140px; resize: vertical; line-height: 1.65; }
select.control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray7) 50%), linear-gradient(135deg, var(--gray7) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field.invalid .control { border-color: var(--err); background: #fffafa; }
.field .err { display: none; font-size: 0.82rem; color: var(--err); font-weight: 600; }
.field.invalid .err { display: flex; align-items: center; gap: 5px; }
.counter { font-size: 0.8rem; color: var(--gray5); text-align: right; font-variant-numeric: tabular-nums; }

.filelist { display: grid; gap: 8px; }
.filerow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.filerow .nm { font-size: 0.9rem; font-weight: 600; }
.filerow .sz { font-size: 0.8rem; color: var(--gray5); font-variant-numeric: tabular-nums; }
.filerow .rm { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; color: var(--gray7); }
.filerow .rm:hover { border-color: var(--err); color: var(--err); }

.agree { display: grid; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check input { width: 22px; height: 22px; margin: 12px 0 0; accent-color: var(--blue); flex: none; }
.check label { font-size: 0.9rem; padding: 10px 0; }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--blue-d); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.form-actions .btn { min-width: 168px; }

/* --------------------------------------------------- 마이페이지 */
.me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.me img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--gray1); }
.me .who b { font-size: 1.2rem; }
.me .who p { font-size: 0.86rem; color: var(--gray7); }
.me .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 30px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; }
.stat .k { font-size: 0.84rem; color: var(--gray7); }
.stat .v { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .v span { font-size: 0.86rem; font-weight: 600; color: var(--gray5); margin-left: 2px; }
.stat.mark { border-color: var(--ink); border-width: 2px; padding: 17px; }
.two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.qlinks { display: grid; gap: 8px; }
.qlinks a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0.92rem; font-weight: 600; background: #fff; }
.qlinks a:hover { border-color: var(--blue); color: var(--blue); }
.qlinks a .ico { color: var(--gray7); }
.qlinks a:hover .ico { color: var(--blue); }
.qlinks a .chev { margin-left: auto; color: var(--line-2); }

/* --------------------------------------------------- 자료실·목록(Facet) */
.list-wrap { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 30px; align-items: start; padding: 26px 0 var(--sec); }
.facet { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.facet-head { padding: 14px 16px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 8px; }
.facet-head h2 { font-size: 0.96rem; }
.facet-body { padding: 16px; }
.facet-search { display: flex; gap: 6px; margin-bottom: 14px; }
.facet-search input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; font: inherit; font-size: 0.9rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.facet-search button { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.fgroup { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.fgroup > summary { font-size: 0.88rem; font-weight: 800; cursor: pointer; padding: 6px 2px; list-style: none; display: flex; align-items: center; min-height: 34px; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: "−"; margin-left: auto; color: var(--gray5); font-weight: 700; }
.fgroup:not([open]) > summary::after { content: "+"; }
.fopts { display: grid; gap: 2px; padding: 4px 0 8px; }
.fopt { display: flex; align-items: center; gap: 9px; min-height: 40px; font-size: 0.88rem; color: var(--gray7); cursor: pointer; }
.fopt input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.fopt .cnt { margin-left: auto; font-size: 0.78rem; color: var(--gray5); font-variant-numeric: tabular-nums; }
.facet-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--gray1); }

.result-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; }
.result-bar .cnt { font-size: 0.94rem; }
.result-bar .cnt b { color: var(--blue); font-variant-numeric: tabular-nums; }
.result-bar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.result-bar select { height: 44px; padding: 0 34px 0 12px; font: inherit; font-size: 0.88rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 26px; }
.pager button {
  min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-sm); cursor: pointer; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 800; }
.pager button:hover:not([aria-current]) { border-color: var(--ink); }
.empty-row td { padding: 40px 12px; color: var(--gray5); }

/* 검색어 강조 — Custom Highlight API(미지원 시 강조만 없고 걸러내기는 그대로) */
::highlight(srch) { background: var(--lime); color: var(--ink); }
mark.srch { background: var(--lime); color: var(--ink); padding: 0 2px; }

.ev-wrap > *, .prog-wrap > *, .two > *, .split > *, .list-wrap > *, .fac > *,
.cards3 > *, .stats > *, .stepper > *, .grid2 > *, .evlist > *, .prog > *,
.dl-list > *, .filelist > *, .qlinks > * { min-width: 0; }

/* --------------------------------------------------- 반응형 */
@media (max-width: 1180px) {
  .ev-wrap { grid-template-columns: 340px minmax(0, 1fr); }
  .prog-wrap { grid-template-columns: minmax(0, 1fr) 320px; }
  .gnb a { padding: 10px 10px; font-size: 0.9rem; }
  .search-input { width: 170px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 20px; --sec: 44px; }
  html { scroll-padding-top: 16px; }
  .util { display: none; }
  .gnb { display: none; }
  .menu-btn { display: flex; }
  .site-header { position: static; } /* 두 줄 헤더는 고정하면 화면을 너무 먹는다 — 하단 탭바가 상시 이동을 맡는다 */
  .head-in { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 10px 12px; min-height: 0; padding-top: 12px; padding-bottom: 12px; align-items: center; }
  .head-in .brand { grid-column: 1; grid-row: 1; }
  .head-in .menu-btn { grid-column: 2; grid-row: 1; }
  .head-in > .search { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
  .head-in .brand .bt span { display: none; }
  .search-input { width: 100%; height: 46px; }
  .hero-media { inset: 0; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10, 25, 48, 0.92) 30%, rgba(10, 25, 48, 0.78) 100%); }
  .hero-in { padding: 48px 0 78px; max-width: none; }
  .quick-hold { margin-top: -36px; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .quick a { flex-direction: column; gap: 7px; min-height: 84px; font-size: 0.82rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .quick a:nth-child(-n + 3) { border-top: 0; }
  .quick a:nth-child(3n + 1) { border-left: 0; }
  .ev-wrap, .prog-wrap, .two, .split, .list-wrap { grid-template-columns: minmax(0, 1fr); }
  .split, .list-wrap { gap: 22px; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; border-left: 0; border-top: 2px solid var(--line); }
  .toc a { margin-left: 0; border-left: 0; border-top: 2px solid transparent; margin-top: -2px; }
  .toc a.is-active { border-left: 0; border-top-color: var(--blue); }
  .campaign { grid-template-columns: 1fr; }
  .campaign .pic { min-height: 190px; order: -1; }
  .campaign .body { padding: 28px 22px 30px; }
  .cards3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stepper { grid-template-columns: 1fr 1fr; }
  .foot-main { grid-template-columns: 1fr; gap: 22px; }
  .tabbar { display: block; }
  body { padding-bottom: 58px; }
  .to-top { bottom: 72px; }
  .toast { bottom: 74px; }
  .facet-body { padding: 12px 14px; }
}

@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .ev .date { padding-right: 8px; }
  .ev .date b { font-size: 1.3rem; }
  .ev .thumb { width: 56px; height: 74px; }
  .prog-item { grid-template-columns: 1fr; }
  .prog-item .go { justify-content: space-between; }
  .sec-head { flex-wrap: wrap; gap: 8px; }
  .sec-head .right { width: 100%; margin-left: 0; }
  .gsearch .box { flex-direction: column; }
  .gsearch .box .btn { width: 100%; }
  .campaign h2 { font-size: 1.4rem; }
  .form-actions .btn { flex: 1; min-width: 140px; }
  .me .right { width: 100%; margin-left: 0; }
  .me .right .btn { flex: 1; }
  table.info th { width: 108px; padding: 12px; }
  table.info td { padding: 12px; }
  .day { min-height: 48px; font-size: 0.88rem; }
  .acc-panel { padding-left: 4px; }
  /* 44px 이상 터치 영역 확보 */
  button, .btn { min-height: 46px; }
  .tool { min-height: 46px; }
}

@media (max-width: 360px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
  .quick a:nth-child(3n + 1) { border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .quick a:nth-child(2n + 1) { border-left: 0; }
  .quick a:nth-child(-n + 2) { border-top: 0; }
  .quick a:nth-child(3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .stats { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.82rem; }
}

/* --------------------------------------------------- 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .progress { display: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* 목록 전환 — View Transition(같은 문서). 지원 브라우저에서만 켜지고, 모션 최소화에서는 꺼진다.
   문서 간 전환(@view-transition navigation:auto)은 실측에서 이동 직후 화면이 입력을 받지 못하는
   일이 있어(콘솔 AbortError, 스크롤·클릭 먹통) 쓰지 않는다. 자세한 사정은 보고서에 적었다. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }

/* --------------------------------------------------- 인쇄 */
@media print {
  .progress, .util, .head-actions, .drawer, .scrim, .tabbar, .to-top, .toast,
  .alertbar, .quick-hold, .gsearch, .toc, .form-actions, .pager, .facet, .sugg { display: none !important; }
  html { font-size: 90%; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .site-header { position: static; border-bottom: 2px solid #000; }
  .hero { background: #fff; color: #000; }
  .hero-media { display: none; }
  .hero-in { padding: 18px 0; }
  .hero .lead { color: #333; }
  .split, .list-wrap { grid-template-columns: 1fr; }
  .site-footer { background: #fff; color: #000; border-top: 2px solid #000; }
  .panel, .mini, .note-box, table.board, table.info { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444; }
}
