/* ===================================
   구룡쟁패 - 서브페이지 스타일 (sub-page.css)
   메인 페이지 디자인 시스템 기반 라이트 테마
   =================================== */

/* ===================================
   Page Hero Banner
   =================================== */
.page-hero {
    margin-top: calc(var(--site-top-offset) + var(--header-height));
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #1a1510 0%, #0d0d0d 100%);
    overflow: hidden;
}

/* 히어로 배경: 서브 슬라이드 배너 (page-hero-media) */
.page-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.sub-banner-slider--hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.sub-banner-slider--hero .subBannerSwiper {
    height: 100%;
}

/* 페이드 전환: 슬라이드 겹침 시 높이·클릭 영역 */
.sub-banner-slider .swiper-fade .swiper-slide {
    height: 100%;
}

.sub-banner-slider .swiper-fade .swiper-slide a {
    display: block;
    height: 100%;
}

.sub-banner-slider .swiper-fade .swiper-slide img {
    height: 100%;
}

.sub-banner-slider--hero-empty {
    background: url('/products/nd/images/bg_sub.png') center -20px / cover no-repeat;
}

.sub-banner-slider--hero-empty::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* 히어로: 닷 + 전체 보기 — 본문 .container와 동일 가로폭·패딩 */
.page-hero-media .sub-hero-banner-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    max-width: var(--content-width);
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 0 20px 12px;
    box-sizing: border-box;
    pointer-events: none;
}

.page-hero-media .sub-hero-banner-nav .swiper-pagination,
.page-hero-media .sub-hero-banner-nav .sub-hero-banner-all {
    pointer-events: auto;
}

.page-hero-media .sub-hero-banner-nav .swiper-pagination {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    text-align: right;
}

.page-hero-media .sub-hero-banner-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 0;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.page-hero-media .sub-hero-banner-all:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Sub Navigation */
.sub-nav {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-nav-list {
    display: flex;
    gap: 0;
}

.sub-nav-list li a {
    display: block;
    padding: 16px 30px;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.sub-nav-list li a:hover {
    color: #f1f1f1;
    background: rgba(255, 255, 255, 0.04);
}

.sub-nav-list li.active a {
    color: #DFCB96;
    border-bottom-color: #DFCB96;
}

/* ===================================
   Sub Container & Layout
   =================================== */
.sub-container {
    background-color: #fff;
    padding: 50px 0 110px;
    min-height: calc(100vh - 400px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #999;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1a1a1a;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #1a1a1a;
    font-weight: 500;
}

.sub-layout {
    display: flex;
    gap: 40px;
}

/* ===================================
   Notice Highlight Section
   =================================== */
.notice-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.highlight-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.3s;
}

.highlight-item:hover {
    border-color: #DFCB96;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.highlight-item.main {
    grid-column: 1;
    grid-row: 1 / 3;
}

.highlight-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.highlight-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.highlight-item.main .highlight-thumb {
    aspect-ratio: 16/10;
}

.highlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.highlight-item:hover .highlight-thumb img {
    transform: scale(1.04);
}

.highlight-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    background: #DFCB96;
}

.highlight-badge.event {
    background: #27ae60;
    color: #fff;
}

.highlight-badge.update {
    background: #3498db;
    color: #fff;
}

.highlight-info {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.highlight-item.main .highlight-info {
    padding: 22px 24px;
}

.highlight-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight-item.main .highlight-title {
    font-size: 17px;
    -webkit-line-clamp: 2;
}

.highlight-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight-date {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

/* ===================================
   히어로 하단 — 서브 탭 네비 스트립 (텍스트 + 하단 강조선, 박스/필 없음)
   =================================== */
.sub-page-nav-strip {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.sub-page-nav-strip .notice-list-header {
    margin: 0;
    min-height: 0;
    padding: 0;
    justify-content: flex-start;
}

.sub-page-nav-strip .notice-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
}

.sub-page-nav-strip .notice-tab-divider {
    display: none;
}

.sub-page-nav-strip .notice-tab-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: 28px;
    row-gap: 0;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
}

/* 캐시샵 탭: 기본 대비 간격 +10px */
.sub-page-nav-strip .notice-tab-links.notice-tab-links--shop {
    column-gap: 38px;
}

/* 좌우 패딩 없음 — 탭 간 간격은 column-gap만 사용 (첫 탭·그 외 동일하게 정렬) */
.sub-page-nav-strip .notice-tab-link {
    margin: 0;
    padding: 26px 0 22px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #888;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.sub-page-nav-strip .notice-tab-link + .notice-tab-link::before {
    display: none;
}

.sub-page-nav-strip .notice-tab-link:hover {
    color: #333;
    background: none;
}

.sub-page-nav-strip .notice-tab-link.active,
.sub-page-nav-strip .notice-tab-link[aria-current="page"] {
    color: #1a1a1a;
    font-weight: 500;
    border-bottom-color: #1a1a1a;
    background: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .sub-page-nav-strip .notice-tabs {
        flex-wrap: nowrap;
        min-width: 0;
        width: 100%;
    }

    .sub-page-nav-strip .notice-tab-links {
        column-gap: 18px;
    }

    /* 캐시샵 탭: 가로 스크롤만, 스크롤바 숨김 */
    .sub-page-nav-strip .notice-tab-links.notice-tab-links--shop {
        column-gap: 28px;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sub-page-nav-strip .notice-tab-links.notice-tab-links--shop::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .sub-page-nav-strip .notice-tab-links.notice-tab-links--shop .notice-tab-link {
        flex-shrink: 0;
    }

    .sub-page-nav-strip .notice-tab-link {
        padding-top: 22px;
        padding-bottom: 18px;
    }
}

/* 본문 상단: 검색·액션 (스트립과 분리) */
.sub-content-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 0 0 20px;
    min-height: 0;
}

.sub-content-toolbar-title {
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    flex: 0 1 auto;
    min-width: 0;
}

.sub-content-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .sub-content-toolbar {
        align-items: flex-start;
    }

    .sub-content-toolbar-right {
        margin-left: 0;
        width: 100%;
    }

    .sub-content-toolbar-right .header-search {
        flex: 1 1 100%;
        min-width: 0;
        flex-wrap: wrap;
    }
}

/* ===================================
   Content Header - 메인 notice-list-header 동일 스타일
   =================================== */
.notice-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    min-height: 60px;
}

.notice-tabs {
    display: flex;
    align-items: center;
    gap: 0;
}

.notice-tab-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    line-height: 1;
    margin-right: 20px;
}

.notice-tab-divider {
    width: 1px;
    height: 16px;
    background: #ddd;
    flex-shrink: 0;
}

.notice-tab-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.notice-tab-link {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    padding: 0 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.notice-tab-link + .notice-tab-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 12px;
    background-color: #ddd;
}

.notice-tab-link.active {
    color: #c9a227;
    font-weight: 700;
}

.notice-tab-link:hover {
    color: #1a1a1a;
}

/* 헤더 내 검색 폼 */
.header-search {
    display: flex;
    gap: 6px;
    align-items: center;
}

.header-search--mobile-inline {
    display: none;
}

/* 셀렉트·검색 입력 바깥 높이 동일 (border-box 44px, 상·하 각 +2px) */
.header-search .search-select,
.header-search .header-search-input-wrap .search-input {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 14px;
    line-height: 42px;
}

.header-search .search-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-left: 14px;
    padding-right: 34px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1.2 5 4.8 9 1.2' fill='none' stroke='%23909090' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
}

.header-search .search-select:focus {
    border-color: #c4c4c4;
}

.header-search .header-search-input-wrap .search-input {
    padding-left: 16px;
    padding-right: 44px;
    border: 1px solid #e0e0e0;
}

.header-search .header-search-input-wrap .search-input:focus {
    border-color: #c4c4c4;
}

.content-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.content-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.content-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-btn {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
    line-height: 42px;
    color: #666;
    background: transparent;
    border: 1px solid #ddd;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.tab-btn:hover {
    border-color: #999;
    color: #1a1a1a;
}

.tab-btn.active {
    background: #a88a3a;
    border-color: #a88a3a;
    color: #fff;
    font-weight: 600;
}

.tab-btn.active:hover {
    background: #8c7230;
    border-color: #8c7230;
    color: #fff;
}

/* ===================================
   Board List - 리스트 스타일
   =================================== */
.board-list {
    margin-bottom: 24px;
    border-top: 1px solid #e0e0e0;
}

.board-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s;
}

.board-list-item:hover .board-list-title {
    color: #c9a227;
}

.board-list-item--notice {
    background: transparent;
}

.board-list-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 3px;
    min-width: 56px;
    box-sizing: border-box;
}

.board-list-badge--notice {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.board-list-badge--normal {
    color: #666;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.board-list-badge--update {
    color: #3498db;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.board-list-badge--event {
    color: #c9a227;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.board-list-badge--ongoing {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.board-list-badge--ended {
    color: #999;
    background: rgba(153, 153, 153, 0.08);
    border: 1px solid rgba(153, 153, 153, 0.3);
}

.board-list-title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #1a1a1a;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.board-list-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.board-list-author {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.board-list-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* 자유게시판: 작성자 · 날짜 · 추천 사이 간격 동일 */
.board-list--community .board-list-meta--split {
    gap: 16px;
}

.board-list--community .board-list-meta-lead {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.board-list-meta--split .board-list-vote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #e74c3c;
}

.board-list-vote-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: currentColor;
}

.board-list-vote-count {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    color: inherit;
}

.board-list-empty {
    padding: 40px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-count {
    font-size: 12px;
    color: #3498db;
    font-weight: 500;
}

.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    flex-shrink: 0;
    border-radius: 50%;
}

.hot-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    border-radius: 3px;
}

/* 캐시샵 등 — 넓은 테이블 가로 스크롤 (.shop-content overflow 대응) */
.shop-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.shop-table-scroll .history-table {
    min-width: 560px;
}

.shop-table-scroll--wide .history-table {
    min-width: 720px;
}

@media (max-width: 768px) {
    .shop-table-scroll .history-table {
        min-width: 520px;
    }

    .shop-table-scroll--wide .history-table {
        min-width: 640px;
    }
}

/* Badge (레거시, view 페이지 등에서 사용) */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}

.badge.notice {
    background: #c9a227;
    color: #fff;
}

.badge.urgent {
    background: #e74c3c;
    color: #fff;
}

.badge.update {
    background: #3498db;
    color: #fff;
}

.badge.event {
    background: #27ae60;
    color: #fff;
}

/* ===================================
   Pagination
   =================================== */
.pagination-wrap {
    margin-top: 32px;
    margin-bottom: 28px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    display: flex;
}

.page-num,
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: transparent;
    border: none;
    border-radius: 4px;
    transition: all 0.18s ease;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.page-num:hover,
.page-btn:hover {
    color: #c9a227;
    background: #fdf9ee;
}

.page-num.active {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}

.page-btn {
    color: #888;
    border: 1px solid #e2e2e2;
    background: #fff;
}

.page-btn:hover {
    border-color: #b8a060;
    background: #fdf9ee;
}

.page-item.disabled .page-btn {
    color: #d0d0d0;
    border-color: #ebebeb;
    background: #fafafa;
    cursor: default;
    pointer-events: none;
}

.page-ellipsis {
    display: flex;
    align-items: center;
}

.page-ellipsis span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 36px;
    font-size: 13px;
    color: #bbb;
    letter-spacing: 1px;
}

/* ===================================
   Event List (가로형 리스트)
   =================================== */
.event-list {
    border-top: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.event-item:hover .event-item-title {
    font-weight: 600;
}

/* 종료 이벤트: 썸네일 흐리게 */
.event-item--ended .event-item-thumb {
    opacity: 0.55;
    filter: grayscale(55%);
}

/* 썸네일: 메인 배너 비율 참고 (890:500, 홈 히어로와 동일) — 본 블록은 16/9 */
.event-item-thumb {
    flex-shrink: 0;
    width: 260px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0ebe0 0%, #e4dcc8 100%);
    transition: opacity 0.2s, filter 0.2s;
}

.event-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.event-item:hover .event-item-thumb img {
    transform: scale(1.03);
}

.event-item-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a227;
    opacity: 0.4;
}

/* 우측 정보 영역 */
.event-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    padding: 10px 0;
    gap: 6px;
}

.event-item-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 라벨 + 제목 한 줄 */
.event-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}


/* 제목 */
.event-item-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 서브타이틀 */
.event-item-subtitle {
    font-size: 16px;
    color: #777;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 기간 */
.event-item-period {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.event-item-period-label {
    font-size: 14px;
    font-weight: 500;
    color: #c9a227;
    white-space: nowrap;
}

.event-item-period-label::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 11px;
    background: #ddd;
    margin-left: 8px;
    vertical-align: middle;
}

.event-item-period-value {
    font-size: 14px;
    color: #888;
    margin: 6px 0;
}

.event-card-empty {
    padding: 60px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #f0f0f0;
}

/* ===================================
   Board Search
   =================================== */
.board-search {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.search-select {
    padding: 10px 14px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.search-select:focus {
    border-color: #1a1a1a;
}

.search-input {
    width: 320px;
    padding: 10px 16px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #ddd;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #1a1a1a;
}

.search-input::placeholder {
    color: #bbb;
}

/* 툴바 검색: 입력 안쪽 아이콘 제출 (텍스트 버튼 대체) */
.header-search .header-search-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
}

.header-search .header-search-input-wrap .search-input {
    width: 320px;
    max-width: 100%;
    box-sizing: border-box;
}

.header-search .search-btn-icon {
    position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: calc(100% - 2px);
    max-height: 42px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0 1px 1px 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.header-search .search-btn-icon:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.04);
}

.header-search .search-btn-icon:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 1px;
}

.search-btn {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #333;
}

/* ===================================
   Sub Banner Slider
   =================================== */
.sub-banner-slider {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.sub-content .sub-banner-slider .subBannerSwiper {
    height: 240px;
}

.sub-banner-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sub-banner-slider .swiper-pagination {
    text-align: right;
    padding-right: 16px;
    bottom: 10px;
}

.sub-banner-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.sub-banner-slider .swiper-pagination-bullet-active {
    background: #fff;
}

/* ===================================
   Sub Content
   =================================== */
.sub-content {
    flex: 1;
    min-width: 0;
}

/* ===================================
   Sidebar
   =================================== */
.sub-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sub Banner Card — 사이드 전용 기존 크기(가로 100% × 높이 100px), 화살표 없음 */
.sub-sidebar .sub-banner-card {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #A89D8A;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.sub-sidebar .sub-banner-card:hover {
    opacity: 0.96;
}

.sub-sidebar .sub-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.sub-sidebar .sub-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.sub-sidebar .sub-banner-content {
    flex: 1;
    padding: 12px 16px 12px 130px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.sub-sidebar .sub-banner-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.sub-sidebar .sub-banner-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
    line-height: 1.3;
    max-width: 100%;
    box-sizing: border-box;
}

/* Sidebar Box */
.sidebar-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.sidebar-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.sidebar-box-title svg {
    color: #c9a227;
}

.more-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.more-link:hover {
    color: #1a1a1a;
}

/* Popular List */
.popular-list {
    padding: 6px 0;
}

.popular-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    transition: background 0.2s;
}

.popular-list li:hover {
    background: #fafafa;
}

.popular-list .rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 700;
    color: #777;
    background: #f0f0f0;
    flex-shrink: 0;
}

.popular-list .rank.hot {
    color: #fff;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
}

.popular-list li a {
    flex: 1;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s;
}

.popular-list li a:hover {
    color: #c9a227;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}

.quick-link:last-child {
    border-bottom: none;
}

.quick-link:hover {
    background: #fafafa;
}

.quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    flex-shrink: 0;
    transition: background 0.2s;
}

.quick-icon svg {
    width: 14px;
    height: 14px;
    color: #c9a227;
}

.quick-link:hover .quick-icon {
    background: #1a1a1a;
}

.quick-link:hover .quick-icon svg {
    color: #DFCB96;
}

.quick-text {
    flex: 1;
    font-size: 13px;
    color: #444;
    transition: color 0.2s;
}

.quick-link:hover .quick-text {
    color: #1a1a1a;
}

.external-icon {
    display: flex;
    align-items: center;
    opacity: 0.4;
}

.external-icon svg {
    color: #999;
}

.quick-link:hover .external-icon {
    opacity: 1;
}

.quick-link:hover .external-icon svg {
    color: #c9a227;
}

/* ===================================
   Side Menu - 사이드바 내비게이션
   =================================== */
.side-menu {
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.side-menu-group {
    border-bottom: 1px solid #f0f0f0;
}

.side-menu-group:last-child {
    border-bottom: none;
}

.side-menu-title {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    background: #f8f8f8;
    border-bottom: 1px solid #f0f0f0;
}

.side-menu-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: #c9a227;
    margin-right: 10px;
    flex-shrink: 0;
}

.side-menu-list {
    padding: 4px 0;
}

.side-menu-item {
    display: block;
    padding: 10px 16px 10px 30px;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}

.side-menu-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #ddd;
    border-radius: 50%;
    transition: background 0.2s;
}

.side-menu-item:hover {
    color: #1a1a1a;
    background: #fafafa;
}

.side-menu-item:hover::before {
    background: #999;
}

.side-menu-item.active {
    color: #c9a227;
    background: rgba(201, 162, 39, 0.06);
    font-weight: 600;
}

.side-menu-item.active::before {
    background: #c9a227;
}

/* ===================================
   Sidebar Ranking Widget
   =================================== */
.sidebar-ranking {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.sidebar-ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px 18px;
    background: linear-gradient(180deg, #fbfbfb 0%, #f5f5f5 100%);
    border-bottom: 1px solid #ececec;
}

.sidebar-ranking-title-wrap {
    min-width: 0;
}

.sidebar-ranking-date {
    display: block;
    margin-top: 4px;
    color: #8f8f8f;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.sidebar-ranking-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.sidebar-ranking-server {
    display: inline-block;
    white-space: nowrap;
    margin-top: 0;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.sidebar-ranking-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.sidebar-ranking-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 20px;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.2s ease;
}

.sidebar-ranking-item:last-child {
    border-bottom: none;
}

.sidebar-ranking-item:hover {
    background: #fcfcfc;
}

/* Home ranking-card-new: same ranking-rank-* classes; sidebar-only sizing */
.sidebar-ranking-rank-cell {
    flex-shrink: 0;
    width: 36px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-ranking .ranking-rank-icon {
    position: relative;
    width: 32px;
    height: 28px;
    flex-shrink: 0;
    line-height: 0;
}

.sidebar-ranking .ranking-rank-icon svg {
    display: block;
    width: 32px;
    height: 28px;
}

.sidebar-ranking .ranking-rank-icon .ranking-rank-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    pointer-events: none;
}

.sidebar-ranking .ranking-rank-text {
    color: #555;
    font-size: 14px;
    font-weight: 400;
}

.sidebar-ranking-character-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-ranking-faction-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex-shrink: 0;
    max-width: 33%;
}

.sidebar-ranking .ranking-faction-text {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.sidebar-ranking-empty {
    padding: 22px 16px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.sidebar-ranking-more {
    display: block;
    text-align: center;
    padding: 11px;
    font-size: 12px;
    font-weight: 600;
    color: #8f8f8f;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    background: #fafafa;
}

.sidebar-ranking-more:hover {
    color: #9b7c1d;
    background: #f6f2e6;
}

/* Support Links */
.support-links {
    padding: 6px 0;
}

.support-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 13px;
    color: #444;
    transition: all 0.2s;
    text-decoration: none;
}

.support-link:hover {
    background: #fafafa;
    color: #c9a227;
}

.support-link svg {
    color: #bbb;
    transition: color 0.2s;
}

.support-link:hover svg {
    color: #c9a227;
}

/* ===================================
   Responsive Design - Sub Page
   =================================== */
@media (max-width: 1200px) {
    .notice-highlight {
        grid-template-columns: 1fr 1fr;
    }

    .highlight-item.main {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .highlight-item.main a {
        flex-direction: row;
    }

    .highlight-item.main .highlight-thumb {
        width: 50%;
        aspect-ratio: 16/9;
    }

    .highlight-item.main .highlight-info {
        width: 50%;
    }
}

@media (max-width: 1024px) {
    .sub-layout {
        flex-direction: column;
    }

    .sub-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sub-sidebar .sub-banner-card {
        flex: 1;
        min-width: 260px;
    }

    .sidebar-box {
        flex: 1;
        min-width: 260px;
    }

    .side-menu {
        flex: 1;
        min-width: 260px;
    }
}

/* 태블릿 포함(769~1279): 서브페이지 내부 콘텐츠 좌우 여백 26px */
@media (min-width: 769px) and (max-width: 1279px) {
    .sub-page-nav-strip > .container,
    .sub-container > .container {
        padding-left: 26px;
        padding-right: 26px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    /* 협소 모바일(372px 포함): 서브 공통 컨테이너 좌우 여백은 기존 16px 고정 */
    .sub-page-nav-strip > .container,
    .sub-container > .container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .page-hero {
        margin-top: calc(var(--site-top-offset) + var(--header-height));
        height: 0;
        background: none;
        overflow: visible;
    }

    .page-hero-media,
    .sub-banner-slider--hero,
    .page-hero-media .sub-hero-banner-nav {
        display: none;
    }

    .sub-container {
        padding: 32px 0 72px;
    }

    .sub-content-toolbar-title {
        font-size: 22px;
    }

    .sub-nav-list li a {
        padding: 12px 16px;
        font-size: 13px;
    }

    .notice-highlight {
        grid-template-columns: 1fr;
    }

    .highlight-item.main {
        grid-column: auto;
    }

    .highlight-item.main a {
        flex-direction: column;
    }

    .highlight-item.main .highlight-thumb,
    .highlight-item.main .highlight-info {
        width: 100%;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .content-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .content-tabs {
        flex-wrap: wrap;
    }

    .board-table .col-category,
    .board-table .col-author,
    .board-table .col-view {
        display: none;
    }

    .board-table .col-num {
        width: 60px;
    }

    .board-table th,
    .board-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .board-search {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .sub-content-toolbar-right .header-search {
        width: 100%;
        flex-wrap: nowrap;
        align-items: center;
    }

    .sub-content-toolbar-right .header-search--desktop {
        display: none;
    }

    .header-search--mobile-inline {
        display: flex;
        width: 100%;
        margin: 34px 0 0;
        flex-wrap: nowrap;
        align-items: center;
    }

    .sub-content-toolbar-right .header-search .search-select {
        flex: 0 0 108px;
        width: 108px;
    }

    .sub-content-toolbar-right .header-search .header-search-input-wrap {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .header-search .header-search-input-wrap .search-input {
        width: 100%;
    }

    .header-search--mobile-inline .search-select {
        flex: 0 0 108px;
        width: 108px;
    }

    .header-search--mobile-inline .header-search-input-wrap {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .event-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 0;
    }

    .event-item-thumb {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .event-item-body {
        padding: 0;
        align-self: auto;
        gap: 8px;
    }

    .event-item-title-row {
        min-height: 0;
        align-items: flex-start;
    }

    .event-item-title {
        font-size: 15px;
    }

    .event-item-subtitle {
        font-size: 13px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .event-item-period {
        gap: 6px;
    }

    .event-item-period-label,
    .event-item-period-value {
        font-size: 13px;
    }

    /* 모바일: hover 시각 효과 제거 */
    .sub-page-nav-strip .notice-tab-link:hover {
        color: #888;
        background: none;
    }

    .board-list-item:hover .board-list-title {
        color: #1a1a1a;
    }

    .board-list-vote-icon {
        width: 18px;
        height: 18px;
    }

    .board-list-vote-count {
        font-size: 14px;
        font-weight: 500;
    }

    .page-num:hover,
    .page-btn:hover {
        color: #666;
        background: transparent;
        border-color: #e2e2e2;
    }

    .header-search .search-btn-icon:hover {
        color: inherit;
    }

    .pagination-wrap {
        margin-top: 24px;
        margin-bottom: 20px;
    }

    .pagination {
        gap: 2px;
    }

    .page-num,
    .page-btn {
        min-width: 30px;
        height: 30px;
        padding: 0 4px;
        font-size: 12px;
        border-radius: 3px;
    }

    .page-ellipsis span {
        min-width: 20px;
        height: 30px;
        font-size: 12px;
        letter-spacing: 0;
    }

    .page-btn svg {
        width: 12px;
        height: 12px;
    }

    .sub-sidebar {
        display: none;
    }

    .side-menu-title {
        padding: 12px 14px;
        font-size: 13px;
    }

    .side-menu-item {
        padding: 9px 14px 9px 28px;
        font-size: 12px;
    }

    .side-menu-item::before {
        left: 14px;
    }

    /* 게시판 리스트 — 좁은 화면에서 제목·메타 세로 배치 */
    .board-list-item {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: start;
        gap: 8px 12px;
        padding: 16px 0;
    }

    .board-list > .board-list-item:nth-of-type(n + 16) {
        display: none;
    }

    .board-list-badge {
        grid-column: 1;
        grid-row: 1;
    }

    .board-list-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 15px;
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .board-list-meta {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .board-list--community .board-list-meta--split {
        justify-content: space-between;
    }
}

/* ===================================
   Board View - 게시글 상세
   =================================== */
.board-view {
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

/* 게시글 상세 공통(구룡소식·자유게시판·스크린샷): 메인 컬럼·목록 버튼·댓글·푸터 */
.sub-content--post-detail {
    width: 100%;
    max-width: 100%;
}

.sub-content--post-detail > .board-post-list-row {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.sub-content--post-detail > .board-post-list-row .tab-btn--post-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 9999px;
}

.sub-content--post-detail > .board-post-list-row .tab-btn--post-list:hover {
    color: #fff;
    background: #2d2d2d;
    border-color: #2d2d2d;
}

.sub-content--post-detail > .board-post-list-row .tab-btn--post-list:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

.sub-content--post-detail > .board-post-list-row .tab-btn--post-list .tab-btn__icon {
    flex-shrink: 0;
}

.sub-content--post-detail > .comment-section.comment-section--news-board {
    margin-top: 48px;
    padding: 20px 0 0;
    border: none;
    border-top: none;
    background: transparent;
    box-shadow: none;
}

.sub-content--post-detail .comment-section--news-board > .comment-form {
    border-top: none;
    margin-top: 14px;
    padding-top: 0;
}

.sub-content--post-detail .comment-section--news-board .comment-header {
    margin-top: 0;
    margin-bottom: 0;
}

.sub-content--post-detail .comment-section--news-board .comment-item {
    border-bottom: 1px dotted #d4d4d4;
}

.sub-content--post-detail .comment-section--news-board .comment-item:last-child {
    border-bottom: none;
}

.sub-content--post-detail .comment-section--news-board .comment-empty {
    padding: 20px 0 8px;
}

.sub-content--post-detail > .board-post-nav {
    margin-top: 36px;
    padding: 0;
    border: none;
    border-top: none;
    background: transparent;
    box-shadow: none;
}

.sub-content--post-detail .board-post-nav .view-footer {
    border-top: none;
}

.sub-content--post-detail .board-post-nav .view-nav .nav-item {
    padding-left: 0;
    padding-right: 0;
}

.sub-content--post-detail .board-post-nav .view-buttons {
    justify-content: flex-end;
}

/* View Header */
.view-header {
    padding: 28px 36px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}

.view-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.view-category .badge {
    padding: 5px 12px;
    font-size: 11px;
}

.view-category .category-name {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.view-title {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin-bottom: 18px;
    word-break: keep-all;
}

.view-title .view-title-badge.board-list-badge {
    margin-top: 4px;
    flex-shrink: 0;
}

.view-title-text {
    flex: 1;
    min-width: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

.title-comment-count {
    color: #3498db;
    font-size: 0.7em;
    font-weight: 400;
    margin-left: 6px;
}

.view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.view-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.view-meta .meta-label {
    color: #999;
    font-weight: 500;
}

.view-meta .meta-label--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.view-meta .meta-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.view-meta .meta-label::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background: #ddd;
    margin-left: 6px;
    vertical-align: middle;
}

/* 텍스트 라벨만 구분 바; 아이콘 라벨은 ::after 특이도 동일이라 이 블록을 아래에 둠 */
.view-meta .meta-label--icon::after {
    display: none;
    content: none;
    margin-left: 0;
}

.view-meta .meta-value {
    color: #444;
}

/* View Content */
.view-content {
    padding: 36px 40px;
    min-height: 280px;
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    word-break: keep-all;
}

.view-content img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
}

.view-content p {
    margin-bottom: 1.2em;
}

.view-content a {
    color: #c9a227;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.view-content a:hover {
    color: #e8c547;
}

.view-content ul,
.view-content ol {
    margin: 14px 0;
    padding-left: 24px;
}

.view-content li {
    margin-bottom: 6px;
}

.view-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.view-content table th,
.view-content table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.view-content table th {
    background: #f8f8f8;
    font-weight: 600;
    color: #1a1a1a;
}

.view-content table td {
    background: #fff;
    color: #333;
}

.view-content blockquote {
    margin: 18px 0;
    padding: 16px 20px;
    background: #fafafa;
    border-left: 3px solid #c9a227;
    font-style: italic;
    color: #666;
}

.view-content pre,
.view-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #f5f5f5;
    border-radius: 3px;
}

.view-content code {
    padding: 2px 6px;
    font-size: 13px;
    color: #c9a227;
}

.view-content pre {
    padding: 16px 20px;
    overflow-x: auto;
    margin: 18px 0;
    border: 1px solid #e8e8e8;
}

.view-content pre code {
    padding: 0;
    background: transparent;
    color: #333;
}

.view-content h2,
.view-content h3,
.view-content h4 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
}

.view-content h2 {
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

.view-content h3 {
    font-size: 17px;
}

.view-content h4 {
    font-size: 15px;
}

.view-content hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 28px 0;
}

/* View Footer */
.view-footer {
    border-top: 1px solid #e8e8e8;
}

/* View Navigation - 이전/다음글 */
.view-nav {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e8e8e8;
}

.view-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 16px 36px;
    transition: background 0.2s;
    position: relative;
    text-decoration: none;
}

.view-nav .nav-item:first-child {
    border-bottom: 1px solid #f0f0f0;
}

.view-nav .nav-item:not(.disabled):hover {
    background: #fafafa;
}

.view-nav .nav-item .nav-label {
    display: inline-flex;
    align-items: center;
    min-width: 70px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
}

.view-nav .nav-item.prev .nav-label::before {
    content: '‹';
    margin-right: 6px;
    font-size: 17px;
    position: relative;
    top: -2px;
}

.view-nav .nav-item.next .nav-label::before {
    content: '›';
    margin-right: 6px;
    font-size: 17px;
    position: relative;
    top: -2px;
}

.view-nav .nav-item .nav-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.view-nav .nav-item:not(.disabled):hover .nav-title {
    color: #c9a227;
}

.view-nav .nav-item.disabled {
    cursor: default;
}

.view-nav .nav-item.disabled .nav-title {
    color: #bbb;
}

/* View Buttons */
.view-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 36px;
}

.view-buttons .tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    cursor: pointer;
    text-decoration: none;
}

.view-buttons .tab-btn:hover {
    border-color: #999;
    color: #1a1a1a;
}

.view-buttons .tab-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    font-weight: 600;
}

.view-buttons .tab-btn.active:hover {
    background: #333;
    border-color: #333;
}

.view-buttons .tab-btn.btn-delete {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.view-buttons .tab-btn.btn-delete:hover {
    background: #e74c3c;
    color: #fff;
}

.view-buttons .view-actions {
    display: flex;
    gap: 8px;
}

.view-buttons .inline-form {
    display: inline;
}

/* ===================================
   Board Footer - 글쓰기 버튼
   =================================== */
.board-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ===================================
   Primary Button - 글쓰기
   =================================== */
.btn-primary.btn-write {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    background: #DFCB96;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary.btn-write:hover {
    background: #c9a227;
    color: #fff;
}

/* ===================================
   Board View - Responsive
   =================================== */
@media (max-width: 768px) {
    .view-header {
        padding: 20px 20px;
    }

    .view-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .view-meta {
        gap: 4px 12px;
        padding-top: 12px;
    }

    .view-meta .meta-item {
        font-size: 12px;
    }

    .view-meta .meta-label::after {
        display: none;
    }

    .view-content {
        padding: 20px;
        font-size: 14px;
        line-height: 1.8;
    }

    .view-content h2 {
        font-size: 17px;
    }

    .view-content h3 {
        font-size: 15px;
    }

    .view-content table {
        display: block;
        overflow-x: auto;
    }

    .view-nav .nav-item {
        padding: 14px 20px;
    }

    .view-nav .nav-item .nav-label {
        min-width: 55px;
        font-size: 12px;
    }

    .view-nav .nav-item .nav-title {
        font-size: 13px;
    }

    .view-buttons {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .view-buttons .tab-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ===================================
   Comment Section - 댓글
   =================================== */
.comment-section {
    padding: 28px 36px;
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.comment-header {
    margin-bottom: 16px;
}

.comment-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.comment-title svg {
    color: #c9a227;
}

.comment-count {
    color: #c9a227;
    font-weight: 700;
}

.comment-title .comment-count {
    font-size: 16px;
}

/* 구룡소식 댓글 헤더: 아이콘·라벨·숫자 한 줄·동일 크기·일반 굵기 */
.comment-section--news-board .comment-title {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.comment-section--news-board .comment-title > svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    align-self: center;
}

.comment-section--news-board .comment-title .comment-count {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* 댓글 목록 */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
}

.comment-actions {
    margin-top: 8px;
}

.comment-delete-btn {
    padding: 3px 10px;
    font-size: 12px;
    color: #999;
    background: transparent;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-delete-btn:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* 댓글 없음 */
.comment-empty {
    padding: 36px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 댓글 작성 폼 */
.comment-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8e8e8;
}

.comment-input-wrap {
    margin-bottom: 10px;
}

/* 구룡소식 상세: 기본 textarea 박스 유지, 등록만 안쪽 우하단 */
.comment-section--news-board .comment-input-wrap--infield-btn {
    position: relative;
    margin-bottom: 10px;
}

.comment-section--news-board .comment-input-wrap--infield-btn .comment-input {
    display: block;
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    padding-right: 100px;
    padding-bottom: 52px;
    box-sizing: border-box;
}

.comment-section--news-board .comment-input-wrap--infield-btn .comment-submit-btn--infield {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 12px 26px;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
}

.comment-input {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #ddd;
    resize: vertical;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
}

.comment-input:focus {
    border-color: #1a1a1a;
}

.comment-input::placeholder {
    color: #bbb;
}

.comment-char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.comment-char-count.limit-reached {
    color: #e74c3c;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-author-info {
    font-size: 13px;
    color: #999;
}

.comment-submit-btn {
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: #DFCB96;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-submit-btn:hover {
    background: #c9a227;
    color: #fff;
}

.comment-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.comment-form--guest-preview .comment-input {
    cursor: not-allowed;
    background: #fafafa;
    color: #888;
}

/* 로그인 안내 */
.comment-login-notice {
    margin-top: 16px;
    padding: 18px;
    text-align: center;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    color: #777;
}

.comment-login-notice a {
    color: #c9a227;
    font-weight: 600;
    text-decoration: none;
}

.comment-login-notice a:hover {
    text-decoration: underline;
}

/* 댓글 반응형 */
@media (max-width: 768px) {
    .sub-content--post-detail > .board-post-nav {
        margin-top: 28px;
    }

    .comment-section {
        padding: 20px;
    }

    .sub-content--post-detail > .comment-section.comment-section--news-board {
        margin-top: 36px;
        padding: 16px 0 0;
    }

    .comment-section--news-board .comment-input-wrap--infield-btn .comment-input {
        padding-right: 14px;
        padding-bottom: 58px;
    }

    .comment-section--news-board .comment-input-wrap--infield-btn .comment-submit-btn--infield {
        right: 8px;
        bottom: 8px;
        padding: 11px 22px;
        font-size: 14px;
    }

    .comment-item {
        padding: 14px 0;
    }

    .comment-content {
        font-size: 13px;
    }

    .comment-input {
        min-height: 75px;
        padding: 10px 12px;
    }
}

/* ===================================
   게임조작법 — 2분할 전폭 탭
   =================================== */
.guide-switch {
    width: 100%;
    margin-bottom: 24px;
}

.guide-switch-track {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #e8e8e8;
}

.guide-switch-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: #fafafa;
    transition: color 0.2s, background 0.2s, border-bottom-color 0.2s;
}

.guide-switch-item:hover {
    color: #a07c20;
    background: #f5f5f5;
}

.guide-switch-item.is-active {
    color: #a07c20;
    background: #fff;
    border-bottom-color: #DFCB96;
}

.guide-switch-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

@media (max-width: 600px) {
    .guide-switch-item {
        padding: 12px 10px;
        font-size: 16px;
    }
}

/* 게시글 상세 — 스크린샷 본문 이미지 스테이지 (board-view 내) */
.board-view-screenshot-stage {
    position: relative;
    background: #fff;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-view-screenshot-stage img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.board-view-screenshot-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    transition: background 0.3s;
    z-index: 10;
}

.board-view-screenshot-arrow:hover {
    background: rgba(201, 162, 39, 0.8);
}

.board-view-screenshot-arrow--prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.board-view-screenshot-arrow--next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.board-view-screenshot-arrow.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

article.board-view .view-vote {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 0;
    margin: 0 0 30px;
    border: none;
    background: transparent;
}

article.board-view .view-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

article.board-view .view-vote-btn:hover {
    color: #1a1a1a;
}

article.board-view .view-vote-btn.is-voted:hover {
    color: #e74c3c;
}

article.board-view .view-vote-btn:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.45);
    outline-offset: 3px;
    border-radius: 4px;
}

article.board-view .view-vote-btn__icons {
    position: relative;
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transform: translateY(1px);
}

article.board-view .view-vote-icon {
    width: 20px;
    height: 20px;
}

article.board-view .view-vote-icon--outline {
    color: #e74c3c;
    opacity: 0.45;
}

article.board-view .view-vote-icon--filled {
    display: none;
    color: #e74c3c;
    opacity: 1;
}

article.board-view .view-vote-btn.is-voted .view-vote-icon--outline {
    display: none;
}

article.board-view .view-vote-btn.is-voted .view-vote-icon--filled {
    display: block;
}

article.board-view .view-vote-btn.is-voted {
    color: #e74c3c;
}

article.board-view .view-vote-btn.is-voted .view-vote-btn__count {
    color: #e74c3c;
}

article.board-view .view-vote-btn__count {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}

article.board-view .view-vote-btn:disabled {
    cursor: default;
    opacity: 1;
}

article.board-view .view-vote-btn.is-voted:disabled {
    color: #e74c3c;
    -webkit-text-fill-color: currentColor;
}

article.board-view .view-vote-btn.is-voting {
    opacity: 0.65;
    pointer-events: none;
}

@media (max-width: 768px) {
    .board-view-screenshot-arrow {
        width: 40px;
        height: 60px;
        font-size: 20px;
    }
}
