/* 게시판 — nova3 */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 매거진(cityguide) — 목록·글보기 공통 가로폭 */
@media (min-width: 768px) {
    .page-board.board-magazine .board-page {
        max-width: 63.75rem; /* 1020px */
        margin-left: auto;
        margin-right: auto;
    }
}

.board-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.board-category-tabs .board-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    color: #64748b;
    background: #fff;
    transition: all 0.15s ease;
}

.dark .board-category-tabs .board-tab {
    border-color: #334155;
    color: #94a3b8;
    background: #1e293b;
}

.board-category-tabs .board-tab.is-active,
.board-category-tabs .board-tab:hover {
    border-color: #007ACC;
    color: #007ACC;
    background: rgba(0, 122, 204, 0.08);
}

.board-list-table {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.dark .board-list-table {
    border-color: #334155;
    background: #1e293b;
}

.board-list-row {
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.dark .board-list-row {
    border-color: #334155;
}

.board-list-row:last-child { border-bottom: none; }
.board-list-row:hover { background: #f8fafc; }
.dark .board-list-row:hover { background: #0f172a; }
.board-list-row.is-notice { background: #f0f9ff; }
.dark .board-list-row.is-notice { background: rgba(0, 122, 204, 0.12); }

.board-list-num {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.board-list-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
}

.dark .board-list-title { color: #f1f5f9; }

.board-list-date {
    font-size: 0.8125rem;
    color: #94a3b8;
    white-space: nowrap;
}

.board-mag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .board-mag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (min-width: 1024px) {
    .board-mag-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.board-mag-card {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.dark .board-mag-card { border-color: #334155; background: #1e293b; }
.board-mag-card:hover { box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08); transform: translateY(-2px); }

.board-mag-thumb {
    aspect-ratio: 4 / 3;
    background: #f1f5f9 center/cover no-repeat;
}

.dark .board-mag-thumb { background-color: #0f172a; }

.board-mag-body { padding: 0.875rem 1rem 1rem; }
.board-mag-cat { font-size: 0.75rem; font-weight: 600; color: #007ACC; margin-bottom: 0.25rem; }

.board-mag-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .board-mag-title { color: #f8fafc; }

.board-mag-sub {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 640px;
    margin: 0 auto;
}

.board-feed-card {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.25rem;
}

.dark .board-feed-card { border-color: #334155; background: #1e293b; }

.board-feed-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.board-feed-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
    background: #e2e8f0;
}

.board-feed-name { font-size: 0.9375rem; font-weight: 700; color: #0f172a; }
.dark .board-feed-name { color: #f1f5f9; }
.board-feed-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.dark .board-feed-title { color: #f8fafc; }

.board-feed-preview {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-feed-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.board-feed-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.75rem;
}

.board-feed-meta { font-size: 0.8125rem; color: #94a3b8; }

.board-event-grid { display: grid; gap: 1rem; }

@media (min-width: 768px) {
    .board-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.board-event-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    align-items: flex-start;
}

.dark .board-event-card { border-color: #334155; background: #1e293b; }

.board-event-thumb {
    width: 7rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: #f1f5f9 center/cover no-repeat;
}

.board-pagination .page-btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #475569;
    background: #fff;
}

.dark .board-pagination .page-btn {
    border-color: #334155;
    color: #cbd5e1;
    background: #1e293b;
}

.board-pagination .page-btn.is-active {
    border-color: #007ACC;
    background: #007ACC;
    color: #fff;
}

.board-pagination .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- 글보기 ---- */

/* 매거진(cityguide) 글보기 — 레거시 magazine_view_top */
.board-view-hero {
    position: relative;
    width: 100%;
    height: 12.5rem;
    margin: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .board-view-hero {
        height: 18.75rem; /* 300px */
        margin: 2.5rem 0 0;
        border-radius: 1rem 1rem 0 0;
    }
}

.board-view-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5);
}

.board-view-hero-txt {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: 90%;
    text-align: left;
}

.board-view-hero-cat {
    display: inline-block;
    font-style: normal;
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: #007ACC;
    color: #fff;
    padding: 0.35rem 0.875rem;
}

.board-view-hero-title {
    text-shadow: 0.25rem 0.125rem 0.5rem rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.35;
    word-break: keep-all;
}

@media (min-width: 768px) {
    .board-view-hero-title { font-size: 1.875rem; }
}

.board-view-hero-sub {
    display: block;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.95;
}

.board-view-header.board-view-header--has-hero {
    padding-top: 1rem;
    border-bottom: none;
}

.board-view-header.board-view-header--has-hero .board-view-title,
.board-view-header.board-view-header--has-hero .board-view-subtitle,
.board-view-header.board-view-header--has-hero .board-view-category {
    display: none;
}

.board-view-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.dark .board-view-card {
    border-color: #334155;
    background: #1e293b;
}

.board-view-header {
    padding: 1.75rem 0.75rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.dark .board-view-header {
    border-color: #334155;
}

@media (min-width: 768px) {
    .board-view-header { padding: 2rem 2rem 1.75rem; }
}

.board-view-category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #007ACC;
    background: rgba(0, 122, 204, 0.1);
}

.board-view-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    word-break: keep-all;
}

@media (min-width: 768px) {
    .board-view-title { font-size: 1.625rem; }
}

.dark .board-view-title { color: #f8fafc; }

.board-view-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

.dark .board-view-subtitle { color: #94a3b8; }

.board-view-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.board-view-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.board-view-meta .meta-item + .meta-item::before {
    content: "·";
    margin-right: 0.35rem;
    color: #cbd5e1;
}

.board-view-body-wrap {
    padding: 1.5rem 0.75rem;
}

@media (min-width: 768px) {
    .board-view-body-wrap { padding: 2rem; }
}

.board-view-body {
    min-height: 8rem;
    color: #334155;
    line-height: 1.75;
    font-size: 0.9375rem;
}

.dark .board-view-body { color: #cbd5e1; }

.board-view-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 0.75rem 0;
}

.board-view-body p:first-child { margin-top: 0; }
.board-view-body p:last-child { margin-bottom: 0; }

.board-view-images {
    margin-bottom: 1.25rem;
}

.board-view-images img {
    width: 100%;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.board-view-images img:last-child { margin-bottom: 0; }

.board-view-movie {
    margin-bottom: 1.25rem;
}

.board-view-movie video {
    width: 100%;
    border-radius: 0.75rem;
    background: #000;
}

.board-view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 0.75rem 1.25rem;
}

@media (min-width: 768px) {
    .board-view-tags { padding: 0 2rem 1.5rem; }
}

.board-view-tags .board-view-tag {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: #64748b;
    background: #f1f5f9;
}

.dark .board-view-tags .board-view-tag {
    color: #94a3b8;
    background: #0f172a;
}

.board-view-stats {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 0.75rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.dark .board-view-stats { border-color: #334155; }

@media (min-width: 768px) {
    .board-view-stats { padding: 0.875rem 2rem; }
}

.board-view-reply {
    margin: 0 0.75rem 1.5rem;
    padding: 1.25rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dark .board-view-reply {
    border-color: #334155;
    background: #0f172a;
}

@media (min-width: 768px) {
    .board-view-reply { margin: 0 2rem 2rem; padding: 1.25rem 1.5rem; }
}

.board-view-reply-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.dark .board-view-reply-title { color: #f1f5f9; }

.board-view-reply-body {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.7;
}

.dark .board-view-reply-body { color: #94a3b8; }

.board-view-comments {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
}

.dark .board-view-comments {
    border-color: #334155;
    background: #1e293b;
}

.board-view-comments-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.dark .board-view-comments-title { color: #f8fafc; }

.board-view-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.board-view-comment-hint {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.board-view-comment {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.dark .board-view-comment { background: #0f172a; }

.board-view-comment-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 이전글·다음글 */
.board-view-nextprev {
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.dark .board-view-nextprev {
    border-color: #334155;
    background: #1e293b;
}

.board-view-nextprev-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.board-view-nextprev-item {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.dark .board-view-nextprev-item { border-color: #334155; }

.board-view-nextprev-item:last-child { border-bottom: none; }

.board-view-nextprev-label {
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.dark .board-view-nextprev-label { color: #94a3b8; }

.board-view-nextprev-title {
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .board-view-nextprev-title { color: #f1f5f9; }

a.board-view-nextprev-title:hover { color: #007ACC; }

.board-view-nextprev-title.is-empty {
    color: #cbd5e1;
    font-weight: 400;
}

.dark .board-view-nextprev-title.is-empty { color: #475569; }

.board-view-nextprev-date {
    font-size: 0.8125rem;
    color: #94a3b8;
    white-space: nowrap;
}

.board-view-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.board-view-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 10rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.dark .board-view-list-btn {
    border-color: #334155;
    background: #1e293b;
    color: #e2e8f0;
}

.board-view-list-btn:hover {
    border-color: #007ACC;
    color: #007ACC;
    background: rgba(0, 122, 204, 0.06);
}

.board-view-list-btn .material-icons-round {
    font-size: 1.125rem;
}

/* 글쓰기 — 커뮤니티 */
.board-form-city-results {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    max-height: 14rem;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.dark .board-form-city-results {
    border-color: #334155;
    background: #1e293b;
}

.board-form-city-results li button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    color: #334155;
}

.dark .board-form-city-results li button { color: #e2e8f0; }

.board-form-city-results li button:hover {
    background: rgba(0, 122, 204, 0.08);
    color: #007ACC;
}

.board-form-image-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .board-form-image-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.board-form-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dark .board-form-image-item {
    border-color: #334155;
    background: #0f172a;
}

.board-form-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-form-image-remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* cityguide 본문 — 에디토리얼 상품/추천 카드 (han-zine) 모바일 슬림 */
@media (max-width: 767px) {
    .board-view-body .han-zine .hz-list {
        gap: 0.5rem;
    }

    .board-view-body .han-zine .hz-list.two-col,
    .board-view-body .han-zine .hz-list.three-col {
        grid-template-columns: 1fr;
    }

    .board-view-body .han-zine .hz-item {
        grid-template-columns: 4.25rem 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
        border-radius: 0.625rem;
        box-shadow: none;
    }

    .board-view-body .han-zine .hz-thumb {
        border-radius: 0.5rem;
        aspect-ratio: 1 / 1;
    }

    .board-view-body .han-zine .hz-thumb img,
    .board-view-body .han-zine img {
        margin: 0;
        border-radius: 0.5rem;
    }

    .board-view-body .han-zine .hz-title {
        gap: 0.35rem;
        margin: 0;
    }

    .board-view-body .han-zine .hz-title h4 {
        font-size: 0.8125rem;
        line-height: 1.35;
    }

    .board-view-body .han-zine .hz-desc {
        font-size: 0.75rem;
        line-height: 1.45;
        margin: 0.125rem 0 0.25rem;
    }

    .board-view-body .han-zine .hz-meta {
        font-size: 0.6875rem;
        line-height: 1.4;
    }

    .board-view-body .han-zine .hz-price {
        gap: 0.25rem;
        margin-top: 0.25rem;
    }

    .board-view-body .han-zine .chip {
        padding: 0.125rem 0.375rem;
        font-size: 0.6875rem;
        gap: 0.25rem;
    }

    .board-view-body .han-zine .tag {
        padding: 0.0625rem 0.375rem;
        font-size: 0.625rem;
    }

    .board-view-body .han-zine h2 {
        font-size: 1.375rem;
        margin: 0.5rem 0 0.375rem;
    }

    .board-view-body .han-zine h3 {
        font-size: 1.0625rem;
        margin: 0.75rem 0 0.375rem;
    }

    .board-view-body .han-zine .lead {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .board-view-body .han-zine .hz-div {
        margin: 0.75rem 0;
    }
}
