/* ============================================================
   오늘 의성 (Uiseong Today) — 경북 의성군 지역 인터넷신문

   지면 원칙 (뉴욕타임스식 신문 지면을 한글에 맞춰 옮긴 것)
   · 상자를 쓰지 않는다. 구획은 머리카락 굵기 선(hairline)과 여백으로만 나눈다.
   · 칼럼 사이에 세로 선을 세운다. 이것이 신문 지면의 뼈대다.
   · 헤드라인은 명조(Noto Serif KR), 본문도 명조. 부속 정보(키커·바이라인·내비)만 고딕.
   · 색은 검정과 흰색이 기본. 주황은 키커와 강조에만, 남색은 링크에만 쓴다.
   · 그림자·둥근 모서리·회색 배경 카드를 쓰지 않는다.

   ⚠ 한글 줄바꿈: word-break: keep-all 을 유지할 것.
     기본값이면 '의성군청이'가 낱말 가운데서 잘린다.

   ⚠ 본문 크기를 더 줄이지 말 것.
     이 매체 독자의 절반 가까이가 65세 이상이다. NYT 원본보다 한 단계 크게 잡았다.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --bg-sunk: #ededea;
  --ink: #121212;
  --ink-2: #363636;
  --muted: #6b6b6b;
  --rule: #e2e2e0;
  --rule-strong: #c7c7c4;
  --rule-black: #121212;

  /* 브랜드 — 로고에서 뽑은 값. 지면에서는 아주 아껴 쓴다. */
  --navy: #062147;
  --navy-2: #17417f;
  --accent: #c2410c;        /* 키커·섹션 표시 */
  --accent-bright: #fe6401; /* 로고 워드마크 등 큰 덩어리 */
  --accent-ink: #9a3412;
  --link: #062147;
  --focus: #17417f;

  /* 명조 = 헤드라인·본문. Noto Serif KR 은 윈도우·맥에 대체로 깔려 있고,
     없으면 나눔명조 → 애플명조 → 바탕 순으로 내려간다. */
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", "바탕", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "D2Coding", monospace;

  --w: 1200px;
  --gap: 28px;

  /* ── 테마 훅 ──
     public/themes.css 가 이 값들만 갈아끼워 지면 성격을 바꾼다.
     구조(격자·순서·마크업)는 건드리지 않는다. */
  --head-font: var(--serif);   /* 헤드라인 서체 */
  --head-weight: 700;
  --head-track: -.02em;        /* 헤드라인 자간 */
  --rule-col: var(--rule);     /* 칼럼 사이 세로 괘선. transparent 면 안 그린다 */
  --card-bg: transparent;      /* 카드 배경. 상자형 지면에서 쓴다 */
  --card-pad: 0;
  --card-line: 0 solid transparent;
  --radius: 0;
  --masthead-just: center;     /* 제호 정렬 */
  --nav-bg: var(--bg);
  --nav-fg: var(--ink);
  --nav-top: 1px solid var(--rule-black);
  --card-head-size: 20px;
  --card-head-lh: 1.35;
  --dek-size: 14.5px;
  --dek-lh: 1.6;
  --kicker-size: 11px;
  --kicker-track: .09em;
  --lead-size: clamp(30px, 4.2vw, 46px);
  --body-lh: 1.7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-soft: #1b1b1b;
    --bg-sunk: #242424;
    --ink: #f2f2f0;
    --ink-2: #d0d0cd;
    --muted: #9a9a97;
    --rule: #333331;
    --rule-strong: #4a4a47;
    --rule-black: #f2f2f0;
    --navy: #a9c0e8;
    --navy-2: #7f9fd4;
    --accent: #ff8a4c;
    --accent-bright: #ff7a2e;
    --accent-ink: #ffa06a;
    --link: #bcd0ee;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--body-lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg);
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ============================================================
   머리 — 날짜줄 / 제호 / 내비
   ============================================================ */

.topbar {
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 34px; }
.topbar .date { font-weight: 600; color: var(--ink-2); }
.topbar nav { margin-left: auto; display: flex; gap: 18px; }
.topbar nav a:hover { color: var(--ink); }

.masthead {
  display: flex; align-items: center; justify-content: var(--masthead-just); gap: 14px;
  padding: 26px 24px 20px;
  max-width: var(--w); margin: 0 auto;
}
/* 로고는 흰 바탕 PNG 라 다크모드에서 흰 사각형으로 보인다.
   여백을 줘서 '흰 판에 얹은 마크'로 읽히게 한다. 밝은 모드에서는 보이지 않는다. */
.masthead .mark img { width: 46px; height: 46px; background: #fff; padding: 2px; }
.masthead .lockup { text-align: center; }
.masthead .wordmark {
  margin: 0;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.masthead .w1 { color: var(--ink); }
.masthead .w2 { color: var(--accent-bright); }
.masthead .tagline {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.masthead .tagline i { color: var(--accent); font-style: normal; margin: 0 7px; }

/* 내비 — 굵은 선 사이에 끼운 한 줄. 신문 1면의 그 띠다. */
.nav {
  border-top: var(--nav-top);
  border-bottom: 1px solid var(--rule);
  background: var(--nav-bg);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-fg);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent-ink); text-decoration: none; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent-bright); }
.nav .spacer { flex: 1 1 auto; }
.nav form input {
  border: 0; border-bottom: 1px solid var(--rule-strong);
  background: transparent; color: var(--nav-fg);
  padding: 5px 2px; font-size: 13px; width: 130px; font-family: inherit;
}
.nav form input:focus { outline: 0; border-bottom-color: var(--ink); }

/* 두 번째 줄 — 우리 동네·트래커. 더 작고 조용하게. */
.nav.sub { border-top: 0; border-bottom: 1px solid var(--rule); }
.nav.sub .wrap { height: 38px; gap: 16px; }
.nav.sub a { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.nav .navlabel {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted); white-space: nowrap; align-self: center;
}
.nav .navdiv { width: 1px; height: 13px; background: var(--rule-strong); align-self: center; }

/* ============================================================
   지면 격자 — 칼럼 사이 세로 선이 이 디자인의 핵심
   ============================================================ */

main { padding-top: 26px; }
.block { margin: 0 0 40px; }

.grid { display: grid; gap: var(--gap); }
.grid.home-top { grid-template-columns: minmax(0, 1fr) 310px; }
.grid.section-body { grid-template-columns: minmax(0, 1fr) 310px; }
.grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 칼럼 구분선 — 테마가 --rule-col 로 끈다 */
.grid.cards-3 > *, .grid.cards-4 > * { border-left: 1px solid var(--rule-col); padding-left: var(--gap); }
.grid.cards-3 > *:nth-child(3n + 1),
.grid.cards-4 > *:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.grid.home-top > .rail, .grid.section-body > .rail { border-left: 1px solid var(--rule-col); padding-left: var(--gap); }

@media (max-width: 1000px) {
  .grid.home-top, .grid.section-body { grid-template-columns: minmax(0, 1fr); }
  .grid.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cards-4 > *:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .grid.cards-4 > *:nth-child(2n) { border-left: 1px solid var(--rule); padding-left: var(--gap); }
  .grid.home-top > .rail, .grid.section-body > .rail {
    border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-black); padding-top: 22px;
  }
}
@media (max-width: 640px) {
  .grid.cards-3, .grid.cards-4 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid.cards-3 > *, .grid.cards-4 > * {
    border-left: 0 !important; padding-left: 0 !important;
    border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 20px;
  }
  .grid.cards-3 > *:first-child, .grid.cards-4 > *:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
}

/* 섹션 머리 — 제목 왼쪽, 더보기 오른쪽, 아래 굵은 선 */
.rule-head {
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--rule-black);
  padding-bottom: 8px; margin: 0 0 22px;
}
.rule-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink);
}
.rule-head a {
  margin-left: auto;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  color: var(--muted); white-space: nowrap;
}
.rule-head a:hover { color: var(--accent-ink); }

/* ============================================================
   기사 카드
   ============================================================ */

.card {
  margin: 0;
  background: var(--card-bg);
  padding: var(--card-pad);
  border: var(--card-line);
  border-radius: var(--radius);
}
.card + .card { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
.grid .card + .card { margin-top: 0; padding-top: 0; border-top: 0; }

.card figure { margin: 0 0 12px; background: var(--bg-sunk); }
.card figure img { width: 100%; }

.kicker {
  display: block; margin: 0 0 8px;
  font-family: var(--sans); font-size: var(--kicker-size); font-weight: 700;
  letter-spacing: var(--kicker-track); color: var(--accent);
}
.kicker a { color: inherit; }
.kicker a:hover { text-decoration: underline; }
.kicker .cty { color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: .04em; }
/* 기사 머리의 읍면 표시는 칩이 아니라 키커의 일부다. 테두리를 벗긴다. */
.kicker .chip {
  border: 0; padding: 0; margin-left: 8px; white-space: nowrap;
  font-family: inherit; font-size: inherit; font-weight: 600;
  letter-spacing: inherit; color: var(--muted);
}
.kicker .chip:hover { color: var(--ink); background: none; }
.kicker .fmt { margin-right: 8px; color: var(--ink); }
.kicker .fmt::after { content: ""; }

.card h3 {
  margin: 0 0 8px;
  font-family: var(--head-font);
  font-weight: var(--head-weight); letter-spacing: var(--head-track);
  font-size: var(--card-head-size); line-height: var(--card-head-lh);
  text-wrap: balance;
}
.card h3 a:hover { color: var(--accent-ink); text-decoration: none; }
.card .dek {
  margin: 0 0 10px; font-family: var(--sans);
  font-size: var(--dek-size); line-height: var(--dek-lh); color: var(--ink-2);
}
.card .byline {
  margin: 0; font-family: var(--sans);
  font-size: 11.5px; letter-spacing: .04em; color: var(--muted);
}
.card .byline .name { font-weight: 700; color: var(--ink-2); }
.card .lock {
  margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); border: 1px solid currentColor; padding: 1px 5px; vertical-align: 2px;
}

/* 리드 기사 — 지면에서 가장 큰 활자 */
.card.lead h3 { font-size: var(--lead-size); line-height: 1.18; margin-bottom: 14px; }
.card.lead .dek { font-size: 17px; line-height: 1.66; max-width: 46ch; }
.card.lead figure { margin-bottom: 18px; }

.card.sm h3 { font-size: calc(var(--card-head-size) - 2px); }
.card.xs h3 { font-size: calc(var(--card-head-size) - 3.5px); line-height: 1.4; }
/* 좁은 칼럼에서는 그래픽의 글씨가 읽히지 않는다. 사진이면 몰라도 차트는 숨기는 편이 낫다. */
.card.xs figure { display: none; }
.card.xs .byline { font-size: 11px; }

/* 권역 3열 */
.ctycol { min-width: 0; }
.ctyhead {
  margin: 0 0 16px; padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; color: var(--ink);
}
.col-list .card + .card { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* ============================================================
   사이드바
   ============================================================ */

.rail { min-width: 0; }
.rail .box { margin: 0 0 30px; }
.rail .box h2 {
  margin: 0 0 12px; padding-bottom: 7px;
  border-bottom: 1px solid var(--rule-black);
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
}

.ranked { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.ranked li {
  counter-increment: r; display: flex; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.ranked li:last-child { border-bottom: 0; }
.ranked li::before {
  content: counter(r);
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: var(--rule-strong); line-height: 1; min-width: 18px;
}
.ranked a { font-family: var(--serif); font-size: 15px; line-height: 1.4; font-weight: 500; }

.chiplist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--rule-strong); padding: 3px 9px;
  color: var(--ink-2); white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip b { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip.place { border-color: var(--navy); color: var(--navy); }
.chip.impact { border-style: dashed; }
.chip.off { border-style: dashed; color: var(--muted); opacity: .7; cursor: default; }

/* ============================================================
   기사 본문
   ============================================================ */

.article { max-width: 720px; margin: 0 auto; }
.article-head { margin: 0 0 28px; }
.article-head h1 {
  margin: 0 0 16px;
  font-family: var(--head-font); font-weight: var(--head-weight);
  font-size: var(--lead-size); line-height: 1.2; letter-spacing: var(--head-track);
  text-wrap: balance;
}
.standfirst {
  margin: 0 0 20px; font-family: var(--sans);
  font-size: 18px; line-height: 1.62; color: var(--ink-2);
}
.bylines {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
}
.bylines .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink);
  color: var(--bg); display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; font-weight: 700; margin-right: 2px;
}
.bylines .who { font-weight: 700; color: var(--ink); }

.hero { margin: 26px 0; }
.hero img { width: 100%; }
.hero figcaption,
.card figcaption {
  margin-top: 8px; font-family: var(--sans); font-size: 12.5px;
  line-height: 1.5; color: var(--muted);
}

.keypoints {
  margin: 26px 0; padding: 20px 0;
  border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.keypoints h2 {
  margin: 0 0 12px; font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent);
}
.keypoints ul { margin: 0; padding-left: 18px; }
.keypoints li { margin-bottom: 8px; font-size: 15.5px; line-height: 1.62; }
.keypoints li:last-child { margin-bottom: 0; }

.prose {
  font-family: var(--serif);
  font-size: 18px; line-height: 1.9; color: var(--ink);
}
.prose p { margin: 0 0 1.25em; }
.prose p:first-of-type::first-letter {
  float: left; font-size: 3.1em; line-height: .84; font-weight: 700;
  padding: 4px 10px 0 0; color: var(--ink);
}
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose blockquote {
  margin: 1.7em 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent-bright);
  font-size: 1.1em; line-height: 1.6; color: var(--ink-2);
}
.prose h2, .prose h3 { font-family: var(--serif); letter-spacing: -.015em; }
.prose table {
  width: 100%; border-collapse: collapse; font-family: var(--sans);
  font-size: 14.5px; margin: 1.7em 0;
}
.prose th, .prose td { padding: 9px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.prose img { margin: 1.7em 0; }

/* 회원 전용 안내 */
.gate {
  margin: 30px 0; padding: 26px;
  border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule);
  background: var(--bg-soft);
}
.gate-kicker { margin: 0 0 8px; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.gate h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; }
.gate p { margin: 0 0 14px; font-size: 15px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gate-primary { background: var(--ink); color: var(--bg); padding: 11px 20px; font-weight: 700; font-size: 14.5px; }
.gate-primary:hover { text-decoration: none; background: var(--accent-ink); }
.gate-secondary { border: 1px solid var(--rule-strong); padding: 11px 20px; font-weight: 600; font-size: 14.5px; }
.gate-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* 영향표 · 엔티티 · 출처 */
.impact, .entities, .sources, .alsoon { margin: 34px 0; }
.impact h2, .entities h2, .sources h2, .alsoon h2 {
  margin: 0 0 12px; padding-bottom: 7px; border-bottom: 1px solid var(--rule-black);
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
}
.impact table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; min-width: 560px; }
.impact th, .impact td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; line-height: 1.55; }
.impact thead th { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
.impact tbody th { font-weight: 700; white-space: normal; }
.impact .muted { font-size: 13.5px; }

.entities dl { margin: 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 10px 14px; }
.entities dt { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); padding-top: 4px; }
.entities dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.sources ol { margin: 0 0 14px; padding-left: 20px; font-family: var(--sans); font-size: 14.5px; }
.sources li { margin-bottom: 7px; line-height: 1.6; }
.sources h3 { margin: 14px 0 8px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.sources a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.conf { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.conf b { color: var(--ink); }
.conf-high b { color: var(--navy); }
.conf-low b { color: var(--accent-ink); }

.alsoon ul { list-style: none; margin: 0; padding: 0; }
.alsoon li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 3px; }
.alsoon li:last-child { border-bottom: 0; }
.alsoon a { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.4; }
.alsoon-why, .alsoon time { font-family: var(--sans); font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }

.trackcta { margin: 22px 0; }
.trackcta a {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 14px;
  color: var(--accent-ink); border-bottom: 2px solid var(--accent-bright); padding-bottom: 2px;
}
.trackcta a:hover { text-decoration: none; }

.disclosure {
  font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 30px;
}
.disclosure a { text-decoration: underline; text-underline-offset: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.tags a {
  font-family: var(--sans); font-size: 12.5px; border: 1px solid var(--rule-strong);
  padding: 3px 9px; color: var(--ink-2);
}
.tags a:hover, .tags a.on { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.tags a.on { background: var(--ink); color: var(--bg); }

.authorcard {
  display: flex; gap: 16px; align-items: flex-start;
  border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 30px;
}
.authorcard .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg-sunk); color: var(--ink);
  display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 700; flex: none;
}
.authorcard h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 18px; }
.authorcard p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   목록·안내 페이지
   ============================================================ */

.page { max-width: 720px; }
.page h1 {
  margin: 0 0 14px; font-family: var(--head-font); font-weight: var(--head-weight);
  font-size: clamp(28px, 4vw, 40px); line-height: 1.22; letter-spacing: var(--head-track);
}
.page h2 { margin: 32px 0 10px; font-family: var(--serif); font-size: 21px; letter-spacing: -.015em; }
.page h3 { margin: 22px 0 8px; font-family: var(--sans); font-size: 15px; font-weight: 700; }
.page p, .page li { font-size: 16px; line-height: 1.8; }
.page ul, .page ol { padding-left: 20px; }
.page li { margin-bottom: 8px; }
.page a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.lede { font-family: var(--sans); font-size: 18px; line-height: 1.68; color: var(--ink-2); margin: 0 0 22px; }
.meta { font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }
.meta a { color: var(--muted); }
.muted { color: var(--muted); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); font-family: var(--sans); }
.empty h1 { font-family: var(--serif); color: var(--ink); }

.entindex { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; margin-top: 26px; }
.entindex section { min-width: 0; }
.entindex h2 {
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-black);
  font-family: var(--serif); font-size: 17px;
}

.imprint-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-family: var(--sans); font-size: 14.5px; border-top: 2px solid var(--ink); }
.imprint-table th, .imprint-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.imprint-table th { width: 9.5rem; white-space: nowrap; font-weight: 700; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0; font-family: var(--sans); font-size: 14px; }
.pager a, .pager .cur { border: 1px solid var(--rule-strong); padding: 7px 13px; }
.pager .cur { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager a:hover { border-color: var(--ink); text-decoration: none; }

/* ============================================================
   트래커 표
   ============================================================ */

.tracker h1 { margin-bottom: 10px; }
.t-meta { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.t-meta b { color: var(--ink); }
.t-scroll { overflow-x: auto; border-top: 2px solid var(--ink); }
.t-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; min-width: 780px; }
.t-table th, .t-table td { padding: 12px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); line-height: 1.55; }
.t-table thead th { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--rule-strong); }
.t-date { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-what a { font-family: var(--serif); font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.t-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.t-where, .t-who { color: var(--ink-2); }
.t-who a, .t-where a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule-strong); }
.t-conf { white-space: nowrap; color: var(--ink-2); }
.t-src a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.t-none { color: var(--rule-strong); }

/* ============================================================
   광고 자리
   ============================================================ */

.ad { margin: 30px 0; text-align: center; }
.ad-rail { margin: 0 0 30px; }
.ad::before {
  content: "광고"; display: block; margin-bottom: 6px;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .12em; color: var(--rule-strong);
}

/* ============================================================
   꼬리
   ============================================================ */

footer.site {
  margin-top: 60px; border-top: 1px solid var(--rule-black);
  padding: 40px 0 60px; font-family: var(--sans);
}
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
footer.site .wordmark {
  margin: 0 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -.02em;
}
footer.site p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
footer.site h2 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 7px; font-size: 13.5px; }
footer.site a { color: var(--ink-2); }
footer.site a:hover { color: var(--ink); }
footer.site .legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--rule); }
footer.site .legal p { font-size: 12.5px; line-height: 1.75; }
footer.site .legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .imprint { color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 12px; }

@media (max-width: 900px) { footer.site .cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .masthead { padding: 20px 16px 16px; gap: 10px; }
  .masthead .mark img { width: 36px; height: 36px; }
  .article { max-width: none; }
  .prose { font-size: 17px; }
  .prose p:first-of-type::first-letter { font-size: 2.7em; }
  .entities dl { grid-template-columns: minmax(0, 1fr); gap: 4px 0; }
  .entities dt { padding-top: 12px; }
}

/* ── 정정 상자 ──
   기사 맨 위, 본문을 읽기 전에 보이는 자리에 둔다.
   아래에 조용히 붙이면 틀린 내용을 다 읽은 뒤에야 알게 된다. */
.corrbox {
  margin: 18px 0 0; padding: 14px 16px;
  background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 4px 4px 0;
}
.corrbox b { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: -.01em; margin-bottom: 6px; }
.corrbox p { margin: 0 0 6px; font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--ink-2); word-break: keep-all; }
.corrbox p:last-child { margin-bottom: 0; }
.corrbox .kind { font-weight: 700; color: var(--accent); margin-right: 6px; }
.corrbox time { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* 정정·반론 목록 */
.corrlist { list-style: none; margin: 0 0 30px; padding: 0; }
.corrlist li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.corrlist .kind { font-family: var(--sans); font-weight: 700; font-size: 12px; color: var(--accent); margin-right: 8px; }
.corrlist time { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.corrlist li p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; }

/* ── 섹션 블록 — 첫 기사는 크게, 나머지는 목록으로 ──
   같은 크기 카드 셋을 일곱 번 반복하면 아래로 갈수록 지면이 벽지처럼 읽힌다. */
.grid.sec-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.grid.sec-split > *:nth-child(2) { border-left: 1px solid var(--rule-col); padding-left: var(--gap); }
.card.md h3 { font-size: calc(var(--card-head-size) + 4px); line-height: 1.3; }
.card.md .dek { font-size: 15px; }
@media (max-width: 720px) {
  .grid.sec-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid.sec-split > *:nth-child(2) {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 18px;
  }
}

/* ── 읍면 사진 띠 ──
   지역지에서 '어느 동네 이야기인가'는 제목보다 사진이 먼저 말한다.
   좁은 화면에서는 옆으로 밀어 본다 — 세로로 쌓으면 여섯 칸이 화면을 다 먹는다. */
.strip {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
}
.strip-item { display: block; color: var(--ink); }
.strip-item:hover { text-decoration: none; }
.strip-item:hover .strip-title { color: var(--accent-ink); }
.strip-item img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--bg-soft); border-radius: var(--radius);
}
.strip-town {
  display: block; margin: 8px 0 3px;
  font-family: var(--sans); font-size: var(--kicker-size); font-weight: 700;
  letter-spacing: var(--kicker-track); color: var(--accent);
}
.strip-title {
  display: block; font-family: var(--head-font); font-weight: var(--head-weight);
  font-size: 14px; line-height: 1.4; letter-spacing: var(--head-track);
  word-break: keep-all; text-wrap: balance;
}
@media (max-width: 980px) {
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip-item:nth-child(n + 7) { display: none; }
}
@media (max-width: 560px) {
  .strip {
    grid-auto-flow: column; grid-auto-columns: 62%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px 4px;   /* ⚠ .wrap 의 이 화면폭 여백과 같은 값이어야 한다(720px 이하 16px). 24px 로 두면 문서가 8px 넘친다 */
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip-item { scroll-snap-align: start; }
}

/* 등록 전에는 번호 대신 이 표시가 나간다 (layout.js imprint 참고) */
.imprint .pending { color: var(--accent); font-weight: 600; }

/* 경북·나라 소식 — 의성 기사 다음에 오는 자리 */
.widernote {
  margin: -6px 0 16px; font-family: var(--sans); font-size: 13px; color: var(--muted);
  word-break: keep-all;
}
