/* ===== Plus Wealth v6 — 목업 A CSS 직접 이식 ===== */
/* 목업 mockup2_plus_wealth.html Style A와 완전 동일한 CSS */

/* 폰트 기본 */
body { font-family: 'Noto Sans JP', sans-serif; margin: 0; padding: 0; background: #F5F7FA; }

/* admin bar 보정 */
body.admin-bar #pw-site { margin-top: 32px; }

/* #page 숨김 (archive 시) */
body.pw-archive > *:not(#pw-site):not(#pw-backtop):not(.pw-progress) { display: none !important; }
body.pw-archive { background: #F5F7FA; }

/* ─── 목업 A 클래스 그대로 이식 ─── */
#pw-site { background: #F5F7FA; }

/* 헤더 sticky */
.pw-sticky { position: sticky; top: 0; z-index: 9990; background: #fff; }
body.admin-bar .pw-sticky { top: 32px; }

/* topbar */
.a-topbar { background: #1A4FAB; height: 4px; }

/* 헤더 */
.a-hd {
    background: #fff;
    border-bottom: 1px solid #E0E8F4;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.a-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A4FAB;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.a-logo-sub {
    font-size: .6rem;
    color: #888;
    font-weight: 300;
    letter-spacing: .08em;
    font-family: 'Noto Sans JP', sans-serif;
    display: block;
    margin-top: 1px;
}
.a-hd-right { display: flex; align-items: center; gap: 14px; }
.a-hd-search {
    border: 1px solid #CBD8F0;
    padding: 5px 10px;
    font-size: .7rem;
    color: #888;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* 카테고리 탭 바 */
.a-catbar {
    background: #fff;
    border-bottom: 2px solid #E0E8F4;
    display: flex;
    gap: 0;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.a-catbar::-webkit-scrollbar { display: none; }
.a-catbar a {
    padding: 8px 14px;
    font-size: .72rem;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: inline-block;
    transition: color .15s;
}
.a-catbar a.active, .a-catbar a:hover { color: #1A4FAB; border-bottom-color: #1A4FAB; font-weight: 700; }

/* 히어로 — 전체 폭 배너 */
body.pw-archive { overflow-x: hidden; }
.a-hero {
    background: linear-gradient(135deg, #1A4FAB 0%, #0D3080 100%);
    padding: 28px max(20px, calc(50vw - 530px));
    border-bottom: 2px solid #0A2E7A;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}
.a-hero-text { flex: 1; }
.a-hero-badge {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    padding: 2px 10px;
    letter-spacing: .08em;
    display: inline-block;
    margin-bottom: 8px;
}
.a-hero-ttl {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.55;
    margin-bottom: 5px;
}
.a-hero-sub { font-size: .74rem; color: rgba(255,255,255,.75); line-height: 1.75; }
.a-hero-img { display: none; }

/* 메인 레이아웃 */
.a-main { display: flex; gap: 0; }
.a-content { flex: 1; padding: 18px; border-right: 1px solid #E0E8F4; min-width: 0; }
.a-sec {
    font-size: .78rem;
    font-weight: 700;
    color: #1A4FAB;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.a-sec::after { content: ''; flex: 1; height: 1px; background: #E0E8F4; }

/* 카드 그리드 */
.a-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.a-card {
    background: #fff;
    border: 1px solid #E0E8F4;
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: border-color .2s, transform .2s;
}
.a-card:hover { border-color: #1A4FAB; transform: translateY(-2px); }
.a-card-img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #D0DCFF, #B8CAFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    overflow: hidden;
}
.a-card-img img { width: 100%; height: 100%; object-fit: cover; }
.a-card-body { padding: 10px; }
.a-card-cat {
    background: #EDF2FF;
    color: #1A4FAB;
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 5px;
}
.a-card-ttl { font-size: .78rem; font-weight: 700; color: #111; line-height: 1.45; }
.a-card-date { font-size: .62rem; color: #AAA; margin-top: 5px; }

/* 사이드바 */
.a-sidebar { width: 185px; padding: 14px; background: #fff; flex-shrink: 0; }
.a-cta { background: #1A4FAB; border-radius: 3px; padding: 16px; margin-bottom: 14px; }
.a-cta-label { font-size: .56rem; color: rgba(255,255,255,.5); letter-spacing: 4px; margin-bottom: 8px; }
.a-cta-ttl { font-size: .9rem; color: #fff; font-weight: 700; line-height: 1.55; margin-bottom: 8px; }
.a-cta-body { font-size: .7rem; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 10px; }
.a-cta-btn {
    display: block;
    background: #fff;
    color: #1A4FAB;
    font-size: .72rem;
    font-weight: 700;
    padding: 8px;
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
}
.a-cta-btn:hover { background: #EDF2FF; }
.a-widget {
    background: #F5F7FA;
    border: 1px solid #E0E8F4;
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 10px;
}
.a-wtitle {
    font-size: .73rem;
    font-weight: 700;
    color: #1A4FAB;
    border-bottom: 1px solid #E0E8F4;
    padding-bottom: 6px;
    margin-bottom: 8px;
}
.a-witem {
    font-size: .7rem;
    color: #444;
    padding: 4px 0;
    border-bottom: 1px solid #EEF2F8;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    text-decoration: none;
}
.a-witem:last-child { border-bottom: none; }
.a-witem::before { content: '▶'; font-size: .52em; color: #1A4FAB; margin-top: 3px; flex-shrink: 0; }
.a-witem:hover { color: #1A4FAB; }

/* 푸터 */
.a-footer {
    background: #1A4FAB;
    padding: 14px;
    text-align: center;
    font-size: .65rem;
    color: rgba(255,255,255,.3);
}

/* 뒤로가기 */
.pw-backtop {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    background: #1A4FAB;
    color: #fff !important;
    border-radius: 3px;
    text-align: center;
    line-height: 38px;
    font-size: .9rem;
    text-decoration: none;
    z-index: 9999;
    font-weight: 700;
}
.pw-backtop.show { display: block; }

/* 읽기 진행 바 (단일 포스트) */
.pw-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #6690E8;
    width: 0;
    z-index: 99999;
    transition: width .1s;
}

/* ─── 단일 포스트 모드: 테마 헤더/푸터만 숨기고 주입 ─── */
body.pw-single header#header,
body.pw-single footer#footer { display: none !important; }
