/*
 * Readable Theme - GoBlog (iA.net Style Redesign)
 * Focused on high readability and minimalist aesthetics.
 */

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-muted: #4a4a4a;
    --primary-color: #000000;
    --link-color: #0000ee;
    --border-color: #eeeeee;
    --container-width: 680px;
    --font-main: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-size-base: 17px;
    --line-height-base: 1.75;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.breadcrumb a {
    color: #aaa;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text-color);
}

.breadcrumb-category {
    color: #D95F52 !important;
    font-weight: 700;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: var(--line-height-base);
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    /* Requested: 0 24px */
}

/* Header - Minimalist, Relative */
.site-header {
    position: relative;
    /* Requested: Relative */
    border-bottom: 1px solid var(--border-color);
    /* Requested */
    padding: 32px 0 24px;
    margin-bottom: 0px;
}

/* 헤더 컨테이너는 포스트 레이아웃(1060px)과 너비를 맞춤 */
.site-header .container {
    max-width: 1060px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo { text-decoration: none; }
.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* ── GNB (Global Navigation Bar) ── */
.gnb {
    flex: 1;
    margin: 0 32px;
}

.gnb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gnb-item {
    position: static;
}

.gnb-link,
.gnb-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-family: var(--font-main);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.gnb-link:hover,
.gnb-trigger:hover,
.gnb-item.open > .gnb-trigger {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--primary-color);
}

.gnb-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.gnb-item.open > .gnb-trigger .gnb-chevron {
    transform: rotate(180deg);
}

/* ── Mega Menu Panel ── */
.mega-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 200;
    background: var(--bg-color, #fff);
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 28px 0;
}

.gnb-item.open > .mega-panel {
    display: block;
}

.mega-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 960px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 16px;
}

.mega-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
}

.mega-link:hover {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--primary-color);
}

/* ── 헤더 우측 컨트롤 묶음 ── */
.header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ── 햄버거 (모바일 전용) ── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.ham-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger-btn.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open .ham-bar:nth-child(2) { opacity: 0; }
.hamburger-btn.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 모바일 드로어 ── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-color, #fff);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 500;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 60px 0 40px;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 499;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
    background: var(--bg-secondary, #f5f5f5);
}

.mobile-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-family: var(--font-main);
    text-align: left;
}

.acc-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.mobile-accordion-item.open .acc-chevron {
    transform: rotate(180deg);
}

.mobile-accordion-panel {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: var(--bg-secondary, #f9f9f9);
}

.mobile-accordion-item.open .mobile-accordion-panel {
    display: block;
}

.mobile-sub-link {
    display: block;
    padding: 11px 24px 11px 36px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-sub-link:hover {
    color: var(--primary-color);
    background: var(--bg-secondary, #f5f5f5);
}

/* ── 모바일 반응형 ── */
@media (max-width: 768px) {
    .gnb {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .mobile-nav-overlay.open {
        display: block;
    }
}

/* Font Size Button */
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-muted);
}

.search-btn:hover {
    color: var(--text-color);
}

.font-size-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.5rem;
    font-family: var(--font-main);
    color: var(--text-muted);
    line-height: 1;
}

.font-size-btn:hover {
    color: var(--text-color);
}

/* Dark Mode Toggle Button */
.dark-mode-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-muted);
}

.dark-mode-btn:hover {
    color: var(--text-color);
}

.dark-mode-btn .icon-moon {
    display: none;
}

html[data-theme="dark"] .dark-mode-btn .icon-sun {
    display: none;
}

html[data-theme="dark"] .dark-mode-btn .icon-moon {
    display: block;
}

.font-size-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.font-size-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.font-size-dots .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.25;
    transition: opacity 0.15s;
}

.font-size-dots .dot.active {
    opacity: 1;
}

/* ── Hero Banner ────────────────────────────────────────────────────── */
:root {
    --hero-aspect-pc: 16 / 7;
    --hero-aspect-mobile: 16 / 9;
    --hero-min-height-pc: 400px;
    --hero-min-height-mobile: 220px;
    --hero-max-height: 80vh;
}

.hero-banner {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    aspect-ratio: var(--hero-aspect-pc);
    min-height: var(--hero-min-height-pc);
    max-height: var(--hero-max-height);
    overflow: hidden;
    display: block;
}

.hero-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-banner:hover .hero-img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .hero-img {
        transition: none;
    }
    .hero-banner:hover .hero-img {
        transform: none;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        transparent 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 48px;
    color: #fff;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.hero-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 400;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-banner {
        aspect-ratio: var(--hero-aspect-mobile);
        min-height: var(--hero-min-height-mobile);
    }

    .hero-content {
        padding: 24px 20px;
    }

    .hero-title {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }
}

/* Post list (Home) */
.post-list {
    display: flex;
    flex-direction: column;
    /* margin-bottom by post items */
}

.post-item {
    padding: 64px 0;
    border-bottom: 1px solid var(--border-color);
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0.25rem 0 1rem 0;
    letter-spacing: -0.03em;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--link-color);
}

.post-meta {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}

.post-category {
    color: var(--link-color);
    text-decoration: none;
}

.post-category:hover {
    text-decoration: underline;
}

.post-excerpt {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.read-more {
    display: none;
    /* iA style usually just clicks title or truncated */
}

/* Post item: flexbox layout with optional thumbnail */
.post-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.post-item-text {
    flex: 1;
    min-width: 0;
}

.post-thumb-wrap {
    flex-shrink: 0;
    margin-left: 20px;
}

.post-thumb {
    width: 160px;
    height: 107px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.post-item:hover .post-thumb {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .post-thumb {
        transition: none;
    }
    .post-item:hover .post-thumb {
        opacity: 0.85;
    }
}

@media (max-width: 768px) {
    .post-thumb {
        width: 120px;
        height: 80px;
    }
}

/* Post Detail */
.post-detail {
    margin-bottom: 4rem;
    min-width: 0;
    overflow-x: hidden;
    isolation: isolate;
}

.post-header {
    text-align: center;
    padding: 1rem 0 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.post-header h1::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--text-color);
    margin: 1rem auto 0;
    border-radius: 2px;
    opacity: 0.25;
}

.post-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.post-meta-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.meta-sep {
    margin: 0 0.4rem;
    color: #ddd;
}

.reading-time,
.view-count {
    white-space: nowrap;
}

.reading-time {
    color: #D95F52;
}

.post-nav-inline {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: #bbb;
    margin-top: 1.5rem;
}

.post-nav-inline a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.15s;
}

.post-nav-inline a:hover {
    color: var(--text-color);
}

.featured-image {
    display: none;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Refining */

/* Social Share */
.social-share {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.social-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-share a:hover {
    opacity: 0.9;
}

.social-share .link-copy {
    background: #666;
}

.social-share .kakao {
    background: #FEE500;
    color: #000;
}

.social-share .band {
    background: #06C755;
}

.social-share .facebook {
    background: #1877F2;
}

.social-share .twitter {
    background: #000;
}

/* Author Bar */
.author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.author-more {
    font-size: 0.85rem;
    color: #0066cc;
    text-decoration: none;
}

/* Trending Posts */
.trending-posts {
    margin: 3rem 0;
}

.trending-posts h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #111;
}

.trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trending-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #eee;
}

.trending-rank {
    font-size: 1.1rem;
    font-weight: 800;
    color: #e53935;
    min-width: 1.2rem;
    flex-shrink: 0;
}

.trending-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.5;
}

.trending-title:hover {
    color: #e53935;
}

/* Related Recommend Box (본문 중간 추천) */
.related-recommend-box {
    border-left: 4px solid #1a2744;
    background: #f7f8fa;
    padding: 16px 20px;
    margin: 2rem 0;
}

.related-recommend-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.related-recommend-icon {
    font-size: 0.85rem;
}

.related-recommend-link {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    line-height: 1.5;
}

.related-recommend-link:hover {
    text-decoration: underline;
}

html[data-theme="dark"] .related-recommend-box {
    background: #1e2232;
    border-left-color: #4a6fa5;
}

html[data-theme="dark"] .related-recommend-label {
    color: #999;
}

html[data-theme="dark"] .related-recommend-link {
    color: #e0e0e0;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #111;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.related-post-card {
    display: block;
    text-decoration: none;
}

.related-post-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
    margin-bottom: 0.75rem;
}

.related-post-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Placeholder Image */
.related-post-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

/* Responsive */
/* Tablet (768px below) - 2 columns */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Mobile (480px below) - 1 column list */
@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-post-card {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .related-post-thumbnail,
    .related-post-placeholder {
        width: 100px;
        height: 70px;
        aspect-ratio: auto;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .related-post-placeholder {
        font-size: 1.5rem;
    }

    .related-post-title {
        font-size: 0.9rem;
    }
}

/* Content body isolation — prevents broken HTML from leaking into parent layout */
.content-body {
    contain: layout style;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.content-body::after {
    content: '';
    display: table;
    clear: both;
}

.content-body * {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* 풀블리드 이미지(margin: -16px)는 max-width 제한 해제 */
.content-body .content-image {
    max-width: none !important;
}

.content-body iframe {
    max-width: 100% !important;
    width: 100%;
}

/* sticky bn-wrap(38px) 뒤에 앵커 타깃이 숨지 않도록 */
.content-body h1[id],
.content-body h2[id],
.content-body h3[id],
.content-body h4[id],
.content-body h5[id],
.content-body h6[id] {
    scroll-margin-top: 370px;
}

.faq-item[id],
.howto-step[id] {
    scroll-margin-top: 70px;
}

/* Typography in Content */
.content-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.content-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.content-body p {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5em;
    transform: rotate(-0.03deg);
}

.content-body blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    /* Requested */
    border-left: 3px solid #ddd;
    /* Requested */
    color: #555;
    /* Requested */
    font-style: italic;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.content-body li {
    margin-bottom: 0.5em;
}

.content-body a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.content-body a:hover {
    text-decoration-thickness: 2px;
}

/* --- 테이블 --- */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.content-body table th {
    background: #f8f8f8;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    white-space: nowrap;
    width: 110px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
}

.content-body table td {
    padding: 10px 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.content-body table tr:last-child th,
.content-body table tr:last-child td {
    border-bottom: none;
}

.content-body table tr:hover {
    background: #fafafa;
}

/* --- 인용 블록 강화 --- */
.content-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid #ccc;
    background: #f9f9f9;
    color: #444;
    font-style: normal;
    border-radius: 0 4px 4px 0;
}

.content-body blockquote strong {
    color: #222;
}

/* --- FAQ 질문 간 구분선 --- */
.content-body h2 + p + p + p > strong:first-child,
.content-body p + p + p > strong:first-child {
    display: block;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

/* --- 출처 표기 --- */
.content-body > p:last-child > em:only-child {
    display: block;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.82rem;
    color: #aaa;
    font-style: normal;
}


/* Pagination */
.pagination-nav,
.pagination {
    margin: 4rem 0;
    text-align: center;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    margin: 0 0.25rem;
    transition: background 0.2s, color 0.2s;
}

.page-link:hover:not(.disabled) {
    background: var(--text-color);
    color: var(--bg-color);
}

.page-link.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.current-page {
    padding: 0.5rem 1rem;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
}

.page-item.active .page-link {
    background: #000;
    color: #fff;
    border-color: #000;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 0.4rem;
    color: var(--text-muted);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-modal {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.close-search {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #000;
    font-size: 2rem;
    padding: 0.5rem 0;
    min-height: 44px;
    outline: none;
    text-align: center;
    font-family: var(--font-main);
    font-weight: 300;
}

/* Tags */
.post-tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.tag {
    color: var(--text-muted);
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-decoration: none;
    font-size: 0.875rem;
}

.tag:hover {
    background: #eee;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-base: 17px;
    }

    /* 기사 본문 영역: 좌우 16px (가독성 기준) */
    .container {
        padding: 0 16px;
    }

    /* 헤더/네비게이션: 좌우 12px */
    .site-header .container {
        padding: 0 20px;
    }

    .post-header {
        padding: 1.25rem 0 1.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }
}
/* ── UI 컨트롤: 글자 크기(Aa) + 언어 전환 ─────────────────────────────── */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aa-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.aa-btn:hover { background: #f5f5f5; border-color: #aaa; }
.aa-label { font-size: 0.78rem; font-weight: 700; color: #333; }
.aa-dots  { font-size: 0.42rem; color: #aaa; letter-spacing: 0.1em; }

.lang-switcher { display: flex; gap: 2px; }
.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.15s, background 0.15s;
}
.lang-btn:hover { opacity: 0.8; background: #f5f5f5; }
.lang-btn.active { opacity: 1; background: #efefef; }

/* ── 본문 이미지 + 캡션 + 출처 ────────────────────────────────────────── */
.content-image {
    margin: 2.5rem 0;
    padding: 0;
    text-align: center;
    clear: both;
}
.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: contentImageFadeIn 0.4s ease forwards;
}
@keyframes contentImageFadeIn {
    to { opacity: 1; }
}
.content-image figcaption {
    margin-top: 0.75rem;
    padding: 0 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
}
.caption-text {
    display: block;
    color: #4b5563;
    font-style: italic;
}
.caption-source {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-style: normal;
    color: #9ca3af;
}
.caption-source a {
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.caption-source a:hover { color: #6b7280; }
.content-spacer { height: 1rem; }

@media (max-width: 768px) {
    /* 본문 이미지/영상: 좌우 여백 0, 화면 끝까지 풀폭 */
    .content-image {
        margin: 2rem -16px;
    }
    .content-image img {
        border-radius: 0;
        width: 100%;
        max-width: none;
    }
    .content-image figcaption {
        padding: 0 16px;
        font-size: 0.8rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .content-image img {
        animation: none;
        opacity: 1;
    }
}

/* ── 리액션 평가 ─────────────────────────────────────────────────────────── */
.reaction-rating {
    margin: 2rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.reaction-label {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.reaction-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.reaction-btn {
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 2rem;
    line-height: 1;
    padding: 0.35rem 0.4rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.reaction-btn:hover {
    transform: scale(1.25);
    background: rgba(0, 0, 0, 0.05);
}

.reaction-btn.active {
    transform: scale(1.35);
    background: rgba(0, 0, 0, 0.06);
}

.reaction-btn:disabled {
    cursor: default;
}

.reaction-btn:disabled:not(.active) {
    opacity: 0.35;
}

.reaction-thanks {
    margin: 1.1rem 0 0;
    min-height: 1.2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.reaction-thanks.error {
    color: #c0392b;
}

@media (max-width: 480px) {
    .reaction-rating {
        padding: 1.25rem 1rem 1.5rem;
    }
    .reaction-btn {
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reaction-btn {
        transition: none;
    }
}

/* =====================================================
   Author Card (글 하단 프로필 카드)
   ===================================================== */
.author-card {
    margin: 2.5rem 0 1.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.author-card:has(a.author-card-inner:hover) {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

.author-card-inner {
    display: flex;
    gap: 20px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.author-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-card-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90D9 0%, #7B61FF 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}

.author-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.author-card-jobtitle {
    font-size: 0.875rem;
    color: #D95F52;
    font-weight: 600;
}

.author-card-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.author-card-more {
    font-size: 0.875rem;
    color: #4A90D9;
    margin-top: 8px;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .author-card { transition: none; }
}

/* =====================================================
   Author Profile Page (/author/:slug)
   ===================================================== */
.author-profile {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

.author-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4A90D9;
    margin-bottom: 1rem;
}

.author-profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90D9 0%, #7B61FF 100%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.author-profile-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 0.4rem;
}

.author-profile-jobtitle {
    font-size: 1rem;
    color: #D95F52;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.author-profile-bio {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.author-posts-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 0.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.author-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.author-post-item {
    border-bottom: 1px solid var(--border-color);
}

.author-post-item:last-child {
    border-bottom: none;
}

.author-post-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.9rem 0;
    text-decoration: none;
    color: inherit;
}

.author-post-link:hover .author-post-title { color: var(--link-color); }

.author-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.author-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.author-posts-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
}

/* =====================================================
   Authors Page (/authors)
   ===================================================== */
.authors-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.authors-header { margin-bottom: 2.5rem; }

.authors-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 0.5rem;
}

.authors-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.authors-category-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.authors-category-divider::before,
.authors-category-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

.authors-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-list-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
    align-items: flex-start;
}

.author-list-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

.author-list-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-list-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90D9 0%, #7B61FF 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-list-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.author-list-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.author-list-jobtitle {
    font-size: 0.875rem;
    color: #D95F52;
    font-weight: 600;
}

.author-list-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-list-more {
    font-size: 0.875rem;
    color: #4A90D9;
    font-weight: 500;
    margin-top: 8px;
}

.authors-empty { color: #999; text-align: center; padding: 3rem 0; }

@media (prefers-reduced-motion: reduce) {
    .author-list-card { transition: none; }
}

/* =====================================================
   Contact Page
   ===================================================== */
.contact-email-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f0f7ff;
    border-left: 4px solid #4A90D9;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.contact-email-link {
    color: #4A90D9;
    font-weight: 600;
    text-decoration: none;
}

.contact-email-link:hover { text-decoration: underline; }

.contact-btn {
    display: inline-block;
    background: #4A90D9;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.contact-btn:hover { background: #3a7bc8; }

@media (prefers-reduced-motion: reduce) {
    .contact-btn { transition: none; }
}

/* =====================================================
   Footer Renewal
   ===================================================== */
.site-footer {
    margin-top: 4rem;
    background: #1a1a1a;
    color: #ccc;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.footer-col-title {
    display: block;
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.footer-site-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-site-desc { color: #999; font-size: 0.88rem; line-height: 1.6; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-disclaimer {
    color: #777;
    font-size: 0.75rem;
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.footer-copyright { color: #888; font-size: 0.8rem; margin: 0; }

.footer-biz-info {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
    color: #313131;
    font-size: 0.75rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }
    .footer-links {
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-links a { transition: none; }
}

/* =====================================================
   Back to Top Button
   ===================================================== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s, transform 0.2s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #555;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: opacity 0.3s, visibility 0.3s; }
    .back-to-top:hover { transform: none; }
}

/* =====================================================
   Dark Mode
   ===================================================== */
html[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-muted: #999999;
    --primary-color: #f0f0f0;
    --link-color: #74a9ff;
    --border-color: #2e2e2e;
}

html[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

html[data-theme="dark"] .gnb-link,
html[data-theme="dark"] .gnb-trigger {
    color: var(--text-color);
}

html[data-theme="dark"] .gnb-link:hover,
html[data-theme="dark"] .gnb-trigger:hover,
html[data-theme="dark"] .gnb-item.open > .gnb-trigger {
    background: #2a2a2a;
}

html[data-theme="dark"] .mega-panel {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .mega-link {
    color: #ccc;
}

html[data-theme="dark"] .mega-link:hover {
    background: #2a2a2a;
    color: #fff;
}

html[data-theme="dark"] .mobile-nav {
    background: #1e1e1e;
}

html[data-theme="dark"] .mobile-nav-link,
html[data-theme="dark"] .mobile-accordion-btn {
    color: #ccc;
    border-color: #333;
}

html[data-theme="dark"] .mobile-accordion-panel {
    background: #242424;
}

html[data-theme="dark"] .mobile-sub-link {
    color: #999;
    border-color: #333;
}

html[data-theme="dark"] .mobile-sub-link:hover {
    background: #2a2a2a;
    color: #fff;
}

html[data-theme="dark"] .ham-bar {
    background: #ccc;
}

html[data-theme="dark"] .post-excerpt {
    color: #aaa;
}

html[data-theme="dark"] .post-date {
    color: #777;
}

html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb a {
    color: #555;
}

html[data-theme="dark"] .breadcrumb-category {
    color: #aaa !important;
}

html[data-theme="dark"] .post-meta-detail {
    color: #666;
}

html[data-theme="dark"] .meta-sep {
    color: #333;
}

html[data-theme="dark"] .post-nav-inline a {
    color: #555;
}

html[data-theme="dark"] .site-footer {
    border-top-color: #2e2e2e;
    color: #666;
}

html[data-theme="dark"] .footer-links a {
    color: #888;
}

html[data-theme="dark"] .footer-links a:hover {
    color: #ccc;
}

html[data-theme="dark"] .copyright {
    color: #555;
}

html[data-theme="dark"] .search-overlay {
    background: rgba(26, 26, 26, 0.98);
}

html[data-theme="dark"] .close-search {
    color: #ccc;
}

html[data-theme="dark"] .search-form input {
    background: transparent;
    color: var(--text-color);
    border-bottom-color: #666;
}

html[data-theme="dark"] .search-form input::placeholder {
    color: #666;
}

html[data-theme="dark"] .post-category {
    color: #74a9ff;
}

html[data-theme="dark"] .post-category:hover {
    color: #a0c4ff;
}

html[data-theme="dark"] .tag {
    background: #2e2e2e;
    color: #999;
}

html[data-theme="dark"] .tag:hover {
    background: #383838;
    color: #ccc;
}

html[data-theme="dark"] .page-item.active .page-link {
    background: #e0e0e0;
    color: #1a1a1a;
    border-color: #e0e0e0;
}

html[data-theme="dark"] .content-body blockquote {
    border-left-color: #444;
    background: #222;
    color: #bbb;
}

html[data-theme="dark"] .content-body blockquote strong {
    color: #e0e0e0;
}

html[data-theme="dark"] .content-body table {
    border-color: #2e2e2e;
}

html[data-theme="dark"] .content-body table th {
    background: #1e1e1e;
    color: #ccc;
    border-bottom-color: #2e2e2e;
}

html[data-theme="dark"] .content-body table td {
    color: #aaa;
    border-bottom-color: #242424;
}

html[data-theme="dark"] .content-body table tr:hover {
    background: #1a1a1a;
}

html[data-theme="dark"] .content-body h2 + p + p + p > strong:first-child,
html[data-theme="dark"] .content-body p + p + p > strong:first-child {
    border-top-color: #2e2e2e;
}

html[data-theme="dark"] .content-body > p:last-child > em:only-child {
    border-top-color: #2e2e2e;
    color: #555;
}

html[data-theme="dark"] .content-body pre,
html[data-theme="dark"] .content-body code {
    background: #242424;
    color: #ccc;
}

html[data-theme="dark"] .content-body hr {
    border-color: #2e2e2e;
}

/* 다크모드 — 본문 인라인 style 색상 무력화 */
html[data-theme="dark"] .content-body p[style],
html[data-theme="dark"] .content-body span[style],
html[data-theme="dark"] .content-body div[style],
html[data-theme="dark"] .content-body h1[style],
html[data-theme="dark"] .content-body h2[style],
html[data-theme="dark"] .content-body h3[style],
html[data-theme="dark"] .content-body h4[style],
html[data-theme="dark"] .content-body li[style] {
    color: var(--text-color) !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .trending-posts h3,
html[data-theme="dark"] .trending-title,
html[data-theme="dark"] .related-posts h3,
html[data-theme="dark"] .related-post-title {
    color: #e0e0e0;
}

html[data-theme="dark"] .author-name {
    color: #e0e0e0;
}

/* Author bar / box */
html[data-theme="dark"] .author-bar {
    border-bottom-color: #2e2e2e;
}

html[data-theme="dark"] .author-bio {
    color: #aaa;
}

html[data-theme="dark"] .author-more {
    color: #74a9ff;
}

/* Author card */
html[data-theme="dark"] .author-card {
    background: #242424;
    border-color: #2e2e2e;
}

html[data-theme="dark"] .author-card-name {
    color: #e0e0e0;
}

html[data-theme="dark"] .author-card-bio {
    color: #aaa;
}

/* Author profile page */
html[data-theme="dark"] .author-profile {
    background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
}

html[data-theme="dark"] .author-profile-name {
    color: #e0e0e0;
}

html[data-theme="dark"] .author-profile-bio {
    color: #aaa;
}

html[data-theme="dark"] .author-posts-title {
    color: #e0e0e0;
}

html[data-theme="dark"] .author-post-title {
    color: #d0d0d0;
}

html[data-theme="dark"] .author-post-date {
    color: #666;
}

/* Author list */
html[data-theme="dark"] .author-list-name {
    color: #e0e0e0;
}

html[data-theme="dark"] .author-list-bio {
    color: #aaa;
}

/* Social share border */
html[data-theme="dark"] .social-share {
    border-top-color: #2e2e2e;
    border-bottom-color: #2e2e2e;
}

/* Trending list border */
html[data-theme="dark"] .trending-item {
    border-bottom-color: #2e2e2e;
}

html[data-theme="dark"] .trending-posts h3 {
    border-bottom-color: #444;
}

/* Authors page (/authors) */
html[data-theme="dark"] .authors-title {
    color: #e0e0e0;
}

html[data-theme="dark"] .authors-desc {
    color: #aaa;
}

html[data-theme="dark"] .authors-category-divider::before,
html[data-theme="dark"] .authors-category-divider::after {
    background: #333;
}

html[data-theme="dark"] .author-list-card {
    background: #242424;
    border-color: #333;
}

html[data-theme="dark"] .author-list-card:hover {
    border-color: #555;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Author profile page (/author/:slug) */
html[data-theme="dark"] .author-posts-title {
    border-bottom-color: #333;
}

html[data-theme="dark"] .author-post-item {
    border-bottom-color: #333;
}

html[data-theme="dark"] .author-post-link:hover .author-post-title {
    color: #74a9ff;
}

html[data-theme="dark"] .author-posts-empty {
    color: #666;
}

html[data-theme="dark"] .back-to-top {
    background: #444;
}

html[data-theme="dark"] .back-to-top:hover {
    background: #555;
}

/* ==========================================================================
   Static Pages (About, Privacy, Disclaimer, Contact)
   ========================================================================== */

.static-page {
  padding: 0 1.25rem 4rem;
}

.static-page-container {
  max-width: 680px;
  margin: 0 auto;
}

.static-page-header {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 2.5rem;
}

.static-page-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}

.static-page-subtitle {
  font-size: 1.05rem;
  color: #666;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.static-page-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
}

.static-page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  margin: 2.8rem 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.static-page-content h2:first-child {
  margin-top: 0;
}

.static-page-content p {
  margin: 0 0 1.25rem;
}

.static-page-content a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}

.static-page-content a:hover {
  opacity: 0.6;
}

.static-page-content strong {
  font-weight: 600;
  color: #111;
}

/* About page */
.about-section {
  margin-bottom: 0.5rem;
}

.about-author-section {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.about-author-avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.about-author-body h2 {
  margin: 0 0 0.5rem;
}

.about-author-email a {
  font-size: 0.9rem;
  color: #666;
}

.about-category-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-category-item {
  padding: 0.75rem 1rem;
  border-left: 3px solid #111;
  background: #fafafa;
}

.about-category-link {
  text-decoration: none;
  color: #111;
  font-size: 1rem;
}

.about-category-link:hover {
  opacity: 0.7;
}

.about-category-count {
  font-size: 0.8rem;
  color: #888;
  font-weight: 400;
  margin-left: 0.35rem;
}

.about-category-desc {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.about-subcategory-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about-subcategory-list li a {
  display: inline-block;
  font-size: 0.82rem;
  color: #555;
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  background: #eeeeee;
  border-radius: 4px;
}

.about-subcategory-list li a:hover {
  background: #e0e0e0;
  color: #111;
}

html[data-theme="dark"] .about-author-section {
  background: #1e1e1e;
}

html[data-theme="dark"] .about-category-item {
  background: #1a1a1a;
  border-left-color: #e8e8e8;
}

html[data-theme="dark"] .about-category-link {
  color: #e8e8e8;
}

html[data-theme="dark"] .about-subcategory-list li a {
  background: #2a2a2a;
  color: #ccc;
}

html[data-theme="dark"] .about-subcategory-list li a:hover {
  background: #333;
  color: #e8e8e8;
}

@media (max-width: 480px) {
  .about-author-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Privacy page */
.privacy-section {
  margin-bottom: 0.5rem;
}

.privacy-section:last-child {
  margin-bottom: 0;
}

/* Disclaimer page */
.disclaimer-section {
  margin-bottom: 0.5rem;
}

.disclaimer-section:last-child {
  margin-bottom: 0;
}

/* Contact page */
.contact-section {
  margin-bottom: 2.5rem;
}

.contact-section:last-child {
  margin-bottom: 0;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
}

.contact-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  border-radius: 50%;
}

.contact-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.4rem;
}

.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 0.3rem !important;
  letter-spacing: 0.01em;
}

.contact-note {
  font-size: 0.92rem;
  color: #888;
  margin: 0 !important;
}

.contact-types {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

.contact-type {
  padding: 1.25rem 1.5rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.contact-type:hover {
  border-color: #ccc;
}

.contact-type strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.3rem;
}

.contact-type p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 !important;
  line-height: 1.5;
}

/* ---- Dark Mode for Static Pages ---- */

html[data-theme="dark"] .static-page-header {
  border-bottom-color: #333;
}

html[data-theme="dark"] .static-page-title {
  color: #e8e8e8;
}

html[data-theme="dark"] .static-page-subtitle {
  color: #999;
}

html[data-theme="dark"] .static-page-content {
  color: #ccc;
}

html[data-theme="dark"] .static-page-content h2 {
  color: #e8e8e8;
}

html[data-theme="dark"] .static-page-content a {
  color: #e8e8e8;
}

html[data-theme="dark"] .static-page-content strong {
  color: #e8e8e8;
}

html[data-theme="dark"] .contact-card {
  background: #1e1e1e;
  border-color: #333;
}

html[data-theme="dark"] .contact-card-icon {
  background: #e8e8e8;
  color: #111;
}

html[data-theme="dark"] .contact-card-body h3 {
  color: #e8e8e8;
}

html[data-theme="dark"] .contact-email {
  color: #e8e8e8;
}

html[data-theme="dark"] .contact-note {
  color: #777;
}

html[data-theme="dark"] .contact-type {
  background: #1e1e1e;
  border-color: #333;
}

html[data-theme="dark"] .contact-type:hover {
  border-color: #555;
}

html[data-theme="dark"] .contact-type strong {
  color: #e8e8e8;
}

html[data-theme="dark"] .contact-type p {
  color: #999;
}

/* ---- Responsive for Static Pages ---- */

@media (max-width: 768px) {
  .static-page-header {
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
  }

  .static-page-title {
    font-size: 1.75rem;
  }

  .static-page-subtitle {
    font-size: 0.95rem;
  }

  .static-page-content {
    font-size: 1rem;
  }

  .static-page-content h2 {
    font-size: 1.2rem;
    margin-top: 2.2rem;
  }

  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .contact-type {
    padding: 1rem 1.25rem;
  }
}

/* ============================================================
   콘텐츠 자동 조립 시스템 — 컴포넌트 스타일
   ============================================================ */

/* ── 색상 변수 ── */
:root {
  --accent-blue: #2563eb;
  --accent-blue-light: #eff6ff;
  --accent-blue-border: #bfdbfe;
  --accent-blue-strong: #1e3a8a;
  --accent-amber: #b45309;
  --accent-amber-light: #fffbeb;
  --accent-amber-border: #fde68a;
  --accent-emerald: #047857;
  --accent-emerald-light: #ecfdf5;
  --accent-emerald-border: #a7f3d0;
  --accent-slate: #475569;
  --accent-slate-light: #f8fafc;
  --accent-slate-border: #e2e8f0;
  --bg-secondary: #f6f6f6;
}
html[data-theme="dark"] {
  --accent-blue: #6ea8fe;
  --accent-blue-light: #1a2332;
  --accent-blue-border: #2a3f5f;
  --accent-blue-strong: #9db4e8;
  --accent-amber: #fbbf24;
  --accent-amber-light: #1f1a0e;
  --accent-amber-border: #44390e;
  --accent-emerald: #34d399;
  --accent-emerald-light: #0f1f1a;
  --accent-emerald-border: #134e3a;
  --accent-slate: #94a3b8;
  --accent-slate-light: #1a1d23;
  --accent-slate-border: #334155;
  --bg-secondary: #222222;
}

/* ── 1. 핵심요약 ── */
.summary-box {
  margin: 1rem 0 0;
  padding: 1.25rem 1.5rem 1.35rem;
  border: 1px solid var(--accent-blue-border);
  border-radius: 12px;
  background: var(--accent-blue-light);
  overflow: hidden;
}
.summary-box-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.summary-box-header svg {
  width: 14px; height: 14px;
  fill: none; stroke: #fff;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.summary-box-body { padding: 1.25rem 1.5rem 1.35rem; }
.summary-box-excerpt { font-size: 0.95rem; line-height: 1.8; color: var(--text-color, #1a1a1a); }
.summary-box-qa { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--accent-blue-border); }
.summary-box-question {
  font-size: 0.88rem; font-weight: 700; color: var(--accent-blue);
  margin-bottom: 0.3rem; display: flex; align-items: flex-start; gap: 0.35rem;
}
.summary-box-question .q-mark { font-weight: 800; flex-shrink: 0; }
.summary-box-answer { font-size: 0.93rem; line-height: 1.75; color: var(--text-color, #1a1a1a); margin-bottom: 0.6rem; }
.summary-box-points {
  list-style: none; padding: 0; margin: 0.4rem 0 0;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.summary-box-points li {
  font-size: 0.88rem; line-height: 1.6; color: var(--text-muted, #555);
  padding-left: 1.15rem; position: relative;
}
.summary-box-points li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-blue); opacity: 0.5;
}

/* ── 2. TOC 목차 ── */
.toc-box {
  margin: 1.5rem 0 1.5rem;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 10px;
  background: var(--bg-color, #fff);
  overflow: hidden;
}
.toc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; cursor: pointer; user-select: none;
  transition: background 0.15s;
}
.toc-header:hover { background: var(--bg-secondary, #f6f6f6); }
.toc-header-left { font-size: 0.92rem; font-weight: 700; color: var(--text-color, #1a1a1a); }
.toc-toggle {
  font-size: 0.8rem; color: var(--text-muted, #888);
  display: flex; align-items: center; gap: 0.3rem;
}
.toc-toggle svg {
  width: 14px; height: 14px; stroke: var(--text-muted, #888);
  fill: none; stroke-width: 2; transition: transform 0.2s;
}
.toc-box.collapsed .toc-toggle svg { transform: rotate(180deg); }
.toc-box.collapsed .toc-header { background: var(--bg-secondary, #f6f6f6); }
.toc-body {
  padding: 0 1.25rem 1rem; overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 600px; opacity: 1;
}
.toc-box.collapsed .toc-body { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc-counter; }
.toc-list li { counter-increment: toc-counter; border-bottom: 1px solid var(--border-color, #efefef); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0; text-decoration: none;
  color: var(--text-muted, #555); font-size: 0.9rem; line-height: 1.5;
  transition: color 0.15s;
}
.toc-list a:hover { color: var(--accent-blue); }
.toc-list a::before {
  content: counter(toc-counter) "."; flex-shrink: 0;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted, #888); min-width: 1.4rem;
}
.toc-list a:hover::before { color: var(--accent-blue); }

/* TOC h3 서브 아이템 */
.toc-list ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: toc-sub-counter;
}
.toc-list ol li {
  counter-increment: toc-sub-counter;
  border-bottom: 1px solid var(--border-color, #efefef);
}
.toc-list ol li:last-child { border-bottom: none; }
.toc-list ol a {
  padding-left: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted, #888);
}
.toc-list ol a::before {
  content: counter(toc-sub-counter, lower-alpha) ".";
  min-width: 1.2rem;
  font-size: 0.8rem;
}

/* ── 3. 전문가 조언 ── */
.expert-tip {
  margin: 2rem 0; padding: 1.15rem 1.35rem;
  border: 1px solid var(--accent-amber-border);
  border-radius: 10px; background: var(--accent-amber-light);
}
.expert-tip-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 700; color: var(--accent-amber); margin-bottom: 0.45rem;
}
.expert-tip-label svg {
  width: 15px; height: 15px; fill: none; stroke: var(--accent-amber);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.expert-tip p { font-size: 0.93rem; line-height: 1.8; color: var(--text-color, #1a1a1a); margin: 0; }

/* ── 4. 정보 테이블 ── */
.info-table-section { margin: 2.5rem 0; }
.info-table-title {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.45rem; color: var(--text-color, #1a1a1a);
}
.info-table-title-icon { font-size: 1rem; }
.info-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 10px; overflow: hidden; font-size: 0.92rem;
}
.info-table tr { border-bottom: 1px solid var(--border-color, #efefef); }
.info-table tr:last-child { border-bottom: none; }
.info-table th {
  text-align: left; vertical-align: top; padding: 0.75rem 1rem;
  background: var(--bg-secondary, #f6f6f6); font-weight: 700; color: var(--text-color, #1a1a1a);
  width: 120px; min-width: 100px; font-size: 0.88rem; line-height: 1.6;
  border-right: 1px solid var(--border-color, #efefef);
}
.info-table td {
  padding: 0.75rem 1rem; color: var(--text-muted, #555);
  line-height: 1.7; background: var(--bg-color, #fff);
}
.info-table td strong { color: var(--text-color, #1a1a1a); font-weight: 700; }

/* ── 5. HowTo 타임라인 ── */
.howto-section { margin: 2.5rem 0; }
.howto-title {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color, #333);
  display: flex; align-items: center; gap: 0.5rem; color: var(--text-color, #1a1a1a);
}
.howto-title-icon { font-size: 1.1rem; }
.howto-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin-bottom: 1.25rem; font-size: 0.88rem; color: var(--text-muted, #555);
}
.howto-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.howto-meta-item svg {
  width: 15px; height: 15px; stroke: var(--text-muted, #555);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.howto-supply {
  margin-bottom: 2rem; padding: 1rem 1.25rem;
  background: var(--bg-secondary, #f6f6f6); border-radius: 8px;
  font-size: 0.92rem; line-height: 1.8;
}
.howto-supply-label { font-weight: 700; color: var(--text-color, #1a1a1a); margin-right: 0.6rem; }
.howto-supply-label::after {
  content: ''; display: inline-block; width: 1px; height: 0.9em;
  background: var(--border-color, #e0e0e0); margin-left: 0.6rem; vertical-align: middle;
}
.howto-supply-list { color: var(--text-muted, #555); }
.howto-steps { list-style: none; padding: 0; margin: 0; position: relative; }
/* .content-body ol { padding-left } 규칙 오버라이드 (specificity 0,2,0 > 0,1,1) */
.content-body .howto-steps { padding-left: 0; }
.content-body .howto-step { margin-bottom: 0; }
.howto-steps::before {
  content: ''; position: absolute; left: 19px; top: 0; bottom: 0;
  width: 2px; background: var(--border-color, #e0e0e0);
}
.howto-step { display: flex; gap: 1.25rem; position: relative; padding-bottom: 2rem; }
.howto-step:last-child { padding-bottom: 0; }
.howto-step:last-child::after {
  content: ''; position: absolute; left: 19px; top: 40px; bottom: 0;
  width: 2px; background: var(--bg-color, #fff); z-index: 1;
}
.howto-step-marker {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-color, #333); color: #fff;
  font-size: 0.92rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  transition: transform 0.2s, box-shadow 0.2s;
}
.howto-step:hover .howto-step-marker { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.howto-step-content { flex: 1; padding-top: 0.5rem; min-width: 0; }
.howto-step-title { font-size: 1.08rem; font-weight: 700; margin: 0 0 0.4rem; line-height: 1.45; color: var(--text-color, #1a1a1a); }
.howto-step-content p { margin: 0; font-size: 0.94rem; line-height: 1.78; color: var(--text-muted, #555); }
.howto-step-image { margin-top: 0.85rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color, #e0e0e0); }
.howto-step-image img { width: 100%; height: auto; display: block; }

/* HowTo 스텝 사이 광고 */
.howto-step-ad { display: block; padding: 0.5rem 0 1.5rem; }
.howto-step-ad-inner {
  padding-left: calc(40px + 1.25rem); /* marker width + gap */
  box-sizing: border-box;
}
.howto-step-ad .ad-container { margin: 0; min-height: 250px; max-height: none; overflow: visible; }
@media (max-width: 600px) {
  .howto-step-ad-inner {
    padding-left: calc(32px + 1rem);
    box-sizing: border-box;
  }
}

/* ── 6. FAQ ── */
.faq-section { margin: 2.5rem 0; }
.faq-title {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-emerald); color: var(--text-color, #1a1a1a);
}
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item { border-bottom: 1px solid var(--border-color, #efefef); }
.faq-item:last-child { border-bottom: none; }
.faq-ad-item { list-style: none; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color, #efefef); }
.faq-ad-item .ad-container { margin: 0; max-width: 100%; min-height: 250px; max-height: none; overflow: visible; }
.faq-question { display: flex; align-items: flex-start; gap: 0.5rem; padding: 1.1rem 0 0.5rem; }
.faq-question-marker {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 6px;
  background: var(--accent-emerald); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 0.05rem;
}
.faq-question-text { flex: 1; font-size: 0.98rem; font-weight: 700; line-height: 1.55; color: var(--text-color, #1a1a1a); }
.faq-answer { padding: 0 0 1.1rem 2.35rem; font-size: 0.93rem; line-height: 1.8; color: var(--text-muted, #555); }

/* ── 7. 출처 ── */
.source-attribution {
  margin: 2.5rem 0 1rem; padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
  font-size: 0.82rem; line-height: 1.65; color: var(--text-muted, #888);
  display: flex; align-items: flex-start; gap: 0.45rem;
}
.source-attribution-label { flex-shrink: 0; font-weight: 700; color: var(--text-muted, #555); }
.source-attribution a { color: var(--text-muted, #888); text-decoration: underline; text-underline-offset: 2px; }
.source-attribution a:hover { color: var(--accent-blue); }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .summary-box-body { padding: 1rem 1.15rem; }
  .summary-box-header { padding: 0.55rem 1.15rem; font-size: 0.78rem; }
  .toc-box { margin: 1rem 0 1rem; }
  .toc-header { padding: 0.65rem 1rem; }
  .toc-body { padding: 0 1rem 0.5rem; }
  .toc-list a { font-size: 0.85rem; padding: 0.5rem 0; }
  .expert-tip { padding: 1rem 1.15rem; }
  .info-table th { width: 90px; min-width: 80px; padding: 0.6rem 0.75rem; font-size: 0.82rem; }
  .info-table td { padding: 0.6rem 0.75rem; font-size: 0.88rem; }
  .howto-steps::before { left: 15px; }
  .howto-step:last-child::after { left: 15px; }
  .howto-step-marker { width: 32px; height: 32px; font-size: 0.82rem; }
  .howto-step { gap: 1rem; }
  .howto-meta { flex-direction: column; gap: 0.4rem; }
  .faq-question-marker { width: 22px; height: 22px; font-size: 0.7rem; }
  .faq-answer { padding-left: 1.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .howto-step-marker { transition: none; }
  .toc-body { transition: none; }
  .toc-toggle svg { transition: none; }
}

/* =====================================================
   한국 언론사 스타일 모바일 레이아웃 (768px 이하)
   PC 레이아웃(768px 초과)은 변경하지 않음
   ===================================================== */
@media (max-width: 768px) {

    /* ── 1. 기사 목록/카드 리스트: 썸네일 풀폭 세로 스택 ── */
    .post-item {
        padding: 28px 0;
    }

    .post-item-inner {
        flex-direction: column;
    }

    .post-thumb-wrap {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }

    .post-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 0;
        opacity: 1;
    }

    /* ── 2. 대표 이미지(featured-image): 좌우 여백 0, 풀폭 ── */
    .featured-image {
        margin: 1rem -16px;
        width: auto;
        border-radius: 0;
    }

    .featured-image img {
        border-radius: 0;
    }

    /* ── 3. 푸터 영역: 좌우 12px ── */
    .footer-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* 구 푸터(.container 기반) 호환 */
    .site-footer > .container {
        padding: 0 12px;
    }
}

/* ── 포스트 페이지 사이드바 레이아웃 ─────────────────────────────── */
.post-page-outer {
    max-width: 1060px;
    margin: 0 auto;
    padding: 2.5rem 24px 0;
}

.post-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 680px) 300px;
    gap: 48px;
    align-items: start;
    justify-content: center;
}

/* 사이드바 */
.post-sidebar {
    position: sticky;
    top: 54px; /* 38px(bn-wrap) + 16px */
    align-self: start;
    min-width: 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

/* 사이드바 내 related-posts-grid: 1열 */
.post-sidebar .related-posts-grid,
.related-posts-grid.sidebar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* 사이드바 내 related-post-thumbnail: 16:9 비율 */
.post-sidebar .related-post-thumbnail {
    aspect-ratio: 16 / 9;
}

/* 사이드바 내 related-post-placeholder: 16:9 비율 */
.post-sidebar .related-post-placeholder {
    aspect-ratio: 16 / 9;
}

/* 모바일: 데스크톱 전용 요소 숨기기 */
.sidebar-desktop-only {
    display: block;
}
.sidebar-mobile-only {
    display: none;
}

/* 광고 컨테이너 — 모바일 가로 넘침 방지 */
.ad-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.ad-container ins.adsbygoogle {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* post-header 위 광고 — 모바일 전용 */
.ad-before-post-header { display: none; }
@media (max-width: 768px) {
    .ad-before-post-header {
        display: block;
        max-width: 100%;
        overflow: hidden;
        min-height: 250px;
        max-height: 280px;
    }
}

/* 핵심요약 위 광고 — 요약박스와 간격 확보 */
.ad-below-summary {
    margin-bottom: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    min-height: 250px;
}

/* 사이드바 광고 컨테이너 */
.post-sidebar .ad-container {
    margin-bottom: 2rem;
}

.ad-sidebar {
    min-height: 280px;
}

.ad-in-content {
    min-height: 280px;
}

/* AdSense 주입 iframe (ue-sidebar-container 등) 가로 넘침 방지 */
iframe {
    max-width: 100% !important;
}

/* 반응형: 768px 이하 - 사이드바 해제, 본문 하단에 표시 */
@media (max-width: 900px) {
    .post-page-outer {
        padding: 0 16px;
    }

    .post-page-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    /* 그리드 아이템 기본값(min-width: auto) 해제 — 1fr 내부에서 팽창 방지 */
    .post-detail {
        min-width: 0;
    }

    .post-sidebar {
        position: static;
        display: none; /* 사이드바 자체는 숨김 */
    }

    /* 모바일: 본문 하단에 표시되는 요소 보이기 */
    .sidebar-desktop-only {
        display: none;
    }
    .sidebar-mobile-only {
        display: block;
    }
}

/* =====================================================
   Home Page Redesign (.home-* prefix)
   ===================================================== */

.home-main {
    padding-bottom: 4rem;
}

.home-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 홈 화면 히어로/서비스 탐색 섹션 스타일은 index.astro, ServiceNavigator.astro의
   scoped <style>에 있음 (2026-07-04 블로그형 홈 → 서비스 탐색 허브 개편) */

/* =====================================================
   List Pages (category / tag / search) — .list-* prefix
   ===================================================== */

.list-main {
    padding-bottom: 4rem;
}

.list-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── 페이지 헤더 ── */
.list-page-header {
    padding: 28px 0 0;
}

.list-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.list-breadcrumb a {
    color: #999;
    text-decoration: none;
}

.list-breadcrumb a:hover {
    color: var(--text-color);
}

.list-breadcrumb span {
    color: #bbb;
}

.list-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.list-page-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

.list-total {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    flex-shrink: 0;
}

/* ── 카테고리 탭 ── */
.list-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0 0;
}

.list-tabs::-webkit-scrollbar {
    display: none;
}

.list-tab {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: #f1f3f5;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.list-tab:hover {
    background: #e2e6ea;
    color: #111;
}

.list-tab-active {
    background: #4A7BF7;
    color: #fff;
}

.list-tab-active:hover {
    background: #3a6be0;
    color: #fff;
}

/* ── 정렬 버튼 ── */
.list-sort {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 0 4px;
}

.list-sort-btn {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.list-sort-btn:hover {
    color: var(--text-color);
}

.list-sort-active {
    font-weight: 700;
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

/* ── 검색 바 ── */
.list-search-bar {
    padding: 20px 0 8px;
}

.list-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.list-search-input {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    font-size: 16px;
    font-family: var(--font-main);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s;
}

.list-search-input:focus {
    border-color: #4A7BF7;
}

.list-search-btn {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    background: #4A7BF7;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.list-search-btn:hover {
    background: #3a6be0;
}

/* ── 3열 카드 그리드 ── */
.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 32px;
    padding: 24px 0 0;
}

.list-card {
    display: flex;
    flex-direction: column;
}

.list-thumb-link {
    display: block;
    text-decoration: none;
}

.list-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f3f5;
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.list-card:hover .list-thumb img {
    transform: scale(1.02);
}

.list-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a29bfe 0%, #fd79a8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
}

.list-card-body {
    padding: 14px 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.list-badge {
    font-size: 12px;
    font-weight: 600;
    color: #4A7BF7;
    letter-spacing: 0.01em;
}

.list-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.list-card-title a:hover {
    color: #4A7BF7;
}

.list-card-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.list-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── 쇼핑 상품 카드/상세 (.shop-*) ── */
.shop-card-price {
    font-size: 17px;
    font-weight: 700;
    color: #e8590c;
    margin: 0;
}

.shop-price {
    font-size: 22px;
    font-weight: 800;
    color: #e8590c;
    margin: 0;
}

.shop-buy-btn {
    box-sizing: border-box;
    display: inline-block;
    max-width: 100%;
    padding: 12px 24px;
    background: #e8590c;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.shop-buy-btn:hover {
    background: #c94e0a;
}

.shop-disclosure {
    font-size: 12px;
    color: #999;
    margin: 0 0 24px;
}

/* 상단 히어로 카드 v2 (이미지 배지 + 가격 + 태그 + 아이콘 CTA + 신선도 안내) */
.shop-hero-v2 {
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 8px 0 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 60%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 20px;
}

.shop-hero-v2-media {
    position: relative;
    flex: 0 0 auto;
    width: 220px;
}

.shop-hero-v2-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(232, 89, 12, 0.18);
}

.shop-hero-v2-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    padding: 4px 10px;
    background: #e8590c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.shop-hero-v2-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.shop-hero-v2-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: #c2410c;
    margin: 0;
}

.shop-price--lg {
    font-size: 30px;
}

.shop-hero-v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-hero-v2-tags li {
    font-size: 12px;
    color: #9a3412;
    background: rgba(232, 89, 12, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
}

.shop-buy-btn--hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    margin-top: 4px;
}

.shop-buy-btn--hero:hover {
    transform: translateY(-1px);
}

.shop-hero-v2-meta {
    font-size: 12px;
    color: #a8734f;
    margin: 0;
}

@media (max-width: 640px) {
    .shop-hero-v2 {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .shop-hero-v2-media {
        width: 100%;
        max-width: 220px;
    }
    .shop-hero-v2-info {
        align-items: center;
    }
}

/* 하단 클로징 CTA (썸네일 + 상품명/가격 + 큰 버튼) */
.shop-closing-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 16px;
    padding: 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 16px;
}

.shop-closing-cta-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
}

.shop-closing-cta-body {
    flex: 1;
    min-width: 0;
}

.shop-closing-cta-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-closing-cta-price {
    font-size: 18px;
    font-weight: 800;
    color: #e8590c;
    margin: 0;
}

.shop-buy-btn--lg {
    flex: 0 0 auto;
    padding: 16px 28px;
    font-size: 16px;
}

@media (max-width: 640px) {
    .shop-closing-cta {
        flex-wrap: wrap;
    }
    .shop-buy-btn--lg {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* PC 사이드바 스티키 CTA 박스(.post-sidebar가 이미 position:sticky) */
.shop-sidebar-cta {
    padding: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    text-align: center;
}

.shop-sidebar-cta-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 14px;
}

.shop-sidebar-cta-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-sidebar-cta .shop-price {
    margin-bottom: 14px;
}

.shop-buy-btn--sidebar {
    display: block;
    width: 100%;
}

.shop-sidebar-links-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted, #999);
    margin: 0 0 8px;
    padding: 0 4px;
}

.shop-sidebar-svc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-sidebar-svc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.shop-sidebar-svc-link:hover {
    border-color: var(--svc-color);
    background: color-mix(in srgb, var(--svc-color) 10%, var(--bg-color));
    color: var(--svc-color);
}

.shop-sidebar-svc-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--svc-color) 18%, transparent);
    font-size: 14px;
}

/* ── 빈 상태 ── */
.list-empty {
    padding: 64px 0;
    text-align: center;
    color: #999;
}

.list-empty p {
    font-size: 16px;
    margin-bottom: 16px;
}

.list-empty a {
    color: #4A7BF7;
    text-decoration: none;
    font-weight: 600;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .list-grid {
        grid-template-columns: 1fr;
    }

    .list-page-title {
        font-size: 22px;
    }
}

/* ── 다크모드 ── */
html[data-theme="dark"] .list-tab {
    background: #2a2a2a;
    color: #ccc;
}

html[data-theme="dark"] .list-tab:hover {
    background: #333;
    color: #fff;
}

html[data-theme="dark"] .list-tab-active {
    background: #4A7BF7;
    color: #fff;
}

html[data-theme="dark"] .list-sort-active {
    color: #e0e0e0;
    border-bottom-color: #e0e0e0;
}

html[data-theme="dark"] .list-sort-btn:hover {
    color: #e0e0e0;
}

html[data-theme="dark"] .list-search-input {
    background: #1e1e1e;
    border-color: #2e2e2e;
    color: #e0e0e0;
}

html[data-theme="dark"] .list-search-input:focus {
    border-color: #5a8bf8;
}

html[data-theme="dark"] .list-thumb {
    background: #2a2a2a;
}

html[data-theme="dark"] .list-badge {
    color: #6ea1ff;
}

html[data-theme="dark"] .list-card-title a {
    color: #e0e0e0;
}

html[data-theme="dark"] .list-card-title a:hover {
    color: #6ea1ff;
}

html[data-theme="dark"] .list-card-excerpt {
    color: #999;
}

html[data-theme="dark"] .list-card-meta {
    color: #777;
}

html[data-theme="dark"] .list-page-title {
    color: #e0e0e0;
}

html[data-theme="dark"] .list-total {
    color: #666;
}

html[data-theme="dark"] .shop-hero-v2,
html[data-theme="dark"] .shop-closing-cta,
html[data-theme="dark"] .shop-sidebar-cta {
    background: #2a1d10;
    border-color: #5a3a1a;
}

html[data-theme="dark"] .shop-hero-v2-media img,
html[data-theme="dark"] .shop-closing-cta-thumb,
html[data-theme="dark"] .shop-sidebar-cta-img {
    background: #1a1a1a;
}

html[data-theme="dark"] .shop-closing-cta-name,
html[data-theme="dark"] .shop-sidebar-cta-name {
    color: #e0e0e0;
}

html[data-theme="dark"] .shop-hero-v2-tags li {
    color: #fdba74;
    background: rgba(232, 89, 12, 0.2);
}

html[data-theme="dark"] .shop-hero-v2-meta {
    color: #8a6a52;
}

html[data-theme="dark"] .shop-disclosure {
    color: #777;
}

/* =====================================================
   Mobile Floating Buttons (.floating-*)
   ===================================================== */

.floating-buttons {
    display: none; /* 데스크톱 숨김 */
    position: fixed;
    right: 16px;
    bottom: 24px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.25s, transform 0.2s;
}

.floating-btn:hover {
    transform: scale(1.08);
}

.floating-btn-top {
    opacity: 0;
    pointer-events: none;
}

.floating-btn-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* 토스트 메시지 */
.floating-toast {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 1001;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: var(--font-main);
}

.floating-toast.show {
    display: block;
    opacity: 1;
}

.floating-toast.hide {
    opacity: 0;
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
    .floating-buttons {
        display: flex;
    }

    .floating-toast {
        display: none; /* JS가 .show로 제어 */
    }
}

/* 다크모드 */
html[data-theme="dark"] .floating-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .floating-toast {
    background: #555;
}

/* ═══════════════════════════════════════
   Series Navigation — 모바일 (본문 상단)
   ═══════════════════════════════════════ */

.series-nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .series-nav-mobile {
    display: block;
  }
}

.series-nav {
  margin: 1.5rem 0 2rem;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.series-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: #fafafa;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.series-nav-toggle:hover { background: #f5f5f5; }

.series-nav-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.series-nav-icon { font-size: 0.85rem; color: #999; flex-shrink: 0; }

.series-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.series-nav-position { font-size: 0.8rem; color: #888; flex-shrink: 0; }

.series-nav-chevron {
  font-size: 0.75rem;
  color: #999;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.series-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  counter-reset: series-item;
}

.series-nav-list.is-open {
  max-height: 600px;
  border-top: 1px solid #e8e8e8;
}

.series-nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-bottom: 1px solid #f2f2f2;
  counter-increment: series-item;
}

.series-nav-item:last-child { border-bottom: none; }

.series-nav-item::before {
  content: counter(series-item) ".";
  font-size: 0.82rem;
  color: #aaa;
  min-width: 1.5rem;
  flex-shrink: 0;
}

.series-nav-link {
  font-size: 0.88rem;
  color: #444;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s;
}

.series-nav-link:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
}

.series-nav-item.is-current { background: #f8f8f8; }
.series-nav-marker { color: #666; font-size: 0.75rem; }

.series-nav-current-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #222;
}

/* ═══════════════════════════════════════
   Series Sidebar (PC 전용)
   ═══════════════════════════════════════ */

.series-nav-sidebar {
  margin-bottom: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.series-sidebar-header {
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
}

.series-sidebar-title-link { text-decoration: none; }
.series-sidebar-title-link:hover .series-sidebar-title { color: #000; }

.series-sidebar-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 0.25rem;
  line-height: 1.35;
  transition: color 0.15s;
}

.series-sidebar-position { font-size: 0.75rem; color: #999; }

.series-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 360px;
  overflow-y: auto;
}

.series-sidebar-list::-webkit-scrollbar { width: 3px; }
.series-sidebar-list::-webkit-scrollbar-track { background: transparent; }
.series-sidebar-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.series-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  transition: background 0.12s;
}

.series-sidebar-item:hover { background: #fafafa; }

.series-sidebar-order {
  font-size: 0.72rem;
  font-weight: 600;
  color: #bbb;
  min-width: 1.2rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
  text-align: right;
}

.series-sidebar-link {
  font-size: 0.82rem;
  color: #555;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.12s;
}

.series-sidebar-link:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #ccc;
}

.series-sidebar-item.is-current {
  background: #f5f7fa;
  border-left: 3px solid #444;
  padding-left: calc(1rem - 3px);
}

.series-sidebar-item.is-current .series-sidebar-order { color: #444; }

.series-sidebar-current-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

.series-sidebar-viewall {
  display: block;
  padding: 0.6rem 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.78rem;
  color: #888;
  text-decoration: none;
  text-align: center;
  transition: color 0.12s, background 0.12s;
}

.series-sidebar-viewall:hover { color: #444; background: #fafafa; }

/* ═══════════════════════════════════════
   HowTo Sidebar (PC 전용)
   ═══════════════════════════════════════ */

.howto-nav-sidebar {
  margin-bottom: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.howto-nav-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
}

.howto-nav-icon { font-size: 0.9rem; flex-shrink: 0; }

.howto-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #222;
  flex: 1;
  min-width: 0;
}

.howto-nav-time {
  font-size: 0.72rem;
  color: #999;
  flex-shrink: 0;
  white-space: nowrap;
}

.howto-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 320px;
  overflow-y: auto;
  counter-reset: none;
}

.howto-nav-list::-webkit-scrollbar { width: 3px; }
.howto-nav-list::-webkit-scrollbar-track { background: transparent; }
.howto-nav-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.howto-nav-item { display: block; }

.howto-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background 0.12s;
}

.howto-nav-link:hover { background: #fafafa; }

.howto-nav-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: #bbb;
  min-width: 1.2rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
  text-align: right;
}

.howto-nav-text {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
  transition: color 0.12s;
}

.howto-nav-link:hover .howto-nav-text {
  color: #111;
}

.howto-nav-link:hover .howto-nav-num { color: #888; }

/* ═══════════════════════════════════════
   TOC Nav Sidebar
   ═══════════════════════════════════════ */

.toc-nav-sidebar {
  margin-bottom: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.toc-nav-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
}

.toc-nav-icon { font-size: 0.9rem; flex-shrink: 0; }

.toc-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #222;
  flex: 1;
  min-width: 0;
}

.toc-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 320px;
  overflow-y: auto;
  counter-reset: toc-counter;
}

.toc-nav-list::-webkit-scrollbar { width: 3px; }
.toc-nav-list::-webkit-scrollbar-track { background: transparent; }
.toc-nav-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.toc-nav-item { display: block; counter-increment: toc-counter; }

.toc-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background 0.12s;
}

.toc-nav-link::before {
  content: counter(toc-counter);
  font-size: 0.72rem;
  font-weight: 600;
  color: #bbb;
  min-width: 1.2rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
  text-align: right;
  transition: color 0.12s;
}

.toc-nav-link:hover { background: #fafafa; }
.toc-nav-link:hover::before { color: #888; }

.toc-nav-text {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
  transition: color 0.12s;
}

.toc-nav-link:hover .toc-nav-text { color: #111; }

/* 다크모드 — TOC Nav Sidebar */
html[data-theme="dark"] .toc-nav-sidebar { border-color: #333; background: #1a1a1a; }
html[data-theme="dark"] .toc-nav-header { border-bottom-color: #2a2a2a; }
html[data-theme="dark"] .toc-nav-title { color: #ddd; }
html[data-theme="dark"] .toc-nav-link:hover { background: #222; }
html[data-theme="dark"] .toc-nav-link:hover .toc-nav-text { color: #eee; }
html[data-theme="dark"] .toc-nav-list::-webkit-scrollbar-thumb { background: #444; }

/* ═══════════════════════════════════════
   FAQ Nav Sidebar
   ═══════════════════════════════════════ */

.faq-nav-sidebar {
  margin-bottom: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.faq-nav-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
}

.faq-nav-icon { font-size: 0.9rem; flex-shrink: 0; }

.faq-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #222;
  flex: 1;
  min-width: 0;
}

.faq-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 320px;
  overflow-y: auto;
}

.faq-nav-list::-webkit-scrollbar { width: 3px; }
.faq-nav-list::-webkit-scrollbar-track { background: transparent; }
.faq-nav-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.faq-nav-item { display: block; }

.faq-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background 0.12s;
}

.faq-nav-link:hover { background: #fafafa; }

.faq-nav-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: #bbb;
  min-width: 1.2rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
  text-align: right;
}

.faq-nav-text {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
  transition: color 0.12s;
}

.faq-nav-link:hover .faq-nav-text { color: #111; }
.faq-nav-link:hover .faq-nav-num { color: #888; }

/* ═══════════════════════════════════════
   Series Detail Page
   ═══════════════════════════════════════ */

.series-detail-layout { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }

.series-header { margin-bottom: 2.5rem; text-align: center; }

.series-hero-image { margin-bottom: 1.5rem; border-radius: 8px; overflow: hidden; }
.series-hero-image img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

.series-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }

.series-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 0.75rem;
}

.series-post-count { font-size: 0.85rem; color: #999; }

.series-post-list { list-style: none; margin: 0; padding: 0; }

.series-post-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  transition: background 0.15s;
}

.series-post-card:hover { background: #fafafa; }

.series-post-order {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ddd;
  min-width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}

.series-post-info { flex: 1; min-width: 0; }

.series-post-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.series-post-excerpt {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.series-post-meta { font-size: 0.8rem; color: #aaa; margin-top: 0.35rem; }

.series-post-thumb { width: 120px; flex-shrink: 0; }
.series-post-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }

/* ═══════════════════════════════════════
   Series List Page
   ═══════════════════════════════════════ */

.series-list-layout { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.series-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.series-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.series-card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.series-card-content { padding: 1rem; }

.series-card-title { font-size: 1.1rem; font-weight: 600; color: #222; margin-bottom: 0.4rem; }

.series-card-desc {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.series-card-count { font-size: 0.8rem; color: #aaa; }

/* ═══════════════════════════════════════
   다크모드 — 모바일 시리즈 네비게이션
   ═══════════════════════════════════════ */

html[data-theme="dark"] .series-nav { border-color: #333; }
html[data-theme="dark"] .series-nav-toggle { background: #1e1e1e; }
html[data-theme="dark"] .series-nav-toggle:hover { background: #252525; }
html[data-theme="dark"] .series-nav-title { color: #ddd; }
html[data-theme="dark"] .series-nav-list.is-open { border-top-color: #333; }
html[data-theme="dark"] .series-nav-item { border-bottom-color: #2a2a2a; }
html[data-theme="dark"] .series-nav-link { color: #bbb; }
html[data-theme="dark"] .series-nav-link:hover { color: #fff; text-decoration-color: #555; }
html[data-theme="dark"] .series-nav-item.is-current { background: #252525; }
html[data-theme="dark"] .series-nav-current-text { color: #eee; }

/* ═══════════════════════════════════════
   다크모드 — PC 사이드바 시리즈
   ═══════════════════════════════════════ */

html[data-theme="dark"] .series-nav-sidebar { border-color: #333; background: #1a1a1a; }
html[data-theme="dark"] .series-sidebar-header { border-bottom-color: #2a2a2a; }
html[data-theme="dark"] .series-sidebar-title { color: #ddd; }
html[data-theme="dark"] .series-sidebar-title-link:hover .series-sidebar-title { color: #fff; }
html[data-theme="dark"] .series-sidebar-position { color: #777; }
html[data-theme="dark"] .series-sidebar-item:hover { background: #222; }
html[data-theme="dark"] .series-sidebar-order { color: #555; }
html[data-theme="dark"] .series-sidebar-link { color: #aaa; }
html[data-theme="dark"] .series-sidebar-link:hover { color: #eee; text-decoration-color: #555; }
html[data-theme="dark"] .series-sidebar-item.is-current { background: #252525; border-left-color: #888; }
html[data-theme="dark"] .series-sidebar-item.is-current .series-sidebar-order { color: #888; }
html[data-theme="dark"] .series-sidebar-current-text { color: #eee; }
html[data-theme="dark"] .series-sidebar-list::-webkit-scrollbar-thumb { background: #444; }
html[data-theme="dark"] .series-sidebar-viewall { border-top-color: #2a2a2a; color: #666; }
html[data-theme="dark"] .series-sidebar-viewall:hover { color: #aaa; background: #222; }

/* ═══════════════════════════════════════
   다크모드 — PC 사이드바 HowTo
   ═══════════════════════════════════════ */

html[data-theme="dark"] .howto-nav-sidebar { border-color: #333; background: #1a1a1a; }
html[data-theme="dark"] .howto-nav-header { border-bottom-color: #2a2a2a; }
html[data-theme="dark"] .howto-nav-title { color: #ddd; }
html[data-theme="dark"] .howto-nav-time { color: #666; }
html[data-theme="dark"] .howto-nav-link:hover { background: #222; }
html[data-theme="dark"] .howto-nav-num { color: #555; }
html[data-theme="dark"] .howto-nav-text { color: #aaa; }
html[data-theme="dark"] .howto-nav-link:hover .howto-nav-text { color: #eee; }
html[data-theme="dark"] .howto-nav-link:hover .howto-nav-num { color: #777; }
html[data-theme="dark"] .howto-nav-list::-webkit-scrollbar-thumb { background: #444; }

html[data-theme="dark"] .faq-nav-sidebar { border-color: #333; background: #1a1a1a; }
html[data-theme="dark"] .faq-nav-header { border-bottom-color: #2a2a2a; }
html[data-theme="dark"] .faq-nav-title { color: #ddd; }
html[data-theme="dark"] .faq-nav-link:hover { background: #222; }
html[data-theme="dark"] .faq-nav-num { color: #555; }
html[data-theme="dark"] .faq-nav-text { color: #aaa; }
html[data-theme="dark"] .faq-nav-link:hover .faq-nav-text { color: #eee; }
html[data-theme="dark"] .faq-nav-link:hover .faq-nav-num { color: #777; }
html[data-theme="dark"] .faq-nav-list::-webkit-scrollbar-thumb { background: #444; }

/* ═══════════════════════════════════════
   다크모드 — 시리즈 상세/목록 페이지
   ═══════════════════════════════════════ */

html[data-theme="dark"] .series-post-card { border-bottom-color: #2a2a2a; }
html[data-theme="dark"] .series-post-card:hover { background: #1e1e1e; }
html[data-theme="dark"] .series-post-order { color: #444; }
html[data-theme="dark"] .series-post-title { color: #ddd; }
html[data-theme="dark"] .series-card { border-color: #333; }
html[data-theme="dark"] .series-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
html[data-theme="dark"] .series-card-title { color: #ddd; }
html[data-theme="dark"] .series-title { color: #eee; }
html[data-theme="dark"] .series-description { color: #999; }

/* ═══════════════════════════════════════
   반응형
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .series-grid { grid-template-columns: 1fr; }
  .series-post-thumb { width: 80px; }
  .series-post-title { font-size: 0.95rem; }
  .series-hero-image img { aspect-ratio: 16/9; }
}

/* 인라인 추천 (함께 읽어보세요) */
.inline-recommend {
    border-left: 4px solid #1a2744;
    background: #f7f8fa;
    padding: 16px 20px;
    margin: 2rem 0;
}

.inline-recommend-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.inline-recommend-header-icon {
    font-size: 0.85rem;
}

.inline-recommend-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    color: #111;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.5;
    padding: 5px 0;
    border-top: 1px solid #e8e8e8;
}

.inline-recommend-card:first-of-type {
    border-top: none;
}

.inline-recommend-card:hover .inline-recommend-title {
    text-decoration: underline;
}

.inline-recommend-title {
    flex: 1;
}

.inline-recommend-arrow {
    flex-shrink: 0;
    color: #888;
    font-size: 0.9rem;
}

html[data-theme="dark"] .inline-recommend {
    background: #1e2232;
    border-left-color: #4a6fa5;
}

html[data-theme="dark"] .inline-recommend-header {
    color: #999;
}

html[data-theme="dark"] .inline-recommend-card {
    color: #e0e0e0;
    border-top-color: #2a2a3a;
}

/* =====================================================
   정적 안내 페이지 (소개 / 개인정보처리방침 / 면책조항)
   ===================================================== */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.legal-header {
    margin-bottom: 2rem;
}
.legal-header h1 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}
.legal-effective-date {
    font-size: 0.8rem;
    color: var(--text-muted, #999);
    margin: 0;
}
.legal-notice-box {
    padding: 1.1rem 1.35rem;
    margin-bottom: 2rem;
    border: 1px solid var(--accent-blue-border);
    border-radius: 12px;
    background: var(--accent-blue-light);
}
.legal-notice-label,
.legal-warning-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.legal-notice-label { color: var(--accent-blue); }
.legal-notice-box p { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--text-color, #1a1a1a); }

.legal-warning-box {
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border: 1px solid var(--accent-amber-border);
    border-radius: 10px;
    background: var(--accent-amber-light);
}
.legal-warning-label { color: var(--accent-amber); }
.legal-warning-box p { margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--text-color, #1a1a1a); }

.legal-section { margin-bottom: 2.25rem; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
    font-size: 1rem;
    margin: 0 0 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color, #eee);
}
.legal-section h3 {
    font-size: 0.95rem;
    margin: 1.25rem 0 0.5rem;
}
.legal-section p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-color, #333);
    margin: 0 0 0.75rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul,
.legal-section ol {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-color, #333);
    padding-left: 1.25rem;
    margin: 0 0 0.75rem;
}
.legal-section li { margin-bottom: 0.4rem; }
.legal-section li:last-child { margin-bottom: 0; }
.legal-section a { color: var(--accent-blue); }

.legal-table-wrap { overflow-x: auto; margin: 0 0 0.75rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.legal-table th,
.legal-table td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color, #eee);
    text-align: left;
}
.legal-table th { background: var(--bg-secondary, #f6f6f6); font-weight: 700; }

.legal-footer-date {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color, #eee);
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted, #999);
}

@media (max-width: 480px) {
    .legal-page { padding: 1.75rem 1rem 3rem; }
}

/* ── 문의 페이지 (.contact-*) ── */
.contact-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color, #1a1a1a);
    margin: 0 0 2rem;
}

.contact-email-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--accent-blue-border);
    border-radius: 16px;
    background: var(--accent-blue-light);
}

.contact-email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    margin-bottom: 0.4rem;
}

.contact-email-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin: 0;
}

.contact-email-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color, #1a1a1a);
    text-decoration: none;
    word-break: break-all;
}

.contact-email-link:hover {
    color: var(--accent-blue);
}

.contact-email-copy {
    margin-top: 0.6rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--accent-blue-border);
    border-radius: 999px;
    background: var(--bg-color);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.contact-email-copy:hover {
    background: var(--accent-blue);
    color: #fff;
}

@media (max-width: 480px) {
    .contact-email-box { padding: 2rem 1.25rem; }
    .contact-email-link { font-size: 1.15rem; }
}
