@import url('fonts/pretendard/fonts.css');
/* 산흥초등학교 36회 홈페이지 — 사이트 CSS.
   목업 sanheung36_poc/web/src/index.css 를 그대로 이식(클래스·색상 토큰 동일).
   원류는 was/sanheung36 static/css/style.css. JSP(SSR)에서도 같은 클래스를 쓴다. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Pretendard","Malgun Gothic","맑은 고딕",sans-serif; color:#111; background:#f2f4f8; line-height:1.5; letter-spacing:-0.03em; font-variant-numeric:tabular-nums; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; }

/* Header */
.site-header { background:#fff; border-bottom:1px solid #d5d5d5; }
.header-inner { max-width:1100px; margin:0 auto; display:flex; justify-content:space-between;
    align-items:center; padding:14px 16px; }
.logo { display:flex; align-items:center; gap:10px; }
.logo-mark { background:#1b5fa8; color:#fff; font-weight:700; padding:6px 10px; border-radius:6px; }
.logo-text { font-size:19px; color:#1c2658; font-weight:600; }
/* 2행 배치(2026-08-25) — 위: 이름·링크 / 아래: 세션 시간. 헤더가 한 줄로 넓어지며
   GNB 를 밀어내 항목이 줄바꿈되던 것을 header-util 자체를 세로로 접어 해결. */
.header-util { flex:none; font-size:13px; color:#555; display:flex; flex-direction:column;
    align-items:flex-end; gap:4px; white-space:nowrap; }
.header-util a { margin-left:10px; color:#3258e0; }
.header-util .util-row { display:flex; align-items:center; }
.header-util .sess-timer { margin:0; }
.linkbtn { background:none; border:none; color:#3258e0; cursor:pointer; font-size:13px; }

/* GNB */
.gnb { background:#fff; border-bottom:1px solid #d5d5d5; }
.gnb > ul { max-width:1100px; margin:0 auto; display:flex; list-style:none; }
.gnb > ul > li { position:relative; }
.gnb > ul > li > span { display:block; position:relative; color:#222; padding:15px 26px; font-weight:700; font-size:16px; cursor:pointer; transition:color .2s; }
.gnb > ul > li > span::after { content:''; position:absolute; top:12px; right:16px; width:7px; height:7px; border-radius:50%; background:#00b6e5; transform:scale(0); transition:transform .25s; }
.gnb > ul > li:hover > span::after, .gnb > ul > li.open > span::after { transform:scale(1); }
.gnb > ul > li:hover > span { color:#0094f2; }
.gnb > ul > li > ul { display:none; position:absolute; top:100%; left:0; background:#fff;
    min-width:170px; border-radius:0 0 10px 10px; box-shadow:0 8px 18px rgba(28,38,88,.16); list-style:none; z-index:20; overflow:hidden; }
.gnb > ul > li:hover > ul { display:block; }
.gnb > ul > li > ul > li a { display:block; padding:11px 18px; color:#333; border-bottom:1px solid #eee; }
.gnb > ul > li > ul > li a:hover { background:#f2f4f8; color:#3258e0; }

/* Layout */
.container { max-width:1100px; margin:24px auto; padding:0 16px; }
.site-footer { text-align:center; padding:28px; color:#c7ccd6; background:#3d4453; margin-top:40px; }
.small { font-size:12px; }

/* Page */
.page-title { font-size:23px; color:#1c2658; font-weight:700; border-bottom:2px solid #3258e0; padding-bottom:10px; margin-bottom:18px; }
.card { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:22px; margin-bottom:20px; box-shadow:0 2px 8px rgba(28,38,88,.05); }

/* Home widgets */
.hero { background:linear-gradient(120deg,#1c2658,#3258e0); color:#fff; border-radius:14px;
    padding:46px 30px; margin-bottom:24px; }
.hero h1 { font-size:28px; margin-bottom:8px; }
.widgets { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.widget h3 { color:#1c2658; font-weight:700; border-bottom:1px solid #dde; padding-bottom:8px; margin-bottom:10px;
    display:flex; justify-content:space-between; }
.widget h3 a { font-size:12px; color:#888; }
.widget ul { list-style:none; }
.widget li { padding:6px 0; border-bottom:1px dashed #eee; font-size:14px; display:flex; justify-content:space-between; }
.widget li span { color:#aaa; font-size:12px; }

/* Table */
table.board { width:100%; border-collapse:collapse; background:#fff; }
table.board th, table.board td { border-bottom:1px solid #e5e9ef; padding:12px 8px; font-size:14px; text-align:center; }
table.board tbody tr:hover td { background:#f7f7f7; }
table.board th { background:#f2f4f8; color:#1c2658; }
table.board td.title { text-align:left; }
.notice-row { background:#fbfcfe; font-weight:600; }
.badge { background:#3258e0; color:#fff; font-size:11px; padding:2px 8px; border-radius:10px; }

/* Buttons */
.btn { display:inline-block; padding:9px 18px; border-radius:5px; border:1px solid transparent; cursor:pointer; font-size:14px; font-weight:500; transition:background .15s, color .15s, border-color .15s; }
.btn-primary { background:#3258e0; color:#fff; }
.btn-primary:hover { background:#212121; }
.btn-gray { background:#f2f4f8; color:#072966; border-color:#95b0e5; }
.btn-gray:hover { background:#fff; border-color:#072966; }
.btn-danger { background:#d9534f; color:#fff; }
.right { text-align:right; }
/* 버튼 행은 전부 우측 정렬 (2026-08-25 지시: "모든 것 다") */
.actions { margin-top:16px; display:flex; gap:8px; justify-content:flex-end; }

/* Form */
.form-row { margin-bottom:14px; }
.form-row label { display:block; font-weight:600; margin-bottom:6px; font-size:14px; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=email],
.form-row textarea, .form-row select {
    width:100%; padding:10px; border:1px solid #cbd5e1; border-radius:6px; font-size:14px; }
.form-row textarea { min-height:220px; resize:vertical; }
.err { color:#d9534f; font-size:13px; margin-top:4px; }
.msg-ok { color:#1b7a3d; }

/* Search */
.searchbar { display:flex; gap:6px; justify-content:flex-end; margin-bottom:14px; }
.searchbar input { padding:8px; border:1px solid #cbd5e1; border-radius:6px; }

/* Pagination */
.pagination { display:flex; gap:6px; justify-content:center; margin-top:18px; }
.pagination a, .pagination span { min-width:36px; height:36px; line-height:34px; padding:0 6px; text-align:center;
    border:1px solid #e0e4ec; border-radius:50%; font-size:13px; font-weight:700; color:#1d1d1d; background:#fff; }
.pagination a:hover { background:#efefef; text-decoration:underline; }
.pagination .on { background:#3258e0; color:#fff; border-color:#3258e0; }

/* View */
.post-head { border-bottom:2px solid #3258e0; padding-bottom:12px; margin-bottom:6px; }
.post-head h2 { font-size:20px; }
.post-meta { color:#888; font-size:13px; margin:8px 0 18px; }
.post-body { min-height:160px; padding:10px 2px; font-size:15px; line-height:1.8; white-space:pre-wrap; }
.attach-list { margin-top:16px; padding:12px; background:#f7f9fc; border-radius:6px; }
.attach-list a { color:#3258e0; }

/* Comment */
.comment-box { margin-top:24px; }
.comment { border-bottom:1px solid #eee; padding:10px 0; font-size:14px; }
.comment .who { font-weight:600; color:#3258e0; }
.comment .when { color:#aaa; font-size:12px; margin-left:6px; }

/* Gallery */
.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.gallery-card { background:#fff; border:1px solid #e5e9ef; border-radius:8px; overflow:hidden; }
.gallery-card .thumb { height:150px; background:#eef2f7 center/cover no-repeat; display:block; }
.gallery-card .cap { padding:8px 10px; font-size:13px; }

/* Fee */
.fee-total { text-align:right; font-size:16px; font-weight:700; color:#3258e0; margin-top:12px; }
.unpaid-neg { color:#d9534f; }
.unpaid-pos { color:#1b7a3d; }

@media (max-width:768px){
    .widgets { grid-template-columns:1fr; }
    .gallery-grid { grid-template-columns:repeat(2,1fr); }
    .gnb > ul { flex-wrap:wrap; }
}

/* ===========================================================================
   아래는 POC(React SPA) 전용 추가분 — 위쪽 114줄은 원본
   was/sanheung36/src/main/resources/static/css/style.css 를 그대로 이식한 것이고,
   여기부터는 SSR(Thymeleaf)에는 없던 요소(클릭형 드롭다운, 알림, 로딩 등)만 더한다.
   원본 색상 토큰(#1b5fa8 / #d9534f / #1b7a3d / #f5f7fa)을 그대로 재사용한다.
   ========================================================================= */

/* GNB — 원본은 :hover로만 열렸다. 터치 기기에서 hover가 없으므로 클릭도 되게 한다. */
.gnb > ul > li.open > span { color:#0094f2; }
.gnb > ul > li.open > ul { display:block; }
.gnb > ul > li > ul > li a.on { background:#f2f4f8; color:#3258e0; font-weight:600; }

/* 알림/상태 메시지 */
.alert { padding:11px 14px; border-radius:6px; font-size:14px; margin-bottom:14px; }
.alert-err { background:#fdecea; color:#a9342f; border:1px solid #f3c9c6; }
.alert-ok  { background:#eaf5ee; color:#1b7a3d; border:1px solid #c5e3d0; }
.alert-info{ background:#eef4fb; color:#1b5fa8; border:1px solid #cfe0f3; }

.loading { padding:40px; text-align:center; color:#888; font-size:14px; }
.empty-cell { color:#888; }

/* 로그인/회원가입 좁은 카드 */
.narrow { max-width:420px; margin:0 auto; }

/* 페이지네이션 — 원본은 <a>였으나 SPA에서는 버튼으로 처리 */
.pagination button { padding:7px 12px; border:1px solid #dde; border-radius:5px; font-size:13px;
    background:#fff; cursor:pointer; color:inherit; }
.pagination button.on { background:#1b5fa8; color:#fff; border-color:#1b5fa8; }
.pagination button:disabled { opacity:.45; cursor:default; }

/* 첨부 선택 목록(글쓰기 폼) */
.file-list { list-style:none; margin-top:8px; font-size:13px; }
.file-list li { padding:5px 0; display:flex; justify-content:space-between; align-items:center;
    border-bottom:1px dashed #eee; }
.file-list .rm { background:none; border:none; color:#d9534f; cursor:pointer; font-size:13px; }

/* 표 안 소형 입력(회비관리) */
table.board input[type=number], table.board input[type=text] {
    padding:5px 6px; border:1px solid #cbd5e1; border-radius:4px; font-size:13px; }

/* 관리자 편집 토글 */
.admin-bar { display:flex; justify-content:flex-end; gap:8px; margin-bottom:12px; }

/* 갤러리 썸네일 없음 표시 */
.gallery-card .thumb.none { display:flex; align-items:center; justify-content:center;
    color:#aab; font-size:13px; }

/* 본문 유지 — 원본 .post-body의 white-space:pre-wrap을 소개 페이지에서도 쓴다 */
.prose { line-height:1.9; font-size:15px; white-space:pre-wrap; }
.note { color:#888; font-size:13px; margin-top:10px; }

/* ---------------------------------------------------------------------------
   메인 히어로 사진 슬라이드쇼
   원본 .hero는 파란 그라디언트 한 장이었다. 동문 사진(입학/졸업/학교전경)을
   배경으로 자동 전환하되, 사진 위에 흰 글씨를 얹어야 하므로 어두운 오버레이를
   깐다 — 오버레이 없이는 밝은 하늘 부분에서 제목이 읽히지 않는다.
   사진 로드에 실패하면 .hero의 그라디언트가 그대로 보이므로 안 깨진다.
   ------------------------------------------------------------------------- */
/* 사진을 크게 보여달라는 요청(2026-08-21)으로 높이를 기존의 2배로 키웠다.
   원래는 .hero-inner의 패딩(위 46 + 아래 54)에 텍스트 높이가 더해져 약 166px
   이었다. 사진 영역이 넓어진 만큼 텍스트는 세로 중앙에 두어야 위쪽에 붕 뜬
   것처럼 보이지 않는다 — 그래서 flex로 가운데 정렬한다. */
.hero-slides {
    position:relative; overflow:hidden; padding:0;
    min-height:510px;
}
.hero-slide {
    position:absolute; inset:0;
    background-position:center; background-size:cover; background-repeat:no-repeat;
    opacity:0; transition:opacity 1.4s ease-in-out;
}
.hero-slide.on { opacity:1; }
/* 사진 위 가독성 확보. 문구를 작게 우측 하단으로 옮긴 뒤로는 화면 전체를
   덮을 이유가 없어졌다 — 사진이 주인공이 되도록 위쪽은 거의 투명하게 두고,
   글자가 놓이는 하단만 진하게 깔아 캡션·문구·인디케이터가 읽히게 한다. */
.hero-slides::after {
    content:''; position:absolute; inset:0; pointer-events:none;
    background:linear-gradient(180deg, rgba(12,37,87,.10) 0%, rgba(12,37,87,.06) 40%, rgba(12,37,87,.62) 100%);
}
/* 문구는 사진을 가리지 않게 우측 하단에 작게 둔다(2026-08-21 요청).
   가운데 큰 제목이던 것을 사진이 주인공이 되도록 비켜준 것 — 그래서
   세로 중앙 flex 정렬을 걷어내고 하단 우측에 절대배치한다.
   아래 인디케이터(.hero-dots)와 겹치지 않도록 bottom을 그보다 위로 잡는다. */
.hero-inner {
    position:absolute; right:30px; bottom:46px; z-index:2;
    text-align:right; max-width:70%;
}
.hero-slides h1 { font-size:14px; margin-bottom:4px; font-weight:700; }
.hero-slides p  { font-size:12px; opacity:.92; }
.hero-slides h1 { text-shadow:0 2px 12px rgba(0,0,0,.45); }
.hero-slides p  { text-shadow:0 1px 8px rgba(0,0,0,.45); }

.hero-caption {
    position:absolute; left:30px; bottom:18px; z-index:3;
    font-size:13px; color:#fff; opacity:.9; letter-spacing:.02em;
    text-shadow:0 1px 8px rgba(0,0,0,.6);
}
.hero-dots { position:absolute; right:30px; bottom:18px; z-index:3; display:flex; gap:8px; }
.hero-dots button {
    width:10px; height:10px; padding:0; border-radius:50%; cursor:pointer;
    border:1px solid rgba(255,255,255,.85); background:transparent; transition:background .2s;
}
.hero-dots button.on { background:#fff; }
.hero-dots button:hover { background:rgba(255,255,255,.6); }

@media (max-width:768px){
    .hero-slides { min-height:390px; }
    .hero-inner { right:20px; bottom:42px; max-width:78%; }
    .hero-caption { left:20px; font-size:12px; }
    .hero-dots { right:20px; }
}
/* 모션 최소화를 선호하는 사용자에게는 전환 애니메이션을 끈다(접근성) */
@media (prefers-reduced-motion: reduce){
    .hero-slide { transition:none; }
}

/* ---------------------------------------------------------------------------
   간이 위지윅 에디터(RichEditor) — 원본 .form-row textarea 자리를 대체한다.
   테두리·라운드·포커스 색은 원본 폼 요소(#cbd5e1 / #1b5fa8)와 맞췄다.
   ------------------------------------------------------------------------- */
.editor { border:1px solid #cbd5e1; border-radius:6px; overflow:hidden; background:#fff; }
.editor:focus-within { border-color:#3258e0; }
.editor-toolbar {
    display:flex; align-items:center; gap:2px; flex-wrap:wrap;
    padding:6px 8px; background:#f0f5fb; border-bottom:1px solid #dde5ef;
}
.editor-toolbar button {
    min-width:30px; height:28px; padding:0 7px; font-size:13px; line-height:1;
    background:#fff; border:1px solid #d7e0ec; border-radius:4px; cursor:pointer; color:#333;
}
.editor-toolbar button:hover { background:#eef1fb; border-color:#3258e0; color:#3258e0; }
.editor-sep { width:1px; height:18px; background:#d7e0ec; margin:0 4px; }

.editor-body {
    min-height:220px; padding:12px; font-size:14px; line-height:1.8; outline:none;
    overflow-y:auto; max-height:520px;
}
/* 비어 있을 때만 안내문을 보여준다 — placeholder가 없는 contenteditable 보완 */
.editor-body:empty::before { content:attr(data-placeholder); color:#aab; }
.editor-body ul, .editor-body ol { padding-left:22px; }
.editor-body blockquote {
    margin:8px 0; padding:6px 12px; border-left:3px solid #3258e0; background:#f7f9fc; color:#444;
}
.editor-body a { color:#3258e0; text-decoration:underline; }
.editor-body img { max-width:100%; height:auto; }

/* 저장된 본문 렌더 — 에디터 안과 같은 모양으로 보이게 맞춘다.
   .post-body의 white-space:pre-wrap은 평문 시절 설정이라 HTML에서는 해제한다. */
.post-body { white-space:normal; }
.post-body ul, .post-body ol { padding-left:22px; margin:6px 0; }
.post-body blockquote {
    margin:8px 0; padding:6px 12px; border-left:3px solid #3258e0; background:#f7f9fc; color:#444;
}
.post-body a { color:#3258e0; text-decoration:underline; }
.post-body img { max-width:100%; height:auto; border-radius:4px; }

/* ── GNB 3단(중간 그룹) — 그룹은 클릭 안 되는 구분 제목, 하위는 들여쓰기 (2026-08-25) ── */
.gnb > ul > li > ul > li.gnb-grp { padding:9px 18px 5px; font-size:12px; font-weight:700; color:#3258e0;
    background:#f4f8fc; border-bottom:1px solid #eee; cursor:default; }
.gnb > ul > li > ul > li.gnb-sub a { padding-left:30px; }

/* ── 첨부파일 선택 영역 (2026-08-25) — 기본 input[type=file] 대신 버튼+안내+목록 ── */
.file-pick { display:flex; align-items:center; gap:12px; }
.file-pick label { font-weight:600; font-size:14px; }
.file-hint { color:#888; font-size:13px; margin-top:6px; }
.file-list li .rm { flex:none; }
.file-list li span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-right:8px; }

/* ── 에디터 보강 (2026-08-25) — 색 선택·본문 이미지·구분선 ── */
.editor-toolbar select { width:auto; height:28px; padding:0 4px; font-size:13px; border:1px solid #d7e0ec; border-radius:4px; background:#fff; color:#333; cursor:pointer; }
.editor-body hr, .post-body hr { border:none; border-top:1px solid #dbe3ec; margin:14px 0; }
.editor-body h3, .post-body h3 { color:#1c2658; margin:10px 0 6px; font-size:17px; }

/* ── 세션 타이머 (2026-08-25) — kovice.kiet.re.kr 의 session-time-area 디자인 차용:
      알약형 캡슐, 남은 시간은 파랑 강조, [연장] 은 옅은 파랑 배경 버튼 ── */
.sess-timer { display:inline-flex; align-items:stretch; height:28px; margin-right:10px;
    border:1px solid #e0e0e0; border-radius:15px; overflow:hidden; background:#f5f5f5;
    font-size:13px; color:#555; padding-left:12px; vertical-align:middle; }
.sess-timer > :first-child { display:inline-flex; align-items:center; }
.sess-timer { align-items:center; gap:5px; }
.sess-timer .sess-remain { color:#3258e0; font-weight:600; }
.sess-timer.sess-warn .sess-remain { color:#d9534f; }
.sess-timer .sess-extend { height:100%; margin:0 0 0 4px; padding:0 12px; border:none; cursor:pointer;
    font-size:13px; font-weight:500; color:#000; background:rgba(50,88,224,.15); border-radius:0 15px 15px 0; }
.sess-timer .sess-extend:hover { background:rgba(50,88,224,.3); }

/* ── 첨부 목록 섹션 (2026-08-25) ── */
.attach-title { display:block; font-weight:600; font-size:14px; margin:12px 0 4px; }
.file-no { color:#3258e0; font-weight:600; font-size:12px; }
.file-list .rm { font-size:16px; line-height:1; font-weight:700; }

/* ── 푸터 관련사이트 셀렉트 (2026-08-25, kovice 다크 푸터 톤) ── */
.site-footer .footer-inner { max-width:1100px; margin:0 auto; padding:0 16px; display:flex;
    justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; text-align:left; }
.site-footer .footer-right .fam-site { min-width:190px; padding:9px 12px; font-size:13px; color:#e6e9f0;
    background:#4a5162; border:1px solid #555b68; border-radius:5px; cursor:pointer; }
.site-footer .footer-right .fam-site:hover { border-color:#8b93a5; }
.site-footer .footer-right .fam-site option { color:#111; background:#fff; }

/* ── kovice 게시판 배치 차용 (2026-08-25) ── */
.board-srch { display:flex; align-items:center; gap:10px; padding:14px 18px; margin-bottom:16px;
    background:#fff; border:1px solid #dfe4ee; border-radius:10px; }
.board-srch .srch-tit { position:relative; padding-left:13px; font-size:15px; font-weight:600; color:#1c2658; white-space:nowrap; }
.board-srch .srch-tit::before { content:''; position:absolute; top:calc(50% - 2px); left:0; width:4px; height:4px; background:#1a3d93; }
.board-srch input[type=text] { flex:1; max-width:420px; padding:9px 12px; border:1px solid #cbd5e1; border-radius:5px; font-size:14px; }
.board-top { display:flex; justify-content:space-between; align-items:center; margin:4px 0 10px; }
.board-count { color:#424242; font-size:14px; }
.board-count i { font-style:normal; font-weight:600; color:#000; padding:0 2px; }
.board-count span { position:relative; margin-left:16px; }
.board-count span::before { content:''; position:absolute; top:3px; left:-9px; width:1px; height:13px; background:#dcdcdc; }
table.board { border-top:2px solid #1c2658; }

/* ── 오시는길 장소 카드 (2026-08-25) — 카카오 플레이스 상단 정보 수준만 표시 ── */
.place-card { display:block; margin-top:12px; padding:20px 22px; border:1px solid #dfe4ee; border-radius:12px;
    background:#f8f9fc; transition:border-color .15s, box-shadow .15s; }
.place-card:hover { border-color:#3258e0; box-shadow:0 4px 12px rgba(50,88,224,.12); }
.place-card .place-name { display:block; font-size:19px; font-weight:700; color:#1c2658; }
.place-card .place-cate { font-size:13px; font-weight:400; color:#888; margin-left:6px; }
.place-card .place-addr { display:block; margin-top:6px; font-size:15px; color:#424242; }
.place-card .place-link { display:inline-block; margin-top:12px; font-size:14px; font-weight:600; color:#3258e0; }

/* ══ 회원명단 관리(관리자) — 2026-08-25 엑셀(CSV) 다운로드/업로드. 맨 끝 append 규칙 준수 ══ */
.roster-admin { margin-top:24px; }
.roster-admin h3 { font-size:17px; margin-bottom:10px; }
.roster-badge { display:inline-block; margin-left:6px; padding:2px 8px; border-radius:10px;
	background:#eef1fb; color:#3258e0; font-size:12px; font-weight:600; vertical-align:middle; }
.roster-hint { font-size:13.5px; color:#616161; line-height:1.6; margin-bottom:14px; }
.roster-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.roster-actions form { display:flex; align-items:center; gap:8px; margin:0; }
.roster-actions input[type=file] { font-size:13.5px; }
.roster-errors { margin-top:14px; }
.roster-errors ul { margin:8px 0 0 18px; }
.roster-errors li { font-size:13.5px; line-height:1.6; list-style:disc; }

/* ═══ kovice 서브 레이아웃 차용 (2026-08-25) — 한 줄 헤더 · 좌측 LNB · 브레드크럼 ═══ */

/* 헤더 1줄: 로고 | GNB | 유틸 */
.header-inner { max-width:1240px; gap:20px; }
.header-inner .gnb { flex:1; background:transparent; border-bottom:none; }
.header-inner .gnb > ul { justify-content:center; max-width:none; }
.gnb > ul > li > span { padding:22px 20px; font-size:17px; white-space:nowrap; }
.header-inner .gnb > ul { flex-wrap:nowrap; }
.gnb > ul > li.is-on > span { color:#0094f2; }
.gnb > ul > li.is-on > span::after { transform:scale(1); }
.container { max-width:1240px; }

/* 좌측 LNB — 파란 그라데이션 타이틀 박스 + 메뉴 카드 (kovice 게시판 실물) */
.sub-wrap { display:flex; gap:28px; align-items:flex-start; }
.lnb { width:230px; flex:none; }
.lnb-head { height:110px; display:flex; align-items:center; justify-content:center;
    border-radius:12px; color:#fff; font-size:21px; font-weight:700;
    background:linear-gradient(135deg,#1c2658 0%,#3258e0 70%,#3f8cff 100%); }
.lnb-card { margin-top:14px; border:1px solid #dfe4ee; border-radius:12px; background:#fff; padding:10px; }
.lnb-item { display:block; padding:11px 14px; border-radius:8px; font-size:15px; color:#333; position:relative; }
.lnb-item::before { content:'▪'; color:#b9c3d8; font-size:10px; margin-right:8px; vertical-align:1px; }
.lnb-item:hover { background:#f2f4f8; color:#3258e0; }
.lnb-item.on { background:#f2f4f8; color:#3258e0; font-weight:700; }
.lnb-item.on::before { color:#3258e0; }
.lnb-grp { padding:10px 14px 4px; font-size:12.5px; font-weight:700; color:#3258e0; }
.lnb-item.lnb-sub { padding-left:26px; }
.sub-body { flex:1; min-width:0; }

/* 브레드크럼(우측) + 페이지 타이틀 확대 — kovice 타이틀 줄 */
.crumbs { float:right; margin-top:6px; color:#777; font-size:13px; display:flex; gap:8px; align-items:center; }
.crumbs a { color:#777; font-size:15px; }
.crumbs b { color:#111; font-weight:600; }
.sub-body .page-title { font-size:27px; border-bottom:1px solid #cfd6e4; padding-bottom:14px; margin-bottom:20px; }

/* 검색 밴드 — kovice 회색 밴드 + 우측 정렬 + 진남색 버튼 */
.board-srch { background:#f2f4f8; border:none; justify-content:flex-end; padding:16px 18px; border-radius:10px; }
.board-srch .btn-primary { background:#1c2658; }
.board-srch .btn-primary:hover { background:#3258e0; }

@media (max-width:900px){
  .sub-wrap { flex-direction:column; }
  .lnb { width:100%; }
  .lnb-head { height:64px; font-size:18px; }
  .header-inner { flex-wrap:wrap; }
}

/* ── 소개 콘텐츠 보기 서식 (2026-08-25, kovice 콘텐츠 페이지 톤) ── */
.prose-rich { white-space:normal; }
.prose-rich p { margin:0 0 12px; line-height:1.9; }
.prose-rich .lead { font-size:17px; color:#1c2658; font-weight:500; padding:16px 18px; margin-bottom:18px;
    background:#f2f4f8; border-left:4px solid #3258e0; border-radius:0 8px 8px 0; }
.prose-rich .rule-ch { margin:26px 0 10px; padding-bottom:8px; font-size:18px; color:#1c2658;
    border-bottom:2px solid #1c2658; }
.prose-rich .rule-ch:first-child { margin-top:4px; }
.prose-rich .rule-art { margin:16px 0 6px; font-size:15.5px; color:#3258e0; font-weight:700; }
.prose-rich .rule-item { margin:0 0 6px; padding-left:14px; color:#333; }
.prose-rich .timeline { list-style:none; margin:6px 0 14px; padding-left:8px; border-left:2px solid #dfe4ee; }
.prose-rich .timeline li { position:relative; padding:9px 0 9px 22px; }
.prose-rich .timeline li::before { content:''; position:absolute; left:-7px; top:16px; width:10px; height:10px;
    border-radius:50%; background:#3258e0; box-shadow:0 0 0 3px #fff; }
.prose-rich .timeline b { display:inline-block; min-width:62px; color:#1c2658; font-weight:700; }
.prose-rich .timeline span { color:#333; }
.prose-rich .rule-tit { margin:0 0 18px; font-size:20px; color:#1c2658; text-align:center; }
.prose-rich .rule-sec { margin:14px 0 6px; font-size:15px; color:#3258e0; font-weight:700; }
.prose-rich .rule-art { margin:0 0 7px; padding-left:14px; color:#333; }

/* ── 오시는길 지도 임베드 (2026-08-25) ── */
.map-embed { margin-top:12px; border:1px solid #dfe4ee; border-radius:12px; overflow:hidden; background:#eef2f7; }
.map-embed iframe { display:block; width:100%; height:360px; border:0; }

/* ═══ 화면 골격 고정 (2026-08-25 지시) — 헤더·푸터는 항상 제자리, 본문만 내부 스크롤.
      내용 길이에 따라 푸터가 오르내리지 않는다. 화면이 좁으면(모바일) 일반 흐름으로 되돌린다. ═══ */
@media (min-width:901px) {
  html, body { height:100%; }
  body { display:flex; flex-direction:column; overflow:hidden; }
  .site-header { flex:none; z-index:30; }
  /* flex 자식이 되면서 margin auto 가 폭을 잡아먹어 본문이 좁아졌다 → width 100% 로 고정하고
     안쪽 래퍼가 최대폭·가운데 정렬을 맡는다(2026-08-25 실측 후 수정). */
  main.container { flex:1 1 auto; min-height:0; width:100%; max-width:none; margin:0;
      padding:24px calc((100% - 1240px) / 2); overflow-y:auto; overscroll-behavior:contain; }
  @media (max-width:1290px) { main.container { padding:24px 16px; } }
  .site-footer { flex:none; margin-top:0; }
}

/* ── 헤더 로고 이미지 (2026-08-25 임시 워드마크) ── */
.logo-img { display:block; height:40px; width:auto; }
@media (max-width:900px){ .logo-img { height:34px; } }

/* ── 로그인 필요 메뉴 잠금 표시 (2026-08-25) — 회색 + 자물쇠 ── */
.mn-lock { color:#a7adba !important; }
.mn-lock::after { content:' 🔒'; font-size:11px; opacity:.75; }
.gnb > ul > li > ul > li a.mn-lock:hover { background:#f7f8fa; color:#8b93a5 !important; }
.lnb-item.mn-lock::before { color:#cbd0da; }
.lnb-item.mn-lock:hover { background:#f7f8fa; color:#8b93a5 !important; }
