/* ============================================================
   강북구 진로직업체험지원센터 메인 시안 (강동 미래온 구조 대응)
   값은 tokens.css var()만 사용.
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
[id] { scroll-margin-top: 110px; }
@media (max-width: 860px) { [id] { scroll-margin-top: 72px; } }
html, body { overflow-x: hidden; }
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif; font-size: 15px; color: var(--text); background: #fff; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
.inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-nav { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 20px; z-index: 2000; }
.skip-nav:focus { left: 0; }


/* ===== 헤더 ===== */
.header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-header); }
.header .inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.logo-wrap { margin: 0; font-size: inherit; font-weight: inherit; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.5px; line-height: 1.2; white-space: nowrap; }
.logo-text small { display: block; font-size: 12px; font-weight: 600; color: var(--primary-dark); letter-spacing: 0; margin-bottom: 2px; }
.gnb { display: flex; align-items: center; height: 100%; }
.gnb > li { position: relative; height: 100%; }
.gnb > li > a { display: flex; align-items: center; height: 100px; padding: 0 24px; font-size: 18px; font-weight: 600; color: var(--text); transition: color 0.15s; }
.gnb > li > a:hover { color: var(--primary); }
.gnb > li:hover .gnb-sub, .gnb > li:focus-within .gnb-sub { display: block; }
.gnb > li.closed .gnb-sub { display: none; }
.gnb-sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--primary); min-width: max-content; box-shadow: var(--shadow-drop); z-index: 100; }
.gnb-sub li a { display: block; padding: 10px 22px; font-size: 14px; color: var(--text); white-space: nowrap; border-bottom: 1px solid var(--line); }
.gnb-sub li a:hover { background: var(--primary-bg); color: var(--primary); }
.gnb-sub li:last-child a { border-bottom: none; }
.mobile-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.mobile-toggle svg { width: 28px; height: 28px; }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1500; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav { position: fixed; top: 0; right: 0; width: 290px; height: 100%; background: #fff; z-index: 1600; transform: translateX(100%); visibility: hidden; transition: transform 0.25s, visibility 0.25s; overflow-y: auto; }
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--primary-dark); color: #fff; font-weight: 700; }
.mobile-nav-close { color: #fff; font-size: 26px; width: 40px; height: 40px; }
.mobile-menu-list > li { border-bottom: 1px solid var(--line); }
.mobile-menu-list > li > a { display: block; padding: 13px 20px; font-weight: 700; color: var(--text-strong); }
.mobile-sub-list a { display: block; padding: 11px 32px; font-size: 14px; color: var(--text); }

/* ===== 히어로 (포스터형 배너, 강동 대응) ===== */
.hero { position: relative; height: 600px; overflow: visible; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.7s ease, visibility 0s 0.7s; }
.slide.active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; transition-delay: 0s; }
.slide.s-sky { background: linear-gradient(120deg, var(--hero-sky), var(--primary-bg) 70%); }
.slide.s-peach { background: linear-gradient(120deg, var(--hero-peach), var(--hero-peach-end) 70%); }
.slide.s-mint { background: linear-gradient(120deg, var(--hero-mint), var(--hero-mint-end) 70%); }
.slide-grid { height: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding-bottom: 60px; }
.slide-caption .eyebrow { display: inline-block; font-size: 17px; font-weight: 600; color: var(--primary-dark); margin-bottom: 14px; }
.s-peach .slide-caption .eyebrow { color: var(--peach-text); } .s-mint .slide-caption .eyebrow { color: var(--green); }
.slide-caption h2 { font-size: 54px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; color: var(--text-strong); }
.s-sky .slide-caption h2 { color: var(--primary-dark); } .s-peach .slide-caption h2 { color: var(--peach-text); } .s-mint .slide-caption h2 { color: var(--green); }
.slide-caption .lead { font-size: 18px; color: var(--text-sub); margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: var(--r-inner); font-weight: 700; font-size: 15px; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { filter: brightness(0.94); }
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-line { border: 1px solid var(--line); color: var(--text-strong); background: #fff; }
.slide-caption .btn { margin-top: 28px; }
.slide-art { position: relative; height: 420px; }
.slide-art img { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 560px; height: 380px; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.hero-controls { position: absolute; left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.hero-controls button { width: 40px; height: 40px; border-radius: 50%; background: rgba(30,41,59,0.08); color: var(--text-strong); display: inline-flex; align-items: center; justify-content: center; }
.hero-controls button:hover { background: rgba(30,41,59,0.16); }
.hero-controls .count { height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(30,41,59,0.08); font-size: 13px; color: var(--text-strong); display: inline-flex; align-items: center; gap: 4px; }
.hero-controls .count span { opacity: 0.6; }
.hero-controls svg { width: 16px; height: 16px; }

/* 떠 있는 주요서비스 카드 (강동 우하단 카드 대응) */
.quick-float { position: absolute; right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: -46px; z-index: 5; width: min(760px, calc(100% - var(--gutter) * 2)); background: #fff; border-radius: var(--r-float) var(--r-card) var(--r-card) var(--r-card); box-shadow: var(--shadow-float); display: flex; align-items: center; padding: 26px 40px 26px 48px; gap: 28px; }
.quick-float .qf-title { font-size: 22px; font-weight: 800; color: var(--text-strong); flex: none; margin-right: 12px; }
.quick-float .qf-items { display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; gap: 8px; }
.qf-item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text-strong); padding: 6px 4px; border-radius: var(--r-inner); transition: background 0.15s; }
.qf-item:hover { background: var(--primary-bg); color: var(--primary); }
.qf-icon { width: 52px; height: 52px; position: relative; }
.qf-icon svg { width: 52px; height: 52px; stroke: var(--text-strong); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qf-icon::after { display: none; content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-soft); right: -2px; top: 0; z-index: -1; }
.qf-item:nth-child(2) .qf-icon::after { background: var(--accent-bg); left: -2px; right: auto; bottom: 2px; top: auto; }
.qf-item:nth-child(4) .qf-icon::after { background: var(--accent); width: 9px; height: 9px; }

/* ===== 섹션 공통 ===== */
.section { padding: 72px 0; }
.title-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-title { font-size: 30px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1.3; }
.section-title em { font-style: normal; color: var(--primary); }
.section-sub { font-size: 15px; color: var(--text-sub); margin-top: 6px; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--r-inner); font-size: 14px; font-weight: 600; color: var(--text-strong); background: #fff; }
.more-btn:hover { border-color: var(--primary); color: var(--primary); }
.more-btn svg { width: 14px; height: 14px; }

/* ===== 소식 · 일정 띠 ===== */
.news-band { background: var(--primary-bg); padding: 110px 0 72px; }
.news-band .grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: stretch; }
.news-band .grid > * { min-width: 0; max-width: 100%; }
.news-col { background: #fff; border-radius: var(--r-card); padding: 36px 36px 32px; display: flex; flex-direction: column; }
.news-col h3 { font-size: 26px; font-weight: 800; color: var(--text-strong); line-height: 1.3; letter-spacing: -0.02em; white-space: nowrap; }
.news-col h3 em { font-style: normal; color: var(--primary); }
.tabs { display: flex; gap: 8px; margin: 22px 0 6px; }
.tab { padding: 8px 18px; border-radius: 0; font-size: 14px; font-weight: 600; color: var(--text-strong); background: #fff; border: 1px solid var(--line); }
.tab.active { background: var(--accent); border-color: var(--accent); color: var(--text-strong); }
.tab:not(.active):hover { border-color: var(--primary); color: var(--primary); }
.news-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list a { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list .date { font-size: 14px; color: var(--text-sub); flex: none; }
.news-list a:hover { color: var(--primary); }
.news-list .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-text); margin-right: 8px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.contact { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; }
.contact .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; flex: none; }
.contact .ic svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact .lb { font-size: 14px; color: var(--text-sub); }
.contact .tel { font-size: 26px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.01em; line-height: 1.2; }
.contact .hrs { display: block; font-size: 13px; font-weight: 500; color: var(--text-sub); margin-top: 4px; white-space: nowrap; }

/* 캘린더 카드 */
.calendar-panel { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 26px 28px 22px; display: flex; flex-direction: column; }
.cal-list { flex: 1; }
.cal-more { display: flex; justify-content: flex-end; margin-top: 8px; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--primary-dark); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h4 { font-size: 20px; font-weight: 800; color: var(--text-strong); }
.cal-head .lb { font-size: 13px; color: var(--text-sub); margin-left: 10px; font-weight: 500; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.cal-nav button:hover { border-color: var(--primary); color: var(--primary); }
.cal-nav svg { width: 14px; height: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 52px; gap: 0; border-bottom: 1px solid var(--line); }
.cal-grid .dow { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-sub); height: 36px; border-bottom: 1px solid var(--line); }
.cal-grid .dow.sun { color: var(--red); }
.cal-grid .dow.sat { color: var(--primary-dark); }
.cal-cell { min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--text-strong); border-top: 1px solid var(--line); }
.cal-grid .dow + .cal-cell, .cal-grid .dow ~ .cal-cell:nth-child(-n+14) { border-top: none; }
.cal-cell .d { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.cal-cell.out { color: var(--text-dim); font-weight: 400; }
.cal-cell.sun { color: var(--red); }
.cal-cell.sat { color: var(--primary-dark); }
.cal-cell.today .d { background: var(--primary-dark); color: #fff; }
.cal-cell .dots { display: flex; justify-content: center; gap: 3px; height: 7px; }
.cal-cell .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.cal-cell .dots i.t2 { background: var(--green); }
.cal-cell .dots i.t3 { background: var(--accent); }
.cal-legend { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--text-sub); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-right: 5px; vertical-align: -1px; }
.cal-legend i.t2 { background: var(--green); }
.cal-legend i.t3 { background: var(--accent); }
.cal-list { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.cal-list li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; }
.cal-list .dt { flex: none; width: 74px; font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.cal-list .nm { flex: 1; min-width: 0; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-list .st { flex: none; font-size: 12px; font-weight: 600; }
.st.open { color: var(--accent-text); }
.st.soon { color: var(--primary-dark); }
.st.done { color: var(--text-sub); }
.st.run { color: var(--green); }

/* ===== 이달의 프로그램 ===== */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.program { display: block; border-radius: var(--r-card); overflow: hidden; background: #fff; transition: transform 0.15s; }
.program:hover { }
.program:hover h4 { color: var(--primary); }
.poster { aspect-ratio: 4 / 3; position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.program:hover .poster img { transform: scale(1.03); }
.poster .ph { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; background: #fff; color: var(--text-strong); padding: 3px 9px; border-radius: var(--r-inner); box-shadow: var(--shadow-card); }
.prog-body { padding: 16px 4px 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.open { color: var(--accent-text); }
.badge.soon { color: var(--primary-dark); }
.badge.run { color: var(--green); }
.badge.done { color: var(--text-sub); }
.prog-body h4 { font-size: 17px; font-weight: 700; color: var(--text-strong); margin-top: 10px; line-height: 1.4; }
.prog-meta { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-sub); }
.prog-meta .row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.prog-meta .row i { width: 1px; height: 12px; background: var(--line); margin: 0 6px; }
.prog-meta svg { width: 15px; height: 15px; stroke: var(--text-dim); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.prog-meta b { color: var(--text-strong); font-weight: 600; }

/* ===== 활동 사진 ===== */
.gallery-section { background: var(--bg-soft); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.photo { display: block; }
.gal-ph { aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft); }
.gal-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.photo:hover .gal-ph img { transform: scale(1.03); }
.photo:hover h4 { color: var(--primary); }
.photo h4 { font-size: 16px; font-weight: 600; color: var(--text-strong); margin-top: 12px; }
.photo .date { font-size: 13px; color: var(--text-sub); margin-top: 2px; }

/* ===== 유관기관 로고 띠 ===== */
.partners { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; background: #fff; }
.partners .inner { display: flex; align-items: center; justify-content: center; gap: 0; }
.partners a { display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 56px; border-right: 1px solid var(--line); opacity: 0.9; transition: opacity 0.15s; }
.partners a:hover { opacity: 1; }
.partners a:last-child { border-right: none; }
.partners img { max-height: 44px; max-width: 190px; width: auto; height: auto; object-fit: contain; }

/* ===== 풋터 ===== */
.footer { background: var(--bg-soft); color: var(--text-sub); font-size: 14px; }
.f-links { border-bottom: 1px solid var(--line); }
.f-links .inner { display: flex; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.f-links a { color: var(--text-strong); font-weight: 500; display: inline-block; padding: 6px 0; }
.f-links a:hover { color: var(--primary); }
.f-links a.em { color: var(--primary-dark); font-weight: 700; }
.f-body .inner { padding-top: 28px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.f-org { font-size: 16px; font-weight: 800; color: var(--text-strong); margin-bottom: 8px; }
.f-info { line-height: 1.8; }
.f-copy { margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.scroll-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; box-shadow: var(--shadow-card-hover); z-index: 900; display: none; align-items: center; justify-content: center; }
.scroll-top.show { display: flex; }

/* ===== 반응형 ===== */
@media (max-width: 1100px) {
  .gnb > li > a { padding: 0 16px; font-size: 16px; }
  .slide-caption h2 { font-size: 42px; } .slide-art img { width: 420px; height: 300px; }
  .prog-grid, .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .news-band .grid { grid-template-columns: 1fr; }
  .quick-float { width: calc(100% - var(--gutter) * 2); padding: 22px 24px; }
  .hero-controls { bottom: auto; top: 24px; left: auto; right: var(--gutter); }
}
@media (max-width: 860px) {
  .gnb { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header .inner { height: 64px; }
  .logo-text { font-size: 16px; }
  .logo-text small { font-size: 11px; }
  .hero { height: auto; display: flex; flex-direction: column; }
  .hero-slides { position: relative; height: 520px; }
  .slide-grid { grid-template-columns: 1fr; gap: 0; padding: 24px var(--gutter) 90px; align-items: start; }
  .slide-art { height: 280px; order: -1; margin-bottom: 8px; }
  .slide-art img { width: 100%; height: 270px; right: auto; left: 0; top: 0; transform: none; }
  .hero-slides { height: 620px; }
  .slide-caption h2 { font-size: 30px; }
  .slide-caption .eyebrow { font-size: 14px; margin-bottom: 8px; }
  .slide-caption .lead { font-size: 15px; margin-top: 10px; }
  .slide-caption .btn { margin-top: 16px; height: 44px; }
  .hero-controls { bottom: auto; top: 20px; left: auto; right: var(--gutter); }
  .hero-controls button, .hero-controls .count { background: rgba(255,255,255,0.85); color: var(--text-strong); }
  .news-col { padding: 24px 18px 22px; }
  .quick-float { position: relative; bottom: auto; right: auto; width: calc(100% - var(--gutter) * 2); margin: -36px auto 0; border-radius: var(--r-card); flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px; }
  .news-list a { flex: 1; min-width: 0; }
  .cal-list .nm { min-width: 0; }
  .title-bar { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .more-btn { white-space: nowrap; flex: none; }
  .quick-float .qf-title { font-size: 17px; margin: 0; text-align: center; }
  .qf-item { font-size: 13px; }
  .qf-icon, .qf-icon svg { width: 40px; height: 40px; }
  .section { padding: 48px 0; }
  .news-band { padding: 48px 0; }
  .section-title { font-size: 23px; } .news-col h3 { font-size: 20px; }
  .calendar-panel { padding: 18px 14px 16px; }
  .cal-grid { grid-auto-rows: 44px; } .cal-cell { font-size: 12px; } .cal-cell .d { width: 24px; height: 24px; }
  .cal-cell .dots i { width: 5px; height: 5px; }
  .cal-list .dt { width: 62px; font-size: 13px; }
  .prog-grid, .gal-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .prog-body { padding: 12px 12px 14px; }
  .prog-body h4 { font-size: 15px; }
  .partners .inner { display: grid; grid-template-columns: repeat(3, 1fr); }
  .partners a { padding: 0 8px; height: 52px; border-right: none; }
  .partners img { max-height: 30px; max-width: 100%; }
  .f-body .inner { flex-direction: column; }
  .f-links .inner { flex-wrap: wrap; gap: 12px 20px; }
  .scroll-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .draft-bar .inner { font-size: 12px; }
}
@media (max-width: 480px) {
  .slide-art { height: 180px; }
  .slide-art img { height: 170px; }
  .hero-slides { height: 540px; }
  .prog-grid { grid-template-columns: 1fr; }
  .quick-float { padding: 16px 10px; }
  .quick-float .qf-items { gap: 0; }
  .qf-item { font-size: 12px; letter-spacing: -0.04em; white-space: nowrap; padding: 6px 0; }
  .prog-meta .row { white-space: normal; flex-wrap: wrap; }
  .news-list a { font-size: 15px; }
  .contact .tel { font-size: 22px; }
  .contact .hrs { white-space: normal; }
  .contact .hrs span { display: block; }
  .contact .hrs .sep { display: none; }
  .news-list li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 4px; }
  .news-list a { white-space: normal; overflow: visible; line-height: 1.45; }
  .news-list .date { font-size: 13px; }
}

@media (max-width: 360px) {
  .news-col h3 { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ===== 서브페이지 공통 ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gnb > li > a.active { color: var(--primary-dark); box-shadow: inset 0 -3px 0 var(--primary); }
.site-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 6px 0 14px; height: 40px; margin-left: 20px; background: #fff; }
.site-search input { border: none; outline: none; font: inherit; font-size: 14px; width: 150px; background: transparent; color: var(--text-strong); }
.site-search input::placeholder { color: var(--text-dim); }
.site-search button { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-sub); }
.site-search button svg { width: 18px; height: 18px; }
.site-search button:hover { background: var(--primary-bg); color: var(--primary-dark); }
.site-search.mobile { margin: 14px 16px 6px; height: 44px; }
.site-search.mobile input { width: 100%; }
.sub-visual { background: var(--primary-bg); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.sub-visual h2 { font-size: 34px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; margin-top: 10px; }
.sub-visual p { font-size: 16px; color: var(--text-sub); margin-top: 8px; }
.crumb { font-size: 13px; color: var(--text-sub); display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--primary-dark); }
.crumb .sep { color: var(--text-dim); }
.sub-tabs { position: sticky; top: 100px; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.sub-tabs .inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 auto; } /* .tabs의 margin이 .inner의 가운데 정렬을 덮지 않게 */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.facility-grid figure { margin: 0; }
.facility-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.facility-grid figcaption .k { font-size: 17px; font-weight: 700; color: var(--text-strong); margin-top: 12px; }
.facility-grid figcaption .v { font-size: 14px; color: var(--text-sub); margin-top: 4px; line-height: 1.6; }
.greeting-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.greeting-wrap img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.greeting-wrap figcaption { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.note-dim { font-size: 13px; color: var(--text-dim); margin-top: 14px; }
@media (max-width: 860px) { .facility-grid { grid-template-columns: 1fr; } .greeting-wrap { grid-template-columns: 1fr; } }
.sub-tabs .inner::-webkit-scrollbar { display: none; }
.sub-tabs .tab { border: none; border-radius: 0; background: transparent; padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--text-sub); white-space: nowrap; border-bottom: 3px solid transparent; }
.sub-tabs .tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); background: transparent; }
.sub-tabs .tab:not(.active):hover { color: var(--text-strong); border-color: transparent; }
.sub-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.sub-section:last-of-type { border-bottom: none; }
.sub-section h3.section-title { font-size: 26px; margin-bottom: 20px; }
.sub-section h4 { font-size: 18px; font-weight: 700; color: var(--text-strong); margin: 28px 0 10px; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 12px; max-width: 780px; }
.prose ul.plain { max-width: 780px; }
ul.plain li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 4px; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--text-strong); border-bottom: 1px solid var(--line); }
.facts > div { padding: 20px 18px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: none; }
.facts .k { font-size: 13px; color: var(--text-sub); }
.facts .v { font-size: 17px; font-weight: 700; color: var(--text-strong); margin-top: 4px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li .n { font-size: 13px; font-weight: 700; color: var(--primary-dark); }
.steps li .n::before { content: counter(s, decimal-leading-zero); margin-right: 6px; }
.steps li h5 { font-size: 16px; font-weight: 700; color: var(--text-strong); margin: 6px 0 6px; }
.steps li p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }
.acc { border-top: 1px solid var(--line); max-width: 860px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; text-align: left; padding: 18px 44px 18px 0; font-size: 16px; font-weight: 600; color: var(--text-strong); position: relative; }
.acc-head::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-sub); border-bottom: 2px solid var(--text-sub); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.acc-item.open .acc-head::after { transform: translateY(-30%) rotate(225deg); }
.acc-body { display: none; padding: 0 0 18px; font-size: 15px; line-height: 1.75; color: var(--text); }
.acc-item.open .acc-body { display: block; }
.map-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.map-frame { aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-info dl { display: grid; grid-template-columns: 80px 1fr; row-gap: 12px; column-gap: 12px; font-size: 15px; }
.map-info dt { color: var(--text-sub); } .map-info dd { color: var(--text-strong); }
.prog-grid .program .poster.poster-text { display: flex; align-items: center; justify-content: center; background: var(--primary-bg); }
.poster-name { font-size: 22px; font-weight: 800; color: var(--primary-dark); padding: 0 20px; text-align: center; }
.prog-meta .row.summary { white-space: normal; color: var(--text-sub); }
.prog-detail { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 170px; max-width: 860px; }
.prog-detail h3 { font-size: 22px; font-weight: 800; color: var(--text-strong); display: flex; align-items: center; gap: 10px; }
.prog-detail h3 .new { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.prog-facts { display: grid; grid-template-columns: 72px 1fr; row-gap: 8px; column-gap: 12px; margin: 16px 0 6px; font-size: 15px; }
.prog-facts dt { color: var(--text-sub); } .prog-facts dd { color: var(--text-strong); }
.prog-detail h4 { font-size: 16px; font-weight: 700; color: var(--text-strong); margin: 20px 0 8px; }
.file-list li.file-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.file-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-ext { flex: none; font-size: 12px; font-weight: 700; color: var(--text-sub); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.file-title { font-size: 16px; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info .date { font-size: 13px; color: var(--text-sub); flex: none; }
.file-actions { display: flex; gap: 8px; flex: none; }
.btn-sm { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-inner); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-strong); }
.btn-sm.primary { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-sm:hover { filter: brightness(0.95); }
.modal-overlay { position: fixed; inset: 0; background: rgba(10,25,50,0.55); z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: var(--r-card); max-width: 720px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 30px 28px; }
.modal-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.modal-title { font-size: 20px; font-weight: 800; color: var(--text-strong); line-height: 1.4; }
.modal-close { font-size: 28px; line-height: 1; color: var(--text-dim); width: 36px; height: 36px; }
.modal-meta { margin-top: 6px; font-size: 13px; color: var(--text-sub); }
.modal-body { margin-top: 18px; font-size: 15px; line-height: 1.8; color: var(--text); white-space: pre-wrap; }
.modal-img { width: 100%; margin-top: 18px; border-radius: var(--r-inner); }
.modal-box .btn { margin-top: 18px; height: 44px; }
.cal-empty { color: var(--text-sub); font-size: 14px; padding: 8px 0; }
.cal-link { margin-left: 10px; font-size: 12px; color: var(--primary-dark); white-space: nowrap; }
.calendar-panel.full .cal-grid { grid-auto-rows: 64px; }
.calendar-panel.full .cal-list li { padding: 10px 0; font-size: 15px; }
.search-head { display: flex; gap: 10px; max-width: 640px; margin-bottom: 8px; }
.search-head input { flex: 1; height: 52px; border: 1px solid var(--line); border-radius: var(--r-inner); padding: 0 16px; font: inherit; font-size: 16px; }
.search-head button { height: 52px; padding: 0 22px; border-radius: var(--r-inner); background: var(--primary-dark); color: #fff; font-weight: 700; }
#searchLabel { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; }
.search-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-list .kind { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary-dark); margin-right: 10px; }
.search-list .title { font-size: 17px; font-weight: 600; color: var(--text-strong); }
.search-list a:hover .title { color: var(--primary-dark); }
.search-list .snippet { font-size: 14px; color: var(--text-sub); margin-top: 6px; line-height: 1.6; }
.search-list .date { font-size: 12px; color: var(--text-dim); }
.legal h3 { font-size: 18px; font-weight: 700; color: var(--text-strong); margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.8; color: var(--text); }
.legal ol { padding-left: 18px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 20px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); font-weight: 600; }
@media (max-width: 1100px) { .site-search input { width: 110px; } }
@media (max-width: 860px) {
  .site-search:not(.mobile) { display: none; }
  .sub-visual { padding: 24px 0 22px; } .sub-visual h2 { font-size: 26px; } .sub-visual p { font-size: 14px; }
  .sub-tabs { top: 64px; } .sub-tabs .tab { padding: 13px 14px; font-size: 14px; }
  .sub-section { padding: 40px 0; } .sub-section h3.section-title { font-size: 22px; }
  .facts { grid-template-columns: 1fr; } .facts > div { border-right: none; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .map-wrap { grid-template-columns: 1fr; }
  .file-list li.file-item { flex-direction: column; align-items: flex-start; }
  .file-title { white-space: normal; }
  .calendar-panel.full .cal-grid { grid-auto-rows: 48px; }
  .prog-detail { scroll-margin-top: 120px; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.map-links { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px; aspect-ratio: auto; min-height: 220px; }
.map-addr .k { display: block; font-size: 13px; color: var(--text-sub); }
.map-addr strong { font-size: 18px; color: var(--text-strong); }
.map-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.map-btns .btn { height: 44px; font-size: 14px; }
.prose .sign { font-weight: 700; color: var(--text-strong); margin-top: 18px; }
.prose.greeting p { font-size: 16px; line-height: 1.7; margin-bottom: 18px; word-break: keep-all; max-width: 720px; }
.prose.greeting .sign { margin-top: 30px; font-size: 17px; }
/* 고정 헤더+서브탭 아래로 도착하도록 */
.tab-panel, .cal-head, .prog-detail, .acc, .sub-section { scroll-margin-top: 170px; }
@media (max-width: 860px) { .tab-panel, .cal-head, .prog-detail, .acc, .sub-section { scroll-margin-top: 120px; } }
@media (max-width: 860px) {
  .calendar-panel.full .cal-list li { flex-wrap: wrap; row-gap: 4px; }
  .calendar-panel.full .cal-list .nm { flex: 1 1 100%; order: 3; white-space: normal; line-height: 1.5; }
  .calendar-panel.full .cal-list .dt { order: 1; }
  .calendar-panel.full .cal-list .st { order: 2; margin-left: auto; }
  .calendar-panel.full .cal-list .cal-link { order: 4; margin-left: 0; }
}

.map-stack { display: flex; flex-direction: column; gap: 12px; }
.map-stack .map-btns .btn { height: 44px; font-size: 14px; }
/* 프로그램 상세: 그림 + 글 */
.prog-detail { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; max-width: 1000px; }
.prog-detail > * { grid-column: 2; }
.prog-detail .pd-img { grid-column: 1; grid-row: 1 / span 6; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--primary-bg); }
.prog-detail .pd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .prog-detail { grid-template-columns: 1fr; } .prog-detail > * { grid-column: 1; } .prog-detail .pd-img { grid-row: auto; max-width: 420px; } }
@media (max-width: 600px) { .sub-tabs .inner { flex-wrap: wrap; overflow-x: visible; gap: 0; } .sub-tabs .tab { padding: 12px 12px; font-size: 14px; } }
/* ---- 2026-11-24 UX 정비: 포커스 표시, 빈 화면, 부제 아래 간격 ---- */
a:focus-visible, button:focus-visible, [role="tab"]:focus-visible, input:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; border-radius: 4px; }
.board-empty { padding: 44px 20px; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; color: var(--text-sub); font-size: 15px; }
.board-empty .be-text { margin: 0; }
.board-empty .be-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--primary-dark); }
.board-empty .be-link:hover { text-decoration: underline; }
.news-box .board-empty, .tab-panel .news-box .board-empty { padding: 28px 12px; margin-top: 8px; border: 0; }
.section-sub + [data-content] { margin-top: 22px; }

.news-col .board-empty { padding: 28px 12px; margin-top: 8px; border: 0; }
.news-col .board-empty .be-link { display: none; }
