/* 정신건강센터 내일 — 공통 스타일
   색은 로고에서 왔다: 파랑(ㄴ) + 주황(고리) */

:root {
  --blue-900: #10264d;
  --blue-800: #173a73;
  --blue-700: #1f4d97;
  --blue-600: #2a5daf;
  --blue-100: #dde7f6;
  --blue-50: #eef3fb;
  --orange-700: #c45a10;
  --orange-600: #e2701a;
  --orange-500: #f28b24;
  --orange-100: #fde3c8;
  --orange-50: #fff4e8;

  --ink: #18202c;
  --ink-2: #47515f;
  --ink-3: #737c8a;
  --line: #e7e2da;
  --line-2: #d8d1c6;
  --bg: #fbf9f6;
  --cream: #f5efe6;
  --surface: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1140px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(16, 38, 77, .04), 0 8px 24px rgba(16, 38, 77, .06);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.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: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--blue-800); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ── 머리 ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: var(--blue-900); }
.brand-text strong em { font-style: normal; color: var(--orange-600); }
.brand-text span { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }

.gnb { margin-left: auto; }
.gnb > ul { list-style: none; display: flex; gap: 4px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  display: block; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 16px; color: var(--ink);
}
.gnb > ul > li > a:hover, .gnb > ul > li:focus-within > a { background: var(--blue-50); color: var(--blue-700); }
.gnb > ul > li > a.is-active { color: var(--blue-700); }
.gnb > ul > li > a.is-active::after {
  content: ""; display: block; height: 3px; margin-top: 2px; border-radius: 3px; background: var(--orange-500);
}
.gnb .sub {
  list-style: none; position: absolute; top: 100%; left: 50%; min-width: 190px;
  transform: translate(-50%, 6px); padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s;
}
.gnb > ul > li:hover .sub, .gnb > ul > li:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.gnb .sub a:hover { background: var(--orange-50); color: var(--orange-700); }

.header-cta { flex-shrink: 0; }
.menu-btn {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── 단추 ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange-600); color: #fff; }
.btn-primary:hover { background: var(--orange-700); }
.btn-blue { background: var(--blue-700); color: #fff; }
.btn-blue:hover { background: var(--blue-800); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── 첫 화면 ──────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--orange-50), rgba(255, 244, 232, 0) 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px;
  border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 14px; font-weight: 700;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; color: var(--blue-900); }
.hero h1 .o { color: var(--orange-600); }
.hero h1 small { display: block; margin-top: 14px; font-size: .36em; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-3); }
.hero .lead { margin: 26px 0 34px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4;
  box-shadow: 0 30px 60px -30px rgba(16, 38, 77, .45);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 16%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 38, 77, 0) 55%, rgba(16, 38, 77, .55) 100%); }
.hero-photo figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; font-size: 14px; font-weight: 600; }
.hero-mark { position: absolute; right: -22px; top: -30px; width: 104px; height: 104px; padding: 14px; z-index: 2; background: #fff; border-radius: 28px; box-shadow: var(--shadow); }

/* ── 띠 ───────────────────────────────── */
.motto { background: var(--blue-800); color: #fff; }
.motto .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 34px; padding-bottom: 34px; }
.motto p { margin: 0; font-size: clamp(19px, 2.4vw, 25px); font-weight: 700; letter-spacing: -0.03em; }
.motto p em { font-style: normal; color: var(--orange-100); }
.motto .sub { font-size: 15px; font-weight: 500; color: var(--blue-100); }

/* ── 구획 ─────────────────────────────── */
.section { padding: 96px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.cream { background: var(--cream); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 44px; }
.sec-head .kicker { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; color: var(--orange-600); }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--blue-900); }
.sec-head p { margin: 14px 0 0; color: var(--ink-2); max-width: 40em; }
.sec-head .more { font-weight: 700; color: var(--blue-700); white-space: nowrap; }
.sec-head .more:hover { color: var(--orange-700); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover, .card.hover:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 21px; font-weight: 800; color: var(--blue-900); margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; margin: 0; }
.card .num { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--orange-600); }
.card .icon { width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); }
.card .icon.o { background: var(--orange-50); color: var(--orange-600); }
.card .link { display: inline-flex; gap: 6px; margin-top: 18px; font-weight: 700; color: var(--blue-700); }

.approach { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.approach-list { list-style: none; display: grid; gap: 16px; }
.approach-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.approach-list .badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--orange-50); color: var(--orange-600); }
.approach-list h3 { font-size: 19px; font-weight: 800; color: var(--blue-900); margin-bottom: 6px; }
.approach-list p { margin: 0; color: var(--ink-2); font-size: 16px; }
.quote-block {
  position: sticky; top: calc(var(--header-h) + 32px);
  padding: 40px 36px; border-radius: 24px; background: var(--blue-800); color: #fff;
}
.quote-block .q { font-size: 64px; line-height: 1; font-weight: 800; color: var(--orange-500); }
.quote-block p { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.55; margin: 8px 0 18px; }
.quote-block span { color: var(--blue-100); font-size: 15px; }

/* 단계 */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { position: relative; padding: 0 14px; text-align: center; counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; position: relative; z-index: 1;
  border-radius: 50%; background: #fff; border: 2px solid var(--blue-600); color: var(--blue-700); font-weight: 800; font-size: 19px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 34px); right: calc(-50% + 34px); height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.steps li:last-child::before { background: var(--orange-600); border-color: var(--orange-600); color: #fff; }
.steps h3 { font-size: 17px; font-weight: 800; color: var(--blue-900); margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* 소식 */
.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.news-box { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.news-box header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--blue-900); }
.news-box h3 { font-size: 20px; font-weight: 800; color: var(--blue-900); }
.news-box header a { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.news-box header a:hover { color: var(--orange-700); }
.post-list { list-style: none; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 0; }
.post-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 15px 2px; }
.post-list a:hover .t { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.post-list .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.post-list .d { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--blue-50); color: var(--blue-700); white-space: nowrap; }
.tag.o { background: var(--orange-50); color: var(--orange-700); }
.empty { padding: 28px 4px; color: var(--ink-3); font-size: 15px; text-align: center; }

/* 함께하기 */
.join-card { display: flex; flex-direction: column; }
.join-card .btn { margin-top: auto; align-self: flex-start; }
.join-card p { margin-bottom: 24px; }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.visit figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.visit figure img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; object-position: 40% 18%; }
.visit figure figcaption { padding: 12px 18px; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); }
.info-list { list-style: none; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; }
.info-list li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list dt, .info-list .k { font-weight: 700; color: var(--blue-800); font-size: 15px; }
.info-list .v { color: var(--ink); }
.info-list .v small { display: block; color: var(--ink-3); font-size: 14px; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ── 하위 페이지 머리 ─────────────────── */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: var(--blue-800); color: #fff; }
.page-hero::after {
  content: ""; position: absolute; right: -90px; top: -150px; width: 420px; height: 420px; border-radius: 50%;
  border: 56px solid rgba(242, 139, 36, .22);
}
.page-hero .crumb { font-size: 14px; color: var(--blue-100); margin-bottom: 12px; }
.page-hero .crumb a:hover { color: #fff; text-decoration: underline; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.04em; }
.page-hero p { margin: 14px 0 0; color: var(--blue-100); font-size: 18px; max-width: 38em; }

.subnav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative; flex-shrink: 0; padding: 18px 18px 16px; font-weight: 700; color: var(--ink-3); white-space: nowrap;
}
.subnav a:hover { color: var(--blue-700); }
.subnav a[aria-selected="true"] { color: var(--blue-800); }
.subnav a[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange-500); }

.panel { padding: 72px 0 96px; }
.js .panel[hidden] { display: none; }
.panel-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--blue-900); margin-bottom: 8px; }
.panel-lead { color: var(--ink-2); margin-bottom: 40px; max-width: 42em; }

/* 인사말 */
.greeting { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.greeting .big { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.4; letter-spacing: -0.035em; color: var(--blue-900); }
.greeting .big em { font-style: normal; color: var(--orange-600); }
.greeting .body p { color: var(--ink-2); }
.sign { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; color: var(--blue-900); }
.sign .sig { font-family: "Nanum Brush Script", cursive; font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: 0.04em; color: var(--blue-900); transform: rotate(-4deg); }
.sign span { color: var(--ink-2); font-weight: 600; font-size: 16px; }

/* 미션 */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.mission .card { padding: 36px 32px; }
.mission .label { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }
.mission .m .label { background: var(--orange-50); color: var(--orange-700); }
.mission .v .label { background: var(--blue-50); color: var(--blue-700); }
.mission h3 { font-size: 24px; line-height: 1.45; }

/* 연혁 */
.timeline { list-style: none; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.timeline li { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 0 0 36px; }
.timeline li::before { content: ""; position: absolute; left: 112px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--orange-500); }
.timeline time { font-weight: 800; font-size: 19px; color: var(--blue-800); font-variant-numeric: tabular-nums; text-align: right; }
.timeline p { margin: 0; padding-top: 1px; color: var(--ink); }

/* 조직도 */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org .top { padding: 18px 40px; border-radius: 16px; background: var(--blue-800); color: #fff; font-weight: 800; font-size: 19px; }
.org .teams { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.org .teams::before { content: ""; position: absolute; left: 50%; top: -56px; width: 2px; height: 28px; background: var(--line-2); }
.org .teams::after { content: ""; position: absolute; top: -28px; left: 16.66%; right: 16.66%; height: 2px; background: var(--line-2); }
.org .team { position: relative; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.org .team::before { content: ""; position: absolute; top: -29px; left: 50%; width: 2px; height: 28px; background: var(--line-2); }
.org .team h3 { font-size: 19px; font-weight: 800; color: var(--blue-900); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); text-align: center; }
.org .team ul { list-style: none; display: grid; gap: 6px; }
.org .team li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 15.5px; }
.org .team li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500); }

/* 기관 정보 표 */
.facts { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 180px; background: var(--blue-50); color: var(--blue-800); font-weight: 700; font-size: 15.5px; }
.facts td a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--orange-50); color: var(--orange-700); font-size: 15px; }

/* 프로그램 상세 */
.prog { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.prog:last-child { border-bottom: 1px solid var(--line); }
.prog .n { font-size: 15px; font-weight: 800; color: var(--orange-600); letter-spacing: 0.05em; }
.prog h3 { font-size: 23px; font-weight: 800; color: var(--blue-900); margin-top: 6px; }
.prog p { color: var(--ink-2); margin: 0; }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4d97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

.callout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 48px; padding: 36px 40px; border-radius: 24px; background: var(--blue-800); color: #fff; }
.callout h3 { font-size: 24px; font-weight: 800; }
.callout p { margin: 8px 0 0; color: var(--blue-100); }

/* 게시판 */
.board-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--ink-3); font-size: 15px; }
.board { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.board li { border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.board a { display: grid; grid-template-columns: 52px auto 1fr 96px; gap: 16px; align-items: center; padding: 20px 26px; }
.board a:hover { background: var(--bg); }
.board a:hover .t { color: var(--blue-700); }
.board .t { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .d { color: var(--ink-3); font-size: 14.5px; font-variant-numeric: tabular-nums; text-align: center; }
.board .no { color: var(--ink-3); font-size: 14.5px; font-variant-numeric: tabular-nums; text-align: center; }
/* 번호 · 제목 · 작성일 머리줄. 칸 너비를 .board a 와 맞춘다 */
.board-head { display: grid; grid-template-columns: 52px 1fr 96px; gap: 16px; padding: 13px 26px; background: var(--blue-50); color: var(--blue-800); font-size: 14px; font-weight: 700; text-align: center; border: 1px solid var(--line); border-top: 2px solid var(--blue-800); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.board-head + .board { border-radius: 0 0 var(--radius) var(--radius); }
.board-more { display: flex; justify-content: center; margin-top: 24px; }

.article { max-width: 820px; margin: 0 auto; }
.article-head { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 2px solid var(--blue-900); }
.article-head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--blue-900); margin: 12px 0 10px; }
.article-head .meta { color: var(--ink-3); font-size: 15px; }
.article-body { font-size: 17.5px; line-height: 1.9; white-space: pre-wrap; }
.article-body a { color: var(--blue-700); text-decoration: underline; }
.article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* 신청 */
.apply-card { display: flex; flex-direction: column; padding: 36px 32px; }
.apply-card h3 { font-size: 24px; }
.apply-card ul { margin: 18px 0 28px; }
.apply-card .btn { margin-top: auto; }
.apply-card .phone { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }

/* 개인정보처리방침 */
.doc { max-width: 860px; }
.doc h2 { font-size: 21px; font-weight: 800; color: var(--blue-900); margin: 44px 0 14px; padding-top: 8px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: 6px; margin-bottom: 1em; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15.5px; background: #fff; }
.doc th, .doc td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.doc th { background: var(--blue-50); color: var(--blue-800); }

/* ── 바닥 ─────────────────────────────── */
.site-footer { background: var(--blue-900); color: #c9d3e3; font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.foot-top { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.foot-brand img { width: 52px; height: 52px; padding: 6px; border-radius: 14px; background: #fff; }
.foot-brand strong { display: block; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.foot-brand span { font-size: 13px; color: #9fb0ca; }
.foot-tel { display: block; margin-top: 4px; color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.foot-tel-sub { color: #9fb0ca; font-size: 14px; }
.foot-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.foot-info div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; }
.foot-info dt { color: #8ea0bd; }
.foot-info dd { margin: 0; color: #e6ecf5; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; color: #8ea0bd; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: #e6ecf5; font-weight: 600; }
.foot-links a:hover { color: var(--orange-100); }
.foot-links a.strong { color: var(--orange-100); }

/* ── 관리자 ───────────────────────────── */
.admin-box { max-width: 980px; margin: 0 auto; }
.login-box { max-width: 460px; margin: 0 auto; padding: 44px 40px; text-align: center; }
.login-box p { color: var(--ink-2); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 15px; color: var(--blue-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink);
}
.field textarea { min-height: 320px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50); }
.field .hint { font-size: 13.5px; color: var(--ink-3); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15.5px; }
.admin-table th { background: var(--blue-50); color: var(--blue-800); font-size: 14px; }
.admin-table td.act { white-space: nowrap; text-align: right; }
.admin-table .linkish { background: none; border: 0; padding: 4px 8px; color: var(--blue-700); font-weight: 700; }
.admin-table .linkish.danger { color: #b42318; }
.msg { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 15px; }
.msg.err { background: #fdecea; color: #8a1c13; }
.msg.ok { background: #e8f5ee; color: #135c36; }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .gnb > ul > li > a { padding: 10px 12px; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  /* backdrop-filter 가 있으면 position:fixed 메뉴판이 머리말 안에 갇힌다 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu-btn { display: inline-flex; }
  .gnb {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0; padding: 12px 20px 40px; overflow-y: auto;
    background: #fff; border-top: 1px solid var(--line); display: none;
  }
  .gnb.is-open { display: block; }
  .gnb > ul { flex-direction: column; gap: 0; }
  .gnb > ul > li { border-bottom: 1px solid var(--line); padding: 8px 0 12px; }
  .gnb > ul > li > a { font-size: 18px; padding: 10px 4px; }
  .gnb > ul > li > a.is-active::after { display: none; }
  .gnb .sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
  .gnb .sub a { padding: 6px 12px; background: var(--bg); border-radius: 999px; font-size: 14.5px; }
  body.menu-open { overflow: hidden; }

  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .hero-mark { right: -8px; top: -20px; width: 80px; height: 80px; padding: 10px; border-radius: 22px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach, .greeting, .visit, .news-cols, .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .quote-block { position: static; }
  .steps, .steps.four { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; padding: 0 0 28px; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .steps li:not(:last-child)::after { top: 60px; bottom: 2px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .steps h3 { margin-top: 14px; }
  .prog { grid-template-columns: 1fr; gap: 10px; }
  .org .teams { grid-template-columns: 1fr; margin-top: 28px; }
  .org .teams::before, .org .teams::after, .org .team::before { display: none; }
  .callout { grid-template-columns: 1fr; padding: 30px 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 17px; }
  .brand-text span { display: none; }
  .section { padding: 64px 0; }
  .panel { padding: 48px 0 72px; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .grid-2, .grid-3, .grid-4, .mission, .row { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .info-list { padding: 4px 20px; }
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
  .facts th, .facts td { display: block; width: 100%; padding: 12px 18px; }
  .facts th { border-bottom: 0; padding-bottom: 4px; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
  .timeline li::before { left: 1px; }
  .timeline time { text-align: left; font-size: 17px; }
  .post-list a { grid-template-columns: 1fr auto; }
  .board a { grid-template-columns: 30px 1fr auto; gap: 12px; padding: 16px 18px; }
  .board a .tag, .post-list a .tag { display: none; }
  .board-head { display: none; }
  .board-head + .board { border-radius: var(--radius); }
  .foot-info { grid-template-columns: 1fr; }
  .login-box { padding: 32px 22px; }
  .admin-table th:nth-child(1), .admin-table td:nth-child(1) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .subnav, .site-footer, .menu-btn { display: none; }
  body { background: #fff; }
}

/* 오른쪽 끝 두 메뉴는 펼침 목록을 오른쪽에 붙인다 (화면 밖으로 삐져나가 가로 스크롤이 생겼다) */
@media (min-width: 961px) {
  .gnb > ul > li:nth-last-child(-n+2) .sub { left: auto; right: 0; transform: translate(0, 6px); }
  .gnb > ul > li:nth-last-child(-n+2):hover .sub,
  .gnb > ul > li:nth-last-child(-n+2):focus-within .sub { transform: translate(0, 0); }
}
.visit figure.map-fig { align-self: start; }
.visit figure.map-fig img { height: auto; max-height: none; object-fit: contain; }

/* 오시는 길 — 약도는 원본 크기(618px)를 넘겨 키우지 않는다. 늘리면 흐려진다 */
.map-card { display: grid; grid-template-columns: minmax(0, 642px) minmax(0, 1fr); gap: 28px; align-items: start; }
.map-img { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.map-img img { width: 100%; height: auto; border-radius: 14px; }
.map-img figcaption { display: flex; align-items: center; gap: 10px; padding: 14px 6px 4px; font-size: 15px; font-weight: 700; color: var(--blue-900); }
.map-img .pin { width: 12px; height: 12px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 5px var(--orange-50); flex-shrink: 0; }
.map-side .map-links { margin-top: 16px; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.route-steps { list-style: none; display: grid; gap: 14px; }
.route-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.route-steps .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-700); color: #fff; font-weight: 800; font-size: 18px; }
.route-steps li:last-child .n { background: var(--orange-600); }
.route-steps h4 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--blue-900); letter-spacing: -0.02em; }
.route-steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.route-photo { margin: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.route-photo img { flex: 1; width: 100%; min-height: 280px; object-fit: cover; object-position: 40% 20%; }
.route-photo figcaption { padding: 12px 18px; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .map-card, .route { grid-template-columns: 1fr; }
  .map-img { max-width: 642px; }
}
@media (max-width: 640px) {
  .map-img { padding: 8px; border-radius: 18px; }
  .route-steps li { padding: 18px; grid-template-columns: 38px 1fr; gap: 12px; }
  .route-steps .n { width: 38px; height: 38px; font-size: 16px; }
}

/* 그림 약도 (tools/partials/map.html) — 선으로 그려서 키워도 흐려지지 않는다 */
.nmap { display: block; width: 100%; height: auto; border-radius: 14px; font-family: var(--font); background: #f5f0e7; }
.map-card { grid-template-columns: 1fr; }
.map-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.map-side .map-links { margin-top: 0; flex-direction: column; }
.map-img .note-sm { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.visit figure.map-fig { padding: 10px; }
@media (max-width: 960px) {
  .map-side { grid-template-columns: 1fr; }
  .map-side .map-links { flex-direction: row; }
}
@media (max-width: 640px) {
  .map-img figcaption { flex-wrap: wrap; }
  .map-img .note-sm { margin-left: 22px; }
}
@media (max-width: 640px) {
  .map-img figcaption { display: block; font-size: 14px; line-height: 1.6; }
  .map-img .pin { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 1px; }
  .map-img .note-sm { display: block; margin: 6px 0 0; }
}

/* 글 사진 */
.article-photos { display: grid; gap: 18px; margin-top: 32px; }
.article-photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.article-photos img { width: 100%; height: auto; }
.article-photos .ph-wait { aspect-ratio: 4 / 3; background: linear-gradient(90deg, var(--cream), #fff, var(--cream)); background-size: 200% 100%; animation: phwait 1.2s linear infinite; }
@keyframes phwait { to { background-position: -200% 0; } }
.has-pic { display: inline-block; width: 16px; height: 16px; margin-left: 8px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737c8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 관리자 — 사진 고르기 */
.img-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; cursor: pointer; }
.img-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.img-pick:focus-within .btn { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.img-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 4px; }
.img-list:empty { display: none; }
.img-list li { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.img-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.img-tools { display: flex; border-top: 1px solid var(--line); }
.img-tools button { flex: 1; padding: 7px 0; border: 0; background: #fff; font-size: 13px; font-weight: 700; color: var(--blue-700); }
.img-tools button + button { border-left: 1px solid var(--line); }
.img-tools button:disabled { color: var(--line-2); cursor: default; }
.img-tools .danger { color: #b42318; }

/* 첨부파일 */
.file-list { list-style: none; display: grid; gap: 8px; margin: 0 0 28px; padding: 14px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); }
.file-list:empty { display: none; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.file-list .fname { flex: 1 1 220px; min-width: 0; padding-left: 28px; font-weight: 700; color: var(--blue-900); word-break: break-all; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4d97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") left center / 19px no-repeat; }
.file-list .fsize { font-size: 14px; color: var(--ink-3); }
.file-list.edit { margin: 4px 0 0; }
.file-list .linkish { background: none; border: 0; padding: 4px 6px; font-weight: 700; color: var(--blue-700); }
.file-list .linkish.danger { color: #b42318; }
.has-file { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737c8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5l-8.6 8.6a5 5 0 0 1-7.1-7.1l8.6-8.6a3.4 3.4 0 0 1 4.8 4.8l-8.6 8.6a1.7 1.7 0 0 1-2.4-2.4l8-8'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 자주 묻는 질문 — <details> 라서 스크립트 없이 펼쳐진다 */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 1fr 20px; gap: 14px; align-items: center; padding: 18px 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; justify-self: center; width: 10px; height: 10px; margin-top: -5px; border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s, margin .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq summary:hover .qt { color: var(--blue-700); }
.faq .q, .faq .aa { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.faq .q { background: var(--blue-50); color: var(--blue-700); }
.faq .aa { background: var(--orange-50); color: var(--orange-600); }
.faq .qt { font-weight: 700; font-size: 17.5px; color: var(--blue-900); letter-spacing: -0.02em; line-height: 1.5; }
.faq .a { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 0 22px 22px; }
.faq .a p { margin: 4px 0 0; color: var(--ink-2); }
.faq .a a { color: var(--blue-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-group h3 { margin: 36px 0 14px; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--orange-600); }
.faq-group:first-of-type h3 { margin-top: 8px; }
.faq-home { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-home .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) {
  .faq-home { grid-template-columns: 1fr; gap: 28px; }
  .faq-home .sec-head { position: static; }
}
@media (max-width: 640px) {
  .faq summary { grid-template-columns: 30px 1fr 16px; gap: 12px; padding: 16px; }
  .faq .q, .faq .aa { width: 30px; height: 30px; font-size: 14px; }
  .faq .qt { font-size: 16px; }
  .faq .a { grid-template-columns: 30px 1fr; gap: 12px; padding: 0 16px 18px; }
}
