/* =========================================================
   문보우 타임스 — 미니멀 모노크롬 / 다크모드 / 접근성 우선
   색은 최상단 무지개 헤어라인 한 줄에만 사용(소수자 연대).
   레이아웃 언어는 BBC 코리아풍(흑백 · 굵은 산세리프 헤드라인 ·
   가는 구분선 · 넉넉한 여백 · 썸네일 리스트)을 참고.
   ========================================================= */

:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --ink: #15171c;
    --sub: #565a61;
    --line: #e2e2e2;
    --line-strong: #15171c;
    --ph-bg: #ececec;
    --ph-fg: #6a6e75;
    --tag-bg: #15171c;
    --tag-fg: #ffffff;
    --focus: #15171c;
    --img-filter: grayscale(1);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315171c' stroke-width='2'/%3E%3C/svg%3E");
    --pad: 40px;
    --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
    --sans: "Pretendard", "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #121316;
    --surface: #181a1f;
    --ink: #f1f2f4;
    --sub: #aab0b8;
    --line: #2c2f35;
    --line-strong: #f1f2f4;
    --ph-bg: #23262c;
    --ph-fg: #99a0a8;
    --tag-bg: #f1f2f4;
    --tag-fg: #121316;
    --focus: #f1f2f4;
    --img-filter: grayscale(1) brightness(0.92);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f1f2f4' stroke-width='2'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #121316;
        --surface: #181a1f;
        --ink: #f1f2f4;
        --sub: #aab0b8;
        --line: #2c2f35;
        --line-strong: #f1f2f4;
        --ph-bg: #23262c;
        --ph-fg: #99a0a8;
        --tag-bg: #f1f2f4;
        --tag-fg: #121316;
        --focus: #f1f2f4;
        --img-filter: grayscale(1) brightness(0.92);
        --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f1f2f4' stroke-width='2'/%3E%3C/svg%3E");
    }
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* keep-all: 한국어 어절 단위 줄바꿈 / anywhere: 이메일·URL 등 긴 문자열 비상 줄바꿈 */
    word-break: keep-all;
    overflow-wrap: anywhere;
}
/* 접근성 토글 — <head> 인라인 스크립트가 첫 페인트 전에 html에 클래스를 단다 */
html.large-text { font-size: 18px; }
html.hide-images img { display: none; }
/* 이미지 숨김 모드: 빈 썸네일 상자·민감 이미지 가리개가 남아 지면을 가리지 않도록
   이미지 컨테이너와 가림 UI를 통째로 숨긴다 (텍스트·재생 버튼은 유지) */
html.hide-images .lead-thumb,
html.hide-images .photo-thumb,
html.hide-images .sec-thumb,
html.hide-images .pod-cover,
html.hide-images .video-thumb,
html.hide-images .article-figure,
html.hide-images .cw-reveal,
html.hide-images .cw-static::after { display: none; }
/* 이미지 칸이 사라진 2열 그리드는 1열로 접는다 — 글이 좁은 이미지 칸에 끼지 않게 */
html.hide-images .pod-item,
html.hide-images .pod-detail-head,
html.hide-images .sec-page-lead { grid-template-columns: 1fr; }
/* 이미지가 빠져 얇아진 블록에 맞춰 예약 높이와 블록 간 여백을 줄인다 (숨김 모드 한정) */
html.hide-images .sec-block,
html.hide-images .photo-news { margin-top: 1.8rem; contain-intrinsic-size: auto 180px; }
/* 리드 이미지가 사라지면 왼쪽 본문이 사이드바보다 훨씬 짧아져 좌하단이 비는 문제 —
   숨김 모드에서는 1면을 태블릿 배치(본문 전폭 + 위젯 2단)로 전환해 빈 공간을 없앤다 */
@media (min-width: 1081px) {
    html.hide-images .front { grid-template-columns: 1fr; }
    html.hide-images .front-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.hide-images .section-page { grid-template-columns: 1fr; }
    html.hide-images .section-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
/* keep-all은 한국어 어절을 지키지만 이메일·URL 같은 긴 라틴 문자열은 못 꺾는다 — 비상 줄바꿈 허용 */
p, li, dd, dt, small, figcaption { overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; min-width: 0; color: inherit; }

/* ---- accessibility primitives ---- */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 1px;
}
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 80;
    padding: 0.75rem 1rem; background: var(--ink); color: var(--bg); font-weight: 700;
}
.skip-link:focus { top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.muted { color: var(--sub); }

/* monochrome treatment for all photography */
.lead-thumb img, .sec-thumb img, .photo-thumb img, .article-figure img, .pod-cover img {
    filter: var(--img-filter);
}

/* the one color moment: solidarity hairline */
.spectrum {
    height: 4px; width: 100%;
    background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
}
.spectrum--foot { height: 3px; }

/* ---- shared width ---- */
.utility-inner, .masthead-inner, .gnb-wrap, .breaking,
.front, .photo-news, .sec-block, .section-page,
.messages, .footer-inner, .footer-copy,
.page-header, .section-block, .form-shell,
.desk-header, .metric-grid, .desk-layout, .desk-panel.full,
.pod-page, .pod-detail, .page-bottom-ad {
    width: min(1180px, calc(100% - var(--pad)));
    margin-inline: auto;
}

h1, h2, h3, h4 { overflow-wrap: anywhere; }

/* ---- utility bar ---- */
.utility-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.utility-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 40px; font-size: 0.82rem; color: var(--sub);
}
.utility-links { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.utility-links a:hover { color: var(--ink); text-decoration: underline; }
.utility-sep { width: 1px; height: 14px; background: var(--line); }
.utility-links a, .util-toggle { display: inline-flex; align-items: center; min-height: 44px; }
.util-toggle {
    background: none; border: 0; color: var(--sub); cursor: pointer; padding: 0; font-size: 0.82rem;
}
.util-toggle:hover { color: var(--ink); text-decoration: underline; }
.util-toggle[aria-pressed="true"] { color: var(--ink); text-decoration: underline; font-weight: 700; }

/* 사이트 언어 선택 — 유틸리티 바의 다른 토글과 같은 톤 */
.lang-form { display: inline-flex; align-items: center; }
.lang-form select {
    height: 32px; border: 1px solid var(--line-strong); color: var(--sub);
    font-size: 0.82rem; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    padding: 0 1.7rem 0 0.55rem;
    background: var(--surface) var(--chevron) no-repeat right 0.55rem center;
    background-size: 10px 7px;
}
.lang-form select:hover { color: var(--ink); border-color: var(--ink); }

/* ---- masthead ---- */
.masthead { background: var(--bg); }
.masthead-inner {
    display: grid; grid-template-columns: 1fr auto;
    grid-template-areas: "title search" "slogan search";
    align-items: center; gap: 0.2rem 1.5rem; padding: 1.6rem 0 1.4rem;
}
.paper-title { grid-area: title; display: flex; align-items: baseline; gap: 0.7rem; }
/* 1면에서만 제호를 h1으로 감싼다 — 그리드 칸은 h1이 받고, 글자 모양은 그대로 */
.paper-h1 { grid-area: title; margin: 0; font: inherit; }
.paper-name {
    font-family: var(--serif); font-weight: 800;
    font-size: clamp(2rem, 5.5vw, 3.3rem); line-height: 1; letter-spacing: -0.01em;
}
.paper-slogan { grid-area: slogan; margin: 0.4rem 0 0; color: var(--sub); font-size: 0.92rem; }
.masthead-search { grid-area: search; display: flex; align-self: center; }
.masthead-search input {
    width: clamp(150px, 20vw, 230px); height: 44px;
    border: 1px solid var(--line-strong); border-right: 0; padding: 0 0.9rem; background: var(--surface);
}
.masthead-search button {
    height: 44px; padding: 0 1.1rem; border: 1px solid var(--line-strong);
    background: var(--ink); color: var(--bg); font-weight: 700; cursor: pointer;
}
.masthead-search button:hover { opacity: 0.85; }

/* ---- global nav (BBC풍 가로 메뉴) ---- */
.gnb {
    background: var(--bg); border-top: 1px solid var(--line); border-bottom: 2px solid var(--line-strong);
    position: sticky; top: 0; z-index: 50;
    /* 바 어디를 잡고 끌어도 좌우로만 — 세로 스크롤·바운스로 번지지 않게 바 전체에 적용 */
    touch-action: pan-x;
}
.gnb-wrap { display: flex; align-items: stretch; }
.gnb-inner {
    display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0;
    touch-action: pan-x; overscroll-behavior: contain;
}
.gnb-inner::-webkit-scrollbar { display: none; }
.gnb-inner a, .gnb-tip, .gnb-exit {
    flex: 0 0 auto; display: inline-flex; align-items: center;
    padding: 0.8rem 1rem; font-weight: 700; font-size: 0.97rem; white-space: nowrap;
}
.gnb-inner a {
    color: var(--ink); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.gnb-inner a:hover { background: var(--ph-bg); }
.gnb-inner a.is-active { border-bottom-color: var(--ink); }
.gnb-home { font-weight: 800; }
.gnb-actions { display: flex; align-items: stretch; flex: 0 0 auto; border-left: 1px solid var(--line); }
.gnb-tip { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.gnb-tip:hover { background: var(--ph-bg); }
.gnb-exit { border: 0; cursor: pointer; background: var(--ink); color: var(--bg); font-weight: 800; }
.gnb-exit:hover { opacity: 0.85; }

/* ---- breaking strip ---- */
.breaking {
    display: flex; align-items: center; gap: 0.9rem;
    margin-top: 1.2rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.breaking-label {
    flex: 0 0 auto; background: var(--tag-bg); color: var(--tag-fg);
    font-weight: 800; font-size: 0.75rem; letter-spacing: 0.05em; padding: 0.25rem 0.5rem;
}
.breaking { touch-action: pan-x; }
.breaking-track { display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; overscroll-behavior: contain; }
.breaking-track::-webkit-scrollbar { display: none; }
/* 스크롤바를 숨긴 대신 오른쪽 페이드로 '더 있음'을 암시 */
.breaking-track { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.breaking-track a { font-size: 0.92rem; white-space: nowrap; font-weight: 600; }
.breaking-track a:hover { text-decoration: underline; }

/* ---- kicker / byline ---- */
.kicker {
    display: inline-block; color: var(--sub); font-weight: 800;
    font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.45rem;
}
a.kicker:hover { color: var(--ink); text-decoration: underline; }
.byline { color: var(--sub); font-size: 0.85rem; margin: 0.5rem 0 0; }

.thumb-ph {
    display: grid; place-items: center; width: 100%; height: 100%;
    background: var(--ph-bg); color: var(--ph-fg);
    font-family: var(--serif); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em;
}

/* shared headline font (sans, bold — BBC풍) */
.lead-text h2, .top-card h3, .sec-lead h3, .list-story h2,
.sec-page-lead h2, .article-header h1, .page-header h1,
.widget-title, .band-title, .sec-head h2, .pod-item h3, .pod-detail h1 {
    font-family: var(--sans); letter-spacing: -0.01em;
}

/* ===== FRONT PAGE ===== */
.front { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.4rem; margin-top: 1.6rem; }
.front-main { min-width: 0; }

.lead { display: grid; gap: 1rem; padding-bottom: 1.7rem; border-bottom: 2px solid var(--line-strong); }
.lead-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph-bg); }
.lead-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead-text { min-width: 0; }
.lead-text h2 {
    margin: 0.15rem 0 0.6rem; font-weight: 800;
    font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2;
}
.lead-text h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lead-summary { margin: 0; color: var(--sub); font-size: 1.05rem; line-height: 1.6; }

.top-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin-top: 1.7rem; }
.top-card { padding-top: 1.3rem; border-top: 1px solid var(--line); }
.top-card:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.top-card h3 { margin: 0 0 0.4rem; font-weight: 700; font-size: 1.18rem; line-height: 1.35; }
.top-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.top-card p { margin: 0; color: var(--sub); font-size: 0.9rem; }

/* ---- sidebar widgets ---- */
.front-side, .section-side { min-width: 0; display: grid; gap: 2rem; align-content: start; }
.widget { min-width: 0; }
.widget-title {
    margin: 0 0 0.9rem; font-size: 1.05rem; font-weight: 800;
    padding-bottom: 0.55rem; border-bottom: 2px solid var(--line-strong);
}
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li {
    display: grid; grid-template-columns: 26px 1fr; gap: 0.7rem; align-items: start;
    padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.rank-num { font-weight: 800; font-size: 1.05rem; color: var(--ink); line-height: 1.35; }
.rank-list a { font-weight: 600; font-size: 0.95rem; line-height: 1.45; }
.rank-list a:hover { text-decoration: underline; }

.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { padding: 0.55rem 0 0.55rem 0.9rem; border-bottom: 1px solid var(--line); position: relative; }
.dot-list li::before { content: "·"; position: absolute; left: 0; color: var(--ink); font-weight: 800; }
.dot-list a { font-size: 0.95rem; }
.dot-list a:hover { text-decoration: underline; }
.dot-list.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 1.4rem; }

.letter-widget { border: 1px solid var(--line); border-top: 3px solid var(--line-strong); padding: 1.1rem; }
.letter-widget p { margin: 0 0 0.8rem; color: var(--sub); font-size: 0.9rem; }
.letter-form { display: grid; gap: 0.6rem; }
.letter-form input[type="email"] { width: 100%; height: 44px; border: 1px solid var(--line-strong); padding: 0 0.8rem; background: var(--surface); }
.letter-form button { height: 44px; border: 0; background: var(--ink); color: var(--bg); font-weight: 700; cursor: pointer; }
.letter-form button:hover { opacity: 0.85; }
.check-row { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--sub); }
.widget-cta {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    min-height: 46px; background: var(--ink); color: var(--bg); font-weight: 700;
}
.widget-cta:hover { opacity: 0.85; }

.band-title { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 800; padding-bottom: 0.5rem; border-bottom: 2px solid var(--line-strong); }

/* ---- photo news ---- */
.photo-news { margin-top: 3rem; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.3rem; }
.photo-card { display: grid; gap: 0.55rem; }
.photo-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph-bg); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.photo-card:hover .photo-caption { text-decoration: underline; }

/* 접히는 선 아래 블록은 화면에 들어올 때만 렌더링(저사양 기기 스크롤 비용 절감) */
.sec-block, .photo-news { content-visibility: auto; contain-intrinsic-size: auto 520px; }
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 420px; }

/* ---- section blocks (home) ---- */
.sec-block { margin-top: 3rem; }
.sec-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; border-bottom: 2px solid var(--line-strong); padding-bottom: 0.5rem; margin-bottom: 1.4rem;
}
.sec-head h2 { margin: 0; font-size: 1.45rem; font-weight: 800; }
.sec-head h2 a:hover { text-decoration: underline; }
.sec-more { color: var(--sub); font-size: 0.85rem; font-weight: 700; }
.sec-more:hover { color: var(--ink); text-decoration: underline; }
.sec-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; }
.sec-lead { min-width: 0; }
.sec-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph-bg); margin-bottom: 0.8rem; }
.sec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sec-lead h3 { margin: 0 0 0.5rem; font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.sec-lead h3 a:hover { text-decoration: underline; }
.sec-lead p { margin: 0; color: var(--sub); font-size: 0.95rem; }
.sec-list { list-style: none; margin: 0; padding: 0; align-self: start; }
.sec-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.sec-list li:first-child { padding-top: 0; }
.sec-list a { font-weight: 600; font-size: 1rem; line-height: 1.4; }
.sec-list a:hover { text-decoration: underline; }
.sec-list time { flex: 0 0 auto; color: var(--sub); font-size: 0.8rem; }

/* ===== SECTION / LIST / SEARCH ===== */
.section-page { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 2.4rem; margin-top: 1.6rem; }
.section-main { min-width: 0; }
.sec-page-head { border-bottom: 2px solid var(--line-strong); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.sec-page-head h1 { margin: 0.1rem 0 0.4rem; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.sec-page-desc { margin: 0; color: var(--sub); }
.sec-page-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0,1fr); gap: 1.5rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 2px solid var(--line-strong); margin-bottom: 0.5rem; }
.sec-thumb.wide { aspect-ratio: 16 / 10; margin: 0; }
.sec-page-lead h2 { margin: 0 0 0.5rem; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; }
.sec-page-lead h2 a:hover { text-decoration: underline; }
.sec-page-lead p { margin: 0; color: var(--sub); }

.article-list { display: grid; }
.list-story { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.list-story h2 { margin: 0.25rem 0 0.4rem; font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.3; }
.list-story h2 a:hover { text-decoration: underline; }
.list-story p { margin: 0; color: var(--sub); font-size: 0.95rem; }
.meta-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; color: var(--sub); font-size: 0.82rem; min-width: 92px; }

/* ===== ARTICLE PAGE ===== */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: var(--sub); font-size: 0.85rem; margin-bottom: 0.9rem; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-page { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.4rem, 4vw, 2.8rem); }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; margin-bottom: 1.5rem; }
.article-header h1 { margin: 0.3rem 0 0.6rem; font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.9rem); line-height: 1.25; }
.article-subtitle { margin: 0 0 1rem; color: var(--sub); font-size: 1.12rem; line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--sub); font-size: 0.85rem; }
.article-meta .author { color: var(--ink); font-weight: 700; }
.article-figure { margin: 0 0 1.5rem; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption {
    padding: 0.55rem 0.2rem 0.7rem; border-bottom: 1px solid var(--line);
    font-size: 0.85rem; color: var(--sub); line-height: 1.5;
}
.figure-caption { display: block; }
.figure-credit { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--sub); opacity: 0.85; }
.article-body { font-family: var(--serif); font-size: 1.12rem; line-height: 1.95; }
.article-body p { margin: 0 0 1.4rem; }
.content-warning, .article-safety-note {
    margin: 1rem 0; padding: 0.9rem 1.1rem; border-left: 4px solid var(--line-strong); background: var(--ph-bg);
}
.content-warning strong, .article-safety-note strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
.article-safety-note p { margin: 0; }
.safe-reading-note { margin: 1rem 0 0; color: var(--sub); font-size: 0.85rem; }
.safe-reading-note a { text-decoration: underline; text-underline-offset: 3px; }
.sources-box { margin: 1.2rem 0 0; padding: 0.8rem 1.1rem; border: 1px solid var(--line); font-size: 0.9rem; }
.sources-box strong { display: block; margin-bottom: 0.2rem; font-size: 0.82rem; color: var(--sub); }
.sources-box p { margin: 0; }
.sources-box a { text-decoration: underline; text-underline-offset: 3px; }
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 0.45rem; flex-wrap: wrap;
    margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.pg-num, .pg-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; font-weight: 700; font-size: 0.95rem;
}
a.pg-num { border: 1px solid var(--line); }
a.pg-num:hover, a.pg-arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pg-num.is-current { background: var(--ink); color: var(--bg); }
.pg-ellipsis { color: var(--sub); padding: 0 0.2rem; }
.pg-disabled { color: var(--sub); opacity: 0.4; }
.correction-box { margin: 1.2rem 0 0; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); }
.correction-box strong { display: block; margin-bottom: 0.3rem; }
.correction-box p { margin: 0 0 0.3rem; font-size: 0.95rem; }
.correction-box small { color: var(--sub); }
.share-bar {
    display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
    margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.share-label { color: var(--sub); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 0.2rem; }
.share-bar a, .share-bar button {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
    font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.share-bar a:hover, .share-bar button:hover { background: var(--ink); color: var(--bg); }
.article-foot { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--sub); font-size: 0.85rem; }
.article-foot a { text-decoration: underline; text-underline-offset: 3px; }
.related, .support-box { margin-top: 2rem; }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.support-item { border: 1px solid var(--line); border-top: 3px solid var(--line-strong); padding: 1rem; }
.support-item strong { display: block; }
.support-item span { display: block; color: var(--sub); font-size: 0.85rem; }
.support-phone { color: var(--ink) !important; font-weight: 700; margin-top: 0.3rem; }

/* ===== PODCAST ===== */
.pod-intro { border-bottom: 2px solid var(--line-strong); padding-bottom: 1.1rem; margin: 1.6rem auto; }
.pod-intro h1 { margin: 0.1rem 0 0.4rem; font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.pod-intro p { margin: 0; color: var(--sub); max-width: 60ch; }
.pod-intro .pod-upload-link { display: inline-block; margin-top: 1rem; margin-right: 0.5rem; min-height: 44px; line-height: 44px; padding: 0 1.1rem; background: var(--ink); color: var(--bg); font-weight: 700; }
.pod-intro .pod-upload-link:hover { opacity: 0.85; }
.pod-intro .pod-upload-link.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); line-height: 42px; }
.pod-intro .pod-upload-link.secondary:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.pod-feed-line { margin: 0.5rem 0 0; font-size: 0.85rem; }
.pod-feed-line a { text-decoration: underline; text-underline-offset: 3px; color: var(--sub); }
.pod-feed-line a:hover { color: var(--ink); }

.pod-list { display: grid; gap: 0; margin: 0 auto; padding: 0; list-style: none; }
.pod-item { display: grid; grid-template-columns: 116px 1fr; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.pod-cover { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ph-bg); }
.pod-cover img { width: 100%; height: 100%; object-fit: cover; }
.pod-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg); border: 2px solid var(--ink);
}
.pod-play::before { content: ""; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--ink); margin-left: 2px; }
.pod-badge { display: inline-block; background: var(--tag-bg); color: var(--tag-fg); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; padding: 0.15rem 0.45rem; }
.pod-item h3 { margin: 0.5rem 0 0.4rem; font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.pod-item h3 a:hover { text-decoration: underline; }
.pod-item p { margin: 0; color: var(--sub); font-size: 0.92rem; }
.pod-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.5rem; color: var(--sub); font-size: 0.82rem; }

.pod-detail { display: grid; gap: 1.6rem; margin-top: 1.6rem; }
.pod-detail-head { display: grid; grid-template-columns: 180px 1fr; gap: 1.6rem; align-items: start; padding-bottom: 1.4rem; border-bottom: 2px solid var(--line-strong); }
.pod-detail-head .pod-cover { aspect-ratio: 1 / 1; }
.pod-detail h1 { margin: 0.3rem 0 0.5rem; font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.25; }
.pod-detail .pod-meta { font-size: 0.88rem; }
.pod-player { width: 100%; margin-top: 1rem; }
.pod-player audio { width: 100%; }
.pod-download { margin: 0.5rem 0 0; font-size: 0.85rem; }
.pod-download a { text-decoration: underline; text-underline-offset: 3px; color: var(--sub); }
.pod-download a:hover { color: var(--ink); }
.pod-missing { margin-top: 1rem; padding: 0.9rem 1.1rem; border-left: 4px solid var(--line-strong); background: var(--ph-bg); color: var(--sub); }
.pod-notes { font-family: var(--serif); font-size: 1.08rem; line-height: 1.9; }
.pod-notes p { margin: 0 0 1.2rem; }

/* ===== VIDEO ===== */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 auto 1.4rem; width: min(1180px, calc(100% - var(--pad))); }
.cat-tabs a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
    border: 1px solid var(--line-strong); font-weight: 700; font-size: 0.92rem;
}
.cat-tabs a:hover { background: var(--ph-bg); }
.cat-tabs a.is-active { background: var(--ink); color: var(--bg); }

.video-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem 1.2rem;
    width: min(1180px, calc(100% - var(--pad))); margin-inline: auto;
}
.pod-detail .video-grid { width: 100%; }
.video-card { display: grid; gap: 0.4rem; align-content: start; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph-bg); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.video-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg); border: 2px solid var(--ink);
}
.video-play::before { content: ""; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); margin-left: 3px; }
.video-play.big { width: 64px; height: 64px; }
.video-title { font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.video-card:hover .video-title { text-decoration: underline; }
.video-meta { color: var(--sub); font-size: 0.82rem; }
.video-page-title { margin: 0.4rem 0 0.5rem; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25; letter-spacing: -0.01em; }

.video-embed { position: relative; aspect-ratio: 16 / 9; margin-top: 1rem; background: var(--ph-bg); overflow: hidden; }
.video-embed img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-load {
    position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 0.8rem;
    width: 100%; border: 0; background: rgba(0,0,0,0.35); color: #fff; font-weight: 700; cursor: pointer;
}
.video-load:hover { background: rgba(0,0,0,0.5); }
.video-load .video-play { position: static; transform: none; }
.video-privacy { margin: 0.6rem 0 1.2rem; font-size: 0.82rem; }
.video-privacy a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== MESSAGES ===== */
.messages { margin-top: 1rem; }
.message { margin: 0 0 0.5rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--surface); }
.message.error { border-left-color: var(--ink); }

/* ===== PAGE HEADER / FORMS / RESOURCES ===== */
.eyebrow { margin: 0 0 0.35rem; color: var(--sub); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.page-header { margin-top: 1.6rem; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line-strong); }
.page-header h1 { margin: 0.2rem 0 0.5rem; font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.8rem); }
.page-header p { max-width: 720px; margin: 0; color: var(--sub); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.2rem; background: var(--ink); color: var(--bg); font-weight: 700; border: 0; cursor: pointer; }
.primary-action:hover { opacity: 0.85; color: var(--bg); }
.secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.2rem; border: 1px solid var(--line-strong); font-weight: 700; }
.secondary-action:hover { background: var(--ink); color: var(--bg); }

.section-block { margin-top: 2.2rem; }
.section-block.narrow { width: min(900px, calc(100% - var(--pad))); }
.resource-groups { display: grid; gap: 2rem; }
.resource-group h2 { margin: 0 0 0.9rem; font-weight: 800; font-size: 1.35rem; border-bottom: 2px solid var(--line-strong); padding-bottom: 0.4rem; }
.resource-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.resource-item { border: 1px solid var(--line); padding: 1rem; }
.resource-item strong { display: block; }
.resource-item span, .resource-item small { display: block; color: var(--sub); font-size: 0.85rem; }
.resource-item p { margin: 0.4rem 0; font-size: 0.92rem; }
.resource-actions { display: flex; justify-content: space-between; gap: 0.8rem; border-top: 1px solid var(--line); margin-top: 0.7rem; padding-top: 0.7rem; }
.resource-actions a:hover { text-decoration: underline; }

.form-shell { margin-top: 1.6rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); }
.editor-form, .tip-status-form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.editor-form label, .tip-status-form label { display: grid; gap: 0.35rem; font-weight: 700; }
.editor-form input:not([type="checkbox"]):not([type="radio"]),
.editor-form select, .editor-form textarea,
.tip-status-form select, .tip-status-form textarea, .filter-row select {
    width: 100%; border: 1px solid var(--line-strong); padding: 0.65rem 0.75rem; background: var(--surface);
}
.editor-form input[type="checkbox"], .editor-form input[type="radio"] {
    width: auto; height: 1.05rem; margin: 0; flex: 0 0 auto; accent-color: var(--ink);
}
.editor-form label.check-row {
    display: flex; align-items: center; gap: 0.55rem; font-weight: 700; flex-wrap: wrap;
}
.editor-form textarea, .tip-status-form textarea { resize: vertical; min-height: 120px; }
.editor-form small { color: var(--sub); font-weight: 500; }
.editor-form .primary-action { justify-self: start; }
.editor-form .primary-action:hover { background: var(--ink); color: var(--bg); opacity: 0.85; }

/* ===== FOOTER ===== */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; padding: 2.4rem 0 1.6rem; }
/* 달무지개 심볼 — 푸터 한글 제호 옆, 흑백(다크모드 자동 반전) */
.footer-brand-row { display: flex; align-items: center; gap: 0.6rem; }
.footer-mark { width: 36px; height: 36px; color: var(--ink); flex: 0 0 auto; }
.footer-brand strong { font-family: var(--serif); font-size: 1.35rem; }
.footer-brand p { max-width: 420px; margin: 0.6rem 0 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--sub); }
.footer-policy { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.85rem; }
.footer-policy a { font-weight: 600; }
.footer-policy a:hover { text-decoration: underline; }
.footer-info { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.6rem 1.5rem; margin: 0; }
.footer-info div { display: grid; grid-template-columns: minmax(88px, auto) 1fr; gap: 0.5rem; font-size: 0.85rem; }
.footer-info dt { color: var(--sub); white-space: nowrap; }
.footer-info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.footer-info dd a:hover { text-decoration: underline; }
.footer-copy { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 0 2rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--sub); }
.footer-desk { color: var(--sub); opacity: 0.6; font-size: 0.78rem; }
.footer-desk:hover { opacity: 1; color: var(--ink); text-decoration: underline; }

/* section headings reused by desk panels */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font-weight: 800; font-size: 1.3rem; }
.section-label { color: var(--sub); font-weight: 800; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== 편집국 로그인 (친절한 웹 로그인) ===== */
.auth-wrap { width: min(440px, calc(100% - var(--pad))); margin: 2.6rem auto 3rem; }
.auth-card { border: 1px solid var(--line); border-top: 4px solid var(--line-strong); background: var(--surface); padding: clamp(1.4rem, 4vw, 2rem); }
.auth-card h1 { margin: 0.2rem 0 0.4rem; font-weight: 800; font-size: 1.6rem; }
.auth-card .auth-desc { margin: 0 0 1.4rem; color: var(--sub); font-size: 0.95rem; }
.auth-card .editor-form { gap: 1.1rem; }
.auth-card .primary-action { width: 100%; }
.auth-foot { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--sub); }
.auth-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ===== DESK ===== */
.desk-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding: 1.5rem; border: 1px solid var(--line); border-top: 4px solid var(--line-strong); background: var(--surface); }
.desk-header .eyebrow { color: var(--sub); }
.desk-header h1 { margin: 0; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.desk-greeting { margin: 0.4rem 0 0; color: var(--sub); font-size: 0.9rem; }
.desk-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: stretch; }
.desk-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.8rem; border: 1px solid var(--line-strong); }
.desk-nav a:hover { background: var(--ink); color: var(--bg); }
.desk-logout-form { margin: 0; }
.desk-nav button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.8rem; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; cursor: pointer; }
.desk-nav button:hover { background: var(--ink); color: var(--bg); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.metric { border: 1px solid var(--line); padding: 1rem; }
.metric span, .metric strong { display: block; }
.metric span { color: var(--sub); font-size: 0.85rem; }
.metric strong { font-weight: 800; font-size: 2.1rem; line-height: 1.1; }
.metric.urgent { border-color: var(--line-strong); border-left-width: 4px; }
.desk-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.desk-panel { border: 1px solid var(--line); padding: 1rem; }
.desk-panel.full { margin-top: 1rem; }
.desk-list { display: grid; gap: 0.7rem; }
.desk-list article { padding-top: 0.7rem; border-top: 1px solid var(--line); }
.desk-list strong, .desk-list span { display: block; overflow-wrap: anywhere; }
.desk-list span { color: var(--sub); font-size: 0.85rem; }
/* 편집국 차트 — 인라인 SVG, 외부 라이브러리 없음. 색은 사이트 잉크 토큰만 쓰므로
   다크모드는 :root 변수 전환으로 자동 대응된다. 단일 계열이라 범례가 필요 없다. */
.chart-figure { margin: 0.5rem 0 0; overflow-x: auto; }
.chart { display: block; width: 100%; height: auto; min-width: 320px; }
.chart-axis { stroke: var(--line); stroke-width: 1; }
.chart-bar { fill: var(--ink); }
.chart-bar:hover { fill: var(--sub); }
.chart-value { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart-tick, .chart-label { fill: var(--sub); font-size: 12px; }
.chart-label { dominant-baseline: middle; }
@media (prefers-reduced-motion: no-preference) {
    .chart-bar { transition: fill 0.15s ease; }
}
.filter-row { display: grid; grid-template-columns: minmax(220px, 320px) auto; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.filter-row label { display: grid; gap: 0.35rem; font-weight: 700; }
.filter-row button, .tip-status-form button, .editor-form button:not(.primary-action) {
    min-height: 46px; padding: 0 1rem; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; cursor: pointer;
}
.filter-row button:hover, .tip-status-form button:hover, .editor-form button:not(.primary-action):hover { background: var(--ink); color: var(--bg); }
.tip-table { display: grid; gap: 1rem; }
.tip-row { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.tip-row h3 { margin: 0.2rem 0; font-weight: 700; }
.tip-row p { margin: 0.5rem 0; }
.tip-row small { color: var(--sub); }

.back-link { margin-top: 1.2rem; }
.desk-articles { display: grid; }
.desk-article-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.desk-article-row:first-child { border-top: 0; }
/* 데스크 — AI 번역 현황판 */
.ai-translate-box { margin: 1rem 0; padding: 0.9rem 1rem; border: 1px solid var(--line-strong); }
.ai-translate-status { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; align-items: baseline; }
.ai-translate-status .ai-lang { color: var(--sub); font-size: 0.9rem; }
.ai-translate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.8rem; }
.ai-translate-box .muted { margin-top: 0.6rem; font-size: 0.85rem; }
.desk-article-row h3 { margin: 0.25rem 0; font-weight: 700; font-size: 1.15rem; }
.desk-article-row h3 a:hover { text-decoration: underline; }
.desk-article-row small { color: var(--sub); }
.form-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }

/* ===== 안전·접근성 기능 컴포넌트 ===== */
/* 콘텐츠 경고 이미지 블러 — 기사 상세(클릭해서 보기) */
/* 블러는 픽셀을 가장자리 밖으로 퍼뜨린다 — clip-path가 이미지 '자신의' 상자에서 정확히 잘라
   (figure 안의 캡션 영역까지 번지던 문제 해결) 어느 방향으로도 새지 않는다 */
.cw-shield { position: relative; }
.cw-shield.cw-blurred img { filter: blur(12px) grayscale(1); clip-path: inset(0); background: var(--ph-bg); }
.cw-reveal {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    padding: 0.7rem 1rem; border: 0; background: var(--ink); color: var(--bg);
    font-weight: 700; cursor: pointer; max-width: 90%;
}
.cw-reveal:hover { opacity: 0.9; }
/* 목록 썸네일 블러(링크) — 클릭하면 기사로 이동 */
.cw-static { position: relative; overflow: hidden; }
.cw-static img { filter: blur(8px) grayscale(1); clip-path: inset(0); }
.cw-static::after {
    content: attr(data-cw-label); position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: max-content; max-width: calc(100% - 0.6rem); text-align: center;
    background: var(--tag-bg); color: var(--tag-fg); font-size: 0.72rem; font-weight: 700;
    padding: 0.2rem 0.5rem;
}

/* 쉬운 말 요약 박스 */
.plain-box { margin: 0 0 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--ph-bg); }
.plain-box strong { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; }
.plain-box p { margin: 0; }

/* 언어 전환 바 */
.lang-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.lang-label { color: var(--sub); font-weight: 700; }
.lang-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.65rem; border: 1px solid var(--line-strong); }
.lang-bar a:hover { background: var(--ph-bg); }
.lang-bar a.is-active { background: var(--ink); color: var(--bg); }
.trans-note { margin-top: 1rem; color: var(--sub); font-size: 0.9rem; }
.trans-note a { text-decoration: underline; }
/* AI 번역 고지 — 본문과 구분되는 얇은 안내 상자 */
.mt-note { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); padding: 0.6rem 0.8rem; }
/* 검수 전 기계번역 초안 표시 */
.review-flag { color: var(--ink); }
/* 정정 아카이브·임팩트 지면 */
.corrections-policy { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); padding: 0.9rem 1rem; margin-bottom: 1.6rem; }
.corrections-policy strong { display: block; margin-bottom: 0.4rem; }
.correction-excerpt, .impact-desc { color: var(--sub); margin: 0.35rem 0 0.2rem; }

/* 광고 슬롯 — 모노크롬 톤을 유지하면서 기사와 명확히 구분한다 */
.ad-slot { margin-top: 2.2rem; border: 1px solid var(--line); padding: 0.7rem 0.9rem 0.9rem; text-align: center; }
.ad-label { display: block; margin-bottom: 0.5rem; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sub); }
.ad-slot .adsbygoogle { min-height: 100px; }
/* 사이드바 안에서는 그리드 간격이 여백을 만들므로 위 여백을 없앤다 */
.front-side .ad-slot, .section-side .ad-slot { margin-top: 0; }
/* 애드센스 미연결(개발) 상태의 자리 미리보기 */
.ad-preview { border-style: dashed; }
.ad-preview .ad-ph { display: flex; align-items: center; justify-content: center; min-height: 100px; color: var(--sub); font-size: 0.85rem; }
/* 이미지 숨기기 모드에서는 광고도 숨긴다 — 광고는 iframe이라 img 규칙이 닿지 않으므로 슬롯째 감춘다 */
html.hide-images .ad-slot { display: none; }
/* 페이지 맨 아래(푸터 직전) 광고 — 본문과 푸터 양쪽에서 한 걸음 띄운다 */
.page-bottom-ad { margin-bottom: 2.4rem; }
/* 비한국어 모드에서 한국어 전용 문서 안내 */
.doc-lang-note { max-width: 720px; margin: 1.2rem auto 0; padding: 0.55rem 0.8rem; border: 1px solid var(--line); color: var(--sub); font-size: 0.88rem; }

/* 안전 제보 안내 / 가이드 / 흔적 지우기 */
.secure-note, .guide-callout { padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--ph-bg); }
.secure-note { margin-bottom: 1.4rem; }
.secure-note strong, .guide-callout strong { display: block; margin-bottom: 0.5rem; }
.secure-note ul { margin: 0; padding-left: 1.1rem; }
.secure-note li { margin: 0.3rem 0; font-size: 0.92rem; }
.secure-note a, .guide-step a { text-decoration: underline; }
.guide { display: grid; gap: 1.5rem; }
.guide-callout { margin-bottom: 0.3rem; }
.guide-callout.warn { border-left-width: 6px; }
.guide-step h2 { font-weight: 800; font-size: 1.2rem; margin: 0 0 0.4rem; }
.guide-step p { margin: 0 0 0.6rem; }
.guide-step ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.guide-step li { margin: 0.35rem 0; }
.channel-level {
    display: inline-block; vertical-align: 0.15em; margin-left: 0.5rem;
    background: var(--tag-bg); color: var(--tag-fg);
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.18rem 0.5rem;
}
.pgp-fp {
    display: inline-block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.82rem; background: var(--ph-bg); padding: 0.15rem 0.45rem; overflow-wrap: anywhere;
}

/* 우리의 약속 밴드 */
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.promise { display: grid; gap: 0.45rem; align-content: start; border: 1px solid var(--line); border-top: 3px solid var(--line-strong); padding: 1.1rem; }
.promise strong { font-size: 1.05rem; }
.promise span { color: var(--sub); font-size: 0.9rem; line-height: 1.55; }
.promise:hover strong { text-decoration: underline; }
.footer-solidarity { font-size: 0.82rem !important; color: #8b94a5; }

/* 뉴스레터 언어·채널 선택 */
.letter-prefs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.letter-prefs label { flex: 1 1 140px; }
.letter-prefs select {
    width: 100%; height: 44px; border: 1px solid var(--line-strong);
    /* 기본 화살표를 끄고 직접 그려 좌우 여백을 동일하게(0.75rem) 맞춘다 */
    appearance: none; -webkit-appearance: none;
    padding: 0 2.1rem 0 0.75rem;
    background: var(--surface) var(--chevron) no-repeat right 0.75rem center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .front, .section-page { grid-template-columns: 1fr; }
    .front-side, .section-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    /* sidebar widgets read better stacked than as a cramped 2-up */
    .front-side, .section-side { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .masthead-inner { grid-template-columns: 1fr; grid-template-areas: "title" "slogan" "search"; }
    .masthead-search { margin-top: 0.8rem; }
    .masthead-search input { flex: 1; width: auto; }
    .sec-body, .sec-page-lead, .pod-detail-head { grid-template-columns: 1fr; gap: 1rem; }
    .top-grid { grid-template-columns: 1fr; }
    .top-card:nth-child(2) { border-top: 1px solid var(--line); padding-top: 1.3rem; }
    .resource-list, .support-grid, .form-grid, .promise-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-info { grid-template-columns: 1fr; }
    .desk-layout, .filter-row, .tip-row { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .list-story { grid-template-columns: 1fr; }
    .meta-stack { flex-direction: row; align-items: center; }
    .dot-list.two-col { grid-template-columns: 1fr; }
    .pod-item { grid-template-columns: 92px 1fr; gap: 1rem; }
    .pod-detail-head .pod-cover { max-width: 180px; }
    .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    /* 모바일: 기사 카드 틀(밝은 배경+테두리+안쪽 여백)을 없애 본문이 화면 폭을 그대로 쓴다 */
    .article-page { background: none; border: 0; padding: 0; }
    /* stack headers whose right-side action would otherwise overflow */
    .section-heading { flex-direction: column; align-items: flex-start; }
    .desk-header { flex-direction: column; align-items: flex-start; }
    .desk-article-row { flex-direction: column; align-items: flex-start; }
    .desk-article-row .secondary-action { align-self: stretch; justify-content: center; }
}
@media (max-width: 560px) {
    .paper-name { font-size: clamp(1.7rem, 8vw, 2.3rem); }
    .gnb-inner a, .gnb-tip, .gnb-exit { padding: 0.7rem 0.7rem; font-size: 0.9rem; }
    .pod-item { grid-template-columns: 76px 1fr; gap: 0.9rem; }
    .pod-play { width: 32px; height: 32px; }
    .pod-play::before { border-width: 6px 0 6px 10px; }
}
@media (max-width: 460px) {
    :root { --pad: 26px; }
    /* 고정 액션(익명 제보·긴급 나가기)을 줄여 내비 스크롤 공간을 확보 */
    .gnb-inner a, .gnb-tip, .gnb-exit { padding: 0.7rem 0.55rem; font-size: 0.85rem; }
    .utility-inner { flex-direction: column; align-items: flex-start; gap: 0; padding: 0.8rem 0 0.35rem; }
    .utility-date { display: block; margin-bottom: 0.1rem; }
    .photo-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .footer-info { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr; }
    .hero-actions .primary-action, .hero-actions .secondary-action { width: 100%; }
}

/* 편집국 제작 파이프라인 */
.prod-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: step; }
.prod-steps li { padding: 0.7rem 0.8rem; border: 1px solid var(--line); color: var(--sub); font-weight: 700; }
.prod-steps li[aria-current="step"] { border-color: var(--ink); color: var(--ink); border-top: 4px solid var(--ink); }
.prod-steps li.done { color: var(--ink); }
.prod-steps li.done::after { content: " ✓"; }
.prod-steps-intro li { font-weight: 500; color: var(--ink); }
.prod-steps-intro li b { display: block; margin-bottom: 0.3rem; }
.prod-warn { padding: 0.8rem 1rem; border-left: 4px solid var(--ink); background: var(--bg); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; }
.prod-seg { display: grid; gap: 0.8rem; margin: 0; padding: 1rem; border: 1px solid var(--line); }
.prod-seg legend { padding: 0 0.4rem; font-weight: 800; }
.prod-mode { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 0; padding: 0.8rem 1rem; border: 1px solid var(--line); }
.prod-block { display: grid; gap: 1rem; }
.prod-block[hidden] { display: none; }
.prod-log { max-height: 22rem; overflow: auto; padding: 0.8rem; background: var(--bg); border: 1px solid var(--line); font-size: 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.prod-error { border-left: 4px solid var(--ink); }
.prod-check { margin-bottom: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--line); }
.prod-blocking { font-weight: 700; }
.prod-results { display: grid; gap: 0.8rem; }
.prod-results audio { width: 100%; }
.prod-copy { width: 100%; font-family: inherit; font-size: 0.85rem; }
.prod-danger { margin-top: 1.5rem; }
.prod-danger button { background: none; border: 0; color: var(--sub); text-decoration: underline; cursor: pointer; }
@media (max-width: 720px) { .prod-steps { grid-template-columns: 1fr; } }
/* 편집국 — 다음 방송일 달력(일일 방송) */
.broadcast-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 0.6rem; padding: 0; list-style: none; }
.broadcast-days li { display: grid; gap: 0.2rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); font-size: 0.9rem; }
.broadcast-days li.is-today { border-top: 4px solid var(--ink); }
.broadcast-days li.is-published { background: var(--ph-bg); }
.broadcast-days .bd-date { font-weight: 800; }
.broadcast-days .bd-label { font-size: 0.78rem; color: var(--sub); }
.broadcast-days .bd-empty { color: var(--sub); text-decoration: underline; }
.broadcast-days .bd-corner { font-size: 0.78rem; color: var(--sub); }
.prod-progress { display: grid; gap: 0.4rem; margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); }
.prod-progress p { margin: 0; }
.prod-progress progress, .prod-progress-mini { width: 100%; height: 0.9rem; accent-color: var(--ink); }
.prod-progress-mini { display: block; max-width: 28rem; height: 0.5rem; margin-top: 0.4rem; }
.prod-stages { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.2rem 0 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--sub); }
.prod-stages li.is-now { color: var(--ink); font-weight: 800; }
.prod-stages li.is-now::before { content: "▶ "; }
.prod-stages li.done::after { content: " ✓"; }
.prod-rotation { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin: 0; font-size: 0.85rem; color: var(--sub); }
.prod-corner-add { border: 1px dashed var(--line); padding: 0.6rem 1rem; }
.prod-corner-add > summary { cursor: pointer; font-weight: 700; }
.prod-corner-add[open] > summary { margin-bottom: 0.8rem; }
@media (max-width: 720px) { .broadcast-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
button.secondary-action { background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; }
button.secondary-action:hover { background: var(--ink); color: var(--bg); }

/* 팟캐스트 공개 사이트 — 회차 목록 쪽 이동 */
.pager { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin: 1.6rem 0 0; font-weight: 700; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.pager span { color: var(--sub); font-weight: 500; }
