/* ===== 폴라리온 아카데미 — 공통 스타일시트 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Playfair+Display:wght@500;600;700;800&family=Noto+Serif+KR:wght@400;700&display=swap');

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.6s, color 0.6s;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================
   일반 모드 (PEACE) 변수
   ============================================ */
:root {
    /* 메인 컬러 */
    --primary: #1b2d4f;
    --primary-light: #2d5a8e;
    --primary-dark: #0f1a30;
    --accent: #c9a84c;
    --accent-glow: rgba(201,168,76,0.15);

    /* 배경 */
    --bg-main: #f4f2ed;
    --bg-card: #ffffff;
    --bg-nav: #1b2d4f;
    --bg-hero: linear-gradient(135deg, #1b2d4f 0%, #0f1a30 60%, #162544 100%);

    /* 텍스트 */
    --text-main: #2c2c2c;
    --text-sub: #6b6b6b;
    --text-light: #aaa;
    --text-on-dark: #e8e4dc;

    /* 계열 */
    --rika: #3a6fb5;
    --rika-bg: rgba(58,111,181,0.08);
    --bunka: #b53a5a;
    --bunka-bg: rgba(181,58,90,0.08);

    /* 기타 */
    --border: #e0dcd5;
    --shadow: 0 2px 12px rgba(0,0,0,0.07);
    --radius: 8px;
}

/* ============================================
   전쟁 모드 (WAR) 변수 오버라이드
   ============================================ */
body.wartime {
    --primary: #2a1a1a;
    --primary-light: #5a2a2a;
    --primary-dark: #0d0808;
    --accent: #8b3a3a;
    --accent-glow: rgba(139,58,58,0.2);

    --bg-main: #1a1610;
    --bg-card: rgba(26,22,16,0.85);
    --bg-nav: #1a0e0e;
    --bg-hero: linear-gradient(135deg, #1a0e0e 0%, #0d0808 60%, #2a1a1a 100%);

    --text-main: #c4b99a;
    --text-sub: #8a7b5a;
    --text-light: #5a4e3a;
    --text-on-dark: #c4b99a;

    --rika: #5a7aaa;
    --rika-bg: rgba(90,122,170,0.1);
    --bunka: #aa5a5a;
    --bunka-bg: rgba(170,90,90,0.1);

    --border: rgba(107,92,62,0.3);
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* 전쟁모드 전역 텍스처 */
body.wartime::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.015) 3px, rgba(0,0,0,0.015) 4px);
    pointer-events: none;
    z-index: 99990;
}

/* ============================================
   헤더 / 네비게이션
   ============================================ */
.site-header {
    background: var(--bg-nav);
    color: var(--text-on-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.6s;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
}

/* 로고 */
.school-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.logo-emblem {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    transition: border-color 0.6s, color 0.6s;
}
.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-on-dark);
}
.logo-text .logo-sub {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
    transition: color 0.6s;
}
body.wartime .logo-text .logo-sub { color: rgba(196,185,154,0.4); }

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-date {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
}
body.wartime .header-date { color: rgba(196,185,154,0.3); }

/* 전쟁모드 표시 배지 */
.war-badge {
    display: none;
    padding: 3px 10px;
    background: #5a1a1a;
    border: 1px solid #8b3a3a;
    color: #e8c4c4;
    font-size: 0.65rem;
    letter-spacing: 2px;
    animation: warPulse 2s infinite;
}
body.wartime .war-badge { display: inline-block; }
@keyframes warPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 네비게이션 */
.nav-bar {
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
    transition: background 0.6s;
}
body.wartime .nav-bar {
    background: rgba(139,58,58,0.06);
    border-top-color: rgba(139,58,58,0.15);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 24px;
    /* overflow-x는 모바일 전용 — 여기서 설정하면 overflow-y가 hidden이 되어 드롭다운이 잘림 */
}
.nav-link {
    padding: 11px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
}
body.wartime .nav-link { color: rgba(196,185,154,0.5); }
body.wartime .nav-link:hover { color: var(--text-on-dark); background: rgba(139,58,58,0.1); }
body.wartime .nav-link.active { color: var(--text-on-dark); }

/* 전쟁모드 탭 라벨 전환 */
.nav-link .peace-label { display: inline; }
.nav-link .war-label { display: none; }
body.wartime .nav-link .peace-label { display: none; }
body.wartime .nav-link .war-label { display: inline; }

/* ============================================
   드롭다운 네비게이션
   ============================================ */
.nav-item {
    position: relative;
}
.nav-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link .arrow {
    font-size: 0.55rem;
    opacity: 0.5;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-item:hover .nav-link .arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-nav);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
body.wartime .nav-dropdown {
    background: #1a0e0e;
    border-color: rgba(139,58,58,0.2);
    border-top-color: #8b3a3a;
}
.nav-dropdown a {
    display: block;
    padding: 9px 18px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    padding-left: 22px;
}
body.wartime .nav-dropdown a { color: rgba(196,185,154,0.5); }
body.wartime .nav-dropdown a:hover {
    color: var(--text-on-dark);
    background: rgba(139,58,58,0.1);
}

/* ============================================
   메인 컨텐츠
   ============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 80px;
}

/* ============================================
   히어로 배너
   ============================================ */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 280px;
    background: var(--bg-hero);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.6s;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(58,111,181,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(181,58,90,0.15) 0%, transparent 50%);
    transition: opacity 0.6s;
}
body.wartime .hero-overlay {
    background:
        radial-gradient(circle at 30% 70%, rgba(139,58,58,0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(60,20,20,0.2) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-on-dark);
    padding: 20px;
}
.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 6px;
}
.hero-content .hero-desc {
    font-size: clamp(0.82rem, 3vw, 0.95rem);
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}
body.wartime .hero-content .hero-desc { color: rgba(196,185,154,0.5); }
.hero-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 18px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: border-color 0.6s, color 0.6s;
}

/* 전쟁 히어로 전용 */
.hero-peace { display: block; }
.hero-war { display: none; }
body.wartime .hero-peace { display: none; }
body.wartime .hero-war { display: block; }

/* ============================================
   섹션 / 카드 / 그리드
   ============================================ */
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    transition: color 0.6s, border-color 0.6s;
}
body.wartime .section-title { color: var(--text-main); }

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.6s, border-color 0.6s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
body.wartime .card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.card-body { padding: 18px; }

/* 그리드 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }

/* ============================================
   공지사항
   ============================================ */
.notice-list { list-style: none; }
.notice-item {
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.87rem;
    cursor: pointer;
    transition: color 0.2s;
}
.notice-item:hover { color: var(--primary-light); }
.notice-item:last-child { border-bottom: none; }
.notice-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-right: 6px;
}
.notice-tag.important { background: #fee2e2; color: #dc2626; }
.notice-tag.general { background: #e0e7ff; color: #4338ca; }
.notice-tag.event { background: #fef3c7; color: #d97706; }
/* 전쟁모드 태그 */
.notice-tag.urgent { background: #5a1a1a; color: #e8c4c4; }
.notice-tag.report { background: #3a2a1a; color: #c4b99a; }
.notice-date { color: var(--text-light); font-size: 0.78rem; flex-shrink: 0; }

/* ============================================
   계열 태그
   ============================================ */
.faction-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.faction-tag.rika { background: var(--rika-bg); color: var(--rika); }
.faction-tag.bunka { background: var(--bunka-bg); color: var(--bunka); }
.faction-tag.neutral { background: rgba(0,0,0,0.04); color: var(--text-sub); }

/* ============================================
   학파 소개 카드
   ============================================ */
.faction-intro {
    padding: 24px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.faction-intro.rika-card {
    background: linear-gradient(135deg, rgba(58,111,181,0.06) 0%, rgba(58,111,181,0.02) 100%);
    border: 1px solid rgba(58,111,181,0.15);
}
.faction-intro.bunka-card {
    background: linear-gradient(135deg, rgba(181,58,90,0.06) 0%, rgba(181,58,90,0.02) 100%);
    border: 1px solid rgba(181,58,90,0.15);
}
.faction-intro h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.faction-intro .faction-motto {
    font-style: italic;
    font-size: 0.82rem;
    color: var(--text-sub);
    margin-bottom: 12px;
}
.faction-intro p {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.7;
}

/* 전쟁모드 학파 카드 */
body.wartime .faction-intro.rika-card {
    background: linear-gradient(135deg, rgba(90,122,170,0.08), transparent);
    border-color: rgba(90,122,170,0.2);
}
body.wartime .faction-intro.bunka-card {
    background: linear-gradient(135deg, rgba(170,90,90,0.08), transparent);
    border-color: rgba(170,90,90,0.2);
}

/* ============================================
   캐릭터 카드
   ============================================ */
.chara-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.chara-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.chara-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid var(--border);
    transition: border-color 0.3s;
}
.chara-card:hover .chara-avatar { border-color: var(--accent); }
.chara-card .chara-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
body.wartime .chara-card .chara-name { color: var(--text-main); }
.chara-card .chara-role {
    font-size: 0.75rem;
    color: var(--text-sub);
}

/* 전쟁모드 캐릭터 상태 뱃지 */
.chara-status {
    display: none;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}
body.wartime .chara-status { display: inline-block; }
.chara-status.alive { background: rgba(58,90,58,0.3); color: #7aaa7a; }
.chara-status.missing { background: rgba(100,80,40,0.3); color: #c4b99a; }
.chara-status.kia { background: rgba(139,58,58,0.3); color: #e8c4c4; }
.chara-status.unknown { background: rgba(60,60,60,0.3); color: #999; }

/* ============================================
   검열 효과
   ============================================ */
.censored {
    background: var(--primary-dark);
    color: var(--primary-dark);
    padding: 0 4px;
    border-radius: 2px;
    user-select: none;
}

/* ============================================
   푸터
   ============================================ */
.site-footer {
    background: var(--bg-nav);
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 22px;
    font-size: 0.72rem;
    letter-spacing: 1px;
    transition: background 0.6s, color 0.6s;
}
body.wartime .site-footer { color: rgba(196,185,154,0.3); }
.site-footer a { color: var(--accent); opacity: 0.4; transition: opacity 0.3s; }
.site-footer a:hover { opacity: 0.7; }

/* 전쟁 푸터 경고 */
.footer-peace { display: block; }
.footer-war { display: none; }
body.wartime .footer-peace { display: none; }
body.wartime .footer-war { display: block; color: rgba(139,58,58,0.5); font-style: italic; }

/* ============================================
   전환 애니메이션
   ============================================ */
.glitch-transition {
    animation: glitchFlash 0.9s ease;
}
@keyframes glitchFlash {
    0% { filter: none; }
    8% { filter: hue-rotate(90deg) brightness(1.8); }
    16% { filter: invert(1); transform: skewX(3deg); }
    24% { filter: hue-rotate(200deg) saturate(3); transform: skewX(-2deg); }
    40% { filter: brightness(0); }
    60% { filter: sepia(0.8) brightness(0.5); }
    80% { filter: sepia(0.3) brightness(0.8); }
    100% { filter: none; }
}

/* Fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   유틸리티
   ============================================ */
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.peace-only { display: block; }
.war-only { display: none; }
body.wartime .peace-only { display: none; }
body.wartime .war-only { display: block; }

/* 인라인 컨텍스트: peace 전용만 inline 전환 (war-only는 여전히 none) */
.nav-dropdown .peace-only,
.board-tabs .peace-only,
.post-board-tag .peace-only,
span.peace-only { display: inline; }

/* 인라인 컨텍스트: 전쟁모드일 때 war-only → inline, peace-only → none */
body.wartime .nav-dropdown .peace-only,
body.wartime .board-tabs .peace-only,
body.wartime .post-board-tag .peace-only,
body.wartime span.peace-only { display: none; }
body.wartime .nav-dropdown .war-only,
body.wartime .board-tabs .war-only,
body.wartime .post-board-tag .war-only,
body.wartime span.war-only { display: inline; }

/* grid/flex 컨텍스트: display 타입 보존 */
.gal-grid.peace-only { display: grid; }
.gal-grid.war-only { display: none; }
.gal-filters.peace-only { display: flex; }
.gal-filters.war-only { display: none; }
body.wartime .gal-grid.peace-only { display: none; }
body.wartime .gal-grid.war-only { display: grid; }
body.wartime .gal-filters.peace-only { display: none; }
body.wartime .gal-filters.war-only { display: flex; }

/* 기타 flex/grid 요소의 peace-only/war-only 보존 */
table.peace-only { display: table; }
table.war-only { display: none; }
body.wartime table.peace-only { display: none; }
body.wartime table.war-only { display: table; }

/* ============================================
   햄버거 버튼 (모바일 전용)
   ============================================ */
.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    width: 34px; height: 34px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.hamburger-btn:hover { border-color: var(--accent); color: var(--accent); }
body.wartime .hamburger-btn { border-color: rgba(139,58,58,0.4); color: rgba(196,185,154,0.7); }

/* ============================================
   교정자 입장 CTA
   ============================================ */
.cta-enter {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.25s;
    text-decoration: none;
}
.cta-enter:hover { background: #d4b45a; box-shadow: 0 0 12px rgba(201,168,76,0.4); }
body.wartime .cta-enter {
    background: rgba(139,58,58,0.7);
    color: #c4b99a;
    border: 1px solid rgba(139,58,58,0.5);
}
body.wartime .cta-enter:hover { background: rgba(139,58,58,0.9); box-shadow: 0 0 12px rgba(139,58,58,0.4); }

/* ============================================
   인증 버튼 (로그인/닉네임 표시)
   ============================================ */
.admin-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    padding: 4px 10px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-btn:hover { border-color: var(--accent); color: var(--accent); }
.admin-btn.logged-in { border-color: rgba(201,168,76,0.4); color: var(--accent); }
body.wartime .admin-btn { border-color: rgba(139,58,58,0.3); color: rgba(196,185,154,0.4); }
body.wartime .admin-btn.logged-in { border-color: rgba(139,58,58,0.6); color: #c4b99a; }

/* ============================================
   사이드 드로어
   ============================================ */
.drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 8000;
    backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

.side-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--bg-nav);
    z-index: 8100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.side-drawer.open { transform: translateX(0); }
body.wartime .side-drawer { background: #1a0e0e; }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
body.wartime .drawer-head { border-bottom-color: rgba(139,58,58,0.2); }
.drawer-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 2px;
}
.drawer-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s;
}
.drawer-close-btn:hover { color: #fff; }

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* 드로어 링크 */
.drawer-link {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.drawer-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.drawer-link.active { color: #fff; border-left-color: var(--accent); background: rgba(255,255,255,0.04); }
body.wartime .drawer-link { color: rgba(196,185,154,0.55); }
body.wartime .drawer-link:hover { color: var(--text-on-dark); background: rgba(139,58,58,0.08); }
body.wartime .drawer-link.active { border-left-color: #8b3a3a; }

/* 드로어 섹션 (드롭다운 그룹) */
.drawer-section { }
.drawer-section-title {
    padding: 13px 20px 5px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}
body.wartime .drawer-section-title { color: rgba(196,185,154,0.55); }
.drawer-sub-link {
    display: flex;
    align-items: center;
    padding: 9px 20px 9px 34px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.drawer-sub-link::before { content: '·'; margin-right: 6px; }
.drawer-sub-link:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
body.wartime .drawer-sub-link { color: rgba(196,185,154,0.35); }
body.wartime .drawer-sub-link:hover { color: rgba(196,185,154,0.7); }

.drawer-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 0;
}
body.wartime .drawer-divider { background: rgba(139,58,58,0.15); }

/* 드로어 하단 (관리자 영역) */
.drawer-foot {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
body.wartime .drawer-foot { border-top-color: rgba(139,58,58,0.2); }
.drawer-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}
body.wartime .drawer-admin-row { color: rgba(196,185,154,0.35); }

/* ============================================
   인증 모달 (로그인 / 회원가입)
   ============================================ */
.login-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.login-overlay.open { display: flex; }

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    width: 100%;
    max-width: 340px;
    animation: fadeIn 0.2s ease;
    overflow: hidden;
}
body.wartime .login-card { border-top-color: #8b3a3a; }

/* 탭 헤더 */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}
.auth-tab {
    flex: 1;
    padding: 13px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-sub);
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    position: relative;
}
.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s;
}
.auth-tab.active { color: var(--primary); }
.auth-tab.active::after { transform: scaleX(1); }
body.wartime .auth-tab.active { color: var(--accent); }
body.wartime .auth-tabs { border-bottom-color: rgba(139,58,58,0.25); }

/* 패널 */
.auth-panel {
    padding: 24px 28px 28px;
}
.auth-panel input[type="text"],
.auth-panel input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 10px;
    display: block;
}
.auth-panel input:focus { border-color: var(--accent); }
body.wartime .auth-panel input { background: rgba(255,255,255,0.04); color: var(--text-main); border-color: rgba(139,58,58,0.25); }

.auth-error {
    display: none;
    font-size: 0.75rem;
    color: #c9444a;
    margin-bottom: 10px;
    line-height: 1.4;
}
.auth-panel button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--text-on-dark);
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s;
    margin-top: 4px;
}
.auth-panel button[type="submit"]:hover { background: var(--primary-light); }
body.wartime .auth-panel button[type="submit"] { background: #5a2a2a; }
body.wartime .auth-panel button[type="submit"]:hover { background: #7a3a3a; }

.auth-hint {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}

/* ============================================
   적성검사 UI (회원가입 팝업 내)
   ============================================ */

/* 모달 넓히기 — 적성검사 활성 시 */
.login-card.apt-mode {
    max-width: 420px;
    transition: max-width 0.3s;
}

/* 진행 도트 */
.apt-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.apt-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s, box-shadow 0.3s;
}
.apt-dot.active { background: var(--accent); box-shadow: 0 0 6px rgba(201,168,76,0.4); }
.apt-dot.done { background: var(--accent); opacity: 0.5; }
.apt-dot.rika-mode.active { background: var(--rika); box-shadow: 0 0 6px rgba(58,111,181,0.4); }
.apt-dot.bunka-mode.active { background: var(--bunka); box-shadow: 0 0 6px rgba(181,58,90,0.4); }
body.wartime .apt-dot { background: rgba(139,58,58,0.2); }
body.wartime .apt-dot.active { background: #8b3a3a; box-shadow: 0 0 6px rgba(139,58,58,0.4); }

/* 스텝 슬라이드 */
.apt-step { display: none; animation: aptFadeIn 0.3s ease; }
.apt-step.active { display: block; }
@keyframes aptFadeIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

/* 질문 영역 */
.apt-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}
body.wartime .apt-title { color: var(--accent); }
.apt-counter {
    font-size: 0.72rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 18px;
}

.apt-q-card {
    margin-bottom: 16px;
}
.apt-q-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.6;
    text-align: center;
}
.apt-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.apt-option {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.5;
}
.apt-option:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.apt-option.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
    font-weight: 600;
}
.apt-option.rika-hover:hover,
.apt-option.rika-hover.selected {
    border-color: var(--rika);
    background: var(--rika-bg);
}
.apt-option.bunka-hover:hover,
.apt-option.bunka-hover.selected {
    border-color: var(--bunka);
    background: var(--bunka-bg);
}
body.wartime .apt-option {
    background: rgba(255,255,255,0.03);
    border-color: rgba(139,58,58,0.2);
}
body.wartime .apt-option:hover {
    border-color: rgba(139,58,58,0.5);
    background: rgba(139,58,58,0.1);
}

/* 타이브레이커 */
.apt-tiebreaker {
    text-align: center;
    padding: 10px 0;
}
.apt-tiebreaker .apt-q-text {
    font-size: 0.84rem;
    font-style: italic;
    color: var(--text-sub);
}

/* 결과 카드 */
.apt-result-card {
    text-align: center;
    padding: 10px 0;
}
.apt-result-faction {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.apt-result-faction.rika { color: var(--rika); }
.apt-result-faction.bunka { color: var(--bunka); }
body.wartime .apt-result-faction.rika { color: #7090c0; }
body.wartime .apt-result-faction.bunka { color: #c87070; }

.apt-result-label {
    font-size: 0.76rem;
    color: var(--text-light);
    margin-bottom: 2px;
}
.apt-result-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
body.wartime .apt-result-name { color: var(--text-main); }

.apt-result-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}
body.wartime .apt-result-divider { border-top-color: rgba(139,58,58,0.2); }

.apt-preset-label {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-bottom: 4px;
}
.apt-preset-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}
.apt-preset-desc {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 8px;
}
.apt-preset-detail {
    font-size: 0.73rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
    background: var(--bg-main);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}
body.wartime .apt-preset-detail { background: rgba(255,255,255,0.03); }

.apt-result-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* 결과 카드 계열별 테두리 */
.apt-result-card.rika-theme { }
.apt-result-card.bunka-theme { }
.login-card.rika-accent { border-top-color: var(--rika); }
.login-card.bunka-accent { border-top-color: var(--bunka); }

/* 버튼들 */
.apt-btn-primary {
    display: inline-block;
    width: 100%;
    padding: 11px;
    background: var(--primary);
    color: var(--text-on-dark);
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s;
    margin-top: 6px;
}
.apt-btn-primary:hover { background: var(--primary-light); }
body.wartime .apt-btn-primary { background: #5a2a2a; }
body.wartime .apt-btn-primary:hover { background: #7a3a3a; }

.apt-btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 9px;
    background: none;
    color: var(--text-sub);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}
.apt-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
body.wartime .apt-btn-secondary { border-color: rgba(139,58,58,0.3); color: rgba(196,185,154,0.5); }
body.wartime .apt-btn-secondary:hover { border-color: rgba(139,58,58,0.6); color: rgba(196,185,154,0.8); }

/* 가입 완료 */
.apt-complete {
    text-align: center;
    padding: 20px 0 10px;
}
.apt-complete-icon {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 12px;
}
body.wartime .apt-complete-icon { color: #8b3a3a; }
.apt-complete-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
body.wartime .apt-complete-title { color: var(--text-main); }
.apt-complete-sub {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============================================
   댓글 섹션 스타일
   ============================================ */
.comment-section-dynamic {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.comment-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 18px;
}
body.wartime .comment-section-title { color: var(--text-main); }

/* 댓글 작성 영역 */
.comment-write {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.comment-write textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    outline: none;
    transition: border-color 0.2s;
}
.comment-write textarea:focus { border-color: var(--accent); }
body.wartime .comment-write textarea { background: rgba(255,255,255,0.03); color: var(--text-main); border-color: rgba(139,58,58,0.2); }
.comment-submit-btn {
    padding: 8px 14px;
    background: var(--primary);
    color: var(--text-on-dark);
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
    align-self: flex-end;
}
.comment-submit-btn:hover { background: var(--primary-light); }
body.wartime .comment-submit-btn { background: #5a2a2a; }
body.wartime .comment-submit-btn:hover { background: #7a3a3a; }

/* 로그인 유도 */
.comment-login-prompt {
    text-align: center;
    padding: 16px;
    background: var(--bg-main);
    border: 1px dashed var(--border);
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: var(--text-sub);
}
body.wartime .comment-login-prompt { background: rgba(255,255,255,0.02); border-color: rgba(139,58,58,0.2); }
.comment-login-prompt button {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
}
.comment-login-prompt button:hover { background: var(--accent-glow); }

/* 댓글 목록 */
.comment-list { }
.comment-item {
    display: flex;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
body.wartime .comment-item { border-bottom-color: rgba(139,58,58,0.12); }

.comment-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.comment-nick {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}
body.wartime .comment-nick { color: var(--text-main); }
.comment-date {
    font-size: 0.72rem;
    color: var(--text-light);
}
.comment-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.6;
    word-break: break-word;
}
.comment-empty {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
}

/* 캘린더 페이지 — 로그인 필요 오버레이 */
.login-required-wrap {
    position: relative;
}
.login-required-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(244,242,237,0.85);
    backdrop-filter: blur(6px);
    z-index: 10;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border-radius: var(--radius);
    text-align: center;
}
body.wartime .login-required-overlay { background: rgba(26,22,16,0.88); }
.login-required-overlay.show { display: flex; }
.login-required-overlay p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
}
.login-required-overlay button {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--text-on-dark);
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.login-required-overlay button:hover { background: var(--primary-light); }
body.wartime .login-required-overlay button { background: #5a2a2a; }
body.wartime .login-required-overlay button:hover { background: #7a3a3a; }

/* ============================================
   반응형
   ============================================ */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-sidebar { grid-template-columns: 1fr; }
    /* 모바일: nav-bar 숨기고 햄버거 사용 */
    .nav-bar { display: none; }
    .hamburger-btn { display: flex; }
    .hero-banner { min-height: 200px; }
    .header-date { display: none; }
    .main-content { padding: 20px 16px 60px; }
}
@media (max-width: 480px) {
    .logo-text h1 { font-size: 0.9rem; letter-spacing: 1px; }
}

/* ============================================
   게시판 — 커뮤니티 스타일
   ============================================ */

/* 게시판 탭 (목록 페이지) */
.board-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.board-tab {
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-sub);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
    text-decoration: none;
    display: inline-block;
}
.board-tab:hover { color: var(--primary); background: var(--accent-glow); }
body.wartime .board-tab:hover { color: var(--text-main); }
.board-tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
    font-weight: 700;
}
body.wartime .board-tab.active { color: var(--text-main); border-bottom-color: #8b3a3a; }

/* 게시판 리스트 테이블 */
.board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.board-table thead th {
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: left;
    border-bottom: 2px solid var(--border);
    letter-spacing: 0.5px;
}
.board-table tbody tr {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}
.board-table tbody tr:hover { background: var(--accent-glow); }
.board-table td { padding: 12px 14px; color: var(--text-main); }
.board-table .col-no { width: 50px; color: var(--text-light); font-size: 0.78rem; text-align: center; }
.board-table .col-title { font-weight: 500; }
.board-table .col-title a { color: inherit; transition: color 0.2s; }
.board-table .col-title a:hover { color: var(--primary-light); }
body.wartime .board-table .col-title a:hover { color: var(--accent); }
.board-table .col-author { width: 110px; font-size: 0.8rem; color: var(--text-sub); }
.board-table .col-date { width: 90px; font-size: 0.78rem; color: var(--text-light); text-align: right; }
.board-table .col-comments { width: 50px; font-size: 0.75rem; color: var(--accent); text-align: center; }
.board-table .pinned { background: var(--accent-glow); }
.board-table .pinned .col-title::before {
    content: '[공지]';
    color: var(--accent);
    font-weight: 700;
    font-size: 0.72rem;
    margin-right: 6px;
}
body.wartime .board-table .pinned .col-title::before { content: '[긴급]'; color: #8b3a3a; }

/* 게시판 패널 (탭 전환) */
.board-panel { display: none; }
.board-panel.active { display: block; }

/* 게시글 상세 — 커뮤니티 레이아웃 */
.post-container {
    max-width: 780px;
    margin: 0 auto;
}

/* 게시글 상단 메타 */
.post-head {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 24px 28px 20px;
    border-bottom: none;
}
.post-board-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.post-board-tag.notice { background: #fee2e2; color: #dc2626; }
.post-board-tag.free { background: #e0e7ff; color: #4338ca; }
.post-board-tag.lost { background: #fef3c7; color: #d97706; }
body.wartime .post-board-tag.notice { background: #5a1a1a; color: #e8c4c4; }
body.wartime .post-board-tag.free { background: #2a2a1a; color: #c4b99a; }
body.wartime .post-board-tag.lost { background: #3a2a1a; color: #c4a97a; }

.post-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.5;
}
body.wartime .post-head h2 { color: var(--text-main); }

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-light);
    flex-wrap: wrap;
}
.post-meta-bar .author {
    font-weight: 600;
    color: var(--text-sub);
}
.post-meta-bar .sep {
    width: 1px;
    height: 12px;
    background: var(--border);
}

/* 게시글 본문 */
.post-body-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    padding: 28px;
    min-height: 200px;
}
.post-body-wrap .post-content {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-main);
}
.post-body-wrap .post-content p { margin-bottom: 12px; }

/* 댓글 섹션 */
.comment-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 20px 28px 24px;
}
.comment-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
body.wartime .comment-header { color: var(--text-main); }

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
body.wartime .comment-item { border-bottom-color: rgba(255,255,255,0.04); }
.comment-item:last-child { border-bottom: none; }

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-sub);
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
}
.comment-author {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 4px;
}
.comment-author .comment-date {
    font-weight: 400;
    color: var(--text-light);
    margin-left: 8px;
}
.comment-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* 하단 네비 (목록/이전/다음) */
.post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
}
.post-nav a {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--text-sub);
    transition: all 0.2s;
}
.post-nav a:hover {
    color: var(--primary);
    border-color: var(--accent);
    background: var(--accent-glow);
}
body.wartime .post-nav a:hover { color: var(--text-main); }
.post-nav .btn-list {
    background: var(--primary);
    color: var(--text-on-dark);
    border-color: var(--primary);
}
.post-nav .btn-list:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}

/* 게시판 인포 바 */
.board-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: var(--text-light);
}
.board-count { font-weight: 600; color: var(--text-sub); }

@media (max-width: 768px) {
    .board-table .col-no { display: none; }
    .board-table .col-author { width: 70px; }
    .board-table .col-comments { display: none; }
    .post-head { padding: 18px 16px 14px; }
    .post-body-wrap { padding: 18px 16px; }
    .comment-section { padding: 14px 16px; }
    .post-nav { flex-wrap: wrap; gap: 8px; }
}
