/*
Theme Name:   가전구조대 119 공식 테마
Theme URI:    https://www.appliancerescue119.com/
Description:  가전구조대 119 독립형 커스텀 테마 — index.html 확정 디자인 완전 이식
Author:       가전구조대 119
Version:      2.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  rescue119
*/

/* ================================================================
   ★ index.html 확정 디자인 — 1:1 완전 이식
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 루트 초기화 */
html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
body {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* padding-top 은 아래 body 블록에서 108px 로 설정 — 여기선 0 !important 금지 */
}

/* overflow-x: hidden 대신 clip 사용 ─────────────────────────────
   hidden 은 html/body 를 스크롤 컨테이너로 만들어
   sticky 헤더와 일반 본문의 너비 계산이 달라지는 버그를 유발한다.
   clip 은 스크롤 컨테이너를 만들지 않으므로 너비가 항상 일치한다. */
html { overflow-x: clip !important; }
body { overflow-x: clip !important; }

body {
    background-color: #f9f9f9;
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: #2d2d2d;
    font-size: 16px;
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: break-word;
    /* fixed 헤더(60px) + fixed 브랜드탭(48px) = 108px 만큼 본문 내려주기 */
    padding-top: 108px !important;
}

/* ── 헤더 60px (fixed — 뷰포트 left:0 right:0 으로 너비 100% 확정) ── */
.main-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid #e2e2e2;
    min-height: 60px;
    height: 60px;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.ast-primary-header-bar {
    width: 100%;
    box-sizing: border-box;
}

.ast-primary-header-bar .ast-container {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── 컨테이너 1200px ── */
.ast-container {
    max-width: 1200px !important;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 28px;
    box-sizing: border-box;
}

/* ── 사이트 아이덴티티 ── */
.ast-site-identity {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    text-decoration: none;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.site-title { font-size: 16px; font-weight: 700; color: #111; letter-spacing: -.3px; line-height: 1.2; }
.site-desc  { font-size: 12px; color: #999; margin-left: 2px; }

/* ── PC 내비 ── */
.main-header-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header-menu .menu-item > .menu-link {
    display: block;
    padding: 10px 16px;
    line-height: 1;
    font-size: 14px;
    color: #444;
    border-radius: 6px;
    transition: background .15s, color .15s;
    white-space: nowrap;
    text-decoration: none;
}

.main-header-menu .menu-item > .menu-link:hover {
    background: #f0f4ff;
    color: #1a6ed4;
}

/* ── 브랜드 탭 바 (fixed — 헤더 60px 바로 아래) ── */
.brand-tab-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid #e8e8e8;
    z-index: 150;
}

.brand-tab-bar .ast-container {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.brand-tab-bar .ast-container::-webkit-scrollbar { display: none; }

.brand-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.brand-tab:hover { color: #1a6ed4; }

.brand-tab.active {
    color: #1a6ed4;
    border-bottom-color: #1a6ed4;
}

.brand-tab .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ── 본문 외부 여백 — front-page / single / archive 공통 ──
   brand-tab-bar 와 footer 사이의 시원한 상하 여백 */
.site-content {
    width: 100%;
    box-sizing: border-box;
    display: block;
    padding-top: 48px;
    padding-bottom: 90px;
}

/* ── 본문 2컬럼 레이아웃 ── */
.site-content > .ast-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
    /* padding-top / padding-bottom 은 .site-content 에서 통합 관리 */
}

/* ── 아티클 · 사이드바 grid 자식 수축 허용 ── */
.site-content article,
.site-content aside {
    min-width: 0;
    box-sizing: border-box;
}

/* ── 포스트 헤더 ── */
.post-header { margin-bottom: 32px; }

.post-category {
    display: inline-block;
    background: #e8f0fe;
    color: #1a6ed4;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: .3px;
}

.post-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.5px;
    color: #111;
    margin-bottom: 14px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
}

.post-meta span { display: flex; align-items: center; gap: 4px; }

.post-divider {
    border: none;
    border-top: 1px solid #ececec;
    margin: 24px 0;
}

/* ── 본문 prose ── */
.post-body,
.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.post-body p,
.entry-content p { margin-bottom: 18px; }

.post-body h2,
.entry-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 40px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #1a6ed4;
    line-height: 1.4;
}

.post-body h3,
.entry-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 28px 0 12px;
}

.post-body strong,
.entry-content strong { color: #111; }

/* ── 강조 박스 ── */
.highlight-box,
.post-body .highlight-box {
    background: #f0f4ff;
    border: 1px solid #c7d9f8;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.75;
    color: #2a4a80;
    max-width: 100%;
    overflow-wrap: break-word;
}

.highlight-box strong { color: #1a3a70; }

/* ── 경고 박스 ── */
.warn-box,
.post-body .warn-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    color: #7a5c00;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* ── 에러코드 표 ── */
.error-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 32px;
    max-width: 100%;
    width: 100%;
}

.error-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14.5px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.07);
}

.error-table thead tr { background: #1a6ed4; color: #fff; text-align: left; }

.error-table thead th {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .2px;
    white-space: nowrap;
}

.error-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .12s; }
.error-table tbody tr:last-child { border-bottom: none; }
.error-table tbody tr:hover { background: #f5f8ff; }

.error-table td { padding: 11px 16px; vertical-align: middle; line-height: 1.6; }
.error-table td:first-child { font-weight: 700; color: #d32f2f; white-space: nowrap; font-size: 15px; font-family: monospace; }

.badge-brand { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-samsung { background: #1428a0; color: #fff; }
.badge-lg      { background: #a50034; color: #fff; }
.badge-winia   { background: #00529b; color: #fff; }
.badge-daewoo  { background: #0066b2; color: #fff; }

.severity { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.sev-high { background: #fde8e8; color: #c62828; }
.sev-mid  { background: #fff3e0; color: #e65100; }
.sev-low  { background: #e8f5e9; color: #2e7d32; }

.thead-samsung { background: #1428a0 !important; color: #fff !important; }
.thead-lg      { background: #a50034 !important; color: #fff !important; }
.thead-winia   { background: #00529b !important; color: #fff !important; }
.thead-daewoo  { background: #0066b2 !important; color: #fff !important; }

/* ── 쿠팡 제품 섹션 ── */
.product-section { margin-top: 48px; border-top: 2px solid #ececec; padding-top: 36px; }
.product-section-title { font-size: 18px; font-weight: 800; color: #111; margin-bottom: 6px; }
.product-section-sub   { font-size: 13px; color: #888; margin-bottom: 24px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.product-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-3px); }

.product-img { width: 100%; aspect-ratio: 1/1; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 48px; }

.product-info  { padding: 14px; }
.product-tag   { font-size: 11px; color: #888; margin-bottom: 4px; }
.product-name  { font-size: 13px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 8px; }
.product-price { font-size: 15px; font-weight: 800; color: #d32f2f; }

.product-coupang { display: block; margin-top: 10px; background: #f00; color: #fff; text-align: center; font-size: 12px; font-weight: 700; padding: 7px; border-radius: 5px; transition: opacity .15s; text-decoration: none; }
.product-coupang:hover { opacity: .85; }

.affiliate-notice { font-size: 11px; color: #bbb; margin-top: 12px; text-align: right; }

/* ── 사이드바 ── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 108px; /* 헤더 60px + 브랜드탭 48px */
}

.side-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px; }

.side-card-title { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }

/* 목차 */
.toc-list { font-size: 13px; counter-reset: toc; list-style: none; padding: 0; margin: 0; }
.toc-list li { padding: 6px 0; border-bottom: 1px solid #f8f8f8; counter-increment: toc; }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { color: #555; display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.toc-list a:hover { color: #1a6ed4; }
.toc-list a::before { content: counter(toc); font-size: 11px; font-weight: 700; background: #e8f0fe; color: #1a6ed4; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* 관련 글 */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.related-list li:last-child { border-bottom: none; }
.related-list a { color: #444; line-height: 1.5; text-decoration: none; }
.related-list a:hover { color: #1a6ed4; }

/* ── 푸터 ── */
.site-footer { background: #1c1c1e; color: #888; padding: 28px 0; }

.site-footer .ast-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

.site-footer p { font-size: 12px; }

.footer-links { display: flex; gap: 16px; font-size: 12px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #888; text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-disclaimer { border-top: 1px solid #2e2e30; padding: 14px 0 4px; }
.footer-disclaimer p { font-size: 11px; color: #555; line-height: 1.75; margin-bottom: 6px; }

/* ── 햄버거 버튼 ── */
.hamburger-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; padding: 0; background: none; border: none; cursor: pointer; border-radius: 6px; transition: background .15s; flex-shrink: 0; }
.hamburger-btn:hover { background: #f0f4ff; }
.hamburger-btn span { display: block; width: 24px; height: 2px; background: #444; border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 모바일 드로어 ── */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 300; }
.mobile-menu-drawer  { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: #fff; z-index: 310; box-shadow: -4px 0 24px rgba(0,0,0,.15); transition: right .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.mobile-menu-overlay.open { display: block; }
.mobile-menu-drawer.open  { right: 0; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #eee; font-size: 15px; font-weight: 700; color: #111; }
.mobile-menu-close  { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: #888; padding: 4px 8px; border-radius: 4px; }
.mobile-menu-close:hover { background: #f5f5f5; color: #333; }
.mobile-menu-list { padding: 8px 0; list-style: none; margin: 0; flex: 1; }
.mobile-menu-list li { border-bottom: 1px solid #f5f5f5; }
.mobile-menu-list li:last-child { border-bottom: none; }
.mobile-menu-list a { display: block; padding: 15px 24px; font-size: 15px; color: #333; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.mobile-menu-list a:hover { background: #f0f4ff; color: #1a6ed4; }

/* ── 반응형 900px ── */
@media (max-width: 900px) {
    .site-content > .ast-container {
        grid-template-columns: 1fr;
    }
    .sidebar { order: -1; position: static; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .post-title { font-size: 22px; }
}

/* ── 반응형 921px ── */
@media (max-width: 921px) {
    .main-header-menu { display: none !important; }
    .hamburger-btn { display: flex !important; }

    /* 콘텐츠가 화면 끝에 붙지 않도록 안전 여백 */
    .ast-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 모바일 상하 여백 축소 (데스크탑 48/90 → 모바일 30/60) */
    .site-content {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .brand-tab-bar .ast-container {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100vw;
    }
}

/* ── 반응형 480px ── */
@media (max-width: 480px) {
    .ast-container { padding-left: 15px !important; padding-right: 15px !important; box-sizing: border-box !important; width: 100% !important; }
    .main-header-bar,
    .ast-primary-header-bar .ast-container { min-height: 60px !important; }
    .site-logo { height: 32px !important; width: auto !important; }
    .site-title { font-size: 15px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
    .site-desc { display: none !important; }
    .brand-tab-bar { top: 60px !important; }
    article { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; min-width: 0; }
    .post-body .highlight-box { margin-left: 0 !important; margin-right: 0 !important; padding: 12px 13px !important; }
    .post-body .warn-box { margin-left: 0 !important; margin-right: 0 !important; padding: 10px 13px !important; }
    .post-title   { font-size: 19px !important; line-height: 1.4 !important; }
    .post-body h2 { font-size: 17px !important; margin: 24px 0 12px !important; }
    .post-body h3 { font-size: 15px !important; margin: 20px 0 10px !important; }
    .post-body    { font-size: 15px; }
    .post-meta    { gap: 8px; font-size: 12px; }
    .error-table thead th { padding: 8px 10px !important; font-size: 12px !important; }
    .error-table td       { padding: 8px 10px !important; font-size: 13px !important; }
    .error-table td:first-child { font-size: 13px !important; }
    .brand-tab { padding: 8px 11px !important; font-size: 12px !important; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .product-section { margin-top: 32px; padding-top: 22px; }
    .side-card { padding: 16px 14px; }
    .site-footer .ast-container { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ================================================================
   ★ WordPress 전용 추가 스타일
   ================================================================ */

/* ── WordPress·Gutenberg 콘텐츠 너비 강제 초기화 ──
   WP 6.x 글로벌 스타일이 --wp--style--global--content-size 로
   entry-content 를 좁게 제한하는 것을 방지한다.           */
:root {
    --wp--style--global--content-size: 100% !important;
    --wp--style--global--wide-size:    100% !important;
}

.entry-content,
.post-body.entry-content,
.wp-site-blocks,
.wp-block-post-content {
    max-width: 100% !important;
    width:     100% !important;
    box-sizing: border-box !important;
}

/* Gutenberg 각 블록이 is-layout-constrained 로 좁아지는 현상 방지 */
.entry-content > *,
.is-layout-constrained > * {
    max-width: 100% !important;
}

/* ── Classic Editor (wpautop) 여분 마진 초기화 ── */
.entry-content > p:last-child { margin-bottom: 0; }

/* ── article 기본 마진/패딩 초기화 (브라우저·WP 기본값 방지) ── */
article, aside {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;   /* grid 자식 수축 허용 */
}

/* ── 관리자 바 보정 (fixed 헤더 기준, 데스크탑 32px / 모바일 46px) ──
   admin bar 가 fixed 이므로 우리 fixed 헤더도 그만큼 내려줘야 한다. */
html.admin-bar                  { margin-top: 0 !important; }
html.admin-bar .main-header-bar { top: 32px; }
html.admin-bar .brand-tab-bar   { top: 92px; }  /* 32 + 60 */
html.admin-bar body             { padding-top: 140px !important; } /* 32 + 60 + 48 */

@media screen and (max-width: 782px) {
    html.admin-bar .main-header-bar { top: 46px; }
    html.admin-bar .brand-tab-bar   { top: 106px; } /* 46 + 60 */
    html.admin-bar body             { padding-top: 154px !important; } /* 46 + 60 + 48 */
}


/* ── 고정 페이지 단일 컬럼 ── */
.page-content > .page-container {
    display: block !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 48px !important;
    padding-bottom: 80px !important;
}

/* ── 홈 히어로 ── */
.home-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    padding: 52px 0 44px;
    text-align: center;
    color: #fff;
}

.home-hero-title { font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: -.5px; margin-bottom: 12px; }
.home-hero-sub   { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.75; margin-bottom: 28px; }
.home-hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.home-hero-badge { display: inline-block; background: rgba(255,255,255,.15); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; }
.home-section-title { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 20px; padding-left: 12px; border-left: 4px solid #1a6ed4; line-height: 1.4; }

/* ── 아카이브 — 2컬럼 사이드바 그리드 해제, 전체 너비 사용 ──
   .site-content > .ast-container 는 기본적으로 1fr+280px 그리드이지만
   archive-content 는 사이드바 없이 full-width 카드 그리드를 써야 한다. */
.archive-content > .ast-container {
    display: block !important;
}

/* ── 아카이브 카드 그리드 ── */
.archive-content { width: 100%; }

.archive-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.archive-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    min-height: 280px;   /* 카드가 세로로 지나치게 늘어나지 않도록 최소 높이 */
}

.archive-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-3px); }

.archive-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e8f0fe, #c7d9f8);
    position: relative;
    overflow: hidden;
}

.archive-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.archive-card-emoji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.archive-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1428a0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .2px;
}

.archive-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.archive-card-title { font-size: 15px; font-weight: 700; color: #111; line-height: 1.45; margin-bottom: 8px; }
.archive-card-title a { color: inherit; text-decoration: none; }
.archive-card-title a:hover { color: #1a6ed4; }

.archive-card-excerpt { font-size: 13px; color: #666; line-height: 1.65; margin-bottom: 12px; flex: 1; }

.archive-card-meta { display: flex; gap: 12px; font-size: 12px; color: #aaa; margin-bottom: 14px; flex-wrap: wrap; }

.archive-card-btn {
    display: inline-block;
    background: #f0f4ff;
    color: #1a6ed4;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s, color .15s;
    align-self: flex-start;
}

.archive-card-btn:hover { background: #1a6ed4; color: #fff; }

/* 아카이브 페이지 헤더 */
.archive-page-header { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #ececec; }
.archive-page-title  { font-size: 24px; font-weight: 800; color: #111; margin: 8px 0 6px; }
.archive-page-desc   { font-size: 14px; color: #666; line-height: 1.7; }
.archive-post-count  { font-size: 13px; color: #aaa; margin-top: 6px; }

.post-category a { text-decoration: none; color: inherit; }

/* 페이지네이션 */
.archive-pagination { display: flex; justify-content: center; padding: 8px 0 48px; }
.archive-pagination .page-numbers { display: inline-flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #555; background: #fff; border: 1px solid #e8e8e8; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.archive-pagination .page-numbers li a:hover { background: #1a6ed4; color: #fff; border-color: #1a6ed4; }
.archive-pagination .page-numbers li span.current { background: #1a6ed4; color: #fff; border-color: #1a6ed4; }

.archive-empty { text-align: center; padding: 80px 0; color: #888; font-size: 15px; }
.archive-empty a { display: inline-block; margin-top: 16px; color: #1a6ed4; text-decoration: none; font-weight: 600; }

/* ── 삼성 업그레이드 CTA ── */
.rescue119-upgrade-cta { margin: 48px 0 0; padding: 32px 24px; background: linear-gradient(135deg, #1428a0 0%, #1a6ed4 100%); border-radius: 16px; text-align: center; color: #fff; box-sizing: border-box; overflow: hidden; }
.rescue119-upgrade-cta .cta-badge { display: inline-block; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px; letter-spacing: .3px; }
.rescue119-upgrade-cta .cta-hook  { font-size: 21px; font-weight: 800; line-height: 1.45; margin-bottom: 14px; color: #fff; }
.rescue119-upgrade-cta .cta-sub   { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.75; margin-bottom: 28px; }
.rescue119-upgrade-cta .cta-btn   { display: block; background: #ff4757; color: #fff; font-size: 17px; font-weight: 800; padding: 18px 24px; border-radius: 12px; text-decoration: none; margin-bottom: 18px; box-shadow: 0 8px 32px rgba(255,71,87,.65), 0 2px 8px rgba(0,0,0,.25); letter-spacing: -.2px; transition: opacity .15s; }
.rescue119-upgrade-cta .cta-btn:hover { opacity: .88; }
.rescue119-upgrade-cta .cta-notice { font-size: 10px; color: rgba(255,255,255,.5); margin-bottom: 0; }

/* ── 포스트 하단 면책 ── */
.rescue119-disclaimer { margin-top: 48px; padding: 18px 20px; background: #f8f8f8; border-top: 1px solid #e8e8e8; border-radius: 0 0 8px 8px; box-sizing: border-box; }
.rescue119-disclaimer p { font-size: 11px; color: #999; line-height: 1.75; margin-bottom: 6px; }
.rescue119-disclaimer p:last-child { margin-bottom: 0; }
.rescue119-disclaimer a { color: #bbb; text-decoration: underline; }
.rescue119-disclaimer a:hover { color: #888; }

/* ── publisher.py 브랜드 내비 (포스트 내부) ── */
.rescue119-brand-nav { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0; background: #fff; border-bottom: 2px solid #e8e8e8; margin: 0 0 32px; }
.rescue119-brand-nav::-webkit-scrollbar { display: none; }
.rescue119-brand-nav a { display: flex; align-items: center; gap: 5px; padding: 9px 15px; font-size: 13px; font-weight: 600; color: #666; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: color .15s, border-color .15s; }
.rescue119-brand-nav a:hover,
.rescue119-brand-nav a.active { color: #1a6ed4; border-bottom-color: #1a6ed4; }
.rescue119-brand-nav .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── Quick Menu (RankMath TOC 블록) ── */
.wp-block-rank-math-toc-block { float: right; margin: 0 0 28px 36px; width: 300px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 4px 24px rgba(0,0,0,.09); overflow: hidden; font-size: .88rem; line-height: 1.5; }
.wp-block-rank-math-toc-block h2,
.wp-block-rank-math-toc-block h3 { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); color: #fff !important; font-size: .95rem !important; font-weight: 700 !important; margin: 0 !important; padding: 14px 18px !important; display: flex !important; align-items: center; gap: 8px; letter-spacing: .02em; cursor: pointer; user-select: none; border: none !important; border-left: none !important; }
.wp-block-rank-math-toc-block nav { padding: 12px 18px 16px; }
.wp-block-rank-math-toc-block nav a { display: block; padding: 5px 0; font-size: .85rem; color: #444; text-decoration: none; border-bottom: 1px solid #f5f5f5; transition: color .15s; }
.wp-block-rank-math-toc-block nav a:hover { color: #1a6ed4; }

/* ── 아카이브 반응형 ── */
@media (max-width: 900px) {
    .archive-post-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .archive-page-title { font-size: 20px !important; }
}

@media (max-width: 480px) {
    .archive-post-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 480px) {
    .archive-post-grid { grid-template-columns: 1fr; gap: 14px; }
    .archive-card-body { padding: 14px 16px 16px; }
    .archive-card-title { font-size: 14px !important; }
    .archive-pagination .page-numbers li a,
    .archive-pagination .page-numbers li span { min-width: 34px; height: 34px; font-size: 13px; }
    .home-hero { padding: 36px 0 30px; }
    .home-hero-title { font-size: 22px; }
    .home-hero-sub { font-size: 13px; }
    .rescue119-upgrade-cta { padding: 24px 16px; border-radius: 12px; margin: 32px 0 0; }
    .rescue119-upgrade-cta .cta-hook { font-size: 17px; }
    .rescue119-upgrade-cta .cta-btn { font-size: 15px; padding: 15px 16px; }
}

/* ================================================================
   ★ 등산로 전용 스타일 (hiking119)
   ================================================================ */

/* ── 히어로 ── */
.trail-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background: #1b4332;
    overflow: hidden;
}

.trail-hero__bg {
    position: absolute;
    inset: 0;
}

.trail-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trail-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.58) 100%);
}

.trail-hero__text {
    position: relative;
    z-index: 2;
    padding: 40px 28px;
    color: #fff;
}

.trail-hero--no-img .trail-hero__text {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trail-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    margin: 8px 0 10px !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.45);
    letter-spacing: -.3px !important;
    border: none !important;
    padding: 0 !important;
}

.trail-hero__meta {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    margin: 0;
}

/* ── 핵심 정보 카드 ── */
.trail-facts {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.trail-fact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
}

.trail-fact:last-child { border-bottom: none; }

.trail-fact dt {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}

.trail-fact dd {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-align: right;
    margin: 0;
}

.trail-fact--risk dd {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Risk bar */
.trail-risk-bar {
    width: 90px;
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.trail-risk-bar__fill {
    height: 100%;
    background: linear-gradient(to right, #52b788, #f4a261);
    border-radius: 3px;
}

.trail-risk-label {
    font-size: 11px;
    color: #aaa;
}

/* ── 난이도 배지 ── */
.trail-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: .2px;
}

.trail-badge--easy { background: #d8f3dc; color: #1b4332; }
.trail-badge--mid  { background: #fff3cd; color: #7d5a00; }
.trail-badge--hard { background: #ffe0e0; color: #9b1c1c; }

/* archive 카드에서 배지 위치 보정 */
.archive-card-badge.trail-badge--easy { background: #d8f3dc; color: #1b4332; }
.archive-card-badge.trail-badge--mid  { background: #fff3cd; color: #7d5a00; }
.archive-card-badge.trail-badge--hard { background: #ffe0e0; color: #9b1c1c; }

/* ── h2 — 등산로 글에서 초록 계열 ── */
.single-hiking_trail .post-body h2,
.single-hiking_trail .entry-content h2 {
    border-left-color: #2d6a4f;
    color: #1b4332;
}

/* 모바일 히어로 */
@media (max-width: 480px) {
    .trail-hero { min-height: 240px; }
    .trail-hero__title { font-size: 1.35rem !important; }
    .trail-hero__text { padding: 28px 15px; }
}

/* ================================================================
   ★ 등산 코스 전용 스타일 (single-hiking_course)
   ================================================================ */

/* ── 히어로 ── */
.hiking-course-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    background: #1b4332;
    overflow: hidden;
}

.hiking-course-hero--no-img {
    min-height: 220px;
}

.hiking-course-hero__bg {
    position: absolute;
    inset: 0;
}

.hiking-course-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hiking-course-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.65) 100%);
}

.hiking-course-hero__content {
    position: relative;
    z-index: 2;
    padding: 44px 28px 36px;
    color: #fff;
    width: 100%;
}

.hiking-course-hero__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hiking-course-badge-closed {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    background: #ff4d4d;
    color: #fff;
    letter-spacing: .2px;
}

.hiking-course-hero__title {
    font-size: clamp(1.55rem, 3.8vw, 2.35rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    margin: 0 0 12px !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
    letter-spacing: -.3px !important;
    border: none !important;
    padding: 0 !important;
}

.hiking-course-hero__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 14px;
    color: rgba(255,255,255,.88);
}

.hiking-course-hero__updated {
    color: rgba(255,255,255,.6);
    font-size: 12px;
}

/* ── CTA 바 ── */
.hiking-course-cta-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 0;
    position: sticky;
    top: 108px;            /* header(60) + brand-tab(48) */
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.hiking-course-cta-bar .ast-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hiking-course-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .15s, transform .1s;
    cursor: pointer;
}

.hiking-course-cta-btn--primary {
    background: #2d6a4f;
    color: #fff !important;
}

.hiking-course-cta-btn--primary:hover {
    background: #1b4332;
    transform: translateY(-1px);
}

.hiking-course-cta-btn--secondary {
    background: #e9f5ee;
    color: #2d6a4f !important;
}

.hiking-course-cta-btn--secondary:hover {
    background: #d0ead9;
    transform: translateY(-1px);
}

.hiking-course-risk-badge {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.hiking-course-risk-badge.risk-low  { background: #d8f3dc; color: #1b4332; }
.hiking-course-risk-badge.risk-mid  { background: #fff3cd; color: #7d5a00; }
.hiking-course-risk-badge.risk-high { background: #ffe0e0; color: #9b1c1c; }

/* ── 아티클 섹션 ── */
.hiking-course-alert--closed {
    margin-bottom: 24px;
}

.hiking-course-section {
    margin-bottom: 40px;
}

.hiking-course-section > h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1b4332 !important;
    border-left: 4px solid #2d6a4f !important;
    padding-left: 12px !important;
    margin-bottom: 16px !important;
}

.hiking-course-map-note {
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
}

.hiking-course-gear-intro {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

.hiking-course-content h2 {
    border-left: 4px solid #2d6a4f !important;
    color: #1b4332 !important;
}

/* ── 안전 박스 ── */
.hiking-course-safety-box {
    border-radius: 8px;
    border-left: 4px solid #e76f51;
}

.hiking-course-safety-box ul {
    margin: 10px 0 12px;
    padding-left: 20px;
}

.hiking-course-safety-box li {
    font-size: 13px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 4px;
}

.hiking-course-safety-box strong {
    font-size: 14px;
    color: #c1440e;
}

/* ── 사이드바 ── */
.hiking-course-sidebar {
    /* inherits .sidebar sticky */
}

/* ================================================================
   위험도 & 안전 섹션 — #section-risk
================================================================ */
.hiking-course-risk-section {
    background: #fffbf0;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 20px 24px 16px;
}

.hiking-course-risk-section > h2 {
    border-left: 4px solid #e87c2a !important;
    padding-left: 12px;
}

/* Season risk row */
.hiking-course-season-risk {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hiking-course-season-risk__label {
    font-size: 13px;
    color: #555;
}

.hiking-course-season-risk__badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
    white-space: nowrap;
}

.hiking-course-season-risk__badge--low       { background: #d8f3dc; color: #1b4332; }
.hiking-course-season-risk__badge--mid       { background: #fff3cd; color: #7d5a00; }
.hiking-course-season-risk__badge--high      { background: #ffe4c4; color: #9b3a00; }
.hiking-course-season-risk__badge--very-high { background: #ffe0e0; color: #9b1c1c; }

/* Beginner risk meter */
.hiking-course-risk-meter {
    margin-bottom: 14px;
}

.hiking-course-risk-meter__label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.hiking-course-risk-meter__desc {
    font-size: 13px;
    color: #555;
    margin: 6px 0 0;
}

/* Extracted AI safety block (inside risk section) */
.hiking-course-risk-extracted {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-top: 4px;
}

.hiking-course-risk-extracted h2 {
    font-size: 1rem !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    color: #333;
}

/* Hardcoded safety tips fallback */
.hiking-course-risk-tips {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.hiking-course-risk-tips li {
    padding: 7px 0 7px 24px;
    position: relative;
    border-bottom: 1px solid #f5e8c0;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.hiking-course-risk-tips li:last-child {
    border-bottom: none;
}

.hiking-course-risk-tips li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #e87c2a;
    font-size: 10px;
    top: 10px;
}

/* ================================================================
   FAQ 섹션 — #section-faq
================================================================ */
.hiking-course-faq-section > h2 {
    border-left: 4px solid #2d6a4f !important;
    padding-left: 12px;
}

.hiking-course-faq {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.hiking-course-faq__item {
    border: 1px solid #e2e8e4;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
}

.hiking-course-faq__item[open] {
    border-color: #2d6a4f;
}

.hiking-course-faq__question {
    padding: 14px 16px 14px 48px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8faf9;
    user-select: none;
    position: relative;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    transition: background .15s, border-color .15s;
}

.hiking-course-faq__question::-webkit-details-marker { display: none; }

/* "Q" bubble */
.hiking-course-faq__question::before {
    content: 'Q';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #2d6a4f;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Chevron arrow */
.hiking-course-faq__question::after {
    content: '▾';
    position: absolute;
    right: 14px;
    font-size: 14px;
    color: #888;
    transition: transform .2s;
}

.hiking-course-faq__item[open] .hiking-course-faq__question {
    background: #e9f5ee;
    border-bottom-color: #c8e6d0;
}

.hiking-course-faq__item[open] .hiking-course-faq__question::after {
    transform: rotate(-180deg);
}

.hiking-course-faq__answer {
    padding: 14px 16px 14px 48px;
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    background: #fff;
}

.hiking-course-faq__answer p { margin: 0; }

/* Mobile tweaks */
@media (max-width: 640px) {
    .hiking-course-risk-section {
        padding: 16px;
    }

    .hiking-course-faq__question {
        font-size: 14px;
        padding-left: 44px;
    }

    .hiking-course-faq__answer {
        padding-left: 44px;
        font-size: 13px;
    }
}

/* ── TOC 카드 활성 항목 ── */
#hiking-course-toc li a.is-active {
    color: #2d6a4f;
    font-weight: 700;
}

#hiking-course-toc li a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color .15s;
}

#hiking-course-toc li a:hover {
    color: #2d6a4f;
}

#hiking-course-toc li:last-child a {
    border-bottom: none;
}

/* ── 모바일 ── */
@media (max-width: 768px) {
    .hiking-course-hero { min-height: 300px; }
    .hiking-course-hero__content { padding: 32px 16px 26px; }
    .hiking-course-hero__title { font-size: 1.4rem !important; }
    .hiking-course-hero__summary { font-size: 13px; gap: 8px 14px; }

    .hiking-course-cta-bar { position: static; }

    .hiking-course-risk-badge { margin-left: 0; }
}

@media (max-width: 480px) {
    .hiking-course-hero { min-height: 240px; }
    .hiking-course-cta-btn { padding: 8px 14px; font-size: 13px; }
    .hiking-course-risk-badge { display: none; }
}

/* ================================================================
   ★ 등산 산 허브 스타일 (single-hiking_mountain)
   ================================================================ */

/* ── 히어로 ── */
.hiking-mountain-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background: #0d2137;
    overflow: hidden;
}

.hiking-mountain-hero--no-img {
    min-height: 240px;
}

.hiking-mountain-hero__bg {
    position: absolute;
    inset: 0;
}

.hiking-mountain-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hiking-mountain-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.72) 100%);
}

.hiking-mountain-hero__content {
    position: relative;
    z-index: 2;
    padding: 48px 28px 40px;
    color: #fff;
    width: 100%;
}

.hiking-mountain-hero__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hiking-mountain-hero__course-count {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    color: #fff;
    backdrop-filter: blur(4px);
}

.hiking-mountain-hero__title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important;
    font-weight: 900 !important;
    color: #fff !important;
    line-height: 1.25 !important;
    margin: 0 0 14px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
    letter-spacing: -.5px !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.hiking-mountain-hero__name-en {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 400;
    opacity: .7;
    letter-spacing: 0;
}

.hiking-mountain-hero__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 18px;
    font-size: 15px;
    color: rgba(255,255,255,.88);
}

.hiking-mountain-hero__excerpt {
    flex-basis: 100%;
    font-size: 14px;
    opacity: .8;
    line-height: 1.65;
    /* excerpt comes wrapped in <p>; reset its margin */
}

.hiking-mountain-hero__excerpt p { margin: 0; }

.hiking-mountain-hero__updated {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-top: 10px;
}

/* ── 정보 카드 바 ── */
.hiking-mountain-info-cards {
    background: #f0f4f0;
    padding: 24px 0;
    border-bottom: 1px solid #dce8dc;
}

.hiking-mountain-info-cards__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.hiking-mountain-info-card {
    background: #fff;
    border: 1px solid #dce8dc;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hiking-mountain-info-card__icon {
    font-size: 24px;
    margin: 0;
    line-height: 1;
}

.hiking-mountain-info-card__title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1b4332 !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.hiking-mountain-info-card__body {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ── 아티클 섹션 공통 ── */
.hiking-mountain-section {
    margin-bottom: 48px;
}

.hiking-mountain-section > h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1b4332 !important;
    border-left: 4px solid #2d6a4f !important;
    padding-left: 12px !important;
    margin-bottom: 18px !important;
}

.hiking-mountain-content h2 {
    border-left: 4px solid #2d6a4f !important;
    color: #1b4332 !important;
}

/* ── 코스 카드 리스트 ── */
.hiking-mountain-course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hiking-mountain-course-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8e2;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow .15s, transform .1s;
}

.hiking-mountain-course-card:hover {
    box-shadow: 0 4px 18px rgba(27,67,50,.12);
    transform: translateY(-1px);
}

.hiking-mountain-course-card__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
}

.hiking-mountain-course-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hiking-mountain-course-card__body {
    flex: 1;
    min-width: 0;
}

.hiking-mountain-course-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hiking-mountain-course-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 12px;
    color: #666;
}

.hiking-mountain-course-card__risk {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.hiking-mountain-course-card__arrow {
    flex-shrink: 0;
    font-size: 16px;
    color: #aaa;
    transition: color .15s;
}

.hiking-mountain-course-card:hover .hiking-mountain-course-card__arrow {
    color: #2d6a4f;
}

.hiking-mountain-no-courses {
    font-size: 14px;
    color: #888;
    padding: 20px 0;
}

/* ── 근처 명산 그리드 ── */
.hiking-mountain-nearby-section > h2 {
    margin-bottom: 6px !important;
}

.hiking-mountain-nearby-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 16px;
}

.hiking-mountain-nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.hiking-mountain-nearby-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8e2;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow .15s;
}

.hiking-mountain-nearby-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

.hiking-mountain-nearby-card__thumb,
.hiking-mountain-nearby-card__placeholder {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e8f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.hiking-mountain-nearby-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hiking-mountain-nearby-card__body {
    padding: 8px 10px;
}

.hiking-mountain-nearby-card__name {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── TOC 활성 ── */
#hiking-mountain-toc li a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color .15s;
}

#hiking-mountain-toc li a:hover,
#hiking-mountain-toc li a.is-active {
    color: #2d6a4f;
}

#hiking-mountain-toc li a.is-active {
    font-weight: 700;
}

#hiking-mountain-toc li:last-child a {
    border-bottom: none;
}

/* ── 모바일 ── */
@media (max-width: 768px) {
    .hiking-mountain-hero { min-height: 320px; }
    .hiking-mountain-hero__content { padding: 32px 16px 28px; }
    .hiking-mountain-hero__title { font-size: 1.55rem !important; }
    .hiking-mountain-hero__summary { font-size: 13px; }
    .hiking-mountain-course-card__thumb { width: 58px; height: 58px; }
}

@media (max-width: 480px) {
    .hiking-mountain-hero { min-height: 260px; }
    .hiking-mountain-nearby-grid { grid-template-columns: repeat(3, 1fr); }
    .hiking-mountain-course-card { padding: 12px 12px; }
}

/* ================================================================
   ★ 아카이브 필터 UI
   (archive-hiking_course.php / archive-hiking_mountain.php)
   ================================================================ */

/* ── 검색 폼 ── */
.archive-search-form {
    margin: 0 0 18px;
}

.archive-search-inner {
    display: flex;
    gap: 8px;
    max-width: 520px;
}

.archive-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dde0e4;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}

.archive-search-input:focus {
    border-color: #2d6a4f;
}

.archive-search-btn {
    padding: 10px 18px;
    background: #2d6a4f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.archive-search-btn:hover {
    background: #1b4332;
}

/* ── 필터 바 전체 컨테이너 ── */
.archive-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 20px;
    padding: 14px 16px;
    background: #f6f8f6;
    border: 1px solid #dce8dc;
    border-radius: 10px;
    margin-bottom: 16px;
}

.archive-filter-bar--simple {
    padding: 10px 16px;
    gap: 8px 16px;
}

/* ── 필터 그룹 (label + pills) ── */
.archive-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-filter-group--sort {
    margin-left: auto;
}

.archive-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    white-space: nowrap;
    margin-right: 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── 필터 필 버튼 ── */
.archive-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.archive-filter-pill {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #dde0e4;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
    line-height: 1.4;
}

.archive-filter-pill:hover {
    background: #e8f0e8;
    border-color: #aaccaa;
    color: #1b4332;
}

.archive-filter-pill.is-active {
    background: #2d6a4f;
    color: #fff !important;
    border-color: #2d6a4f;
}

/* Difficulty-specific active colours */
.archive-filter-pill--diff-easy.is-active  { background: #2d6a4f; border-color: #2d6a4f; }
.archive-filter-pill--diff-mid.is-active   { background: #7d5a00; border-color: #7d5a00; }
.archive-filter-pill--diff-hard.is-active  { background: #9b1c1c; border-color: #9b1c1c; }

/* ── 지역 드롭다운 ── */
.archive-filter-region-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.archive-filter-select {
    padding: 5px 28px 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid #dde0e4;
    border-radius: 20px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color .12s;
}

.archive-filter-select:focus {
    border-color: #2d6a4f;
}

/* ── 적용된 필터 칩 ── */
.archive-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.archive-active-label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    margin-right: 2px;
}

.archive-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1b4332;
    background: #d8f3dc;
    border: 1px solid #b7dfc0;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background .12s;
}

.archive-active-chip:hover {
    background: #c6eacc;
}

.archive-active-chip--clear {
    color: #666;
    background: #f0f0f0;
    border-color: #ddd;
}

.archive-active-chip--clear:hover {
    background: #e0e0e0;
}

/* ── 결과 수 ── */
.archive-results-count {
    font-size: 13px;
    color: #888;
    margin: 0 0 14px;
}

.archive-results-filtered {
    color: #2d6a4f;
    font-weight: 600;
}

/* ── 코스 카드 — mountain name above title ── */
.archive-card-mountain {
    font-size: 11px;
    font-weight: 700;
    color: #2d6a4f;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 4px;
}

/* ── 코스 카드 — risk bar ── */
.archive-card-risk {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 10px;
}

/* ── 녹색 CTA 버튼 변형 ── */
.archive-card-btn--green {
    background: #e8f5ed;
    color: #2d6a4f !important;
}

.archive-card-btn--green:hover {
    background: #2d6a4f;
    color: #fff !important;
}

/* ── 명산 카드 인기 배지 ── */
.archive-mountain-badge-popular {
    background: #ff6b35 !important;
    color: #fff !important;
}

/* ── 모바일 반응형 ── */
@media (max-width: 768px) {
    .archive-filter-bar {
        gap: 8px 12px;
        padding: 12px;
    }
    .archive-filter-group--sort {
        margin-left: 0;
    }
    .archive-search-inner {
        max-width: 100%;
    }
    .archive-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .archive-filter-bar::-webkit-scrollbar { display: none; }
    .archive-filter-group {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .archive-filter-bar {
        flex-wrap: wrap;          /* re-enable wrap on tiny screens */
    }
    .archive-filter-select { font-size: 13px; }
    .archive-card-risk { flex-wrap: wrap; }
}

/* ================================================================
   Internal Links Module  (.hil-*)
   Related courses · Nearby mountains · Seasonal recommendations
================================================================ */

.hil-card-grid {
    display: grid;
    gap: 10px;
}

/* 2-column in article / main content */
.hil-card-grid--seasonal {
    grid-template-columns: repeat(2, 1fr);
}

/* 1-column in sidebar */
.hil-card-grid--related {
    grid-template-columns: 1fr;
}

.hil-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #dde0e4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s, transform .1s;
}

.hil-card:hover,
.hil-card:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.hil-card__thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

.hil-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hil-card__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #f7f8fa;
}

.hil-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.hil-card__mountain {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hil-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hil-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.hil-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
}

.hil-card__badge--easy { background: #d4edda; color: #155724; }
.hil-card__badge--mid  { background: #fff3cd; color: #856404; }
.hil-card__badge--hard { background: #f8d7da; color: #721c24; }

.hil-card__stat {
    font-size: 12px;
    color: #555;
}

.hil-card__risk {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-block;
    align-self: flex-start;
}

.hil-risk-high { background: #f8d7da; color: #721c24; }
.hil-risk-mid  { background: #fff3cd; color: #856404; }
.hil-risk-low  { background: #d4edda; color: #155724; }

/* ── Sidebar (related) — horizontal card layout ── */

.hil-card-grid--related .hil-card {
    flex-direction: row;
    align-items: center;
}

.hil-card-grid--related .hil-card__thumb {
    width: 72px;
    min-width: 72px;
    height: 72px;
    aspect-ratio: 1;
    border-radius: 0;
    flex-shrink: 0;
}

.hil-card-grid--related .hil-card__body {
    padding: 8px 10px;
    gap: 3px;
}

.hil-card-grid--related .hil-card__title {
    font-size: 13px;
}

/* ── Mobile ── */

@media (max-width: 600px) {
    .hil-card-grid--seasonal {
        grid-template-columns: 1fr;
    }
}
