:root {
    --primary: #B5739E;
    --primary-dark: #8E5878;
    --secondary: #E8A4B8;
    --accent: #D4A574;
    --hot: #E8627F;
    --rose-soft: #FFE5EC;
    --lilac-soft: #F2EBF5;
    --bg: #FEFCFA;
    --text: #2D2D3F;
    --text-muted: #6E6B7E;
    --shadow: 0 4px 20px rgba(232, 164, 184, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Pretendard', sans-serif;
    background: linear-gradient(135deg, #FEFCFA 0%, #FFF5F0 50%, #FAF0F5 100%);
    color: var(--text);
    min-height: 100vh;
    font-size: 15.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 12px 0 100px; }
.wrap > * { padding-left: 16px; padding-right: 16px; }
@media (min-width: 600px) { .wrap > * { padding-left: 24px; padding-right: 24px; } }

/* sheslab — Editorial Magazine Cover (Vogue / The Gentlewoman 영감) */
.masthead {
    position: relative;
    z-index: 5;
    padding: 64px 22px 24px;  /* top 64px — 우상단 lang-switcher + theme-toggle 회피 */
    text-align: center;
    overflow: hidden;
}
@media (max-width: 480px) {
    .masthead {
        padding: 72px 14px 20px;  /* 모바일에서 더 큰 padding-top — 토글 박스 위치 안전 회피 */
    }
}
/* mast-meta 자체에 padding-right 보강 — meta-r이 우측 토글 박스에 가려지지 않게 */
.mast-meta { padding-right: 50px; padding-left: 50px; }
@media (max-width: 480px) {
    .mast-meta {
        margin-top: 46px;     /* 우상단 버튼 4개(👤🔔테마언어) 아래로 — 가림 방지 */
        padding-right: 4px;
        padding-left: 4px;
        font-size: 0.56rem;
        flex-wrap: wrap;
        gap: 4px;
    }
}
.masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(232, 164, 184, 0.06) 0, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.05) 0, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* 잡지 메타 (좌상단 EDITION + 우상단 DATE) */
.mast-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 22px;
    padding: 0 4px;
}
.mast-meta .meta-l, .mast-meta .meta-r { opacity: 0.78; }

/* SHESLAB 위아래 단순 hairline — 가는 실선 + 충분한 여백 (대장님 명령) */
.mast-rule {
    display: block;
    width: clamp(160px, 70%, 420px);
    height: 1px;
    margin: 28px auto 22px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    padding: 0;
    box-sizing: border-box;
}
.mast-rule.bottom { margin: 22px auto 28px; }
html[data-theme="eink"] .mast-rule { background: rgba(0, 0, 0, 0.55) !important; }

/* 거대 시그니처 SHESLAB — Vogue/Harper's Bazaar 매거진 헤드라인급
 * Bodoni Moda 900 Black + wide letter-spacing + thick/thin 대비 극대화 */
.signature-logo {
    font-family: 'Bodoni Moda', 'Cormorant Garamond', 'Didot', 'Bodoni 72', Georgia, serif;
    font-weight: 900;
    font-style: normal;
    font-optical-sizing: auto;
    font-size: clamp(2.6rem, 13vw, 8rem);
    line-height: 0.86;
    letter-spacing: 0.10em;
    margin: 18px 0 14px;
    max-width: 100%;
    word-break: break-all;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--text) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(142, 88, 120, 0.04);
    position: relative;
    display: inline-block;
    padding: 0 0.04em;
}
/* signature-logo 자체 ::before/::after thin rule 제거
 * (대장님 명령: 위아래 라인 복잡함 → mast-rule만 단일 hairline 유지) */
.signature-logo::before,
.signature-logo::after { content: none !important; display: none !important; }

/* E-Ink 모드에서도 Bodoni Moda 유지 — 단색 검정 + double rule 그레이 */
html[data-theme="eink"] .signature-logo {
    background: none !important;
    -webkit-text-fill-color: #1A1A1A !important;
    color: #1A1A1A !important;
    text-shadow: none !important;
}
html[data-theme="eink"] .signature-logo::before,
html[data-theme="eink"] .signature-logo::after {
    background: rgba(0, 0, 0, 0.45) !important;
    opacity: 0.7 !important;
}

/* 매거진 헤드카피 (UPPERCASE) */
.mast-headcopy {
    margin: 22px auto 0;
    max-width: 460px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: clamp(0.78rem, 2.2vw, 0.92rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-dark);
    line-height: 1.5;
}

/* 시 (italic) — 두 줄 매거진 톤 */
.mast-poem {
    margin: 8px auto 0;
    max-width: 440px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(0.96rem, 2.6vw, 1.16rem);
    line-height: 1.55;
    color: var(--text-muted);
    letter-spacing: 0.005em;
}
.mast-poem span { display: inline; }
.mast-poem-line2 { display: block; }  /* 두 번째 줄 강제 줄바꿈 (br 대체) */

/* ✦ ✦ ✦ separator */
.mast-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px auto 16px;
    color: var(--secondary);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    opacity: 0.85;
}
.mast-sep::before, .mast-sep::after {
    content: '';
    width: 36px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary));
}
.mast-sep::after { background: linear-gradient(-90deg, transparent, var(--secondary)); }

/* 활성 국가 row — 잡지 LIVE 마크 */
.active-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}
.active-row .flags {
    display: inline-flex;
    gap: 10px;
    font-size: 1.6rem;
    line-height: 1;
}
.active-row .flag {
    transition: transform 0.5s ease;
    cursor: default;
    filter: drop-shadow(0 1px 2px rgba(142, 88, 120, 0.18));
}
.active-row .flag:hover { transform: translateY(-3px) scale(1.18); }
.active-row .divider { display: none; }
.active-row .pulse-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--primary-dark);
    padding: 6px 16px;
    border-top: 1.5px solid var(--text);
    border-bottom: 1.5px solid var(--text);
}
.active-row .pulse-label::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(232, 98, 127, 0.55);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 98, 127, 0.55); }
    50%      { box-shadow: 0 0 0 9px rgba(232, 98, 127, 0); }
}

@media (max-width: 480px) {
    .masthead { padding: 22px 14px 20px; }
    .mast-meta { font-size: 0.56rem; letter-spacing: 0.14em; margin-bottom: 16px; }
    .mast-rule { width: clamp(100px, 50%, 240px); border-top-width: 2.5px; }
    .signature-logo { margin: 14px 0; }
    .mast-headcopy { letter-spacing: 0.14em; }
    .active-row .flags { font-size: 1.4rem; gap: 8px; }
    .active-row .pulse-label { font-size: 0.66rem; padding: 5px 12px; letter-spacing: 0.24em; }
}

/* 글 쓰기 CTA — 글로브 아래 절제된 알약 */
.write-cta-wrap {
    text-align: center;
    margin: 6px 0 4px;
    padding: 0 16px;
}
.write-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    color: #FFF;
    border: none;
    border-radius: 999px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(232, 164, 184, 0.30);
    transition: transform 0.25s var(--ease, cubic-bezier(0.33,1,0.68,1)), box-shadow 0.25s ease;
    text-decoration: none;
}
.write-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232, 164, 184, 0.40); }
.write-cta-icon { font-size: 1.05rem; }
.write-cta-hint {
    margin-top: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.globe-section {
    margin: 16px 0; display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start;
}
@media (min-width: 720px) {
    .globe-section { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.globe-wrap { position: relative; aspect-ratio: 1; max-width: 480px; margin: 0 auto; width: 100%; }
.globe-wrap svg { width: 100%; height: 100%; display: block; cursor: grab; }
.globe-wrap svg:active { cursor: grabbing; }
/* 국가 hover — 들어올린 효과 (대장님 명령) */
.country {
    transition: fill 0.3s ease, fill-opacity 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}
.country.hover {
    fill-opacity: 0.92 !important;
    stroke: #8E5878 !important;
    stroke-width: 1.4 !important;
    filter: drop-shadow(0 3px 6px rgba(142, 88, 120, 0.45)) brightness(1.1);
}
.country.has-content {
    /* 콘텐츠 있는 국가는 hover 시 더 강조 */
}
.country.has-content.hover {
    filter: drop-shadow(0 5px 10px rgba(232, 98, 127, 0.55)) brightness(1.15);
}

/* 정면 칩 제거 (대장님 명령) */
.globe-current { display: none; }

/* 매거진 카드 툴팁 (대장님 명령: 프로 수준 재설계) */
.country-tooltip {
    position: fixed;
    pointer-events: none;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,245,240,0.94) 100%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(232, 164, 184, 0.42);
    border-radius: 18px;
    padding: 16px 20px 14px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 2px 6px rgba(142, 88, 120, 0.10),
        0 18px 50px rgba(142, 88, 120, 0.22);
    opacity: 0;
    transform: translate(-50%, calc(-100% - 22px)) scale(0.96);
    transition: opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1), transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: 50;
    min-width: 200px;
    max-width: 260px;
    will-change: transform, opacity;
}
.country-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 16px)) scale(1);
}
/* 우아한 꼬리 (마우스 향함) */
.country-tooltip::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -7px;
    width: 14px; height: 14px;
    background: linear-gradient(135deg, rgba(255,245,240,0.94) 0%, rgba(255,245,240,0.94) 50%, transparent 50%);
    border-right: 1px solid rgba(232, 164, 184, 0.42);
    border-bottom: 1px solid rgba(232, 164, 184, 0.42);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 2px 2px 6px rgba(142, 88, 120, 0.05);
}

/* HOT 국가 변형 — 더 짙은 그라데이션 */
.country-tooltip.hot {
    background:
        linear-gradient(180deg, rgba(255, 232, 240, 0.96) 0%, rgba(248, 215, 230, 0.96) 100%);
    border-color: rgba(232, 98, 127, 0.55);
}
.country-tooltip.hot::after {
    background: linear-gradient(135deg, rgba(248, 215, 230, 0.96) 0%, rgba(248, 215, 230, 0.96) 50%, transparent 50%);
    border-color: rgba(232, 98, 127, 0.55);
}

/* 큰 깃발 (시각 hook) */
.country-tooltip .ct-flag {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(142, 88, 120, 0.15));
}

/* 우아한 국가명 (Cormorant italic) */
.country-tooltip .ct-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.32rem;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin-bottom: 10px;
}

/* 매거진 라벨 (콘텐츠 카운트) */
.country-tooltip .ct-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.94rem;
    color: var(--primary-dark);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    margin-bottom: 8px;
}
.country-tooltip .ct-count::before,
.country-tooltip .ct-count::after {
    content: ''; display: inline-block;
    width: 18px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary));
}
.country-tooltip .ct-count::after {
    background: linear-gradient(-90deg, transparent, var(--secondary));
}
.country-tooltip .ct-count.hot { color: #B0334D; font-weight: 600; }
.country-tooltip .ct-count.cold { color: var(--text-muted); }

/* 인용구 스타일 CTA */
.country-tooltip .ct-cta {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--secondary);
    letter-spacing: 0.02em;
    text-transform: lowercase;
    margin-top: 4px;
    opacity: 0.92;
}

/* 우측 — 스타트랙 엔딩크레딧 효과 */
.feed-stream {
    height: 480px;
    overflow: hidden;
    position: relative;
    perspective: 600px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%);
}
.feed-stream-stage {
    position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
}

/* 카드 — 원근 효과 (멀어질수록 시각 변화율 감소 → 자연스러운 겹침) */
@keyframes card-flow {
    0%   { transform: translateY(0) scale(1);       opacity: 0; }
    4%   { transform: translateY(-20px) scale(0.97); opacity: 1; }    /* 빠른 Fade-In */
    20%  { transform: translateY(-150px) scale(0.84); opacity: 1; }   /* 큰 변화율 (가까운 카드, 갭 큼) */
    45%  { transform: translateY(-310px) scale(0.65); opacity: 1; }
    65%  { transform: translateY(-410px) scale(0.48); opacity: 0.95; } /* 변화율 감소 시작 */
    82%  { transform: translateY(-470px) scale(0.34); opacity: 0.80; } /* 천천히 */
    93%  { transform: translateY(-505px) scale(0.22); opacity: 0.55; } /* 거의 멈춘 듯 */
    100% { transform: translateY(-525px) scale(0.14); opacity: 0; }
    /* 위 keyframe의 변화율: 가까울 땐 큼(시간당 -150) → 멀어질수록 작아짐(시간당 -20)
       → 멀어진 카드들이 시각상 가까워져서 자연스럽게 겹침 (원근 효과) */
}
.feed-stream-stage { perspective: 800px; }
.tip-card {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(181, 115, 158, 0.12);
    background: rgba(254, 252, 250, 0.70);
    cursor: pointer;
    transform-origin: center top;
    will-change: transform, opacity;
    backdrop-filter: blur(3px);
    animation: card-flow 14s linear forwards;
}
.tip-card:hover { background: rgba(232, 164, 184, 0.10); }

/* 대장님 명령: meta 가운데 정렬 (본문 아래로 이동) */
.tip-meta { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.74rem; color: var(--text-muted); margin-top: 6px; flex-wrap: wrap; }
.tip-flag { font-size: 1rem; }
.tip-anonym { font-style: italic; color: var(--primary); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 0.88rem; font-weight: 600; }
.tip-badge { font-size: 0.78rem; opacity: 0.85; }
.tip-text { font-size: 0.88rem; line-height: 1.55; color: var(--text); word-break: keep-all; }
.tip-actions { display: flex; justify-content: center; gap: 14px; margin-top: 4px; font-size: 0.74rem; color: var(--text-muted); }
.tip-action { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }

.quote {
    margin: 28px auto; padding: 24px 18px; text-align: center; max-width: 620px;
    font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
    font-size: 1.08rem; line-height: 1.6; color: var(--text); position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.4s ease;
}
.quote::before, .quote::after {
    content: ''; position: absolute; height: 1px; width: 40px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    left: 50%; transform: translateX(-50%);
}
.quote::before { top: 0; } .quote::after { bottom: 0; }
.quote:hover { transform: translateY(-1px); }
.quote .fq-text {
    color: var(--text);
    margin-bottom: 10px;
}
/* ::before/::after 제거 (이중 따옴표 방지 — 시드 텍스트가 이미 포함 가능) */
.quote .fq-meta {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-style: normal;
    font-family: 'Pretendard', sans-serif;
    letter-spacing: 0.02em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.quote .fq-flag { font-size: 1rem; }
.quote .fq-author {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.94rem;
    color: var(--primary-dark);
    font-weight: 500;
}
.quote .fq-likes {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.quote .fq-badge { font-size: 0.85rem; }

/* 하단 탭바 — 매거진 nav 스타일 (대장님 명령: 임팩트 + 가독성) */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-around;
    background: rgba(254, 252, 250, 0.96);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(181, 115, 158, 0.22);
    box-shadow: 0 -2px 14px rgba(142, 88, 120, 0.06);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
}
.tabbar a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 4px;
    transition: color 0.2s ease, transform 0.15s ease;
    position: relative;
}
.tabbar a:hover { color: var(--primary-dark); transform: translateY(-1px); }
.tabbar a.active {
    color: var(--primary-dark);
}
/* 활성 탭 상단 시그니처 라인 */
.tabbar a.active::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 22px; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform: translateX(-50%);
}

.tab-icon {
    font-size: 1.32rem;
    display: block;
    line-height: 1.1;
    margin-bottom: 4px;
    filter: grayscale(0.05);
}
.tabbar a.active .tab-icon { filter: none; }

/* 매거진 nav 라벨 — Pretendard 800 + UPPERCASE + 와이드 letter-spacing */
.tab-label {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.1;
}
@media (max-width: 380px) {
    .tab-label { font-size: 0.6rem; letter-spacing: 0.10em; }
    .tab-icon { font-size: 1.22rem; }
}
@media (min-width: 600px) {
    .tab-label { font-size: 0.72rem; letter-spacing: 0.16em; }
    .tab-icon { font-size: 1.4rem; }
}

.footer-note { text-align: center; margin: 24px 0 8px; color: var(--text-muted); font-size: 0.82rem; }
.footer-note a { color: var(--primary-dark); border-bottom: 1px dotted var(--primary); text-decoration: none; }

/* 언어 스위처 (대장님 명령: 글로브 랜딩부터 다국어) */
.lang-btn:not(.lang-select), ul.lang-list { display: none !important; }
.lang-switcher-mount {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1100;
}
.lang-switcher--select {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(254, 252, 250, 0.85);
    color: var(--primary-dark);
    border: 1px solid rgba(232, 164, 184, 0.30);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(232, 164, 184, 0.18);
    height: 34px;
    transition: all 0.25s ease;
    overflow: hidden;
}
.lang-switcher--select:hover {
    background: rgba(254, 252, 250, 0.95);
    border-color: rgba(181, 115, 158, 0.45);
}
.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    color: var(--primary-dark);
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 28px 6px 14px;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238E5878' opacity='0.85'><path d='M4 6l4 4 4-4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}
.lang-select option {
    background: #FEFCFA;
    color: var(--text);
    font-size: 0.9rem;
    padding: 6px;
}
@media (max-width: 480px) {
    .lang-switcher-mount { top: 12px; right: 12px; }
    .lang-switcher--select { height: 28px; padding: 3px 3px 3px 8px; }
    .lang-select { max-width: 70px; font-size: 0.72rem; }
}
html[dir="rtl"] .lang-switcher-mount { right: auto; left: 16px; }
html[dir="rtl"] body { text-align: right; }

/* ============================================================
 * 매거진 푸터 (대장님 명령: 스타일 적용 누락 시정)
 * ============================================================ */
.portal-footer {
    margin: 36px auto 0;
    padding: 28px 16px 100px;  /* 하단 탭바 공간 100px */
    text-align: center;
    border-top: 1px solid rgba(232, 164, 184, 0.22);
    position: relative;
}
.portal-footer::before {
    content: '✦';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 0 12px;
    color: var(--secondary);
    font-size: 0.86rem;
    letter-spacing: 0.3em;
}
.footer-nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-bottom: 1px dotted transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-nav a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}
.footer-nav .dot {
    color: var(--secondary);
    opacity: 0.55;
    font-weight: 400;
    user-select: none;
}
.footer-copy {
    margin-top: 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-light);
}
@media (max-width: 480px) {
    .portal-footer { padding: 24px 12px 96px; }
    .footer-nav { font-size: 0.68rem; gap: 2px 4px; }
    .footer-nav a { padding: 3px 6px; }
    .footer-copy { font-size: 0.72rem; }
}
