/* ==========================================================
   서브페이지 스타일 — sub-banner / 게시판 테이블 / 상세 / 캘린더
   사이트 토큰(common.css) 재사용. 블록 스타일과 독립.
   ========================================================== */

/* --- 서브 배너 (Figma Subhero: 연청록 배경 + Jua 타이틀 + 클레이 일러스트) --- */
:root {
  --sub-muted: #5b6e64;
  --sub-ink: #203c30;
  --card-cream: #fbfbf5;
  --card-blue: #edf8fc;
  --card-green: #f0f7ec;
}
.sub-banner {
  background: var(--card-blue);
}
.sub-banner__inner {
  position: relative;
  min-height: 300px;
  box-sizing: border-box;
  padding: 32px 0 52px;
}
.crumbs {
  font-size: 15px;
  line-height: 28px;
  color: var(--sub-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--sub-muted); text-decoration: none; }
.crumbs a:hover { color: var(--main-brand); text-decoration: underline; }
.crumbs__sep { color: var(--sub-muted); opacity: .55; }
.sub-banner__title {
  margin: 34px 0 24px;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(30px, 3.02vw, 58px);
  line-height: 1.24;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--main-brand);
}
.sub-banner__desc {
  margin: 0;
  font-size: clamp(16px, 1.1vw, 21px);
  line-height: 1.71;
  color: var(--sub-muted);
}
.sub-banner__icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(88px, 8.33vw, 160px);
  height: auto;
  pointer-events: none;
}
.sub-tabs-wrap {
  background: #fff;
  padding: 16px 0;
}
.sub-tabs__toggle { display: none; }
.sub-tabs {
  display: flex;
  border: 1px solid var(--main-line);
  border-radius: 16px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 14px;
  white-space: nowrap;
  font-size: clamp(16px, 1.05vw, 20px);
  letter-spacing: -0.01em;
  color: var(--main-muted);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.sub-tabs a:hover { color: var(--main-brand); background: var(--main-pale); }
.sub-tabs a.is-active {
  background: var(--main-brand);
  color: #fff;
  font-weight: 700;
}

/* --- 본문 영역 --- */
.sub-main { padding: 64px 0 96px; }

/* --- 게시판 검색 툴바 (Figma 4682:2984) --- */
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  margin-bottom: 24px;
  padding: 0 16px 0 24px;
  background: var(--card-cream);
  border-radius: 12px;
}
.board-toolbar__count {
  font-family: var(--font-kr);
  font-size: 18px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.18px;
  color: var(--main-brand);
}
.board-search { display: flex; align-items: center; gap: 36px; }
.board-search input[type=search] {
  width: 440px;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--main-line);
  border-radius: 10px;
  font-family: var(--font-kr);
  font-size: 17px;
  letter-spacing: -0.17px;
  background: #fff;
  color: var(--main-ink);
}
.board-search input[type=search]::placeholder { color: var(--sub-muted); }
.board-search input[type=search]:focus { border-color: var(--main-brand); outline: none; box-shadow: 0 0 0 3px rgba(0, 89, 45, .1); }
.board-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--main-brand);
  cursor: pointer;
}
.board-search__btn:hover { opacity: .9; }

/* --- 게시판 목록 (Figma 4682:2993) --- */
.board-head, .board-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 100px 180px;
  column-gap: 27.5px;
  align-items: center;
}
.board-head {
  height: 64px;
  padding: 0 0 0 0;
  background: var(--card-blue);
  border-radius: 8px;
  font-family: var(--font-kr);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.18px;
  color: #21638b;
}
.board-head .bh__num, .board-head .bh__views, .board-head .bh__date { text-align: center; }
.board-list { list-style: none; }
.board-row {
  height: 72px;
  border-bottom: 1px solid var(--main-line);
  background: #fff;
  font-family: var(--font-kr);
}
.board-row__num { font-size: 20px; line-height: 34px; letter-spacing: -0.2px; color: var(--sub-muted); text-align: center; }
.board-row__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(16px, 1.05vw, 20px); /* 서브 내비(.sub-tabs a)와 동일 크기 */
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.23px;
  color: var(--sub-ink);
}
a.board-row__title:hover { color: var(--main-brand); text-decoration: underline; }
.board-row__views, .board-row__date {
  font-size: 18px;
  line-height: 34px;
  letter-spacing: -0.18px;
  color: var(--sub-muted);
  text-align: center;
}
.board-empty {
  padding: 90px 20px;
  border-radius: 12px;
  background: var(--card-cream);
  text-align: center;
  color: var(--sub-muted);
  font-size: 17px;
}

/* --- 페이지네이션 (Figma 4682:3006) --- */
.pager { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 64px; }
.board-note { margin-top: 48px; font-size: 21px; line-height: 38px; color: var(--sub-muted); }
.pager__nav { display: flex; align-items: center; }
.pager__nav--dim { opacity: .35; }
.pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-family: var(--font-kr);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.19px;
  color: var(--sub-ink);
  text-decoration: none;
}
a.pager__num:hover { background: var(--main-pale); color: var(--main-brand); }
.pager__num.is-current { background: var(--main-brand); color: #fff; }
.pager__gap { font-size: 15px; color: var(--sub-muted); }

/* --- 게시글 상세 (Figma 4682:2506) --- */
.post-view__title {
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(26px, 1.98vw, 38px);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--main-brand);
}
.post-view__meta {
  margin: 32px 0 0;
  font-family: var(--font-kr);
  font-size: 21px;
  line-height: 38px;
  letter-spacing: -0.21px;
  color: var(--sub-muted);
}
.post-view__rule { margin-top: 28px; height: 2px; background: var(--main-brand); }
.post-view__content {
  padding: 40px 0 0;
  font-family: var(--font-kr);
  font-size: 21px;
  line-height: 38px;
  letter-spacing: -0.21px;
  color: var(--sub-ink);
  word-break: keep-all;
}
.post-view__empty { color: var(--sub-muted); }
.post-view__link { padding-top: 24px; }
.post-view__actions { display: flex; justify-content: center; margin-top: 48px; }
.btn-list {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--main-brand);
  color: #fff;
  font-family: var(--font-kr);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.17px;
  transition: opacity .2s ease;
}
.btn-list:hover { opacity: .9; }

/* --- 본문 에디터 서식 렌더 (rte-content: 관리자 에디터와 동일 클래스) ---
   유튜브 iframe은 에디터에서 .rte-video로 삽입 — 16:9 반응형으로 렌더.
   표·머리글자(ruby)도 에디터에서 온 서식을 정돈. */
.post-view__content--html iframe.rte-video {
  display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: 8px; margin: 18px 0;
}
.post-view__content--html table {
  border-collapse: collapse; margin: 18px 0; max-width: 100%;
}
.post-view__content--html th, .post-view__content--html td {
  border: 1px solid var(--main-line); padding: 8px 12px;
}
.post-view__content--html img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.post-view__content--html blockquote {
  margin: 18px 0; padding: 10px 18px; border-left: 3px solid var(--main-brand);
  background: var(--main-bg, #f7f8f7); color: var(--main-muted);
}
.post-view__content--html ruby rt { font-size: .5em; color: var(--main-muted); }
.post-view__nav {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--main-line);
}
@media (max-width: 768px) {
  .post-view__title { font-size: 26px; }
  .post-view__meta { margin-top: 16px; font-size: 16px; line-height: 28px; }
  .post-view__content { padding: 24px 0 0; font-size: 17px; line-height: 32px; }
}

/* --- 화면낭독기 전용 --- */
.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;
}

/* --- 반응형 (서브페이지) --- */
@media (max-width: 1024px) {
  .sub-banner__inner { padding: 24px 0 40px; }
  .sub-main { padding: 48px 0 80px; }
}
@media (max-width: 768px) {
  .board-toolbar { height: auto; flex-wrap: wrap; padding: 12px 16px; }
  .board-search { flex: 1 1 100%; gap: 10px; min-width: 0; }
  .board-search input[type=search] { flex: 1 1 auto; width: auto; min-width: 0; }
  .board-toolbar__count { width: 100%; }
  .board-head { display: none; }
  .board-head, .board-row { grid-template-columns: 1fr auto; }
  .board-row { height: auto; padding: 12px 4px; }
  .board-row__title { overflow-wrap: anywhere; }
  .board-row__num, .board-row__views { display: none; }
  .board-row__title { grid-column: 1; font-size: 16px; white-space: normal; }
  .board-row__date { grid-column: 2; grid-row: 1; font-size: 14px; }
  /* 히어로 — 아이콘 제거, 254px (Figma MOBILE 360 4742:570) */
  .sub-banner__icon { display: none; }
  .sub-banner__inner { padding: 24px 0 32px; min-height: 254px; }
  .sub-banner__title { margin: 19px 0; font-size: 36px; line-height: 48px; }
  .crumbs { font-size: 13px; line-height: 24px; }
  /* 카테고리바 — 현재 메뉴 표시 + 펼치기(아코디언) */
  .sub-tabs__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 52px;
    padding: 0 13px 0 15px;
    background: #fff;
    border: 1px solid var(--main-line);
    border-radius: 10px;
    font-family: var(--font-kr);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.16px;
    color: var(--main-brand);
    cursor: pointer;
  }
  .sub-tabs__toggle img { width: 14px; height: 8px; flex-shrink: 0; transition: transform .2s ease; }
  .sub-tabs__toggle[aria-expanded="true"] img { transform: rotate(180deg); }
  .sub-tabs-wrap .container { position: relative; }
  .sub-tabs {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40; /* 헤더·GNB 드로어(z:50)보다 아래 — 메인 내비가 항상 위 */
    padding: 4px 0;
    background: #fff;
    border: 1px solid var(--main-line);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(32, 60, 48, .16);
  }
  .sub-tabs.is-open { display: block; }
  .sub-tabs a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 15px;
    border-radius: 0;
    font-size: 16px;
  }
  .sub-tabs a + a { border-top: 1px solid var(--main-line); }
  .sub-tabs a:hover { background: transparent; color: var(--main-brand); }
  .sub-tabs a.is-active { background: transparent; color: var(--main-brand); font-weight: 700; }
}
@media (max-width: 480px) {
  .sub-main { padding: 36px 0 64px; }
}

/* --- 갤러리 목록 (Figma 4682:2786) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gcard a {
  display: block;
  background: #fff;
  border: 1px solid var(--main-line);
  border-radius: 16px;
  padding: 10px 10px 14px;
}
.gcard__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-color: var(--main-gray);
  background-size: cover;
  background-position: center;
}
.gcard__title {
  display: block;
  margin: 18px 0 0 8px;
  font-family: 'Jua', var(--font-kr);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.25px;
  color: var(--main-brand);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcard a:hover .gcard__title { text-decoration: underline; }
.gcard__meta {
  display: block;
  margin: 6px 0 0 8px;
  font-family: var(--font-kr);
  font-size: 14px;
  line-height: 26px;
  letter-spacing: -0.14px;
  color: var(--sub-muted);
}
.gallery-view { max-width: 900px; margin: 0 auto; }
.gallery-view__date {
  margin: 0 0 10px;
  padding-top: 26px;
  border-top: 2px solid var(--main-brand);
  font-size: 15px;
  color: var(--main-muted);
}
.gallery-view__title {
  margin: 0 0 36px;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--main-ink);
}
.gallery-view__photos { display: grid; gap: 28px; }
.gallery-view__photos img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}
@media (max-width: 1200px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gallery-view__title { font-size: 23px; margin-bottom: 24px; }
  .gallery-view__photos { gap: 18px; }
}

/* --- 센터일정 캘린더 --- */
.cal { max-width: 1080px; margin: 0 auto; }
.cal__head { display: flex; align-items: center; justify-content: center; gap: 28px; }
.cal__title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: var(--main-ink); }
.cal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--main-line);
  border-radius: 10px;
  font-size: 22px;
  color: var(--main-ink);
  text-decoration: none;
}
a.cal__nav:hover { border-color: var(--main-brand); color: var(--main-brand); }
.cal__grid {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  table-layout: fixed;
}
.cal__grid th {
  padding: 12px 0;
  color: var(--main-muted);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--main-line);
}
.cal__grid th:first-child, .cal__grid td:first-child .cal__day { color: #d0646c; }
.cal__cell {
  height: 118px;
  padding: 8px;
  border: 1px solid var(--main-line);
  vertical-align: top;
}
.cal__cell--blank { background: var(--hero-bg); }
.cal__day { font-size: 15px; color: var(--main-muted); }
.cal__cell.is-today .cal__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--main-brand);
  color: #fff;
  font-weight: 700;
}
.cal__badge {
  display: block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--main-pale);
  color: var(--main-brand);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.cal__badge:hover { background: var(--main-brand); color: #fff; }
.cal__more { display: block; margin-top: 4px; font-size: 12px; color: var(--main-muted); }
.cal__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--main-muted);
  text-align: right;
}
.sub-list-title {
  max-width: 1080px;
  margin: 64px auto 24px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--main-ink);
}
.sched-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.sched-item {
  padding: 24px 4px;
  border-bottom: 1px solid var(--main-line);
}
.sched-item__date { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--main-brand); }
.sched-item__title { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--main-ink); }
.sched-item__desc { margin: 0; font-size: 16px; line-height: 1.7; color: var(--main-muted); word-break: keep-all; }
@media (max-width: 768px) {
  .cal__cell { height: 64px; padding: 4px; }
  .cal__badge, .cal__more { display: none; }
  .cal__cell.has-evt::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 3px;
    background: var(--main-brand);
    margin-top: 3px;
  }
  .cal__grid td:first-child .cal__day { color: var(--main-muted); }
  .cal__title { font-size: 22px; }
  .sub-list-title { font-size: 20px; margin: 44px auto 16px; }
}

/* ==========================================================
   게시판 검색 · 이전/다음 · 갤러리 본문 · 센터일정 캘린더
   ========================================================== */
/* 갤러리 상세 본문 */
.gallery-view__content {
  margin: 28px 0 0; padding: 24px 26px;
  background: #fff; border: 1px solid var(--main-line); border-radius: 14px;
  font-size: 16px; line-height: 1.8; color: var(--main-ink);
}
.gallery-view .gallery-view__photos { margin-top: 28px; }

/* 센터일정 월간 캘린더 */
.cal { background: #fff; border: 1px solid var(--main-line); border-radius: 16px; padding: 24px; margin-bottom: 32px; }
.cal__head { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 16px; }
.cal__title { margin: 0; font-size: 20px; font-weight: 800; color: var(--main-ink); }
.cal__move {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--main-line); background: #fff;
  color: var(--main-ink); text-decoration: none; font-size: 18px; line-height: 1;
}
.cal__move:hover { border-color: var(--main-brand); color: var(--main-brand); }
.cal__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal__table th { padding: 10px 4px; font-size: 13px; font-weight: 700; color: var(--main-muted); border-bottom: 1px solid var(--main-line); }
.cal__w--0 { color: #c0392b; }
.cal__w--6 { color: #2d6cc0; }
.cal__cell {
  vertical-align: top; height: 92px; padding: 6px;
  border-bottom: 1px solid var(--main-line-soft, #eef3ef);
}
.cal__cell--blank { background: #fafcfb; }
.cal__day { display: block; font-size: 13px; font-weight: 600; color: var(--main-ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.cal__w--0 .cal__day, .cal__cell--sun .cal__day { color: #c0392b; }
.cal__cell--sat .cal__day { color: #2d6cc0; }
.cal__cell--today { background: var(--main-pale, #e6f2eb); border-radius: 8px; }
.cal__cell--today .cal__day { color: var(--main-brand); font-weight: 800; }
.cal__item {
  display: block; margin-top: 3px; padding: 3px 6px;
  background: var(--main-pale, #e6f2eb); border-radius: 6px;
  font-size: 11.5px; line-height: 1.4; color: var(--main-brand); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal__item:hover { background: #d3e8db; }
.cal__more { display: block; margin-top: 2px; font-size: 11px; color: var(--main-muted); }
.cal__hint { margin: 12px 2px 0; font-size: 12.5px; color: var(--main-muted); }
@media (max-width: 640px) {
  .cal { padding: 14px; }
  .cal__cell { height: 64px; padding: 3px; }
  .cal__item { font-size: 10px; padding: 2px 4px; }
  .cal__day { font-size: 11px; }
}

/* ==========================================================
   정적 페이지 콘텐츠 (Figma Subpage system — 센터소개/주요사업)
   Jua 섹션 타이틀 · info 행 · 카드 · 프로세스 · 연혁 타임라인 · 조직도
   색 토큰: .sub-banner에서 선언한 --sub-ink/--sub-muted/--card-* 를 상속
   ========================================================== */

/* --- 섹션 제목 (Jua 38px 그린) --- */
.sec-h {
  margin: 0 0 32px;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(26px, 1.98vw, 38px);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--main-brand);
}
.section + .section { margin-top: 56px; }
.page-body + .section { margin-top: 64px; }          /* 인사말: 사인 → 카드 64px */
.loc-sec + .section { margin-top: 40px; }            /* 오시는길: 지도 → 주소행 40px */
.section:has(> .info-list) + .section { margin-top: 36px; } /* 오시는길: 정보행 → 다음 섹션 36px */

/* --- 본문 문단 (인사말 등) --- */
.page-body p {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.1vw, 21px);
  line-height: 1.81;
  color: var(--sub-ink);
}
.page-body p:last-child { margin-bottom: 0; }
.page-body .page-sign {
  margin: 28px 0 0;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(20px, 1.51vw, 29px);
  line-height: 1.45;
  color: var(--main-brand);
}

/* --- 설립목적 박스 --- */
.purpose-box {
  padding: 32px 48px 40px;
  background: var(--card-cream);
  border-radius: 20px;
}
.purpose-box h3 {
  margin: 0 0 20px;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(22px, 1.67vw, 32px);
  line-height: 1.38;
  color: var(--main-brand);
}
.purpose-box p {
  margin: 0;
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.82;
  color: var(--sub-ink);
}

/* --- info 행 (법인개요·오시는길) --- */
.info-list { display: grid; gap: 12px; }
.info-list li {
  display: grid;
  grid-template-columns: 228px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 23px 24px 23px 20px;
  background: var(--card-cream);
  border-radius: 12px;
}
.info-list strong {
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 700;
  color: var(--main-brand);
}
.info-list span {
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.7;
  color: var(--sub-ink);
}

/* --- 카드 행 (3열 448 / 2열 686) --- */
.card-row { display: grid; gap: 28px; }
.row-h194 { grid-auto-rows: 194px; }
.row-h244 { grid-auto-rows: 244px; }
.row-h286 { grid-auto-rows: 286px; }
.row-h202 { grid-auto-rows: 202px; }
.card-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-row + .card-row { margin-top: 28px; }
.pcard {
  padding: 27px 31px 31px;
  background: var(--card-cream);
  border: 1px solid var(--main-line);
  border-radius: 16px;
}
.pcard--blue { background: var(--card-blue); }
.pcard--green { background: var(--card-green); }
.pcard h3 {
  margin: 0 0 20px;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(20px, 1.51vw, 29px);
  line-height: 1.45;
  color: var(--main-brand);
}
.pcard ul { display: grid; gap: 8px; }
.pcard li, .pcard p {
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.7;
  color: var(--sub-ink);
}
.pcard p { margin: 0; }

/* 비전 카드 (미션&비전) — 번호 배지 + 수단(킥커) + 목표(제목) 위계 */
.vision-row .pcard { position: relative; padding-top: 25px; }
.vision-row .pcard__num {
  display: block;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(28px, 2.2vw, 42px);
  line-height: 1;
  color: rgba(0, 89, 45, .22);
}
.vision-row .pcard--blue .pcard__num { color: rgba(33, 99, 139, .28); }
.vision-row .pcard--green .pcard__num { color: rgba(0, 89, 45, .22); }
.vision-row .pcard__kick {
  margin: 14px 0 0;
  font-size: clamp(15px, 1vw, 19px);
  line-height: 1.55;
  color: var(--sub-muted);
}
.vision-row .pcard h3 { margin: 8px 0 0; font-size: clamp(22px, 1.55vw, 30px); line-height: 1.4; }

/* --- 상담 안내 바 --- */
.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
  margin-top: 52px;
  padding: 24px 40px 24px 32px;
  background: var(--card-green);
  border-radius: 16px;
}
.contact-bar__label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(20px, 1.46vw, 28px);
  line-height: 1.43;
  color: var(--main-brand);
}
.contact-bar__label img { width: 28px; height: 28px; flex-shrink: 0; }
.contact-bar__tel { text-align: left; }
.contact-bar__num {
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(24px, 1.98vw, 38px);
  line-height: 1.26;
  color: var(--main-brand);
}
.contact-bar__hours { margin-top: 4px; font-size: clamp(13px, 0.84vw, 16px); color: var(--sub-muted); }

/* --- 프로세스 단계 (사례관리) --- */
.steps { display: grid; gap: 20px; }
.step {
  height: 186px;   /* 2불릿 기준 (Figma) */
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 32px;
  padding: 23px 24px 33px;
  background: var(--card-cream);
  border: 1px solid var(--main-line);
  border-radius: 16px;
}
.step:nth-child(even) { background: var(--card-blue); }
.step:has(li:nth-child(3)) { height: 228px; }   /* 3불릿 단계 */
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--main-brand);
  color: #fff;
  font-family: 'Jua', var(--font-kr);
  font-size: 24px;
  line-height: 1;
}
.step h3 {
  margin: 0 0 14px;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(20px, 1.51vw, 29px);
  line-height: 1.38;
  color: var(--main-brand);
}
.step ul { display: grid; gap: 8px; }
.step li {
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.7;
  color: var(--sub-ink);
}

/* --- 연혁 타임라인 --- */
.timeline { display: grid; }
.tl-year {
  display: grid;
  grid-template-columns: 256px 1fr;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--main-line);
}
.tl-year + .tl-year { padding-top: 56px; }
.tl-year__label {
  margin: 0;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(32px, 2.71vw, 52px);
  line-height: 1.23;
  color: var(--main-brand);
}
.tl-items { display: grid; gap: 20px; align-content: start; }
.tl-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  font-size: clamp(15px, 1.1vw, 21px);
  line-height: 1.71;
}
.tl-item strong {
  font-size: clamp(13px, 0.99vw, 19px);
  font-weight: 700;
  color: #21638b;
}
.tl-item span { color: var(--sub-ink); }

/* --- 조직도 --- */
.org-chart { --line: var(--main-line); }
.org-chief-row { position: relative; }
.org-node {
  border-radius: 16px;
  text-align: center;
}
.org-node__role { margin: 0; font-size: 16px; line-height: 26px; }
.org-node__name {
  margin: 6px 0 0;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(20px, 1.46vw, 28px);
  line-height: 1.43;
  font-weight: 400;
}
.org-node--chief {
  width: min(380px, 100%);
  margin: 0 auto;
  padding: 16px 20px 12px;
  background: var(--main-brand);
  color: #fff;
}
.org-node--sub {
  width: min(380px, 100%);
  margin: 0 auto;
  padding: 16px 20px 12px;
  background: var(--card-blue);
}
.org-node--sub .org-node__role { color: var(--sub-muted); }
.org-node--sub .org-node__name { color: var(--main-brand); }
.org-node--board {
  width: 240px;
  box-sizing: border-box;
  padding: 14px 16px;
  background: var(--card-blue);
  border-radius: 12px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.5;
  font-weight: 700;
  color: var(--main-brand);
}
.org-line {
  width: 2px;
  background: var(--line);
  margin: 0 auto;
}
.org-line--88 { height: 68px; }
.org-line--48 { height: 48px; }
.org-board-wrap {
  position: absolute;
  top: 105px;
  left: calc(50% + 300px);
}
.org-board-line {
  position: absolute;
  top: 133px;
  left: 50%;
  width: 300px;
  height: 2px;
  background: var(--line);
}
.org-depts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.org-dept {
  min-height: 466px;
  display: flex;
  flex-direction: column;
  padding: 23px 27px 25px;
  background: var(--card-cream);
  border: 1px solid var(--main-line);
  border-radius: 16px;
}
.org-dept h3 {
  margin: 0 0 20px;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(20px, 1.46vw, 28px);
  line-height: 1.43;
  color: var(--main-brand);
}
.org-dept ul { display: grid; gap: 8px; }
.org-dept li { font-size: clamp(15px, 1.05vw, 20px); line-height: 1.7; color: var(--sub-ink); }
.org-dept__foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--main-line);
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 30px;
  font-weight: 700;
  color: var(--main-brand);
}

/* --- 오시는길 지도 --- */
.loc-map {
  overflow: hidden;
  border: 1px solid var(--main-line);
  border-radius: 16px;
}
.loc-map iframe { display: block; width: 100%; height: 500px; border: 0; }
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  margin-top: 24px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--main-brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: opacity .2s ease;
}
.btn-map:hover { opacity: .9; }
.btn-map__label { width: 164px; }
.btn-map img { width: 16px; height: 20px; margin: 0 4px; }

/* --- 참고 문구 (후원안내) --- */
.page-note {
  margin: 36px 0 0;
  font-family: var(--font-kr);
  font-size: clamp(16px, 1.1vw, 21px);
  line-height: 1.81;
  color: var(--sub-muted);
}

.info-list + .contact-bar { margin-top: 36px; }
.steps + .contact-bar { margin-top: 44px; }

/* --- 미션 박스 --- */
.mission-box + .sec-h { margin-top: 64px; }
.mission-box {
  min-height: 246px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 46px 60px 46px 56px;
  background: var(--main-brand);
  border-radius: 24px;
}
.mission-box p {
  margin: 0;
  max-width: 1120px;
  font-family: 'Jua', var(--font-kr);
  font-size: clamp(22px, 1.55vw, 30px); /* 비전 카드 h3(.vision-row .pcard h3)와 동일 크기 */
  line-height: 1.48;
  color: #fff;
}
.mission-box img { width: 144px; height: 144px; flex-shrink: 0; }
@media (max-width: 768px) {
  .mission-box { flex-direction: column-reverse; align-items: flex-start; padding: 32px 28px; }
  .mission-box img { width: 96px; height: 96px; }
}

/* --- 콘텐츠 반응형 --- */
@media (max-width: 1200px) {
  .org-board-wrap { left: auto; right: 0; }
  .org-board-line { left: 50%; right: 0; width: auto; }  /* 운영위원회 연결선 — 중앙~우측 가장자리로 늘림 */
}
@media (max-width: 1024px) {
  .card-row--3 { grid-template-columns: repeat(2, 1fr); }
  .org-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-year { grid-template-columns: 160px 1fr; }
}
@media (max-width: 768px) {
  .sec-h { margin-bottom: 24px; }
  .section + .section { margin-top: 40px; }
  .card-row--3, .card-row--2 { grid-template-columns: minmax(0, 1fr); }
  .row-h194, .row-h244, .row-h286, .row-h202 { grid-auto-rows: auto; }
  .step, .step:has(li:nth-child(3)) { height: auto; }
  .purpose-box { padding: 24px 24px 28px; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; min-height: 0; padding: 16px 20px; }
  .contact-bar { flex-direction: column; align-items: flex-start; padding: 24px; }
  .org-depts { grid-template-columns: 1fr; }
  .org-chief-row { position: relative; }
  /* 모바일도 데스크톱 T형 축소판 — 세로선 + 위원회 우측 부착 */
  .org-node--board { width: auto; white-space: nowrap; }  /* 중앙 세로선을 덮지 않게 내용 크기로 */
  .org-board-wrap { top: calc(100% + 5px); }
  .org-board-line { top: calc(100% + 33px); }
  .org-line--88 { height: 68px; }
  .org-line--48 { height: 24px; }
  .tl-year { grid-template-columns: 1fr; gap: 20px; padding-bottom: 32px; }
  .tl-year + .tl-year { padding-top: 40px; }
  .tl-item { grid-template-columns: 76px 1fr; gap: 12px; }
  .loc-map iframe { height: 320px; }
  .btn-map { height: 52px; font-size: 16px; }
}

/* ≤280 : 초협폭 비상 티어 — 고정폭 컴포넌트가 160px대 뷰포트에서 콘텐츠를 밀어내지 않게 */
@media (max-width: 280px) {
  .btn-map { width: 100%; }
  .btn-map__label { width: auto; min-width: 0; flex-shrink: 1; }
  .org-dept li, .org-dept h3, .pcard li, .pcard p, .pcard h3, .info-list li, .page-note, .tl-item span { overflow-wrap: anywhere; }
  .cal { padding: 8px; }
  /* keep-all 조판에서 띄어쓰기 없는 합성어가 줄바꿈 못 하는 문제 */
  .sub-banner__title, .sub-banner__desc, .footer__name, .footer__addr, .footer__contact, .footer__copy, .crumbs { overflow-wrap: anywhere; }
  .pager { flex-wrap: wrap; }
  .sec-h, .steps li, .post-view__title, .post-view__content, .post-view__content * { overflow-wrap: anywhere; }
}

/* ≤280 2차 — 스텝 카드 단일 열 (biz 페이지는 sub.css만 로드하므로 이곳에 둔다) */
@media (max-width: 280px) {
  .step { grid-template-columns: 1fr; row-gap: 10px; padding: 16px; }
  .step h3, .step li { overflow-wrap: anywhere; }
}
