/*
  하루뉴스(harunews.com) 지면 스타일 - 2026-10-18.

  콘셉트 "하루 한 장": 하루치 글을 끝이 있는 한 장의 지면으로 읽는다. 사진보다 글자 위계(크기 3단·말머리·번호·가는 선)와
  신문식 이중선으로 신문다움을 낸다(대표 사진들이 서로 닮아 카드마다 크게 쓰면 구별이 안 된다는 운영 실측).

  역할 분담(이 파일 머리 규칙):
   - 이 파일은 Tailwind 레이어 **밖**(unlayered)이라 모든 Tailwind 레이어를 이긴다. 그래서 여기에는 글자·색·선·배경만 적는다.
   - 배치·여백·display·반응형은 마크업의 Tailwind 유틸리티만 맡는다(둘이 같은 속성을 다투지 않게).
   - 토큰 값은 html.hn 아래에만 둔다(:root 아님) - 인조이스 화면에는 값이 없다. Tailwind 에는 이름만 등록했다
     (app/assets/tailwind/application.css 의 @theme inline - bg-hn-paper 등).
   - 재사용 파셜(검증 고지·그림 캡션·.article-body)은 Tailwind 팔레트(gray·slate·sky)를 쓴다. 아래에서 그 팔레트 변수를 같은 밝기의
     따뜻한 색으로 다시 정의해, 하루뉴스 안에서만 하루뉴스 색이 되게 한다(밝기 단계를 그대로 두어 원래 대비 관계가 유지된다).

  대비(WCAG): 본문 ink 16.7:1(다크 15.5:1), 요약 ink-2 8.9:1, 메타 muted 5.4:1(surface 위 4.9:1), 강조 accent 5.9:1,
  경계 rule-strong 3.4:1(1.4.11 3:1). 값은 test/harunews_palette_test.rb 가 다시 계산한다.
*/

/* ── 토큰 ─────────────────────────────────────────────── */
html.hn {
  --hn-paper: #fbfaf7;
  --hn-surface: #f3efe6;
  --hn-ink: #1a1a18;
  --hn-ink-2: #4a4740;
  --hn-muted: #6b675e;
  --hn-accent: #b4321f;
  --hn-rule: #e3ded3;
  --hn-rule-strong: #8c877c;
  --hn-band: #1a1a18;
  --hn-band-ink: #fbfaf7;
  --hn-band-muted: #b5b0a5;
  --hn-scale: 1;
  --hn-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", "Noto Sans KR",
    "Noto Sans CJK KR", Roboto, sans-serif;
  --hn-serif: ui-serif, "Iowan Old Style", Charter, "Sitka Text", Georgia, "Noto Serif", "Times New Roman", serif;
  --hn-head: var(--hn-sans);
  --hn-head-weight: 800;
  --hn-head-tracking: -0.02em;
  color-scheme: light;

  /* 재사용 파셜용 팔레트 다시 칠하기 - 밝기(L)는 Tailwind 기본 그대로, 색상만 따뜻하게. */
  --color-gray-50: oklch(0.985 0.004 85);
  --color-gray-100: oklch(0.967 0.006 85);
  --color-gray-200: oklch(0.928 0.008 85);
  --color-gray-300: oklch(0.872 0.009 85);
  --color-gray-400: oklch(0.707 0.011 85);
  --color-gray-500: oklch(0.551 0.012 85);
  --color-gray-600: oklch(0.446 0.012 85);
  --color-gray-700: oklch(0.373 0.011 85);
  --color-gray-800: oklch(0.278 0.009 85);
  --color-gray-900: oklch(0.21 0.007 85);
  --color-gray-950: oklch(0.13 0.006 85);
  --color-slate-50: oklch(0.984 0.004 85);
  --color-slate-100: oklch(0.968 0.006 85);
  --color-slate-200: oklch(0.929 0.008 85);
  --color-slate-300: oklch(0.869 0.009 85);
  --color-slate-400: oklch(0.704 0.011 85);
  --color-slate-500: oklch(0.554 0.012 85);
  --color-slate-600: oklch(0.446 0.012 85);
  --color-slate-700: oklch(0.372 0.011 85);
  --color-slate-800: oklch(0.279 0.009 85);
  --color-slate-900: oklch(0.208 0.007 85);
  --color-slate-950: oklch(0.129 0.006 85);
  --color-sky-50: oklch(0.977 0.013 35);
  --color-sky-100: oklch(0.951 0.03 35);
  --color-sky-200: oklch(0.901 0.06 35);
  --color-sky-300: oklch(0.828 0.1 35);
  --color-sky-400: oklch(0.746 0.13 35);
  --color-sky-500: oklch(0.685 0.15 35);
  --color-sky-600: oklch(0.588 0.16 35);
  --color-sky-700: oklch(0.5 0.15 35);
  --color-sky-800: oklch(0.443 0.13 35);
  --color-sky-900: oklch(0.391 0.11 35);
  --color-sky-950: oklch(0.293 0.08 35);
}

html.hn.dark {
  --hn-paper: #121211;
  --hn-surface: #1c1c1a;
  --hn-ink: #ece9e2;
  --hn-ink-2: #bdb8ad;
  --hn-muted: #9a958a;
  --hn-accent: #f08a6e;
  --hn-rule: #2c2b28;
  --hn-rule-strong: #6f6a60;
  --hn-band: #1c1c1a;
  --hn-band-ink: #ece9e2;
  --hn-band-muted: #b5b0a5;
  color-scheme: dark;
}

/* 큰글씨 모드 - 기존 상태(html.silver·data-silver-scale·--silver-scale)를 그대로 쓰고 배율만 하루뉴스 토큰으로 흘린다.
   흐린 글자는 요약 색으로 올린다(대비 감도가 떨어진 눈에서 먼저 사라진다 - 기존 큰글씨 모드와 같은 판단). */
html.hn.silver {
  --hn-scale: var(--silver-scale, 1.3);
  --hn-muted: var(--hn-ink-2);
}

/* 언어별 글꼴 - 일본어는 한국어 글꼴을 앞에 두지 않는다(한중일 통합 한자가 한국식 자형으로 그려진다).
   영어·스페인어는 제목만 시스템 세리프(한글 제목에 라틴 세리프를 앞세우면 한 제목 안에서 숫자·영문만 세리프가 된다). */
html.hn:lang(ja) {
  --hn-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Yu Gothic UI",
    Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --hn-head-weight: 700;
}
html.hn:is(:lang(en), :lang(es)) {
  --hn-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --hn-head: var(--hn-serif);
  --hn-head-weight: 700;
  --hn-head-tracking: -0.01em;
}

/* ── 바탕 ─────────────────────────────────────────────── */
html.hn body {
  background: var(--hn-paper);
  color: var(--hn-ink);
  font-family: var(--hn-sans);
  -webkit-font-smoothing: antialiased;
}
html.hn:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
html.hn:lang(ja) body { line-break: strict; overflow-wrap: anywhere; }
html.hn ::selection { background: color-mix(in oklab, var(--hn-accent) 22%, transparent); }
/* 링크 초기화는 base 레이어에 둔다(검수 2026-10-20). 레이어 밖에 두면 선택자 세기(0,1,2)가 하루뉴스 링크 클래스(.hn-link 강조색·
   .hn-almanac-link 밑줄, 0,1,0)를 이기고, 레이어 밖이라는 것만으로 Tailwind 유틸리티(underline·hover:underline - utilities 레이어)도
   이겨 마크업에 적은 링크 모양이 지워졌다(읽기 화면 "원래 글" 링크가 회색·밑줄 없이 보였다). base 레이어 안에서는 Tailwind preflight 의
   a 규칙보다 뒤에 있어 이것이 이긴다. */
@layer base {
  html.hn a { color: inherit; text-decoration: none; }
}
html.hn :focus-visible { outline: 2px solid var(--hn-accent); outline-offset: 2px; border-radius: 2px; }

/* ── 글자 위계 ────────────────────────────────────────── */
.hn-display {
  font-family: var(--hn-head);
  font-weight: var(--hn-head-weight);
  letter-spacing: var(--hn-head-tracking);
  font-size: calc(clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem) * var(--hn-scale));
  line-height: 1.25;
  text-wrap: balance;
  color: var(--hn-ink);
}
.hn-h2 {
  font-family: var(--hn-head);
  font-weight: var(--hn-head-weight);
  letter-spacing: var(--hn-head-tracking);
  font-size: calc(clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) * var(--hn-scale));
  line-height: 1.35;
  text-wrap: balance;
  color: var(--hn-ink);
}
.hn-h3 {
  font-family: var(--hn-head);
  font-weight: 700;
  font-size: calc(clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem) * var(--hn-scale));
  line-height: 1.45;
  color: var(--hn-ink);
}
.hn-dek {
  font-size: calc(clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem) * var(--hn-scale));
  line-height: 1.65;
  color: var(--hn-ink-2);
}
.hn-body-text { font-size: calc(1.0625rem * var(--hn-scale)); line-height: 1.7; color: var(--hn-ink-2); }
.hn-meta { font-size: calc(0.8125rem * var(--hn-scale)); line-height: 1.5; color: var(--hn-muted); font-variant-numeric: tabular-nums; }
.hn-kicker {
  font-size: calc(0.8125rem * var(--hn-scale));
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hn-accent);
}
html.hn:is(:lang(en), :lang(es)) .hn-kicker { text-transform: uppercase; }
.hn-num { font-variant-numeric: tabular-nums; }
.hn-muted { color: var(--hn-muted); }
.hn-ink-2 { color: var(--hn-ink-2); }
.hn-accent { color: var(--hn-accent); }
.hn-clamp-2, .hn-clamp-3, .hn-clamp-4 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.hn-clamp-2 { -webkit-line-clamp: 2; }
.hn-clamp-3 { -webkit-line-clamp: 3; }
.hn-clamp-4 { -webkit-line-clamp: 4; }

/* ── 마스트헤드 ───────────────────────────────────────── */
.hn-masthead { border-bottom: 3px solid var(--hn-ink); box-shadow: 0 4px 0 -3px var(--hn-ink); }
.hn-wordmark { color: var(--hn-ink); }
.hn-wordmark-sub { font-size: 0.6875rem; letter-spacing: 0.32em; color: var(--hn-muted); }
.hn-lang a { color: var(--hn-muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.hn-lang a[aria-current="true"] { color: var(--hn-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hn-icon-btn { color: var(--hn-ink-2); border-radius: 999px; }
.hn-icon-btn:hover { background: var(--hn-surface); color: var(--hn-ink); }

/* 이번 호 칩 */
.hn-chips { scrollbar-width: none; border-bottom: 1px solid var(--hn-rule); }
.hn-chips::-webkit-scrollbar { display: none; }
.hn-chip { color: var(--hn-ink-2); font-size: 0.875rem; white-space: nowrap; border-radius: 999px; border: 1px solid var(--hn-rule); }
.hn-chip:hover { border-color: var(--hn-rule-strong); color: var(--hn-ink); }

/* ── 섹션 머리 ────────────────────────────────────────── */
.hn-section { scroll-margin-top: 1.5rem; }
.hn-section-head { border-top: 1px solid var(--hn-ink); }
.hn-section-title {
  font-family: var(--hn-head);
  font-weight: 800;
  font-size: calc(1rem * var(--hn-scale));
  letter-spacing: -0.01em;
  color: var(--hn-ink);
}
.hn-section-desc { font-size: calc(0.875rem * var(--hn-scale)); color: var(--hn-muted); }
.hn-rule { border-color: var(--hn-rule); }
.hn-rule-top { border-top: 1px solid var(--hn-rule); }
.hn-rule-bottom { border-bottom: 1px solid var(--hn-rule); }
.hn-rail { border-color: var(--hn-rule); }

/* ── 브리핑 ───────────────────────────────────────────── */
.hn-briefing { background: var(--hn-surface); border-radius: 12px; }
.hn-briefing-num { color: var(--hn-accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.hn-briefing-label { font-weight: 700; color: var(--hn-ink); }
.hn-briefing-text { color: var(--hn-ink-2); }
.hn-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hn-ink-2);
  border: 1px solid var(--hn-rule-strong);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* ── 카드 ─────────────────────────────────────────────── */
.hn-card { position: relative; }
.hn-card:has(a:focus-visible) { outline: 2px solid var(--hn-accent); outline-offset: 4px; border-radius: 2px; }
.hn-card a:focus-visible { outline: none; }
/* 카드 제목 hover 밑줄(2026-11-02 손봄) - 두께·간격을 글자 크기에 비례시킨다. 두께를 비워 두면 브라우저가 글꼴 굵기로 정해 40px·800 톱 제목에
   3px 안팎의 굵은 선이 섰고, 간격 4px 고정은 큰 제목에서 글자 바닥에 붙어 두 줄 제목이 형광펜처럼 보였다. 0.05em·0.2em 이면 톱(40px)은 2px 선이
   8px 아래, 목록(19px)은 1px 선이 4px 아래다. 마우스가 있는 화면에서만 건다 - 터치 기기는 누른 뒤 hover 가 남아 돌아오면 밑줄이 붙어 있다.
   자체 배너 제목(.hn-self-banner-title)도 같은 값이다. */
@media (hover: hover) {
  .hn-card:hover .hn-card-title {
    text-decoration: underline;
    text-decoration-color: var(--hn-rule-strong);
    text-decoration-thickness: max(1px, 0.05em);
    text-underline-offset: 0.2em;
  }
}
.hn-figure { background: var(--hn-surface); border-radius: 2px; overflow: hidden; }
.hn-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-list-num { font-weight: 800; color: var(--hn-accent); font-variant-numeric: tabular-nums; }
.hn-backfill-tag { font-size: 0.75rem; font-weight: 600; color: var(--hn-muted); border: 1px solid var(--hn-rule); border-radius: 2px; }
.hn-keypoints li::marker { color: var(--hn-accent); }

/* ── 훑을 거리 ────────────────────────────────────────── */
.hn-trend-rank { font-weight: 800; color: var(--hn-accent); font-variant-numeric: tabular-nums; }
/* 기념일 이름 링크(2026-10-20) - 그날을 다룬 우리 글이 있는 항목만 링크라(나머지는 글자) 밑줄로 누를 수 있음을 보인다. */
.hn-almanac-link { color: var(--hn-ink); text-decoration: underline; text-decoration-color: var(--hn-rule-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hn-almanac-link:hover { color: var(--hn-accent); text-decoration-color: currentColor; }
.hn-dchip { font-size: 0.75rem; font-weight: 700; color: var(--hn-accent); border: 1px solid currentColor; border-radius: 999px; font-variant-numeric: tabular-nums; }
.hn-year { font-weight: 800; color: var(--hn-ink); font-variant-numeric: tabular-nums; }
.hn-tentative { font-size: 0.75rem; font-weight: 700; color: var(--hn-ink-2); background: var(--hn-surface); border: 1px dashed var(--hn-rule-strong); border-radius: 999px; }
.hn-upcoming-item { border-left: 2px dashed var(--hn-rule-strong); color: var(--hn-ink-2); cursor: default; }
/* 많이 읽은 글(2026-11-05) - 좁은 오른쪽 칸의 제목 줄. 목록 제목(hn-h3, 17~19px)보다 한 단 작게 두어 다섯 줄이 화면 높이 안에 든다. */
.hn-rail-title { font-family: var(--hn-head); font-weight: 700; font-size: calc(1rem * var(--hn-scale)); line-height: 1.5; color: var(--hn-ink); }
/* 오른쪽 칸 빈자리 칸(2026-11-05, editions/show) - 블록이 서는 문턱(컨테이너 높이 쿼리)이 em 이라, 칸의 글자 크기를 큰글씨 배율에 맞춰 둔다.
   큰글씨 모드에서 블록이 커지는 만큼 문턱도 커져 블록이 칸 밖(아래 칸 위)으로 넘치지 않는다. */
.hn-rail-slot { font-size: calc(1rem * var(--hn-scale)); }

/* ── 한 줄 해설 ───────────────────────────────────────── */
.hn-quote-mark { font-family: var(--hn-serif); color: var(--hn-accent); line-height: 1; }
.hn-quote-text { color: var(--hn-ink); }
html.hn:is(:lang(en), :lang(es)) .hn-quote-text { font-family: var(--hn-serif); }

/* ── 영상 띠 ──────────────────────────────────────────── */
.hn-band { background: var(--hn-band); color: var(--hn-band-ink); }
/* 바탕만 화면 끝까지 넓힌다(요소와 내용은 본문 칸 그대로). 100vw·음수 여백은 세로 스크롤 막대 폭만큼 가로로 넘쳐(Windows) 쓰지 않는다 -
   그림자는 스크롤 영역을 늘리지 않고, clip-path 가 위아래로 번지는 그림자를 자른다. */
.hn-band-bleed { box-shadow: 0 0 0 100vmax var(--hn-band); clip-path: inset(0 -100vmax); }
.hn-band .hn-section-title { color: var(--hn-band-ink); }
.hn-band .hn-section-desc { color: var(--hn-band-muted); }
/* 기본 초점선(accent)은 어두운 띠에서 대비가 모자라 띠 글자색으로 바꾼다. 기본 규칙(html.hn :focus-visible)과 특이도를 맞춰야 이긴다.
   재생 단추는 상자(.hn-video-box)가 overflow: hidden 이라 바깥 초점선이 잘려 안쪽으로 긋는다. */
html.hn .hn-band :focus-visible { outline-color: var(--hn-band-ink); }
html.hn .hn-video-box button:focus-visible { outline-offset: -3px; }
.hn-band-kicker {
  font-size: calc(0.8125rem * var(--hn-scale));
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hn-band-muted);
}
html.hn:is(:lang(en), :lang(es)) .hn-band-kicker { text-transform: uppercase; }
.hn-video-lead-title {
  font-family: var(--hn-head);
  font-weight: var(--hn-head-weight);
  letter-spacing: var(--hn-head-tracking);
  font-size: calc(clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem) * var(--hn-scale));
  line-height: 1.35;
  text-wrap: balance;
  color: var(--hn-band-ink);
}
.hn-band-subtitle { font-size: calc(0.9375rem * var(--hn-scale)); font-weight: 700; color: var(--hn-band-ink); }
.hn-band-caption { font-size: calc(0.875rem * var(--hn-scale)); line-height: 1.5; color: var(--hn-band-ink); }
.hn-band-link { font-size: calc(0.9375rem * var(--hn-scale)); font-weight: 700; }
.hn-band-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* 숏츠 줄의 넘김 모양만 여기 둔다 - 넘김 줄·4칸 격자 전환과 칸 폭은 마크업(_videos)의 Tailwind 다. */
.hn-shorts-row { scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.28) transparent; }
.hn-short { scroll-snap-align: start; }
.hn-play-badge {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
/* 띠 안이라 accent 토큰(다크에서 밝아진다) 대신 고정색 - 흰 글자 대비 6:1 이상. */
.hn-video-box button:is(:hover, :focus-visible) .hn-play-badge { background: #b4321f; }
.hn-video-box { background: #000; border-radius: 4px; overflow: hidden; }

/* ── 설문·쇼핑 ────────────────────────────────────────── */
/* 참여 카드 - 설문 카드와 오른쪽 칸 뉴스레터 안내(.hn-join, 2026-11-05)가 같은 둥근 상자다(누르는 자리라 읽을 거리와 가른다). */
.hn-survey, .hn-join { border: 1px solid var(--hn-rule); border-radius: 12px; background: var(--hn-paper); }
.hn-survey:hover, .hn-join:hover { border-color: var(--hn-rule-strong); }
/* 키보드 초점이 가도 둥근 모서리를 지킨다(검수 11-05) - 카드 공통 초점 규칙(.hn-card:has(a:focus-visible))의 2px 가 12px 를 이겨, 초점 때만
   카드가 각진 상자로 바뀌었다(운영 설문 카드에서 확인). 특이도가 같아 이 파일에서 그 규칙보다 뒤에 두어야 이긴다. 초점선도 이 모서리를 따른다. */
.hn-survey:has(a:focus-visible), .hn-join:has(a:focus-visible) { border-radius: 12px; }
/* 뉴스레터 안내 카드의 안내 문구 - 큰글씨 배율을 따른다(자체 배너 안내 문구와 같은 값). */
.hn-join-cta { font-size: calc(0.875rem * var(--hn-scale)); font-weight: 700; color: var(--hn-accent); }
.hn-kind { font-size: 0.75rem; font-weight: 700; color: var(--hn-accent); }
.hn-shop-thumb { background: #fff; border: 1px solid var(--hn-rule); border-radius: 4px; }
.hn-disclosure { font-size: calc(0.8125rem * var(--hn-scale)); color: var(--hn-ink-2); background: var(--hn-surface); border-radius: 4px; }

/* ── 바깥 소식 ────────────────────────────────────────── */
.hn-outside { border: 1px solid var(--hn-rule-strong); background: var(--hn-surface); border-radius: 12px; }

/* ── 광고 자리 ────────────────────────────────────────── */
.hn-ad-label { font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--hn-muted); }
/* 승인 전 harunews.com 광고 자리의 자체 배너(2026-10-31, harunews/shared/_self_banner). 설문 카드와 같은 둥근 테두리 상자다 - 누르는 자리라
   읽을 거리와 가른다. 색은 토큰만 쓴다(다크 모드가 저절로 따른다). 흰 바탕은 불투명 그림 패널에만 깐다.
   display 는 여기서 정하지 않는다 - 이 파일은 레이어 밖이라 마크업의 sm:flex(@layer utilities)를 이겨 넓은 화면에서도 그림이 글 위에 얹혔다. */
.hn-self-banner { overflow: hidden; border: 1px solid var(--hn-rule); border-radius: 12px; background: var(--hn-paper); color: var(--hn-ink); }
.hn-self-banner:hover { border-color: var(--hn-rule-strong); }
/* 제목 밑줄은 카드 제목과 같은 값·같은 조건(마우스가 있는 화면만)이다 - 위 카드 절의 주석. */
@media (hover: hover) {
  .hn-self-banner:hover .hn-self-banner-title {
    text-decoration: underline;
    text-decoration-color: var(--hn-rule-strong);
    text-decoration-thickness: max(1px, 0.05em);
    text-underline-offset: 0.2em;
  }
}
.hn-self-banner:focus-visible { outline: 2px solid var(--hn-accent); outline-offset: 4px; }
.hn-self-banner-media--white { background: #fff; }
.hn-self-banner-label { font-size: 0.75rem; font-weight: 700; color: var(--hn-accent); }
.hn-self-banner-title { font-family: var(--hn-head); font-weight: var(--hn-head-weight); font-size: calc(1.0625rem * var(--hn-scale)); line-height: 1.4; color: var(--hn-ink); }
.hn-self-banner-text { font-size: calc(0.875rem * var(--hn-scale)); line-height: 1.55; color: var(--hn-ink-2); }
.hn-self-banner-cta { font-size: calc(0.875rem * var(--hn-scale)); font-weight: 700; color: var(--hn-accent); }
/* 서비스 소개 카드(2026-11-06, editions/_promo)는 위 자체 배너 모양을 그대로 쓰고, 그림 상자와 그 위 "AI 생성 이미지" 표식만 더한다.
   표식은 사진 위에 놓여 지면 색이 아니라 어두운 반투명 바탕 + 흰 글자다(흰 바탕 사진 위에서도 대비 5:1 넘게 - 0.6 검정 = #666). */
.hn-promo-media { background: var(--hn-surface); }
.hn-promo-ai { padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 0.6875rem; font-weight: 600; line-height: 1.5; }

/* ── 끝맺음·바닥글 ────────────────────────────────────── */
.hn-end { border-top: 3px solid var(--hn-ink); box-shadow: 0 -4px 0 -3px var(--hn-ink); }
.hn-footer { border-top: 1px solid var(--hn-rule); color: var(--hn-muted); font-size: 0.8125rem; }
.hn-footer a:hover, .hn-link:hover { color: var(--hn-ink); text-decoration: underline; text-underline-offset: 3px; }
.hn-link { color: var(--hn-accent); }
.hn-button {
  border: 1px solid var(--hn-ink);
  color: var(--hn-ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: calc(0.9375rem * var(--hn-scale));
}
.hn-button:hover { background: var(--hn-ink); color: var(--hn-paper); }

/* ── 지금 뜨는 검색어 - 뉴스 찾기 창(2026-11-07) ─────────────────────
   이 파일은 레이어 밖이라 여기서 정한 값이 마크업의 Tailwind 유틸리티를 이긴다 - 검색어 단추·창 안의 배치(display·여백·간격)는 마크업의
   유틸리티로만 두고, 여기서는 색·선·글꼴과 창 자체의 크기만 정한다. 창(dialog)의 display 는 브라우저가 열고 닫으며 정하므로 건드리지 않는다.
   창 패널에는 height 를 두지 않는다(AdSense 가 채워질 때 조상에 height:auto 를 박는다) - 넘치면 dialog 가 스크롤한다. */
.hn-trend-term {
  color: var(--hn-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hn-trend-term:hover { text-decoration-color: var(--hn-rule-strong); }
.hn-trend-term:focus-visible { outline: 2px solid var(--hn-accent); outline-offset: 2px; border-radius: 2px; }
.hn-dialog {
  margin: auto;
  padding: 0;
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: var(--hn-paper);
  color: var(--hn-ink);
  border: 1px solid var(--hn-rule-strong);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.25);
}
.hn-dialog::backdrop { background: rgb(18 18 17 / 0.6); }
.hn-dialog-kicker { font-size: calc(0.75rem * var(--hn-scale)); font-weight: 700; letter-spacing: 0.04em; color: var(--hn-accent); }
.hn-dialog-title {
  font-family: var(--hn-head);
  font-weight: var(--hn-head-weight);
  letter-spacing: var(--hn-head-tracking);
  font-size: calc(1.5rem * var(--hn-scale));
  line-height: 1.25;
  color: var(--hn-ink);
}
/* 바깥 소식 기사 창(2026-11-08)의 제목은 기사 제목이라 길다 - 검색어(낱말 하나) 크기 그대로면 폰에서 서너 줄이 된다. 같은 특이도라 이 줄이 뒤에 있어 이긴다. */
.hn-dialog-title--story { font-size: calc(1.1875rem * var(--hn-scale)); line-height: 1.4; }
.hn-dialog-meta, .hn-dialog-note { font-size: calc(0.8125rem * var(--hn-scale)); color: var(--hn-muted); }
.hn-dialog-meta.hn-link { color: var(--hn-accent); }
.hn-dialog-text { font-size: calc(0.9375rem * var(--hn-scale)); line-height: 1.6; color: var(--hn-ink-2); }
.hn-dialog-close { color: var(--hn-muted); border-radius: 8px; }
.hn-dialog-close:hover { color: var(--hn-ink); background: var(--hn-surface); }
.hn-dialog-ad { border-top: 1px solid var(--hn-rule); }

/* ── 읽기 화면 ────────────────────────────────────────── */
/* 본문 폭 56rem(896px) = 원래 글 상세의 기본 본문 폭(ApplicationHelper::ARTICLE_WIDTHS normal = max-w-4xl, 2026-10-20 사용자 결정).
   종전 34em(한 줄 약 33음절, WCAG 1.4.8 한중일 40자 이하)에서 넓혔다 - 지금은 한 줄 약 50음절로 원래 글과 같다. rem 이라 큰글씨
   배율과 무관하게 폭이 같고, 배율이 오르면 한 줄 글자 수가 준다(원래 글과 같은 동작). */
.hn-read-col { max-width: min(56rem, 100%); margin-inline: auto; font-size: calc(clamp(1.0625rem, 1rem + 0.2vw, 1.125rem) * var(--hn-scale)); }
.hn-read .article-body { color: var(--hn-ink); font-size: 1em; line-height: 1.8; text-align: start; }
.hn-read .article-body :is(p, ul, ol, blockquote) { margin-block: 1.25em; }
.hn-read:lang(ja) .article-body { line-height: 1.85; }
.hn-read:is(:lang(en), :lang(es)) .article-body { line-height: 1.65; }
.hn-read:is(:lang(en), :lang(es)) .article-body :is(p, ul, ol, blockquote) { margin-block: 1.1em; }
.hn-read .article-body :is(h2, h3) { font-family: var(--hn-head); font-weight: var(--hn-head-weight); color: var(--hn-ink); letter-spacing: var(--hn-head-tracking); }
.hn-read .article-body h2 { font-size: 1.3em; line-height: 1.4; margin-top: 2.2em; margin-bottom: 0.8em; }
.hn-read .article-body h3 { font-size: 1.12em; line-height: 1.45; margin-top: 1.8em; margin-bottom: 0.6em; }
.hn-read .article-body a { color: var(--hn-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hn-read .article-body blockquote { border-left: 3px solid var(--hn-rule-strong); padding-left: 1em; color: var(--hn-ink-2); }
.hn-read .article-body :is(strong, b) { color: var(--hn-ink); }
.hn-read .article-body hr { border-color: var(--hn-rule); }
.hn-read .article-body table { font-size: 0.9em; }
html.hn.silver .hn-read .article-body { font-weight: 500; }
.hn-segment-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; color: var(--hn-muted); }
.hn-keybox { border-top: 2px solid var(--hn-accent); background: var(--hn-surface); border-radius: 0 0 4px 4px; }
.hn-toc summary { cursor: pointer; color: var(--hn-ink); font-weight: 700; list-style: none; }
.hn-toc summary::-webkit-details-marker { display: none; }
.hn-toc[open] .hn-chevron, .hn-faq[open] .hn-chevron { transform: rotate(180deg); }
.hn-toc a { color: var(--hn-ink-2); }
.hn-toc a:hover { color: var(--hn-accent); }
.hn-faq { border-bottom: 1px solid var(--hn-rule); }
.hn-faq summary { cursor: pointer; font-weight: 600; color: var(--hn-ink); list-style: none; }
.hn-faq summary::-webkit-details-marker { display: none; }
.hn-size-btn { border: 1px solid var(--hn-rule); color: var(--hn-ink-2); border-radius: 999px; font-size: 0.875rem; }
.hn-size-btn[aria-pressed="true"] { border-color: var(--hn-ink); color: var(--hn-ink); font-weight: 700; background: var(--hn-surface); }
.hn-original { border: 1px solid var(--hn-rule-strong); border-radius: 4px; }
.hn-original:hover { border-color: var(--hn-ink); }
.hn-next { border-top: 3px solid var(--hn-ink); }
.hn-current { color: var(--hn-ink); font-weight: 700; }
html.hn.silver :is(.hn-size-btn, .hn-chip, .hn-lang a, .hn-icon-btn) { min-height: 48px; }

/* 읽기 진행 막대 - CSS 스크롤 타임라인(JS 없음). 지원하지 않는 브라우저(파이어폭스 등)에서는 막대가 아예 없다. */
.hn-progress { display: none; }
@supports (animation-timeline: view()) {
  html.hn body { timeline-scope: --hn-read; }
  .hn-read-body { view-timeline: --hn-read block; }
  .hn-progress {
    display: block;
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: 3px;
    z-index: 40;
    transform-origin: 0 50%;
    background: var(--hn-accent);
    animation: hn-grow linear both;
    animation-timeline: --hn-read;
    animation-range: contain;
  }
}
@keyframes hn-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 재사용 파셜 다듬기 - 고지·검증 카드(card 클래스)의 바탕과 선을 지면 색에 맞춘다. */
html.hn .card { background: var(--hn-paper); border-color: var(--hn-rule); }
html.hn .hn-reused :is(.text-gray-400, .text-gray-500) { color: var(--hn-muted); }

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