:root {
    --site-max-width: 1000px;
    --bg-color: #fafafa;
    --font-main: 'Noto Sans KR', sans-serif;
    --font-accent: 'Noto Serif KR', serif;
    --text-dark: #111111;
    --text-muted: #666666;
    --border-light: #e5e5e5;
}

html {
    height: 100%;
}

body {
    margin: 0; padding: 0;
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 24px;
    word-break: keep-all;
    box-sizing: border-box;
    flex: 1 0 auto;
}

body > .detail-container {
    width: 100%;
    box-sizing: border-box;
    flex: 1 0 auto;
}

.site-nav {
    border-bottom: 1px solid var(--border-light);
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
.nav-logo {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    color: var(--text-dark);
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-dark);
}

/* 메인 푸터 영역 */
.site-footer {
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    padding: 30px 0;
    background-color: #ffffff;
    flex-shrink: 0;
}
.site-footer .footer-social {
    margin-left: 20px;
}

/* --- 메인 전용 스타일 --- */
.home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #1c1c1c;
}
.home-bg-slider,
.home-bg-slide {
    position: absolute;
    inset: 0;
}
.home-bg-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.4s ease-in-out;
    will-change: opacity, transform;
}
.home-bg-slide.is-active {
    opacity: 1;
    animation: home-bg-kenburns 5000ms ease-out forwards;
}
.home-bg-slide.is-leaving {
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}
@keyframes home-bg-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.home-bg-feather {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 42%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0.4) 100%);
}
body.home-page {
    background-color: #1c1c1c;
}
body.home-page .home-content {
    position: relative;
    z-index: 1;
}
body.home-page .site-footer {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.96);
}
body.home-page .hero-phrase,
body.home-page .hero-sub,
body.home-page .ideology,
body.home-page .ideology-sub {
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.75),
        0 4px 18px rgba(0, 0, 0, 0.55),
        0 12px 42px rgba(0, 0, 0, 0.5);
}
body.home-page .hero-phrase {
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 6px 24px rgba(0, 0, 0, 0.6),
        0 16px 48px rgba(0, 0, 0, 0.55);
}
body.home-page .hero-sub,
body.home-page .ideology-sub {
    color: rgba(255, 255, 255, 0.92);
}
body.home-page .main-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
body.home-page .main-card:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.hero-section { padding: 100px 0 40px 0; text-align: center; }
.hero-phrase { font-family: var(--font-accent); font-size: 36px; font-weight: 700; line-height: 1.5; margin-bottom: 24px; color: var(--text-dark); }
.hero-sub { font-size: 16px; color: var(--text-muted); font-weight: 300; line-height: 1.8; max-width: 42em; margin-left: auto; margin-right: auto; text-wrap: balance; text-wrap: pretty;}        
.ideology { font-family: var(--font-accent); font-size: 20px; font-weight: 400; line-height: 1.8; color: var(--text-dark); text-wrap: pretty; }
.ideology-sub { font-family: var(--font-accent); font-size: 13px; font-weight: 200; line-height: 1.8; color: var(--text-dark); }
.main-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin: 20px 0 120px 0; }
.main-card { background: #ffffff; border: 1px solid var(--border-light); padding: 40px; text-align: left; text-decoration: none; color: var(--text-dark); transition: transform 0.3s, box-shadow 0.3s; }
.main-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05); }
.card-tag { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.card-title { font-family: var(--font-accent); font-size: 24px; margin: 0 0 12px 0; }
.card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* --- 아카이브 안내 팝업 --- */
body.archive-notice-open {
    overflow: hidden;
}
.archive-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.archive-notice-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.archive-notice-modal[hidden] {
    display: none;
}
.archive-notice-modal.is-open[hidden] {
    display: flex;
}
.archive-notice-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 18, 24, 0.55);
    cursor: pointer;
}
.archive-notice-box {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    padding: 28px 28px 24px;
    box-sizing: border-box;
}
.archive-notice-title {
    margin: 0 0 14px;
    font-family: var(--font-accent);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
}
.archive-notice-body {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 24px;
}
.archive-notice-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.archive-notice-btn {
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.archive-notice-btn:hover {
    background: #f8f8f8;
    color: var(--text-dark);
}
.archive-notice-btn--primary {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: #fff;
}
.archive-notice-btn--primary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* --- 서브페이지 스타일 --- */
.page-header { text-align: center; padding: 50px 0 30px 0; }
.page-category { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.15em; margin-bottom: 12px; text-transform: uppercase; }
.page-title { font-family: var(--font-accent); font-size: 36px; font-weight: 700; margin: 0 0 16px 0; }
.page-subtitle { font-size: 15px; color: var(--text-muted); font-weight: 300; line-height: 1.6; }
.archive-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }
.filter-btn { background: none; border: none; padding: 8px 16px; font-family: var(--font-main); font-size: 14px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.filter-btn:hover, .filter-btn.active { color: var(--text-dark); font-weight: 700; }
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}
.archive-item { background: #ffffff; border: 1px solid var(--border-light); overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.archive-item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.archive-img-wrapper { position: relative; width: 100%; padding-top: 66.66%; background-color: #eee; overflow: hidden; border-bottom: 1px solid var(--border-light); }
.archive-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.archive-item:hover .archive-img-wrapper img { transform: scale(1.03); }
.archive-info { padding: 18px 24px; }
.item-meta {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    column-gap: 0.35em;
    align-items: start;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.45;
}
.item-meta-year,
.item-meta-sep {
    white-space: nowrap;
}
.item-meta-author {
    min-width: 0;
    word-break: keep-all;
}
.item-title { font-family: var(--font-accent); font-size: 18px; margin: 0 0 8px 0; color: var(--text-dark); }
.detail-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); z-index: 2000; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.detail-modal-box { background-color: #ffffff; width: 100%; max-width: 900px; display: flex; flex-direction: column; max-height: 90vh; overflow-y: auto; }
@media(min-width: 768px) { .detail-modal-box { flex-direction: row; } }
.modal-image-pane { flex: 1.3; background-color: #111; display: flex; align-items: center; justify-content: center; }
.modal-image-pane img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.modal-info-pane { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--border-light); background: #ffffff; }
.modal-header-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0.05em; }
.modal-main-title { font-family: var(--font-accent); font-size: 26px; margin: 0 0 20px 0; line-height: 1.4; }
.modal-body-desc { font-size: 14px; color: #444444; line-height: 1.8; margin: 0 0 30px 0; white-space: pre-line; }
.modal-close-btn { background-color: var(--text-dark); color: #ffffff; border: none; padding: 12px; font-size: 13px; cursor: pointer; text-align: center; font-weight: 500; transition: background 0.2s; }
.modal-close-btn:hover { background-color: #333333; }

/* --- 게시판 --- */
.board-panel { margin-bottom: 100px; }
.board-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}
.board-write-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}
.board-write-link:hover { background: #f8f8f8; border-color: #ccc; }
.board-write-icon { width: 16px; height: 16px; flex-shrink: 0; }
.board-table-wrap {
    background: #fff;
    border: 1px solid var(--border-light);
    overflow-x: hidden;
    max-width: 100%;
}
.board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.board-table th {
    background: #f8f8f8;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    white-space: nowrap;
}
.board-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.board-table tbody tr { cursor: pointer; transition: background 0.15s; }
.board-table tbody tr:hover { background: #fafafa; }
.board-col-title { min-width: 0; }
.board-col-date { width: 100px; text-align: center; white-space: nowrap; color: var(--text-muted); font-size: 13px; }
.board-col-author { width: 88px; text-align: center; white-space: nowrap; }
.board-table th.board-col-author,
.board-table th.board-col-date { text-align: center; }
.board-list-item { min-width: 0; }
.board-list-top {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.board-list-author-sub,
.board-list-date-inline {
    display: none;
}
.board-list-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.board-list-meta--sub {
    display: none;
}
.board-list-author-name {
    min-width: 0;
}
.board-title-text {
    min-width: 0;
}
.board-badge-notice {
    font-size: 10px;
    font-weight: 700;
    color: #8b3a3a;
    border: 1px solid #d4a5a5;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 6px;
    flex-shrink: 0;
}
.board-title-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    font-weight: 500;
    color: var(--text-dark);
}
.board-comment-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}
.board-comment-icon { display: block; }
.board-attach-badge {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    flex-shrink: 0;
}
.board-attach-icon { display: block; }
.board-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.board-view-icon { display: block; }
.board-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.board-pagination {
    margin-top: 28px;
    padding-bottom: 8px;
}
.board-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.board-page-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-main);
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.board-page-btn:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: #ccc;
}
.board-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.board-page-nums {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.board-page-num {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-main);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.board-page-num:hover {
    background: #f8f8f8;
    color: var(--text-dark);
}
.board-page-num--active {
    background: #8b3a3a;
    border-color: #8b3a3a;
    color: #fff;
    font-weight: 600;
    cursor: default;
}
.board-page-num--active:hover {
    background: #8b3a3a;
    color: #fff;
}
.board-page-ellipsis {
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 13px;
    user-select: none;
}
.board-page-info {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.board-form-page { margin-bottom: 100px; }
.board-form-title {
    font-family: var(--font-accent);
    font-size: 28px;
    font-weight: 700;
    text-align: left;
    margin: 0 0 28px 0;
}
.board-form-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}
.board-field { display: flex; flex-direction: column; gap: 6px; }
.board-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.board-input-name {
    width: 7.5em;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.board-input-pin {
    width: 5.5em;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-align: center;
    box-sizing: border-box;
}
.board-input-title {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.board-editor-area {
    width: 100%;
    min-height: 280px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14.4px;
    line-height: 1.75;
    font-family: var(--font-main);
    resize: vertical;
    box-sizing: border-box;
}
.board-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.board-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}
.board-btn-cancel { background: #e2e8f0; color: #475569; }
.board-btn-cancel:hover { background: #cbd5e1; }
.board-btn-submit { background: #8b3a3a; color: #fff; }
.board-btn-submit:hover { background: #723030; }
.board-notice-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #5a6275);
    padding-bottom: 10px;
}
.board-notice-check input { width: 16px; height: 16px; }

.board-attach-section {
    margin-top: 16px;
}
.board-admin-form-actions {
    margin-top: 24px;
}
.board-attach-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.board-attach-hint {
    font-size: 12px;
    color: var(--text-muted);
}
.board-attach-list {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}
.board-attach-list.has-items {
    margin-bottom: 12px;
}
.board-attach-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
}
.board-attach-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f1f5f9;
}
.board-attach-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.board-attach-name {
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.board-attach-size {
    font-size: 12px;
    color: var(--text-muted);
}
.board-attach-remove {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.board-attach-remove:hover { background: #fecaca; }
.board-attach-add-btn {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}
.board-attach-add-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.board-attach-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.board-attach-figure {
    margin: 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}
.board-attach-figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

@media (min-width: 769px) {
    .board-attach-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .board-attach-figure--portrait {
        justify-self: center;
        width: 100%;
    }
    .board-attach-gallery:has(.board-attach-figure--portrait:only-child) .board-attach-figure--portrait {
        grid-column: 1 / -1;
        width: min(100%, 560px);
        margin-inline: auto;
    }
}

.board-detail-page { margin-bottom: 0; }
.board-detail-back-row {
    display: flex;
    align-items: center;
    min-height: 72px;
    margin: 0;
    padding: 0;
}
.board-detail-page .board-back-link {
    margin-bottom: 0;
}

/* PC: 글 한 장 패널 (모바일은 박스 없음) */
.board-detail-panel {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 28px 28px 32px;
    box-sizing: border-box;
}
.board-detail-panel--notice {
    border-left: 3px solid #8b3a3a;
}
.board-detail-head {
    margin: 0;
    padding: 0;
    border: none;
}
.board-detail-title {
    font-family: var(--font-accent);
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    color: var(--text-dark);
}
.board-detail-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.board-detail-meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}
.board-detail-meta-side {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}
.board-view-count {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.board-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.board-detail-actions .board-delete-trigger,
.board-detail-actions .board-edit-trigger {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: underline;
    cursor: pointer;
}
.board-detail-actions .board-delete-trigger:hover,
.board-detail-actions .board-edit-trigger:hover {
    color: #64748b;
}
.board-action-wrap { position: relative; }
.board-delete-trigger,
.board-edit-trigger {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: underline;
    cursor: pointer;
}
.board-delete-trigger:hover,
.board-edit-trigger:hover { color: #64748b; }
.board-detail-body {
    font-size: 14.4px;
    line-height: 1.85;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 24px 0 0;
    max-width: none;
}
.board-pin-popover {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    width: 168px;
    padding: 22px 12px 12px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
}
.board-pin-popover.open { display: block; }
.board-pin-popover p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.board-pin-popover-close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
}
.board-pin-popover-close:hover { color: #475569; }
.board-pin-popover-input {
    width: 5.5em;
    padding: 8px 6px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 0.25em;
    text-align: center;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.board-pin-popover-submit {
    width: 50%;
    margin: 0 auto;
    display: block;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: #8b3a3a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}
.board-pin-popover-submit:hover { background: #723030; }
.board-comment-head .board-action-wrap { flex-shrink: 0; }

.board-detail-panel .board-comments-section {
    border-top: 1px solid var(--border-light);
    margin-top: 28px;
    padding-top: 24px;
}
.board-comments-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
}
.board-comments-count {
    font-weight: 600;
    color: #8b3a3a;
}
.board-comments-empty {
    margin: 0;
    padding: 8px 0 4px;
    font-size: 13px;
    color: var(--text-muted);
}
.board-comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.board-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.board-comment-author { font-weight: 600; font-size: 14px; }
.board-comment-date { font-size: 12px; color: var(--text-muted); }
.board-comment-body { font-size: 14px; line-height: 1.7; color: #444; white-space: pre-wrap; }
.board-detail-panel .board-comment-form {
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}
.board-comment-form {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
}
.board-comment-form .board-form-meta {
    gap: 8px;
    margin-bottom: 10px;
}
.board-comment-form .board-field {
    gap: 3px;
}
.board-comment-form .board-editor-area {
    min-height: 100px;
    margin-bottom: 0;
}
.board-comment-form .board-form-actions {
    margin-top: 10px;
}
.board-comment-form .board-btn {
    padding: 10px 22px;
}

.board-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    margin-bottom: 0;
    border-top: 1px solid var(--border-light);
}
.board-post-nav-item {
    min-width: 0;
}
.board-post-nav-item a,
.board-post-nav-item .board-post-nav-empty {
    display: block;
    padding: 0;
    border: none;
    border-radius: 0;
    text-decoration: none;
    background: none;
    box-sizing: border-box;
}
.board-post-nav-item a:hover .board-post-nav-title {
    color: #8b3a3a;
    text-decoration: underline;
}
.board-post-nav-prev,
.board-post-nav-prev a,
.board-post-nav-prev .board-post-nav-empty {
    text-align: left;
}
.board-post-nav-next,
.board-post-nav-next a,
.board-post-nav-next .board-post-nav-empty,
.board-post-nav-next .board-post-nav-label,
.board-post-nav-next .board-post-nav-title {
    text-align: right;
}
.board-post-nav-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.board-post-nav-title {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}
.board-post-nav-empty {
    color: #bbb;
    font-size: 13px;
    line-height: 1.5;
    cursor: default;
}

.board-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
}
.board-back-link:hover { color: var(--text-dark); }

 /* ==========================================
  스마트폰 및 태블릿 (화면 너비 768px 이하) 대응
 ========================================== */
@media (max-width: 768px) {
    /* 1. 메인 히어로 섹션 글자 크기 축소 (폰에서 너무 크면 깨지므로) */
    .hero-phrase {
        font-size: 32px; /* 기존 42px에서 스마트폰에 맞게 축소 */
        line-height: 1.4;
    }
    .hero-sub {
        font-size: 13px;
        line-height: 1.6;
    }
    .ideology {
        font-size: 15px;
        line-height: 1.7;
    }

    /* 2. 메인 바로가기 그리드를 2열에서 '1열(세로 배치)'로 변경 */
    .main-grid {
        grid-template-columns: 1fr; /* 세로로 나란히 쌓이게 합니다 */
        gap: 20px; /* 여백 좁히기 */
        margin-bottom: 60px;
    }
    .main-card {
        padding: 30px 24px; /* 카드 내부 여백도 모바일에 맞게 조정 */
    }

    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    /* 3. 상단 네비게이션 바 정렬 */
    .nav-inner {
        height: 60px; /* 높이를 살짝 줄임 */
    }
    .nav-logo img {
        height: 24px !important; /* 로고 이미지 크기도 모바일에 맞게 축소 */
    }
    .nav-menu {
        gap: 16px; /* 메뉴 간격을 좁혀서 화면 밖으로 나가지 않게 방지 */
    }

    /* 4. 연혁 페이지 모바일 (세부 스타일은 history.html 참조) */
    .history-timeline {
        padding-left: 0;
    }

    /* 5. 공통 페이지 헤더 축소 (아카이브, 연혁) */
    .page-header {
        padding: 50px 0 30px 0;
    }
    .page-title {
        font-size: 28px;
    }
    .board-table-wrap {
        overflow-x: hidden;
        border: none;
        background: transparent;
    }
    .board-table {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .board-table tr:not(.board-list-row) {
        display: block;
        border: none;
        background: transparent;
        margin-bottom: 0;
    }
    .board-table tr:not(.board-list-row) td {
        padding: 48px 16px;
    }
    .board-table-head { display: none; }
    .board-table thead { display: none; }
    .board-table tbody { display: block; width: 100%; }
    .board-table tr.board-list-row {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: #fff;
        border: 1px solid var(--border-light);
        border-radius: 10px;
        margin-bottom: 10px;
        overflow: hidden;
    }
    .board-table tr.board-list-row:last-child { margin-bottom: 0; }
    .board-table tr.board-row-notice {
        border-left: 3px solid #8b3a3a;
    }
    .board-table th,
    .board-table td {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-bottom: none;
        padding: 14px 14px 14px 16px;
    }
    .board-col-author,
    .board-col-date { display: none !important; }
    .board-col-title { font-size: 15px; }
    .board-list-top {
        display: block;
        min-width: 0;
    }
    .board-list-date-inline {
        display: block;
        flex-shrink: 0;
        font-size: 12px;
        color: var(--text-muted);
        white-space: nowrap;
    }
    .board-list-author-sub {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.45;
        color: var(--text-muted);
    }
    .board-list-author-name {
        flex: 0 1 auto;
        max-width: 45%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .board-list-meta--inline {
        display: none !important;
    }
    .board-list-meta--sub {
        display: inline-flex;
        margin-left: auto;
    }
    .board-list-item {
        position: relative;
        padding-right: 14px;
    }
    .board-list-item::after {
        content: '›';
        position: absolute;
        right: 0;
        top: 42%;
        transform: translateY(-50%);
        font-size: 20px;
        line-height: 1;
        color: #c8c8c8;
        font-weight: 300;
        pointer-events: none;
    }
    .board-title-cell {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    .board-title-text {
        font-size: 15px;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .board-comment-badge {
        flex-shrink: 0;
        font-size: 12px;
    }
    .board-view-badge {
        flex-shrink: 0;
        font-size: 12px;
    }
    .board-badge-notice {
        font-size: 11px;
    }
    .board-detail-title { font-size: 22px; }
    .board-detail-back-row { min-height: 52px; }
    .board-detail-panel {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
    }
    .board-detail-panel--notice {
        border-left: none;
    }
    .board-detail-body {
        max-width: none;
    }
    .board-post-nav {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .board-post-nav-next,
    .board-post-nav-next a,
    .board-post-nav-next .board-post-nav-empty,
    .board-post-nav-next .board-post-nav-label,
    .board-post-nav-next .board-post-nav-title {
        text-align: right;
    }
    .content {
    /* 1. 단어가 중간에 끊기더라도 줄바꿈을 강제함 */
    word-break: keep-all;
    
    /* 3. 모바일에서 너무 꽉 차지 않게 여백 확보 */
    padding: 0 50px;
    max-width: 100%;
    }
}

@media (max-width: 560px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}
