/* =========================================================
   바른일보 — 랜딩(홈) 스타일
   모바일 우선: 기본 = 폰(<640) → 640 태블릿 세로 → 960 태블릿 가로 → 1200 데스크톱
   ========================================================= */

:root {
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --ink: #141413;
  --ink-2: #3d3b38;
  --muted: #6e6a64;
  --rule: #dcd8d0;
  --rule-strong: #141413;
  --accent: #b4232a;        /* 바른 진홍 — 속보·LIVE·키커에만 */
  --accent-ink: #ffffff;
  --feature-bg: #16130f;    /* 르포 블록 */
  --feature-ink: #f4efe6;
  --house-bg: #eef1ec;      /* KLCLAB 자사 광고 */
  --house-ink: #1f3a2c;
  --ph-a: #d9d4ca;          /* 사진 자리 */
  --ph-b: #c4bdb0;
  --focus: #b4232a;

  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --nav-h: 48px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121211;
    --paper-2: #1b1a18;
    --ink: #ecebe7;
    --ink-2: #c9c6bf;
    --muted: #9a958c;
    --rule: #2e2c29;
    --rule-strong: #ecebe7;
    --accent: #e0464c;
    --feature-bg: #000000;
    --house-bg: #17211b;
    --house-ink: #cfe3d6;
    --ph-a: #2a2825;
    --ph-b: #34312d;
  }
}
:root[data-theme="dark"] {
  --paper: #121211;
  --paper-2: #1b1a18;
  --ink: #ecebe7;
  --ink-2: #c9c6bf;
  --muted: #9a958c;
  --rule: #2e2c29;
  --rule-strong: #ecebe7;
  --accent: #e0464c;
  --feature-bg: #000000;
  --house-bg: #17211b;
  --house-ink: #cfe3d6;
  --ph-a: #2a2825;
  --ph-b: #34312d;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover .hl, a:focus-visible .hl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 960px) { :root { --gutter: 28px; } }

/* 시안 안내 띠 */
.draft-note {
  font-size: 12px; text-align: center; padding: 6px var(--gutter);
  background: var(--paper-2); color: var(--muted); border-bottom: 1px solid var(--rule);
}

/* ---------- 상단 유틸리티 줄 ---------- */
.util {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--muted); padding-top: 10px;
}
.util .util-links { display: flex; gap: 14px; align-items: center; }
.util a:hover { color: var(--ink); }
.util .hide-sm { display: none; }
@media (min-width: 640px) { .util .hide-sm { display: inline; } }

/* ---------- 제호(마스트헤드) ---------- */
.masthead {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: 14px 0 12px;
}
.masthead .brand { text-align: center; }
.wordmark {
  font-family: var(--serif); font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(34px, 9vw, 64px); line-height: 1;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.wordmark .dot { color: var(--accent); }
.tagline { margin-top: 8px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 2px;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.edition {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-2);
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
  padding: 7px 0;
}
.edition .sep { color: var(--rule); }
.edition .hide-sm { display: none; }
@media (min-width: 640px) { .edition .hide-sm { display: inline; } }

/* ---------- 섹션 내비 (스티키) ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; height: var(--nav-h); gap: 8px; }
.nav-mini {
  font-family: var(--serif); font-weight: 900; font-size: 19px; white-space: nowrap;
  max-width: 0; opacity: 0; overflow: hidden; transition: max-width .25s ease, opacity .2s ease, margin .25s;
}
.nav.is-stuck .nav-mini { max-width: 120px; opacity: 1; margin-right: 6px; }
.nav-mini .dot { color: var(--accent); }
.nav-list {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; flex: 1; scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  display: block; padding: 0 11px; line-height: var(--nav-h); white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--ink-2); scroll-snap-align: start;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-list .tv a { color: var(--accent); }
.nav-tools { display: none; gap: 2px; }
@media (min-width: 960px) {
  .nav-list { mask-image: none; -webkit-mask-image: none; justify-content: center; }
  .nav.is-stuck .nav-list { justify-content: flex-start; }
  .nav-tools { display: flex; }
}

/* ---------- 속보 띠 ---------- */
.ticker {
  display: flex; align-items: stretch; border-bottom: 1px solid var(--rule); font-size: 14px; overflow: hidden;
}
.ticker-label {
  flex: none; background: var(--accent); color: var(--accent-ink); font-weight: 800;
  padding: 8px 10px; font-size: 13px; letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-move {
  display: flex; gap: 40px; white-space: nowrap; padding: 8px 12px; width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
.ticker-move a:hover { text-decoration: underline; }
.ticker-move time { color: var(--accent); font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@media (prefers-reduced-motion: reduce) {
  .ticker-move { animation: none; overflow-x: auto; width: auto; }
  .pulse { animation: none; }
}

/* ---------- 공통 타이포 ---------- */
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent); margin-bottom: 6px;
}
.kicker.plain { color: var(--muted); }
.hl { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.32; margin: 0; }
.hl-xl { font-size: clamp(26px, 6.6vw, 42px); line-height: 1.22; font-weight: 800; }
.hl-l { font-size: clamp(20px, 4.6vw, 26px); }
.hl-m { font-size: 18px; }
.hl-s { font-size: 16px; line-height: 1.4; }
.standfirst { color: var(--ink-2); font-size: 16px; margin: 10px 0 0; }
.meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta .by { color: var(--ink-2); font-weight: 600; }
.meta .dot-sep::before { content: "·"; }
.live-badge {
  display: inline-flex; align-items: center; gap: 5px; background: var(--accent); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 800; padding: 2px 7px; letter-spacing: .05em; margin-right: 6px; vertical-align: 3px;
}

/* 섹션 머리 */
.sec { padding-top: 28px; padding-bottom: 8px; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-top: 2px solid var(--rule-strong); padding-top: 10px; margin-bottom: 16px;
}
.sec-title { font-family: var(--serif); font-weight: 900; font-size: 22px; margin: 0; letter-spacing: -0.02em; }
.sec-title small { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.more { font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.more::after { content: " →"; }
.more:hover { color: var(--accent); }

/* 사진 자리 (실제 사진으로 교체) */
.ph {
  position: relative; background:
    linear-gradient(135deg, var(--ph-a), var(--ph-b));
  aspect-ratio: 16 / 10; overflow: hidden;
}
.ph::after {
  content: attr(data-cap); position: absolute; left: 10px; bottom: 8px; right: 10px;
  font-size: 11px; color: color-mix(in srgb, var(--ink) 55%, transparent); letter-spacing: .02em;
}
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.ph.sq { aspect-ratio: 1 / 1; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.tall { aspect-ratio: 4 / 5; }
.ph[data-tone="news"] { --ph-a: #cfd3d6; --ph-b: #a9b0b6; }
.ph[data-tone="eco"]  { --ph-a: #d7d3c5; --ph-b: #b5ae98; }
.ph[data-tone="soc"]  { --ph-a: #d6cdc6; --ph-b: #b4a497; }
.ph[data-tone="world"]{ --ph-a: #c9d2cc; --ph-b: #9fb0a5; }
.ph[data-tone="tv"]   { --ph-a: #2c2a27; --ph-b: #11100e; }
.ph[data-tone="tv"]::after { color: rgba(255,255,255,.5); }
:root[data-theme="dark"] .ph[data-tone] { filter: brightness(.45) saturate(.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph[data-tone] { filter: brightness(.45) saturate(.8); } }

/* ---------- 1면: 머리기사 + 사이드 ---------- */
.front { display: grid; gap: 24px; padding-top: 18px; }
.lead .ph { margin: 0 calc(var(--gutter) * -1) 14px; }
@media (min-width: 640px) { .lead .ph { margin: 0 0 14px; } }
.lead .hl-xl a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead-related { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--rule); }
.lead-related li { border-bottom: 1px solid var(--rule); }
.lead-related a { display: flex; gap: 10px; padding: 10px 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.lead-related a::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--accent); margin-top: 8px; }

.tops { display: grid; gap: 0; }
.card-row { display: grid; grid-template-columns: 1fr 112px; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); }
.card-row:first-child { border-top: 0; padding-top: 0; }
.card-row .ph { aspect-ratio: 1 / 1; }
.card-row .standfirst { display: none; }

.front-side { display: grid; gap: 24px; }

/* 많이 본 기사 */
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 11px 0; border-top: 1px solid var(--rule); }
.rank li:first-child { border-top: 0; padding-top: 0; }
.rank li::before {
  content: counter(r); font-family: var(--serif); font-weight: 900; font-size: 26px; line-height: 1; color: var(--accent);
}
.rank a { font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.side-title { font-family: var(--serif); font-weight: 900; font-size: 18px; margin: 0 0 12px; padding-top: 10px; border-top: 2px solid var(--rule-strong); }

@media (min-width: 640px) {
  .card-row { grid-template-columns: 1fr 168px; }
  .card-row .ph { aspect-ratio: 4 / 3; }
  .card-row .standfirst { display: block; font-size: 14.5px; margin-top: 6px; }
}
@media (min-width: 960px) {
  .front { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
  .front-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .front-side { border-left: 1px solid var(--rule); padding-left: 28px; align-content: start; }
}
@media (min-width: 1200px) {
  .front { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2.6fr); }
  .front-main { display: contents; }
  .lead { grid-column: 1; }
  .tops { grid-column: 2; border-left: 1px solid var(--rule); padding-left: 24px; align-content: start; }
  .tops .card-row { grid-template-columns: 1fr; }
  .tops .card-row .ph { display: none; }
  .tops .card-row:first-child .ph { display: block; aspect-ratio: 16 / 10; order: -1; }
  .front-side { grid-column: 3; padding-left: 24px; }
}

/* ---------- 사설·칼럼 ---------- */
.opinion { display: grid; gap: 20px; }
.editorial {
  background: var(--paper-2); padding: 18px; border-left: 3px solid var(--ink);
}
.editorial .kicker { color: var(--ink); }
.editorial .hl { font-size: 21px; }
.editorial p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.editorial ul { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.editorial li a { font-family: var(--serif); font-weight: 700; font-size: 15.5px; }
.editorial li a::before { content: "[사설] "; color: var(--muted); font-family: var(--sans); font-weight: 600; font-size: 13px; }

.columns { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.col-item { display: grid; grid-template-columns: 1fr 64px; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--rule); }
.col-item:first-child { border-top: 0; padding-top: 0; }
.col-item .series { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; display: block; }
.col-item .hl { font-size: 17px; }
.col-item .by { font-size: 13px; color: var(--ink-2); margin-top: 6px; display: block; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--rule);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--ink-2);
  filter: grayscale(1);
}
@media (min-width: 960px) {
  .opinion { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; }
  .columns { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .col-item:nth-child(2) { border-top: 0; padding-top: 0; }
}

/* ---------- 르포 (풀블리드 다크) ---------- */
.reportage { background: var(--feature-bg); color: var(--feature-ink); margin-top: 32px; }
.reportage .wrap { padding-top: 0; padding-bottom: 32px; }
.reportage .ph { margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 5; --ph-a: #3b342b; --ph-b: #0f0d0a; }
.reportage .ph::after { color: rgba(255,255,255,.45); }
.rep-label { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: #e8b9a0; display: block; margin: 22px 0 8px; }
.reportage .hl { font-size: clamp(28px, 7.2vw, 48px); line-height: 1.2; font-weight: 800; }
.reportage .standfirst { color: #cfc6b8; font-size: 16.5px; }
.reportage .meta { color: #a59b8c; }
.reportage .meta .by { color: #e9e1d4; }
.rep-series { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid #3a342c; }
.rep-series li { border-bottom: 1px solid #3a342c; }
.rep-series a { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 12px 0; font-size: 15px; font-weight: 600; }
.rep-series .ep { font-family: var(--serif); color: #e8b9a0; font-weight: 700; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 18px;
  border: 1px solid currentColor; font-weight: 700; font-size: 14.5px;
}
.btn-ghost:hover { background: var(--feature-ink); color: var(--feature-bg); }
@media (min-width: 640px) { .reportage .ph { margin: 0; aspect-ratio: 16 / 9; } .reportage .wrap { padding-top: 32px; } .rep-label { margin-top: 24px; } }
@media (min-width: 960px) {
  .rep-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: end; }
  .reportage .ph { aspect-ratio: 4 / 3; }
}

/* ---------- 바른TV (유튜브) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; min-width: 0; max-width: 100vw;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-padding: 0 var(--gutter); scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 44%; } }
@media (min-width: 960px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .rail .video:first-child { grid-column: span 2; grid-row: span 2; }
  .rail .video:first-child .hl { font-size: 22px; }
}
.video .ph { aspect-ratio: 16 / 9; }
.video .ph-short { aspect-ratio: 9 / 16; }
.play {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px 4px 6px;
}
.play svg { width: 14px; height: 14px; fill: #fff; }
.video .hl { font-size: 16px; margin-top: 10px; }
.yt-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding: 14px 16px; border: 1px solid var(--rule);
}
.yt-cta strong { font-family: var(--serif); font-size: 16px; }
.yt-cta p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14.5px;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn.red { background: var(--accent); color: #fff; }
.btn.red:hover { background: var(--ink); color: var(--paper); }

/* ---------- 분야별 블록 ---------- */
.desk-grid { display: grid; gap: 8px; }
.desk { padding-bottom: 10px; }
.desk .sec-head { margin-bottom: 12px; }
.desk .sec-title { font-size: 19px; }
.desk-top .ph { margin-bottom: 10px; }
.desk-list { list-style: none; margin: 12px 0 0; padding: 0; }
.desk-list li { border-top: 1px solid var(--rule); }
.desk-list a { display: block; padding: 10px 0; font-weight: 600; font-size: 15px; line-height: 1.45; }
@media (min-width: 640px) { .desk-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (min-width: 1200px) { .desk-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 자사 광고 (KLCLAB) ---------- */
.house { background: var(--house-bg); color: var(--house-ink); margin: 36px 0 8px; }
.house .wrap { padding-top: 22px; padding-bottom: 24px; }
.ad-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: color-mix(in srgb, var(--house-ink) 70%, transparent);
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.house h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(21px, 5vw, 28px); margin: 0 0 4px; letter-spacing: -0.02em; }
.house > .wrap > p { margin: 0 0 16px; font-size: 14.5px; opacity: .85; }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.product {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  background: color-mix(in srgb, var(--paper) 70%, transparent); border: 1px solid color-mix(in srgb, var(--house-ink) 15%, transparent);
  padding: 14px 16px;
}
.product strong { font-size: 15.5px; letter-spacing: .01em; }
.product span { grid-column: 1; font-size: 13.5px; opacity: .8; line-height: 1.45; }
.product .go { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.product:hover { border-color: var(--house-ink); }
@media (min-width: 640px) { .products { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .products { grid-template-columns: repeat(4, 1fr); } .product { grid-template-columns: 1fr; } .product .go { grid-column: 1; grid-row: auto; margin-top: 6px; } }

/* ---------- 취재수첩 · 기자 ---------- */
.notes-grid { display: grid; gap: 24px; }
.note { padding: 16px 0; border-top: 1px solid var(--rule); }
.note:first-child { border-top: 0; padding-top: 0; }
.note .hl { font-size: 18px; }
.note p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.reporters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.reporter { border: 1px solid var(--rule); padding: 14px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.reporter .avatar { width: 56px; height: 56px; font-size: 19px; margin-bottom: 6px; }
.reporter strong { font-size: 15px; }
.reporter span { font-size: 12.5px; color: var(--muted); }
.reporter:hover { border-color: var(--ink); }
@media (min-width: 960px) {
  .notes-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
  .reporters { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 블로그 ---------- */
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.blog-list li { padding: 14px 0; border-top: 1px solid var(--rule); }
.blog-list li:first-child { border-top: 0; padding-top: 0; }
.blog-list .hl { font-size: 17px; }
@media (min-width: 640px) {
  .blog-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .blog-list li:nth-child(2) { border-top: 0; padding-top: 0; }
}
@media (min-width: 1200px) {
  .blog-list { grid-template-columns: repeat(3, 1fr); }
  .blog-list li:nth-child(3) { border-top: 0; padding-top: 0; }
}

/* ---------- 뉴스레터 ---------- */
.letter { border: 1px solid var(--rule-strong); padding: 22px 18px; margin: 36px 0 0; display: grid; gap: 14px; }
.letter h2 { font-family: var(--serif); font-weight: 900; font-size: 22px; margin: 0; }
.letter p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.letter form { display: grid; gap: 8px; }
.letter input {
  font: inherit; min-height: 46px; padding: 0 14px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 0;
}
.letter input:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.letter small { font-size: 12px; color: var(--muted); }
.form-msg { font-size: 13.5px; color: var(--accent); min-height: 1.2em; margin: 0; }
@media (min-width: 640px) { .letter form { grid-template-columns: 1fr auto; } .letter small, .form-msg { grid-column: 1 / -1; } }
@media (min-width: 960px) { .letter { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 28px 32px; } }

/* ---------- 푸터 ---------- */
.footer { margin-top: 48px; border-top: 2px solid var(--rule-strong); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer .wordmark { font-size: 30px; }
.foot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; margin: 22px 0; }
.foot-grid h3 { font-size: 13px; margin: 0 0 8px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a:hover { text-decoration: underline; }
.social { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.social a { border: 1px solid var(--rule); padding: 7px 12px; font-size: 13px; font-weight: 600; }
.social a:hover { border-color: var(--ink); }
.legal { border-top: 1px solid var(--rule); padding-top: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.legal p { margin: 0 0 8px; }
.legal .policy { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; color: var(--ink-2); font-weight: 600; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- 모바일 하단 탭바 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .25s ease;
}
.tabbar.is-hidden { transform: translateY(100%); }
.tabbar a, .tabbar button {
  display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; font-size: 10.5px; font-weight: 600; color: var(--muted);
}
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
body { padding-bottom: 60px; }
@media (min-width: 960px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- 전체 메뉴 / 검색 오버레이 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto;
  display: none; padding: 0 0 40px;
}
.overlay.is-open { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
.overlay-head { display: flex; justify-content: space-between; align-items: center; height: 60px; border-bottom: 1px solid var(--rule); }
.overlay-head .wordmark { font-size: 24px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-top: 22px; }
.menu-grid h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-strong); }
.menu-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-grid a { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.menu-grid a:hover { color: var(--accent); }
@media (min-width: 960px) { .menu-grid { grid-template-columns: repeat(5, 1fr); } }
.search-box { padding-top: 26px; }
.search-box label { font-family: var(--serif); font-weight: 900; font-size: 22px; display: block; margin-bottom: 12px; }
.search-box input {
  width: 100%; font: inherit; font-size: 20px; padding: 12px 0; border: 0; border-bottom: 2px solid var(--ink);
  background: transparent; color: var(--ink); border-radius: 0;
}
.search-box input:focus { outline: none; border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { border: 1px solid var(--rule); padding: 6px 12px; font-size: 14px; }
.chips a:hover { border-color: var(--ink); }
body.is-locked { overflow: hidden; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; z-index: 80;
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* 실시간 목록 (사이드) */
.live-list { list-style: none; margin: 0; padding: 0; }
.live-list li { display: grid; grid-template-columns: 46px 1fr; gap: 6px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.45; }
.live-list li:first-child { border-top: 0; padding-top: 0; }
.live-list time { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.live-list a { font-weight: 600; }
.side-title .live-badge { vertical-align: 3px; }
