/* (사)서울미래교육연구원 — 공공 연구기관형 레이아웃, 로고 색상(파랑·초록·주황) 기반 */
:root {
  --navy: #143a7b;
  --blue: #1f5fb4;
  --blue-soft: #e8f0fb;
  --green: #5aa63c;
  --green-soft: #edf6e7;
  --orange: #f08a24;
  --orange-soft: #fdf0e1;
  --text: #222;
  --muted: #6b7280;
  --line: #e3e6eb;
  --bg-soft: #f4f7fb;
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--text); background: #fff; line-height: 1.6; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 건너뛰기 */
.skip a {
  position: absolute; left: 0; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip a:focus { top: 0; }

/* 상단 유틸 */
.util { background: var(--navy); font-size: 13px; color: #c9d6ec; }
.util ul { display: flex; justify-content: flex-end; height: 36px; align-items: center; gap: 0; }
.util li + li::before { content: ""; display: inline-block; width: 1px; height: 10px; background: rgba(255,255,255,.25); margin: 0 12px; }
.util a:hover { color: #fff; }
.util .eng { font-weight: 700; color: #fff; }

/* 헤더 · GNB */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header > .container { display: flex; align-items: center; height: 88px; position: relative; z-index: 2; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { width: 52px; }
.logo span { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; line-height: 1.25; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.gnb { margin-left: auto; }
.gnb > ul { display: flex; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  display: block; padding: 0 26px; line-height: 88px; font-size: 18px; font-weight: 700; color: #1b1b1b;
  position: relative;
}
.gnb > ul > li > a::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transition: transform .2s;
}
.gnb > ul > li:hover > a, .gnb > ul > li:focus-within > a { color: var(--blue); }
.gnb > ul > li:hover > a::after, .gnb > ul > li:focus-within > a::after { transform: scaleX(1); }
.sub { display: none; }
.search-btn { margin-left: 14px; background: none; border: 0; color: var(--navy); width: 44px; height: 44px; display: grid; place-items: center; }
.menu-btn { display: none; }

/* 메가메뉴: 헤더에 마우스를 올리면 모든 하위메뉴가 펼쳐짐 */
.gnb-bg {
  position: absolute; left: 0; right: 0; top: 100%; height: 0; overflow: hidden;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.06);
  transition: height .25s; z-index: 1;
}
@media (min-width: 1101px) {
  .header:has(.gnb:hover, .gnb:focus-within) .gnb-bg { height: 230px; }
  .gnb:hover .sub, .gnb:focus-within .sub {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    padding: 22px 0; text-align: center; height: 230px;
  }
  .gnb > ul > li + li .sub { border-left: 1px solid #f0f2f5; }
  .sub a { display: block; padding: 6px 10px; font-size: 15px; color: #555; }
  .sub a:hover, .sub a:focus { color: var(--blue); text-decoration: underline; }
  .gnb > ul > li:hover .sub { background: var(--bg-soft); }
}

/* 메인 비주얼 */
.visual { padding: 30px 0 0; }
.visual .container { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.slider { position: relative; height: 440px; border-radius: 18px; overflow: hidden; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 50px 60px; color: #fff; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.s-intro { background: linear-gradient(120deg, #0f2d63, var(--navy) 45%, var(--blue)); }
.s-news { background: linear-gradient(120deg, #2f4a2b, #4f7a3a 60%, var(--green)); }
.s-forum { background: linear-gradient(120deg, #b4520a, var(--orange)); }
.slide-text { max-width: 560px; position: relative; z-index: 1; }
.slide .tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.15); margin-bottom: 18px; }
.slide h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; font-weight: 800; margin-bottom: 16px; }
.slide h2 em { font-style: normal; color: #ffb45e; }
.slide p { font-size: 17px; opacity: .9; margin-bottom: 26px; }
.slide .more { display: inline-flex; gap: 10px; font-weight: 700; border-bottom: 2px solid rgba(255,255,255,.6); padding-bottom: 4px; }
.slide-emblem { width: 280px; flex-shrink: 0; background: #fff; border-radius: 50%; padding: 44px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.slide-photo { width: 240px; flex-shrink: 0; border-radius: 10px; transform: rotate(3deg); box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.slide-badge { flex-shrink: 0; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); display: grid; place-content: center; text-align: center; font-size: 22px; letter-spacing: 4px; font-weight: 700; }
.slide-badge b { font-size: 54px; letter-spacing: 0; }
.slider-ctrl {
  position: absolute; left: 60px; bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 6px;
  color: #fff; font-size: 14px;
}
.slider-ctrl .count { margin-right: 10px; opacity: .85; }
.slider-ctrl button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.1); color: #fff; font-size: 16px; line-height: 1;
}
.slider-ctrl #playBtn { font-size: 10px; }

.new-pub { background: var(--bg-soft); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.new-pub h3 { font-size: 19px; color: var(--navy); margin-bottom: 16px; }
.new-pub .pub-cover { flex: 1; min-height: 230px; }
.pub-meta { font-size: 14px; color: var(--muted); margin: 12px 0; }
.pub-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pub-btns a { text-align: center; padding: 10px 0; font-size: 12.5px; font-weight: 700; border-radius: 8px; background: var(--navy); color: #fff; }
.pub-btns a + a { background: #fff; color: var(--navy); border: 1px solid var(--navy); }

/* 간행물 표지(CSS로 생성) */
.pub-cover {
  position: relative; overflow: hidden; border-radius: 8px; padding: 22px 20px; color: #fff;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.pub-cover span { font-size: 12px; font-weight: 700; opacity: .85; letter-spacing: .5px; }
.pub-cover strong { font-size: 18px; line-height: 1.4; }
.pub-cover img { position: absolute; right: -16px; bottom: -16px; width: 120px; opacity: .25; filter: brightness(0) invert(1); }
.c-blue { background: linear-gradient(160deg, var(--blue), var(--navy)); }
.c-orange { background: linear-gradient(160deg, #f6a24a, #d66a0c); }
.c-green { background: linear-gradient(160deg, #78bb57, #3d7a24); }

/* 퀵메뉴 */
.quick { padding: 30px 0 10px; }
.quick ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.quick li + li { border-left: 1px solid var(--line); }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.quick i { font-style: normal; font-size: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; transition: transform .2s; }
.quick li:nth-child(3n+2) i { background: var(--green-soft); }
.quick li:nth-child(3n) i { background: var(--orange-soft); }
.quick a:hover { background: var(--bg-soft); color: var(--blue); }
.quick a:hover i { transform: translateY(-4px); }

/* 공통 섹션 */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
/* 같은 배경색 구역이 연달아 오면 위쪽 여백을 줄임 (사이가 너무 벌어지지 않게) */
.section.soft + .section.soft { padding-top: 0; }
.section.soft:has(+ .section.soft) { padding-bottom: 48px; }
#gallery { padding-bottom: 48px; } /* 교육·행사: 위(새소식과의 간격)와 아래(관련기관과의 간격)를 같게 */
#gallery .sec-title { margin-bottom: 28px; }
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-title.left { text-align: left; margin-bottom: 20px; }
.sec-title h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy); font-weight: 800; }
.sec-title p { color: var(--muted); margin-top: 6px; }

/* 연구 간행물 카드 */
.pubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pub-card { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .25s, transform .25s; }
.pub-card:hover { box-shadow: 0 14px 34px rgba(20,58,123,.1); transform: translateY(-4px); }
.pub-card .pub-cover { aspect-ratio: 3 / 4; padding: 16px 14px; }
.pub-card .pub-cover strong { font-size: 13.5px; }
.pub-card .pub-cover img { width: 80px; }
.pub-info { display: flex; flex-direction: column; }
.pub-info .cat { font-size: 13px; font-weight: 700; color: var(--green); }
.pub-info h3 { font-size: 18px; line-height: 1.45; margin: 6px 0; color: #1b1b1b; }
.pub-info p { font-size: 14px; color: var(--muted); }
.viewmore { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--navy); }

/* WHAT'S NEW */
.whatsnew { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: stretch; }
.board { background: #fff; border-radius: 16px; padding: 30px 32px; border: 1px solid var(--line); min-width: 0; }
.board-head { display: flex; align-items: center; gap: 24px; border-bottom: 2px solid var(--navy); padding-bottom: 16px; flex-wrap: wrap; }
.board-head h2 { font-size: 24px; color: var(--navy); font-weight: 800; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); }
.tabs button.is-active { background: var(--navy); color: #fff; }
.plus { margin-left: auto; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--muted); }
.list li { display: flex; justify-content: space-between; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.list li[hidden] { display: none; }
.list li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.list li a:hover { color: var(--blue); text-decoration: underline; }
.list li { align-items: center; }
.list li a.n-link { display: flex; align-items: center; }
.list .badge { flex-shrink: 0; }
.list .n-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .n-thumb {
  flex-shrink: 0; width: 46px; height: 32px; margin-right: 12px; object-fit: cover;
  border-radius: 5px; border: 1px solid var(--line);
}
.list .n-thumb.empty { display: grid; place-items: center; background: var(--bg-soft); }
.list .n-thumb.empty img { width: 20px; opacity: .35; }
.list time { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); margin-right: 10px; vertical-align: 1px; }
.badge.orange { background: var(--orange-soft); color: #c05f00; }
.badge.green { background: var(--green-soft); color: #3d7a24; }
.side-boxes { display: grid; gap: 24px; }
.side-box { border-radius: 16px; padding: 30px; color: #fff; display: flex; flex-direction: column; transition: transform .2s; }
.side-box:hover { transform: translateY(-4px); }
.side-box h3 { font-size: 21px; margin-bottom: 8px; }
.side-box p { opacity: .9; font-size: 15px; }
.side-box span { margin-top: auto; padding-top: 18px; font-weight: 700; }
.sb-blue { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.sb-green { background: linear-gradient(135deg, #3d7a24, var(--green)); }

/* 연구원 소개 */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; }
.greeting h3 { font-size: var(--g-head, 27px); color: var(--navy); margin-bottom: 16px; line-height: 1.45; }
.greeting p { color: #4b5563; font-size: var(--g-body, 17.5px); line-height: var(--g-lh, 1.9); margin-bottom: var(--g-para, 24px); }
.poem { margin: 22px 0; padding: 18px 24px; border-left: 4px solid var(--green); background: var(--green-soft); border-radius: 0 10px 10px 0; }
.poem p { color: #3f5a3a; font-size: 17px; line-height: 1.9; margin: 0; }
.poem cite { display: block; margin-top: 6px; font-style: normal; font-size: 13.5px; color: var(--muted); }
/* 사진 | 제목·부제목(사진 상하 중간) — 그 아래 본문·서명은 사진 오른쪽 끝선에서 시작 */
.greet-head { display: grid; grid-template-columns: var(--g-photo, 160px) 1fr; align-items: center; gap: 0 var(--g-tgap, 32px); margin-bottom: 16px; }
.greet-head:not(:has(.portrait)) { grid-template-columns: 1fr; }
.greet-head h3 { margin-bottom: 0; }
.greet-titles { margin-bottom: 28px; } /* 사진 아래 이름 줄만큼 올려 사진 그림 부분의 상하 중간에 맞춤 */
.greeting .has-photo > :not(.greet-head) { margin-left: calc(var(--g-photo, 160px) + var(--g-tgap, 32px)); }
.greeting.body-left .has-photo > :not(.greet-head) { margin-left: 0; }
.greeting.head-bottom .greet-head { align-items: end; }
.greeting.head-top .greet-head { align-items: start; }
.greeting.head-bottom .greet-titles, .greeting.head-top .greet-titles { margin-bottom: 0; }
/* 관리자 > 홈페이지 내용 > 이사장 인사말 > 모양 */
.greeting.photo-right .greet-head { grid-template-columns: 1fr var(--g-photo, 160px); }
.greeting.photo-right .greet-head .portrait { order: 2; }
.greeting.photo-right .has-photo > :not(.greet-head) { margin-left: 0; }
.portrait { flex-shrink: 0; width: var(--g-photo, 160px); margin: 0; text-align: center; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 28px rgba(20,58,123,.15); }
.portrait figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.portrait figcaption b { color: var(--navy); }
.portrait-edit { display: flex; gap: 16px; align-items: stretch; }
.portrait-box {
  flex-shrink: 0; width: 120px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px;
}
.portrait-box img { width: 100%; height: 100%; object-fit: cover; }
.portrait-edit .drop-zone { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.sign { margin-top: 32px; font-weight: 600; color: var(--navy) !important; }
.sign b { font-size: 22px; margin-left: 4px; }
.about-side { display: grid; gap: 22px; align-content: start; }
.vision-box { background: var(--navy); color: #fff; border-radius: 16px; padding: 34px; }
.vision-box h4, .history h4 { font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; color: #ffb45e; }
.vision-box .big { font-size: 22px; font-weight: 800; margin-bottom: 22px; line-height: 1.45; }
.vision-list { display: grid; gap: 12px; }
.vision-list li { display: flex; gap: 12px; align-items: flex-start; }
.vision-list b { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; font-size: 14px; }
.vision-list li:nth-child(2) b { background: var(--green); }
.vision-list li:nth-child(3) b { background: var(--orange); }
.history { border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; }
.history h4 { color: var(--orange); letter-spacing: 0; font-size: 18px; }
.history li { display: flex; gap: 18px; padding: 12px 0; border-top: 1px dashed var(--line); }
.history time { flex-shrink: 0; width: 92px; font-weight: 800; color: var(--blue); }
.history small { color: var(--muted); }

/* 교육 · 행사 */
.gallery-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; }
.gallery, .schedule { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
.gallery h3, .schedule h3 { font-size: 20px; color: var(--navy); margin-bottom: 18px; }
.gallery ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery h3 small { display: inline; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-left: 14px; }
.gallery li { position: relative; display: flex; flex-direction: column; }
.thumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #e7ecf3; margin-bottom: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.gallery a.thumb:hover img { transform: scale(1.05); }
/* 사진이 없는 행사의 색상 표지 */
.cover {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; color: #fff; text-align: center; padding: 16px;
}
.cover span { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; opacity: .85; }
.cover b { font-size: 21px; line-height: 1.35; }
.cover em { font-style: normal; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }
.gallery h3 { position: relative; padding-right: 90px; }
.more-link { position: absolute; right: 0; top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.more-link:hover { color: var(--blue); }
.gallery strong a:hover { color: var(--blue); text-decoration: underline; }
.mou-green { background: linear-gradient(135deg, #3d7a24, var(--green)); }
.mou-blue { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.mou-navy { background: linear-gradient(135deg, #0c1f42, #3b5a8f); }
.mou-orange { background: linear-gradient(135deg, #d66a0c, var(--orange)); }
.ev-no {
  position: absolute; left: 10px; top: 10px; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 6px;
}
.gallery time { font-size: 13px; color: var(--blue); font-weight: 700; }
.gallery strong { display: block; font-size: 16px; line-height: 1.45; margin: 2px 0 8px; }
.gallery li p { font-size: 14px; color: #4b5563; line-height: 1.65; }
.gallery .ev-place { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ev-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.ev-links a { font-size: 13px; font-weight: 700; color: var(--navy); border-bottom: 1px solid currentColor; }
.ev-links a:hover { color: var(--blue); }
.schedule li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.schedule .d { flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-content: center; text-align: center; font-size: 11px; font-weight: 700; line-height: 1.2; }
.schedule li:nth-child(2) .d { background: var(--green-soft); color: #3d7a24; }
.schedule li:nth-child(3) .d { background: var(--orange-soft); color: #c05f00; }
.schedule .d b { font-size: 22px; }
.schedule strong { display: block; }
.schedule span { font-size: 14px; color: var(--muted); }

/* 오시는 길 */
.location { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.info-list li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-list b { width: 80px; flex-shrink: 0; color: var(--navy); }
.info-list span { color: #4b5563; }
.info-list small { color: var(--muted); font-size: 13.5px; }
.map { width: 100%; height: 340px; border: 0; border-radius: 16px; background: #dde5ee; }

/* 관련기관 배너 */
.banners { border-top: 1px solid var(--line); padding: 30px 0; }
.banners .container { display: flex; align-items: center; gap: 24px; }
.banner-head { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.banner-head h2 { font-size: 16px; color: var(--navy); }
.banner-head button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 9px; color: var(--muted); }
.banner-track-wrap { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.banner-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: roll 30s linear infinite; }
.banner-track.paused, .banner-track:hover { animation-play-state: paused; }
.banner-track a { display: block; padding: 12px 26px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 15px; color: #444; white-space: nowrap; }
.banner-track .banner-item { display: block; padding: 12px 26px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 15px; color: #444; white-space: nowrap; }
.banner-track .has-img a, .banner-track .has-img .banner-item { padding: 0; border: 0; height: 34px; }
.banner-track img { display: block; height: 34px; width: auto; }
.banner-track .has-img a { opacity: .9; transition: opacity .2s; }
.banner-track .has-img a:hover { opacity: 1; }
.banner-track a:hover { border-color: var(--blue); color: var(--blue); }
@keyframes roll { to { transform: translateX(-50%); } }

/* 푸터 */
.footer { background: #0c1f42; color: #9aa7bd; font-size: 14px; }
.footer-links { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links .container { display: flex; justify-content: space-between; align-items: center; height: 60px; gap: 20px; }
.footer-links ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-links .strong { color: #ffb45e; font-weight: 700; }
.footer-links select { background: transparent; color: #c9d6ec; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 8px 12px; min-width: 180px; }
.footer-links option { color: #222; }
.footer-info { padding: 34px 20px 40px; }
.f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #fff; font-weight: 800; font-size: 18px; line-height: 1.25; }
.f-logo img { width: 46px; background: #fff; border-radius: 10px; padding: 4px; }
.f-logo small { display: block; font-size: 11px; font-weight: 500; color: #8d9ab0; }
.footer address { font-style: normal; line-height: 1.9; }
.copy { margin-top: 10px; font-size: 13px; color: #6f7d95; }

/* 회원 (로그인 · 회원가입) */
.util b { color: #fff; }
.home-link { margin-left: auto; font-weight: 600; color: var(--navy); }
.auth { background: var(--bg-soft); padding: 70px 0 90px; }
.auth-card {
  max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 44px 40px; box-shadow: 0 20px 50px rgba(20,58,123,.08);
}
.auth-card.wide { max-width: 640px; }
.auth-card h2 { font-size: 28px; color: var(--navy); text-align: center; }
.auth-card .lead { text-align: center; color: var(--muted); margin: 6px 0 28px; }
.auth-card h3 { font-size: 17px; color: var(--navy); margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field .req { color: var(--orange); margin-left: 2px; }
.field label.check { display: flex; font-weight: 500; margin: 0; }
.field input:not([type="checkbox"]), .field select {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d5dae2; border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hint.ok { color: #3d7a24; }
.hint.err { color: #d93025; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.login-opts { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: 14.5px; }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: 14.5px; }
.btn-block {
  display: block; width: 100%; padding: 15px; border: 0; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 16.5px; font-weight: 700; text-align: center;
}
.btn-block:disabled { opacity: .6; cursor: wait; }
.btn-block.line { background: #fff; color: var(--navy); border: 1px solid var(--navy); margin-top: 10px; }
.auth-links { display: flex; justify-content: center; gap: 8px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.auth-links a { color: var(--blue); font-weight: 600; }
.auth-msg { padding: 12px 14px; border-radius: 10px; font-size: 14.5px; margin-bottom: 18px; }
.auth-msg[hidden] { display: none; }
.auth-msg.err { background: #fdecea; color: #b3261e; }
.auth-msg.ok { background: var(--green-soft); color: #2f6a1d; }
.auth-msg.info { background: var(--orange-soft); color: #8a4a00; }
.terms { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-bottom: 22px; }
.term { border-bottom: 1px solid var(--line); padding: 12px 0; }
.term:last-child { border-bottom: 0; }
.term.all { font-weight: 700; }
.term-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.term-row .link-btn { font-size: 13px; color: var(--muted); font-weight: 500; flex-shrink: 0; }
.doc {
  margin-top: 10px; max-height: 200px; overflow-y: auto; background: var(--bg-soft); border-radius: 8px;
  padding: 12px 14px; font-size: 13.5px; color: #4b5563; line-height: 1.75;
}
.doc[hidden] { display: none; }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; background: #fff; }
.doc th { background: #eef2f8; white-space: nowrap; }

/* 마이페이지 */
#pwForm, #leaveForm { margin-top: 44px; }
.field input[readonly] { background: var(--bg-soft); color: var(--muted); }
.verify { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.verify .link-btn { font-size: 13px; }
.tag-ok, .tag-warn { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.tag-ok { background: var(--green-soft); color: #3d7a24; }
.tag-warn { background: var(--orange-soft); color: #c05f00; }
#profileForm .hint { margin: -4px 0 14px; }
.danger-zone h3 { color: #b3261e; border-bottom-color: #b3261e; }
.btn-block.danger { background: #b3261e; }

/* 회원 자료실 */
.archive-loading, .archive-empty { text-align: center; color: var(--muted); padding: 50px 0; }
.lock {
  max-width: 560px; margin: 0 auto; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: 48px 32px;
}
.lock .ic { font-size: 44px; }
.lock h3 { color: var(--navy); font-size: 22px; margin: 10px 0 8px; }
.lock p { color: var(--muted); }
.lock .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 10px; }
.lock .btns a, .lock .btns button {
  min-width: 150px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
}
.lock .btns .line { background: #fff; color: var(--navy); }
.archive-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.archive-tools input {
  height: 44px; min-width: 260px; padding: 0 14px; border: 1px solid #d5dae2; border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff;
}
.archive-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.archive-list li { display: flex; gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.archive-list li:last-child { border-bottom: 0; }
.archive-list .info { flex: 1; min-width: 0; }
.archive-list h3 { font-size: 17px; margin: 6px 0 4px; color: #1b1b1b; }
.archive-list p { font-size: 14.5px; color: var(--muted); }
.archive-list time { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.archive-list .down {
  flex-shrink: 0; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--navy);
  color: var(--navy); font-weight: 700; font-size: 14px; transition: background .2s, color .2s;
}
.archive-list .down:hover { background: var(--navy); color: #fff; }

/* 행사 게시판 (events.html) */
.page-head { background: linear-gradient(120deg, #0f2d63, var(--navy) 50%, var(--blue)); color: #fff; padding: 46px 0 50px; }
.page-head .crumb { font-size: 13.5px; opacity: .75; }
.page-head .crumb a:hover { text-decoration: underline; }
.page-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0 4px; }
.page-head p:last-child { opacity: .85; }
.board-page { padding-top: 50px; }
.board-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.board-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.board-right input {
  height: 42px; min-width: 220px; padding: 0 14px; border: 1px solid #d5dae2; border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff;
}
.view-toggle { display: flex; border: 1px solid #d5dae2; border-radius: 10px; overflow: hidden; background: #fff; }
.view-toggle button { border: 0; background: none; padding: 0 14px; height: 40px; font-size: 14px; font-weight: 600; color: var(--muted); }
.view-toggle button + button { border-left: 1px solid #d5dae2; }
.view-toggle button.is-active { background: var(--navy); color: #fff; }
.board-count { margin: 22px 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); font-size: 15px; color: var(--muted); }
.board-count b { color: var(--navy); }
.board-empty { text-align: center; color: var(--muted); padding: 60px 0; }

.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ev-grid a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 18px; height: 100%; transition: box-shadow .25s, transform .25s; }
.ev-grid a:hover { box-shadow: 0 14px 34px rgba(20,58,123,.12); transform: translateY(-4px); }
.ev-grid .thumb { margin-bottom: 14px; }
.ev-grid a:hover .thumb img { transform: scale(1.05); }
.ev-grid strong { display: block; font-size: 17px; line-height: 1.45; margin: 8px 0 6px; color: #1b1b1b; }
.ev-grid time { font-size: 13.5px; color: var(--muted); }

.ev-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.ev-table th { background: #eef2f8; color: var(--navy); font-size: 14.5px; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.ev-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; color: #4b5563; }
.ev-table .c-no { width: 70px; }
.ev-table .c-img { width: 110px; }
.ev-table .c-cat { width: 110px; }
.ev-table .c-date { width: 120px; }
.ev-table .c-img .thumb { width: 90px; margin: 0 auto; border-radius: 6px; }
.ev-table .c-img .cover { padding: 4px; }
.ev-table .c-img .cover span, .ev-table .c-img .cover em { display: none; }
.ev-table .c-img .cover b { font-size: 10.5px; }
.ev-table .c-title { text-align: left; }
.ev-table .c-title a { font-weight: 600; color: #1b1b1b; }
.ev-table .c-title a:hover { color: var(--blue); text-decoration: underline; }
.ev-table .m-meta { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.pager button { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--muted); }
.pager button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.post { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 44px 48px; }
.post-head { padding-bottom: 22px; border-bottom: 2px solid var(--navy); }
.post-head h2 { font-size: clamp(22px, 2.8vw, 30px); color: var(--navy); line-height: 1.4; margin: 10px 0 14px; }
.post-meta { display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 14.5px; }
.post-meta div { display: flex; gap: 8px; }
.post-meta dt { color: var(--muted); }
.post-meta dd { font-weight: 600; }
.post-photos, .post-cover { margin: 30px 0 6px; }
.post-main { display: block; width: 100%; border: 0; padding: 0; background: var(--bg-soft); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.post-main img { width: 100%; max-height: 720px; object-fit: contain; margin: 0 auto; }
.post-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.post-thumbs button { width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .7; }
.post-thumbs button.is-active { border-color: var(--navy); opacity: 1; }
.post-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.post-cover { aspect-ratio: 16 / 7; border-radius: 12px; overflow: hidden; }
.post-cover .cover b { font-size: clamp(24px, 4vw, 38px); }
.post-cover .cover span { font-size: 14px; }
.post-cover .cover em { font-size: 15px; padding: 5px 14px; }
.post-body { padding: 26px 0 30px; }
.post-body p { font-size: 17px; line-height: 1.9; margin-bottom: 16px; color: #333; }
.post-links { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; padding: 16px 18px; background: var(--bg-soft); border-radius: 10px; font-size: 14.5px; }
.post-links a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.post-nav { margin-top: 30px; border-top: 1px solid var(--navy); }
.post-nav li { display: flex; gap: 18px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.post-nav span { flex-shrink: 0; width: 56px; font-weight: 700; color: var(--navy); }
.post-nav a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav a:hover { color: var(--blue); text-decoration: underline; }
.post-nav time { flex-shrink: 0; color: var(--muted); font-size: 14px; }
.post-nav em { font-style: normal; color: var(--muted); }
.post-actions { text-align: center; margin-top: 30px; }
.btn-list { display: inline-block; min-width: 140px; padding: 13px 28px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 14px; right: 18px; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; }

/* 관리자 화면 (admin.html) */
.local-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--orange-soft); border: 1px solid #f3c99a; border-radius: 14px; padding: 18px 22px; margin-bottom: 22px;
  font-size: 14.5px; color: #6b3d00;
}
.local-bar p { margin-top: 4px; }
.local-bar .folder { font-weight: 700; color: #b3261e; }
.local-bar .folder.ok { color: #2f6a1d; }
.admin-tabs { margin-bottom: 22px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--navy); margin-bottom: 18px; }
.admin-head h3 { font-size: 21px; color: var(--navy); }
.admin-head h3 small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.admin-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-sm { display: inline-block; padding: 10px 18px; border-radius: 9px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.btn-sm.line { background: #fff; color: var(--navy); }
.btn-sm:disabled { opacity: .5; cursor: default; }
.btn-xs { padding: 5px 11px; border-radius: 7px; border: 1px solid #c9d1dd; background: #fff; font-size: 13px; font-weight: 600; color: #333; }
.btn-xs + .btn-xs { margin-left: 6px; }
.btn-xs.danger { color: #b3261e; border-color: #e8b4b0; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14.5px; }
.admin-table th { background: #eef2f8; color: var(--navy); padding: 12px 10px; text-align: left; white-space: nowrap; }
.admin-table td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table .c-title { width: 45%; }
.admin-table .c-title a:hover { color: var(--blue); text-decoration: underline; }
.admin-table .c-act { white-space: nowrap; text-align: right; }
.admin-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; margin-bottom: 22px; }
.admin-form h4 { font-size: 18px; color: var(--navy); margin-bottom: 16px; }
.admin-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d5dae2; border-radius: 10px;
  font: inherit; font-size: 15px; line-height: 1.7; resize: vertical;
}
.admin-form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.admin-form .admin-btns { margin-top: 8px; }
.admin-form.inline { display: flex; gap: 10px; align-items: flex-end; margin-top: 18px; }
.admin-form.inline .field { flex: 1; margin: 0; }
.cover-set { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 2px; margin-bottom: 16px; }
.cover-set legend { padding: 0 6px; font-weight: 600; font-size: 14.5px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.photo-item { width: 190px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.photo-img { position: relative; aspect-ratio: 4 / 3; }
.photo-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-first { position: absolute; left: 6px; top: 6px; background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.photo-ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 5px; background: rgba(0,0,0,.45); }
.photo-ctrl button { width: 28px; height: 26px; border: 0; border-radius: 5px; background: #fff; font-weight: 700; }
.photo-ctrl button:disabled { opacity: .35; }
.file-btn { cursor: pointer; color: var(--blue); font-weight: 700; text-decoration: underline; }
.drop-zone {
  border: 2px dashed #b9c6da; border-radius: 14px; padding: 16px; background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.drop-zone.over { border-color: var(--blue); background: var(--blue-soft); }
.drop-zone .photo-grid { margin-bottom: 10px; }
.drop-hint { text-align: center; color: var(--muted); font-size: 14.5px; padding: 8px 0 2px; }
.src-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.src-row { display: grid; grid-template-columns: 1fr 1fr 150px 2fr auto; gap: 8px; align-items: center; }
.src-row input { height: 42px; padding: 0 12px; border: 1px solid #d5dae2; border-radius: 9px; font: inherit; font-size: 14.5px; width: 100%; min-width: 0; }
.src-row input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
/* 홈페이지 내용: 상자별 수정·저장 */
.site-form { background: none; border: 0; padding: 0; }
.edit-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px 14px; margin-bottom: 18px; transition: border-color .15s, box-shadow .15s; }
.edit-box h4 { font-size: 17px; color: var(--navy); margin-bottom: 14px; }
.edit-box fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.edit-box fieldset:disabled input, .edit-box fieldset:disabled textarea {
  background: var(--bg-soft); color: #374151; border-color: #e5e9f0; cursor: default;
}
.edit-box fieldset:disabled .btn-sm, .edit-box fieldset:disabled .row-btns, .edit-box fieldset:disabled #portraitDel { display: none; }
.edit-box fieldset:disabled .drop-zone { opacity: .55; }
.edit-box.editing { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.box-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.box-status { margin-right: auto; font-size: 13.5px; color: var(--muted); }
.box-status.ok { color: #2f6a1d; font-weight: 700; }
.box-status.err { color: #b3261e; font-weight: 700; }
.box-status.info { color: var(--blue); }
.btn-xs.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-xs:disabled { opacity: .45; cursor: default; }
.save-all { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 18px 0 4px; border-top: 2px solid var(--navy); margin-top: 8px; }
.row-btns { display: flex; gap: 4px; white-space: nowrap; }
.row-btns .btn-xs + .btn-xs { margin-left: 0; }
.cover-set { margin-bottom: 22px; padding-bottom: 14px; }
.cover-set legend { font-size: 16px; color: var(--navy); }

/* 사진 설명 · 출처 */
.thumb { position: relative; }
.thumb-credit {
  position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px);
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; line-height: 1.4;
  padding: 2px 7px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-table .thumb-credit { display: none; }
.post-caption { margin-top: 10px; font-size: 14px; color: #4b5563; line-height: 1.6; }
.post-caption .credit { color: var(--muted); font-size: 13px; white-space: nowrap; }
.post-caption .credit::before { content: "ⓒ "; }
.photo-meta { display: grid; gap: 4px; padding: 6px; background: #fff; }
.photo-meta input { height: 32px; padding: 0 8px; border: 1px solid #d5dae2; border-radius: 6px; font: inherit; font-size: 12.5px; width: 100%; }

/* 상세 글 출처 */
.post-sources { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 4px; font-size: 14.5px; }
.post-sources b { display: block; color: var(--navy); margin-bottom: 8px; }
.post-sources li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 5px 0; color: #4b5563; }
.post-sources li::before { content: "·"; margin-right: -6px; color: var(--muted); }
.post-sources span { flex: 1; min-width: 0; }
.post-sources a { color: var(--blue); font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* 반응형 */
@media (max-width: 1280px) {
  .gnb > ul > li > a { padding: 0 18px; font-size: 17px; }
  .gnb > ul > li > a::after { left: 18px; right: 18px; }
}
@media (max-width: 1100px) {
  .header > .container { height: 72px; }
  .search-btn { margin-left: auto; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: none; padding: 10px;
  }
  .menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnb {
    display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.1);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .gnb.open { display: block; }
  .gnb > ul { flex-direction: column; padding: 6px 20px 20px; }
  .gnb > ul > li > a { line-height: 1; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .gnb > ul > li > a::after { display: none; }
  .gnb > ul > li.open .sub { display: block; background: var(--bg-soft); padding: 8px 14px; }
  .sub a { display: block; padding: 9px 0; font-size: 15px; color: #555; }
  .gnb-bg { display: none; }
  .visual .container { grid-template-columns: 1fr; }
  .new-pub { display: none; }
  .quick ul { grid-template-columns: repeat(3, 1fr); }
  .quick li:nth-child(3n+1) { border-left: 0; }
  .quick li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .pubs { grid-template-columns: 1fr; }
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .whatsnew, .about, .gallery-wrap, .location { grid-template-columns: 1fr; }
  .side-boxes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .util ul { justify-content: center; height: 32px; }
  .util li + li::before { margin: 0 9px; }
  .util .opt { display: none; }
  .auth { padding: 40px 0 60px; }
  .auth-card { padding: 32px 20px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .archive-tools input { min-width: 0; width: 100%; }
  .board-right, .board-right input { width: 100%; min-width: 0; }
  .board-right input { flex: 1; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-table thead, .ev-table .c-no, .ev-table .c-cat, .ev-table .c-date { display: none; }
  .ev-table .c-img { width: 96px; padding-right: 0; }
  .ev-table .c-img .thumb { width: 80px; }
  .ev-table .m-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
  .post { padding: 26px 18px; }
  .post-body p { font-size: 16px; }
  .post-nav time { display: none; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-form { padding: 20px 16px; }
  .admin-form.inline { flex-direction: column; align-items: stretch; }
  .photo-item { width: calc(50% - 6px); }
  .src-row { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .src-row input[data-k="url"] { grid-column: 1 / -1; }
  .greet-head, .greeting.photo-right .greet-head { grid-template-columns: 1fr; gap: 14px; } /* 좁은 화면: 사진 위, 문구 아래 */
  .greeting.photo-right .greet-head .portrait { order: 0; }
  .greet-titles { margin-bottom: 0; }
  .greeting .has-photo > :not(.greet-head) { margin-left: 0 !important; }
  .portrait { width: min(var(--g-photo, 160px), 130px); }
  .portrait-edit { flex-direction: column; }
  .archive-list li { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .lock { padding: 36px 20px; }
  .logo img { width: 42px; }
  .logo span { font-size: 17px; }
  .logo small { font-size: 9.5px; }
  .slider { height: 400px; }
  .slide { padding: 34px 26px 80px; }
  .slide-emblem, .slide-photo, .slide-badge { display: none; }
  .slide p { font-size: 15px; }
  .slider-ctrl { left: 26px; bottom: 26px; }
  .quick ul { grid-template-columns: repeat(3, 1fr); }
  .quick li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .quick li:nth-child(-n+3) { border-top: 0; }
  .quick li:not(:nth-child(3n+1)) { border-left: 1px solid var(--line) !important; }
  .quick a { padding: 12px 4px; font-size: 13.5px; }
  .quick i { width: 36px; height: 36px; font-size: 18px; }
  .section { padding: 60px 0; }
  .pub-card { grid-template-columns: 110px 1fr; padding: 18px; }
  .board { padding: 22px 18px; }
  .board-head { gap: 12px; }
  .list li a { font-size: 15px; }
  .list time { font-size: 12.5px; }
  .side-boxes { grid-template-columns: 1fr; }
  .gallery ul { grid-template-columns: 1fr; gap: 30px; }
  .banners .container { flex-direction: column; align-items: stretch; gap: 12px; }
  .footer-links .container { flex-direction: column; align-items: flex-start; height: auto; padding-top: 16px; padding-bottom: 16px; }
}

/* 인사말 부제목 (관리자 > 홈페이지 내용 > 이사장 인사말) */
.greeting .sub-head { font-size: var(--g-sub, 21px); font-weight: 700; color: var(--navy); line-height: 1.5; margin: 6px 0 24px; }

/* 메인 슬라이드 사진 (관리자 > 메인 슬라이드) — 잘리지 않게 흰 액자 안에 */
.slide .slide-pic {
  position: relative; z-index: 1; flex-shrink: 0; width: 300px; height: 300px; object-fit: contain;
  background: #fff; padding: 12px; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
@media (max-width: 700px) { .slide .slide-pic { display: none; } }

/* 팝업 (관리자 > 팝업 관리) */
.site-popup {
  position: absolute; z-index: 300; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; font-size: 15px;
}
.site-popup h3 { background: var(--navy); color: #fff; font-size: 16px; padding: 12px 16px; }
.site-popup-body img { display: block; width: 100%; height: auto; }
.site-popup-body p { padding: 14px 16px; line-height: 1.7; color: #333; }
.site-popup-link { display: block; padding: 0 16px 14px; color: var(--blue); font-weight: 700; }
.site-popup-foot { display: flex; justify-content: space-between; background: #222; }
.site-popup-foot button { border: 0; background: none; color: #fff; padding: 10px 14px; font-size: 13.5px; cursor: pointer; }
.site-popup-foot button:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .site-popup { left: 16px !important; right: 16px; width: auto !important; top: 90px !important; }
}

/* 관리자: 슬라이드·팝업 편집 카드 */
.item-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 6px; margin-bottom: 14px; background: #fff; }
.item-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; color: var(--navy); }
.item-card-head .row-btns { gap: 6px; }
.item-pic { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.item-pic .pic { width: 120px; height: 90px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft) center/contain no-repeat; flex-shrink: 0; }
.item-pic .drop-zone { flex: 1; padding: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }

/* 관리자 > 환경설정: 상단 메뉴 표 */
.menu-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.menu-table th { text-align: left; background: #eef2f8; color: var(--navy); padding: 10px; white-space: nowrap; }
.menu-table td { padding: 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.menu-table select, .menu-table input:not([type=checkbox]) { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #d5dae2; border-radius: 8px; font: inherit; font-size: 14.5px; background: #fff; }
.menu-table input[type=checkbox] { width: 18px; height: 18px; }
.menu-table td:first-child { width: 130px; }
.menu-table td:nth-child(2) { width: 30%; }
.menu-table .c-act { width: 1%; white-space: nowrap; }
.menu-table tr.is-top td { background: #f7f9fc; }
.menu-table tr.is-top [data-f=name] { font-weight: 700; color: var(--navy); }
.menu-table tr.is-sub td:nth-child(2) { padding-left: 34px; }
.menu-table .dest-label { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; min-height: 0; }
@media (max-width: 700px) {
  .menu-table thead { display: none; }
  .menu-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
  .menu-table td { border: 0; padding: 0; width: auto !important; }
  .menu-table td:nth-child(3), .menu-table .c-act { grid-column: 1 / -1; }
  .menu-table tr.is-sub td:nth-child(2) { padding-left: 0; }
}

/* 맨 위 남색 바(홈·로그인·관리자 등)도 스크롤해도 고정 — 흰색 메뉴 줄은 그 바로 아래에 고정 */
.util { position: sticky; top: 0; z-index: 101; }
.header { top: 36px; }
html { scroll-padding-top: 130px; }
@media (max-width: 1100px) {
  .gnb { max-height: calc(100vh - 108px); }
}
@media (max-width: 700px) {
  .header { top: 32px; }
  html { scroll-padding-top: 110px; }
}

/* ───── 메인 슬라이드: 사진을 가득 채우고, 글씨는 아래 1/4에 사진 위로 ───── */
.slider { height: 460px; }
.slide { padding: 0; align-items: flex-end; }
.slide .slide-pic {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  padding: 0; border-radius: 0; background: none; box-shadow: none; z-index: 0;
}
/* 사진은 자르지 않고 통째로 보이게(contain). 남는 좌우·상하는 같은 사진을 흐리게 깔아 채움 */
.slide .slide-pic { object-fit: contain; }
.slide .slide-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(28px) brightness(.75); z-index: 0; }
.slide .slide-pic[src$=".png"] ~ .slide-bg, .slide .slide-bg:has(+ .slide-pic[src$=".png"]) { display: none; }
/* 로고처럼 투명 배경 그림(png)은 잘리지 않게 위쪽 가운데에 */
.slide .slide-pic[src$=".png"] { object-fit: contain; inset: 6% 0 34% 0; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
/* 아래쪽 그늘: 글씨가 사진 위에서도 잘 보이게 */
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 22, 52, .9) 0%, rgba(8, 22, 52, .62) 24%, rgba(8, 22, 52, 0) 52%);
}
.slide .slide-text {
  position: relative; z-index: 2; max-width: none; width: 100%;
  padding: 0 44px 30px; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: end;
}
.slide .slide-text > :not(.more) { grid-column: 1; }
.slide .slide-text .more { grid-column: 2; grid-row: 1 / span 4; align-self: end; margin-bottom: 4px; white-space: nowrap; }
.slide .tag { margin-bottom: 10px; justify-self: start; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.slide h2 { font-size: clamp(22px, 2.5vw, 32px); margin-bottom: 6px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.slide p { font-size: 15px; margin-bottom: 0; opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
/* 넘김 버튼은 오른쪽 위로 */
.slider-ctrl { left: auto; right: 22px; bottom: auto; top: 18px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(4px); }
@media (max-width: 700px) {
  .slider { height: 400px; }
  .slide .slide-pic { display: block; }
  .slide .slide-text { padding: 0 20px 22px; grid-template-columns: 1fr; }
  .slide .slide-text .more { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .slide h2 { font-size: 21px; }
  .slide p { font-size: 13.5px; }
  .slider-ctrl { top: 12px; right: 12px; }
}
/* 글씨를 아래 1/4 안에: 넓은 화면에서는 제목을 한 줄로, 간격을 줄임 */
@media (min-width: 701px) {
  .slide h2 br { display: none; }
  .slide h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; margin-bottom: 4px; }
  .slide .tag { margin-bottom: 8px; padding: 3px 10px; font-size: 12px; }
  .slide .slide-text { padding-bottom: 26px; }
  .slide::before { background: linear-gradient(to top, rgba(8, 22, 52, .9) 0%, rgba(8, 22, 52, .6) 20%, rgba(8, 22, 52, 0) 40%); }
}
@media (max-width: 700px) {
  .slide h2 br { display: none; }
  .slide .tag { margin-bottom: 6px; padding: 3px 9px; font-size: 11px; }
  .slide p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* 로고(투명 png) 슬라이드: 위쪽 가운데에 로고 전체가 보이게 (높이를 정해 잘리지 않도록) */
.slide .slide-pic[src$=".png"] { inset: auto; top: 7%; left: 0; width: 100%; height: 56%; object-fit: contain; }
@media (max-width: 700px) { .slide .slide-pic[src$=".png"] { top: 12%; height: 40%; } }
.slide .slide-pic[src$=".png"] { filter: drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 0 28px rgba(255,255,255,.35)); }

/* 주요 사업 카드 (메인 화면, 관리자 > 홈페이지 내용 > 주요 사업) */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; }
/* 주요 사업: 위아래 여백을 같게, 전체 높이는 예전의 약 2/3 */
#publications { padding: 36px 0; }
#publications .sec-title { margin-bottom: 22px; }
#publications .sec-title h2 { font-size: 28px; }
.programs li > a, .programs li > div {
  display: flex; flex-direction: column; height: 100%; padding: 20px 22px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.programs li > a:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(20,58,123,.12); border-color: var(--blue); }
.programs li:nth-child(4n+1) > * { border-top: 4px solid var(--blue); }
.programs li:nth-child(4n+2) > * { border-top: 4px solid var(--green); }
.programs li:nth-child(4n+3) > * { border-top: 4px solid var(--orange); }
.programs li:nth-child(4n+4) > * { border-top: 4px solid var(--navy); }
.pg-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 10px; }
.programs li:nth-child(4n+2) .pg-icon { background: var(--green-soft); }
.programs li:nth-child(4n+3) .pg-icon { background: var(--orange-soft); }
.programs h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.programs p { font-size: 14.5px; color: #4b5563; line-height: 1.6; flex: 1; }
.pg-more { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
@media (max-width: 1100px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .programs { grid-template-columns: 1fr; } }

/* 메인 화면 맨 위 오른쪽 '최근 소식' (가장 최근 행사) */
.latest-box h3 { display: flex; justify-content: space-between; align-items: center; }
.latest-more { font-size: 22px; line-height: 1; color: var(--muted); }
.latest-card { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.latest-card .thumb { margin-bottom: 12px; aspect-ratio: 16 / 10; }
.latest-card .badge { align-self: flex-start; margin-bottom: 6px; }
.latest-card strong { font-size: 16px; line-height: 1.45; color: #1b1b1b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-card time { font-size: 13.5px; color: var(--muted); margin: 4px 0 12px; }
.latest-card:hover strong { color: var(--blue); text-decoration: underline; }

/* 정책제안 게시판 (proposals.html) */
.prop-table .c-who { width: 90px; }
.prop-table .c-st { width: 100px; }
.prop-status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; vertical-align: 2px; }
.prop-status.s1 { background: #eef2f8; color: var(--navy); }
.prop-status.s2 { background: var(--orange-soft); color: #c05f00; }
.prop-status.s3 { background: var(--green-soft); color: #3d7a24; }
.prop-answer { margin: 4px 0 26px; padding: 22px 26px; border-left: 4px solid var(--navy); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.prop-answer h3 { color: var(--navy); font-size: 17px; margin-bottom: 10px; }
.prop-answer h3 time { margin-left: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.prop-answer p { font-size: 16px; line-height: 1.85; margin-bottom: 10px; color: #333; }
.prop-own { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.prop-admin { margin-top: 18px; padding: 22px 24px; border: 1px dashed #c9d1dd; border-radius: 12px; background: #fbfcfe; }
.prop-admin h3 { font-size: 16px; color: var(--navy); margin-bottom: 14px; }
.prop-form .hint { margin: 16px 0 22px; }
.prop-admin textarea, .prop-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d5dae2; border-radius: 10px;
  font: inherit; font-size: 15.5px; line-height: 1.7; resize: vertical; background: #fff;
}
.prop-admin textarea:focus, .prop-form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.prop-btns { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.prop-admin .prop-btns { justify-content: flex-start; }
@media (max-width: 700px) {
  .prop-table .c-who, .prop-table .c-cat { display: none; }
  .prop-table .c-st { width: 76px; }
}

/* 연구원 소개 하위 페이지 (intro.html): 임원진 · 조직도 · 정관 · 설립 허가 정보 */
.intro-tabs { background: #fff; border-bottom: 1px solid var(--line); }
.intro-tabs .container { display: flex; gap: 4px; overflow-x: auto; }
.intro-tabs a { flex-shrink: 0; padding: 16px 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.intro-tabs a:hover { color: var(--navy); border-color: var(--navy); }
.intro-page { padding-top: 40px; }
.intro-sec { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 36px; margin-bottom: 26px; scroll-margin-top: 140px; }
.intro-sec > h3 { font-size: 22px; color: var(--navy); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--navy); }
.intro-empty { color: var(--muted); text-align: center; padding: 34px 0; background: var(--bg-soft); border-radius: 10px; }
.officer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.officer-list li { border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.officer-list .role { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: 6px; }
.officer-list b { display: block; font-size: 19px; margin: 10px 0 6px; }
.officer-list p { font-size: 14px; color: var(--muted); line-height: 1.6; }
/* 조직도: 가운데 줄기(이사장→원장) + 양옆 칸 + 맨 아래 부서 줄 (더스타트 조직도 모양) */
.org-chart { --line: #c3ccd9; --gap: 18px; max-width: 860px; margin: 10px auto 0; }
.org-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.org-center { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 18px 0; }
.org-center::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: var(--line); }
.org-row:first-child .org-center::before { top: 50%; }
.org-chart:not(.has-subs) .org-row:last-child .org-center::before { bottom: 50%; }
.org-side { display: flex; flex-direction: column; gap: 10px; }
/* 한쪽에 칸이 여럿이면(예: 이사회·고문단) 묶음선 ] 으로 모아 가운데 칸에 잇는다 */
.org-side.multi { position: relative; }
.org-side.multi.l { padding-right: 18px; }
.org-side.multi.r { padding-left: 18px; }
.org-side.multi::after { content: ""; position: absolute; top: calc(50% - 1px); width: 18px; height: 2px; background: var(--line); }
.org-side.multi.l::after { right: 0; }
.org-side.multi.r::after { left: 0; }
/* 묶음선 세로 줄: 칸마다 자기 몫을 그려 칸 높이가 달라도(글자가 두 줄이어도) 맞는다 */
.org-side.multi .org-arm { position: relative; }
.org-side.multi.l .org-arm::before, .org-side.multi.r .org-arm::after { content: ""; position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--line); }
.org-side.multi.l .org-arm::before { right: -1px; }
.org-side.multi.r .org-arm::after { left: -1px; }
.org-side.multi .org-arm:first-child::before, .org-side.multi .org-arm:first-child::after { top: 50%; }
.org-side.multi .org-arm:last-child::before, .org-side.multi .org-arm:last-child::after { bottom: 50%; }
.org-arm { display: flex; align-items: center; }
.org-side.l .org-arm::after, .org-side.r .org-arm::before { content: ""; flex: 1; height: 2px; background: var(--line); }
.org-box { position: relative; z-index: 1; display: inline-block; min-width: 190px; padding: 12px 24px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 16px; text-align: center; white-space: nowrap; }
.org-box.top { background: #0f2a5c; font-size: 17px; min-width: 210px; }
.org-box.mid { background: var(--navy); }
.org-box.side.s0 { background: #0e7c86; }
.org-box.side.s1 { background: #5b2a86; }
.org-subs { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: var(--gap); padding-top: 34px; }
.org-subs::before { content: ""; position: absolute; top: 0; height: 2px; background: var(--line);
  left: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) / 2); right: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) / 2); }
.org-unit { position: relative; text-align: center; }
.org-unit::before { content: ""; position: absolute; left: calc(50% - 1px); top: -34px; height: 34px; width: 2px; background: var(--line); }
.org-box.unit { display: block; min-width: 0; background: #1f5fae; border-radius: 18px; }
.org-note { margin: -18px 0 0; padding: 28px 10px 14px; background: #eceff3; border-radius: 0 0 18px 18px; font-size: 14px; color: #3d4a5c; line-height: 1.5; }
@media (max-width: 760px) {
  .org-box { min-width: 0; padding: 9px 12px; font-size: 13.5px; white-space: normal; word-break: keep-all; }
  .org-box.top { min-width: 0; font-size: 14.5px; }
  .org-side.l .org-arm::after, .org-side.r .org-arm::before { min-width: 10px; }
  .org-subs { grid-template-columns: repeat(2, 1fr); padding-top: 22px; border-top: 2px solid var(--line); }
  .org-subs::before, .org-unit::before { display: none; }
  .org-note { font-size: 13px; }
}
.articles p { font-size: 15.5px; line-height: 1.85; color: #333; margin-bottom: 14px; }
.articles b { color: var(--navy); }
.license-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.license-table th, .license-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15.5px; }
.license-table th { width: 180px; background: #f4f6fa; color: var(--navy); }
@media (max-width: 700px) {
  .intro-sec { padding: 22px 18px; }
  .license-table th { width: 110px; }
}

/* 주요 사업 카드에서 들어온 행사 모아 보기 (events.html?ids=…&t=…) */
.pick-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.pick-head h3 { font-size: 24px; color: var(--navy); }
.pick-head small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.pick-head .more-link { position: static; }

/* 이사장 인사말 제목: 넓은 화면에서 사진 왼쪽 끝과 오른쪽 VISION 글자 왼쪽 끝
   (칸 사이 60px + VISION 상자 안쪽 여백 34px)의 한가운데. 사진 윗선은 제목 글자 아랫선에 맞춤 */
@media (min-width: 1101px) {
  .greeting { position: relative; }
  .greeting:has(.portrait) > .sec-title { position: relative; width: calc(100% + 94px); margin: 0 0 calc(var(--g-gap, 0px) - 7px); text-align: center; }
  .greeting.title-left:has(.portrait) > .sec-title { width: auto; text-align: left; }
}

/* 관리자 > 이사장 인사말 > 모양 */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 22px; padding: 16px 18px; background: var(--bg-soft); border-radius: 10px; }
.field .style-row { display: grid; margin: 0; font-weight: 500; grid-template-columns: 170px 1fr 60px; align-items: center; gap: 10px; font-size: 14px; }
.style-row select { grid-column: 2 / 4; height: 36px; border: 1px solid #d5dae2; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; background: #fff; }
.style-row input[type="range"] { width: 100%; accent-color: var(--navy); }
.style-row output { font-weight: 700; color: var(--navy); text-align: right; }

/* 연구원 소개 하위 페이지 (인사말·비전·연혁) */
.intro-tabs a.is-on { color: var(--navy); border-color: var(--navy); }
.history-sec .history { border: 0; padding: 0; }
.history-sec .history li:first-child { border-top: 0; }

/* 설립목적·비전 페이지: 오른쪽에 로고와 연구원 이름 */
.vision-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
.vision-logo { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.vision-logo img { width: 110px; }
.vision-logo span { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; line-height: 1.3; }
.vision-logo small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
@media (max-width: 800px) { .vision-wrap { grid-template-columns: 1fr; } .vision-logo { padding: 26px 20px; } .vision-logo img { width: 84px; } .vision-logo span { font-size: 22px; } }

/* 공지 상세 글: 사진·첨부파일 */
.notice-photos { display: grid; gap: 14px; margin: 22px 0; }
.notice-photos img { max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.post-sources small { color: var(--muted); }
.attach-list { margin: 0 0 10px; padding: 0; list-style: none; }
.attach-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; background: #fff; font-size: 14px; }
.attach-list small { color: var(--muted); }
.file-btn-box { display: inline-block; cursor: pointer; }

/* 자리별 배너 (관리자 > 자리 배너) */
.ad { display: block; }
.ad img { display: block; width: 100%; height: auto; border-radius: 8px; }
.news-ads:empty, .biz-side:empty { display: none; }
.news-ads { display: flex; gap: 18px; margin-bottom: 28px; }
.news-ad { flex: 1; min-width: 0; }
.biz-head { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.biz-head .sec-title { flex: 1; margin-bottom: 0; }
.biz-side { flex: 0 0 26%; min-width: 0; }
.biz-head:not(.has-ads) .sec-title { margin-bottom: 0; }
.ad-side { display: none; position: absolute; top: 170px; width: 120px; z-index: 20; }
.ad-side.side-l { left: calc(50% - 640px - 130px); }
.ad-side.side-r { right: calc(50% - 640px - 130px); }
@media (min-width: 1560px) { .ad-side { display: block; } }
@media (max-width: 760px) { .news-ads { flex-direction: column; } .biz-head.has-ads { flex-wrap: wrap; } .biz-head.has-ads .sec-title { order: -1; flex: 0 0 100%; } .biz-side { flex: 1; } }

/* 자리 배너 관리 화면 */
.slot-overview { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.slot-overview-map { width: 240px; flex: none; }
.home-map { display: block; width: 100%; height: auto; }
.slot-legend { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.slot-legend li:not(.muted) b, .slot-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f57c00; color: #fff; font-size: 14px; margin-right: 6px; }
.slot-legend .muted { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.slot-body { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.slot-where { width: 130px; flex: none; }
.slot-fields { flex: 1; min-width: 260px; }
.slot-name { font-size: 16px; }

.page-top { margin-top: 24px; }
.page-top-ad { max-width: 100%; }
.page-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.page-pick .btn-sm { padding: 8px 14px; font-size: 14px; }
.page-pick .has-ad::after { content: " ●"; color: #f57c00; font-size: 11px; }

/* 맨 위 띠: 로고 가운데 + 좌우 배너(500×80). 띠 폭을 본문(1240px)과 같게 해서 왼쪽 배너의 왼쪽 끝·오른쪽 배너의 오른쪽 끝을 아래 슬라이드·최근 소식 박스의 바깥 선에 맞춘다 */
.masthead { background: #fff; }
.masthead .container { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; min-height: 88px; }
.masthead .logo { justify-self: center; }
.mast-ad { display: flex; align-items: center; min-width: 0; }
.mast-r { justify-content: flex-end; }
.mast-ad .ad img { width: 500px; max-width: 100%; aspect-ratio: 500 / 80; object-fit: contain; border-radius: 0; }
.masthead + .header { border-top: 1px solid var(--line); }
.masthead + .header > .container { height: 60px; }
.masthead + .header:not(:has(.gnb)) > .container { height: 44px; }
.masthead + .header .gnb > ul > li > a { line-height: 60px; }
@media (min-width: 1101px) {
  .masthead + .header > .container { justify-content: center; }
  .masthead + .header .gnb { margin-left: 0; }
}
@media (max-width: 900px) {
  .masthead .container { grid-template-columns: 1fr; min-height: 72px; padding-top: 0; padding-bottom: 0; }
  .mast-ad { display: none; }
}
.slot-card .item-card-head { flex-wrap: wrap; gap: 8px 14px; }
.size-badge { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: #fff3e0; border: 1px solid #f5b25f; color: #8a4b00; font-size: 14px; }
.size-badge b { color: #c25e00; }
.size-badge small { font-size: 12.5px; color: #a76a24; }
.legend-size { margin-left: 6px; color: var(--muted); font-size: 13px; }
.mast-l .ad img { object-position: left center; }
.mast-r .ad img { object-position: right center; }

/* 맨 위 로고: 기존보다 1/6 크게. 영문은 한글 이름 줄의 왼쪽·오른쪽 끝에 맞춘다 */
.masthead .logo img { width: 61px; }
.masthead .logo span { font-size: 24.5px; }
.masthead .logo small { font-size: 12.8px; width: 0; min-width: 100%; white-space: nowrap; text-align: justify; text-align-last: justify; }
@media (max-width: 700px) {
  .masthead .logo img { width: 49px; }
  .masthead .logo span { font-size: 19.8px; }
  .masthead .logo small { font-size: 10px; }
}
.lib-pick { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #eef4ff; border: 1px dashed #9db8e6; }
.lib-pick select { width: 100%; }

/* 새소식은 7개, 행사 일정은 5개까지 한 번에 보이고 넘으면 목록 안에서 스크롤 */
#boardList { max-height: 441px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b8c4d8 transparent; }
#scheduleList { max-height: 465px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b8c4d8 transparent; }
#boardList::-webkit-scrollbar, #scheduleList::-webkit-scrollbar { width: 6px; }
#boardList::-webkit-scrollbar-thumb, #scheduleList::-webkit-scrollbar-thumb { background: #b8c4d8; border-radius: 3px; }

/* 배너 관리 안쪽 탭 */
.hub-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.hub-tabs button { padding: 9px 18px; border-radius: 9px 9px 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--bg-soft); color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; }
.hub-tabs button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 개인정보처리방침 · 이용약관 · 이메일무단수집거부 */
.policy { line-height: 1.85; color: #374151; }
.policy p { margin-bottom: 12px; }
.policy a { color: var(--navy); text-decoration: underline; }
.policy h4 { font-size: 18px; color: var(--navy); margin: 34px 0 12px; scroll-margin-top: 140px; }
.policy h5 { font-size: 16px; color: #1f2937; margin: 20px 0 8px; }
.policy ul, .policy ol { padding-left: 22px; margin-bottom: 12px; }
.policy li { margin-bottom: 6px; }
.policy-lead { padding: 18px 22px; background: var(--bg-soft); border-radius: 10px; }
.policy-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 30px; padding: 18px 22px 18px 42px !important; border: 1px solid var(--line); border-radius: 10px; }
.policy-toc a { text-decoration: none; color: #374151; }
.policy-toc a:hover { color: var(--navy); text-decoration: underline; }
.policy-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.policy-table th { background: var(--bg-soft); color: var(--navy); white-space: nowrap; }
.policy-notice { padding: 26px 28px; border: 2px solid var(--navy); border-radius: 12px; background: var(--bg-soft); font-weight: 500; }
.policy-date { margin: 10px 0 0 !important; font-size: 14px; color: #6b7280; text-align: right; }
@media (max-width: 700px) {
  .policy-toc { grid-template-columns: 1fr; }
  .policy-table th, .policy-table td { padding: 8px 10px; font-size: 14px; }
  .policy-table th { white-space: normal; }
}

/* 메인 오른쪽 칸: 위 4/5 최근 소식 + 아래 1/5 배너 (자리 배너 10번) */
.visual-side { display: grid; grid-template-rows: 4fr 1fr; gap: 12px; height: 460px; min-width: 0; } /* 메인 슬라이드(.slider) 높이와 같게 */
.visual-side .latest-box { min-height: 0; overflow: hidden; padding: 20px 22px; }
.visual-side .latest-box h3 { margin-bottom: 10px; }
.visual-side .latest-card .thumb { flex: 1; min-height: 0; aspect-ratio: auto; margin-bottom: 8px; }
.visual-side .latest-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.visual-side .latest-card time { margin: 2px 0 8px; }
.latest-ad { min-height: 0; border-radius: 14px; overflow: hidden; }
.latest-ad .ad { display: block; width: 100%; height: 100%; }
.latest-ad .ad { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.latest-ad .ad img { width: 80%; height: 80%; object-fit: contain; border-radius: 0; } /* 로고 배너도 잘리지 않게, 칸보다 1/5 작게 */
.ad-slot-empty { display: grid; place-items: center; height: 100%; border: 2px dashed #c9d3e6; border-radius: 14px; color: #9aa6b8; font-size: 14px; background: var(--bg-soft); }
@media (max-width: 1100px) {
  .visual-side { height: auto; grid-template-rows: auto auto; }
  .visual-side .latest-box { max-height: 360px; }
  .latest-ad { height: 110px; }
}

/* 관리자에게만 보이는 빨간 설정 버튼 (최근 소식 아래 배너 자리 오른쪽 위) */
.latest-ad { position: relative; }
.latest-ad-in { height: 100%; }
.admin-gear { position: absolute; top: 4px; right: 4px; z-index: 2; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  background: #e53935; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .2s, background .2s; }
.admin-gear[hidden] { display: none; }
.admin-gear:hover { background: #c62828; transform: rotate(45deg); }
/* 설정 버튼으로 들어왔을 때 해당 배너 칸 강조 */
.slot-card.slot-focus { outline: 3px solid #e53935; outline-offset: 4px; }

/* 배너 칸: 규격 자동 맞춤 안내 */
.fit-note { margin: 6px 0 0; font-size: 13px; color: #6b7280; }
.fit-note.done { color: #1b7f3b; font-weight: 600; }

/* 하단 보기 전환 버튼 [HOME] [모바일버전] [PC버전] */
.view-switch { background: #0b1b3a; border-bottom: 1px solid rgba(255,255,255,.1); }
.view-switch .container { display: flex; justify-content: center; gap: 10px; padding: 14px 16px; }
.view-switch a, .view-switch button { flex: 0 1 140px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.view-switch a:hover, .view-switch button:hover, .view-switch .on { background: #ffb45e; border-color: #ffb45e; color: #0b1b3a; }
