/* modoo_zine src/portal/rn.css 그대로 옮김(modoo_zine 3b5c39c · 2026-12-06) — 모두프레스 매체 틀(press.css)이 이 위에 얹힌다.
   고칠 때는 모두진 것과 갈라진다는 것을 알고(되도록 press.css 에서 덮는다). 모두진 전용 덩이(지역 · 포털 쪽 .pt-* · rnx 탭)는 프레스 마크업이 안 쓴다 — 남겨도 무해. */
/* ==========================================================================
   모두진 리뉴얼 — rn.css (시안 B 「생활 포털 앱」 바탕 + A·C 아홉 가지 · 2026-11-18)
   --------------------------------------------------------------------------
   · /css/rn.css = portal.css + pv.css + 이 파일(src/portal/serve.tsx rnCss) — 미리보기 문 · 스위치 rn 켬에서만 나간다.
   · 진 CSS 세 장(fonts.css · default.css · Bootstrap)은 싣지 않는다. 글꼴 = 기기 글꼴(바깥 웹폰트 0).
   · 진마다 바뀌는 값은 <head> 의 :root 변수 넷(--accent · --accent-ink · --accent-tint · --accent-line — src/render/rntheme.ts 가
     zines.json color_text 에서 hex 로 낸다). 창빛 #FFD84D 는 이 파일 어디에도 없다(로고 ㅁ 안에만 · N-001 3조).
     본체 보라 #7C3AED 는 「문」 카드 문패 글자에만(portal.css --pt-door).
   · 어두운 모드는 두지 않는다 — 기기 설정을 따라 저절로 켜지지 않는다(사장님 결정 몫 · color-scheme: light).
   · 포털 쪽(허브 · 행사 · 찾기 · 지역 목록 · 소개 · 관공서)은 views.tsx(.pt-*) 마크업 그대로 — 아래 「포털 쪽」 규칙이 옷만 입힌다.
   · 클라이언트 JS 0: details/summary · :target · :has · :focus-within 만.
   ========================================================================== */

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  /* 중립(흰 카드 · 옅은 회색 바탕) — 대비: ink 16.1 · ink-2 9.9 · muted 6.1(흰) · 5.5(surface) · line-strong 3.5(비텍스트) */
  --bg: #F3F4F6;
  --card: #FFFFFF;
  --surface: #EFF1F4;
  --line: #E1E4E9;
  --line-strong: #858C96;
  --ink: #16191D;
  --ink-2: #3B4148;
  --muted: #5A616A;
  --on-accent: #FFFFFF;
  --alert: #2B3038;      /* 「마감 D-n」 경보 배지 — 무채색(진 색과 섞이지 않게) · 흰 글자 13.8 */
  /* 기본 강조(진 변수가 없을 때 — 지금 포털 파랑) */
  --accent: #0062CC; --accent-ink: #0055B3; --accent-tint: #EBF2FB; --accent-line: #B3D0F0;
  /* 글자 단계 */
  --fs-display: 26px; --fs-title-xl: 25px; --fs-title-l: 20px; --fs-title-m: 18px; --fs-title-s: 17px;
  --fs-body-l: 18px; --fs-body: 15px; --fs-label: 14px; --fs-caption: 13px; --fs-micro: 12px;
  /* 간격 · 모서리 · 크기 */
  --gutter: 12px; --r-xs: 6px; --r-s: 10px; --r-m: 14px; --r-l: 18px; --r-xl: 22px; --r-pill: 999px;
  --tap: 48px; --tap-min: 44px; --bar: 56px; --tabbar: 64px; --logo-h: 36px; --thumb-w: 104px;
  --wrap: 1180px; --read: 720px;
  --elev-1: 0 1px 2px rgb(16 24 32 / 6%);
  --elev-2: 0 10px 30px rgb(16 24 32 / 14%);
}

/* ---------------------------------------------------------------- 바탕 */
.rn, .rn *, .rn *::before, .rn *::after { box-sizing: border-box; }
html:has(body.rn) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
body.rn {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font);
  word-break: keep-all; line-break: strict; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.rn.is-read, body.rn.is-doc { background: var(--card); }
.rn img { max-width: 100%; height: auto; }
.rn a { color: inherit; text-decoration: none; }
.rn :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
.rn :where(ul, ol) { padding: 0; list-style: none; }
.rn :where(button, input) { font: inherit; color: inherit; }
.rn :where(time) { font-variant-numeric: tabular-nums; }
.rn :where(h1, h2, h3) { text-wrap: balance; }
.rn :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rn .rn-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rn-skip:not(:focus) { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rn-skip:focus { position: fixed; left: 12px; top: 8px; z-index: 80; padding: 12px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--card); font-weight: 700; }
/* 애드센스 자동 광고: 어느 틀(격자 · 카드 목록)에 끼어들어도 한 줄을 다 쓰고 쪼개지지 않게(시안 A) */
.rn .google-auto-placed { grid-column: 1 / -1; width: 100%; max-width: 100%; break-inside: avoid; }

/* 리본(미리보기 표시) — rn 안에서는 한 단 낮게 */
.rn .zt-ribbon { position: relative; z-index: 31; min-height: 46px; padding: 6px var(--gutter); font-size: 12px; }

/* ---------------------------------------------------------------- 머리(앱 막대) */
.rn-top { position: sticky; top: 0; z-index: 30; background: var(--card); border-bottom: 1px solid var(--line); }
.rn-top-in { position: relative; display: flex; align-items: center; gap: 6px; min-height: var(--bar); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.rn-brand { display: inline-flex; align-items: center; min-height: var(--tap); flex: none; margin-right: auto; color: var(--ink); }
.rn-logo { display: block; width: auto; height: var(--logo-h); }
.rn-logo-t { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

/* 분류 덮개(옛 분류 줄 · 결정 9 메뉴 <li> 바이트 그대로 · 링크 수·주소 그대로) — 닫힌 동안 Tab 순서 밖(details) */
.rn-cats { flex: none; }
.rn-cats > summary, .rn-where > summary {
  display: flex; align-items: center; gap: 5px; min-height: var(--tap-min); padding: 0 10px 0 9px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); font-size: var(--fs-label); font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none;
}
.rn-cats > summary::-webkit-details-marker, .rn-where > summary::-webkit-details-marker { display: none; }
.rn-cats > summary .rn-ico, .rn-where > summary .rn-ico { width: 18px; height: 18px; }
.rn-cats > summary .rn-chev, .rn-where > summary .rn-ico:last-child { width: 15px; height: 15px; color: var(--muted); transition: transform .15s; }
.rn-cats[open] > summary .rn-chev, .rn-where[open] > summary .rn-ico:last-child { transform: rotate(180deg); }
.rn-cats-v { max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; color: var(--accent-ink); }
@media (max-width: 519.98px) { .rn-cats-v { display: none; } }
.rn-cats-pop, .rn-where-pop {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); z-index: 45;
  max-height: calc(100vh - var(--bar) - 96px); max-height: calc(100dvh - var(--bar) - 96px); overflow: auto; overscroll-behavior: contain;
  padding: 14px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--elev-2), 0 0 0 1px var(--line);
}
.rn-cats:not([open]) .rn-cats-pop, .rn-where:not([open]) .rn-where-pop { display: none; }
.rn-cats-h { margin: 0 2px 10px; color: var(--muted); font-size: var(--fs-caption); font-weight: 700; }
.rn-cats-h b { color: var(--accent-ink); }
.rn-cats-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.rn-cats-l li { display: grid; min-width: 0; float: none; }
.rn-cats-l a { display: flex; align-items: center; justify-content: center; min-height: var(--tap-min); padding: 4px 6px; border-radius: var(--r-s); background: var(--surface); color: var(--ink-2); font-size: var(--fs-label); font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.rn-cats-l a.bo_cate_on, .rn-cats-l a[aria-current] { background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (hover: hover) { .rn-cats-l a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); } }

/* 지역 고르기(rnx · 진 → 권역 → 시군구) */
.rn-where { flex: 0 1 auto; min-width: 0; }
.rn-where > summary { max-width: 100%; }
.rn-where > summary > .rn-ico:first-child { color: var(--accent-ink); }
.rn-where-l { min-width: 0; max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
/* 검수 M-02: 머리 로고는 148×48 그대로(사장님 「로고 여백」 · 터치 48) — 좁은 폭은 「분야」 글자 · 꺾쇠를 빼 지역 이름 자리를 낸다(360 「서…」 0) */
@media (max-width: 479.98px) {
  .rn-where-l { max-width: 6.5em; }
  .rn-cats .rn-cats-k { display: none; }
  .rn-cats > summary .rn-chev { display: none; }
  .rn-cats > summary { padding: 0 11px; }
}
/* 아주 좁은 폭(< 360): 지역 이름은 요약의 낭독 이름(aria-label)에만 — 반 글자 말줄임을 보이지 않게 */
@media (max-width: 359.98px) { .rn-where-l { display: none; } .rn-where > summary { padding: 0 8px; } }
.rn-pick-step { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font-size: var(--fs-caption); font-weight: 700; }
.rn-pick-step b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: 12px; }
.rn-pick-zine { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; padding: 4px 4px 4px 14px; border-radius: var(--r-m); background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; }
.rn-pick-zine a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; border-radius: var(--r-s); background: var(--card); color: var(--ink-2); font-size: var(--fs-label); font-weight: 700; }
.rn-pick-zones { display: grid; gap: 12px; }
.rn-pick-zone { margin: 0 0 6px; color: var(--ink); font-size: var(--fs-body); font-weight: 800; }
.rn-pick-zone small { margin-left: 4px; color: var(--muted); font-size: var(--fs-caption); font-weight: 600; }
.rn-pick-all { display: flex; align-items: center; justify-content: center; min-height: var(--tap-min); margin-top: 12px; border-radius: var(--r-m); color: var(--ink-2); font-size: var(--fs-label); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
/* 덮개 맨 앞 「전체」 한 줄(지역 고르기 「{진} 전체」 · 분야 「전체」 — 11-21) — 두 클래스 셈이라 .rnx-chips · .rv-chips 의 margin: 0 보다 앞선다 */
.rnx-chips.rn-pick-top, .rv-chips.rn-pick-top { margin-bottom: 12px; }

/* 칩(시군구 · rnx) */
.rnx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rnx-chip { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 13px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: var(--fs-label); font-weight: 650; white-space: nowrap; }
.rnx-chip[aria-current] { background: var(--accent); color: var(--on-accent); }
.rnx-chip.is-off { background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
@media (hover: hover) { a.rnx-chip:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }

/* 아래 탭 막대(rnx · 휴대폰·태블릿 아래 고정 · 넓은 화면은 머리 안) */
.rn-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 max(4px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(16 24 32 / 6%); }
/* 네이버 공식 카페 2판(src/portal/cafe.ts · 켠 쪽만): 여섯째 칸 「카페」 */
.rn-tabs.has-cafe { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rn-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tabbar); color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.rn-tabs a .rn-ico { width: 24px; height: 24px; }
.rn-tabs a[aria-current] { color: var(--accent-ink); font-weight: 800; }
.rn-tabs a[aria-current]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--accent); }
body.rn.has-tabs { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px) + 16px); }

/* ---------------------------------------------------------------- 쪽 바탕 · 카드 */
.rn-main { display: grid; gap: var(--s3, 12px); max-width: var(--wrap); margin-inline: auto; padding: 12px var(--gutter) 0; }
.rn-main > * { min-width: 0; }
.rn-card { min-width: 0; padding: 16px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--elev-1), 0 0 0 1px var(--line); }
.rn-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.rn-sec-head h2 { font-size: var(--fs-title-m); line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; }
.rn-sec-head h2 small { margin-left: 4px; color: var(--muted); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0; }
.rn-more { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap-min); flex: none; padding-left: 8px; color: var(--accent-ink); font-size: var(--fs-label); font-weight: 700; white-space: nowrap; }
.rn-more .rn-ico { width: 16px; height: 16px; }
.rn-src { margin-top: 10px; color: var(--muted); font-size: var(--fs-caption); line-height: 1.5; }
.rn-empty { padding: 8px 2px; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.6; }
.rn-pagemain { min-width: 0; }

/* ---------------------------------------------------------------- 소식 카드(옛 .article-sumarry 의 새 꼴) */
.rn-feed-list { display: grid; }
.rn-post { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb-w); grid-template-areas: "body img"; align-items: start; align-content: start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.rn-feed-list > .rn-post:first-child { border-top: 0; padding-top: 2px; }
.rn-post.is-noimg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; }
.rn-post-img { grid-area: img; position: relative; z-index: 2; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-m); background: var(--surface); }
.rn-post.is-noimg .rn-post-img { display: none; }
.rn-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rn-post-body { grid-area: body; display: grid; align-content: start; gap: 5px; min-width: 0; }
.rn-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rn-cat { position: relative; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-xs); background: var(--accent-tint); color: var(--accent-ink); font-size: var(--fs-micro); font-weight: 700; white-space: nowrap; }
.rn-post-meta .rn-cat::before { content: ""; position: absolute; inset: -10px -4px; }
.rn-post-t { color: var(--ink); font-size: var(--fs-title-s); line-height: 1.42; font-weight: 700; letter-spacing: -0.01em; }
.rn-post-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-m); }
.rn-post-t a:focus-visible { outline: 0; }
.rn-post-t a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { .rn-post:hover .rn-post-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.rn-post-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ink-2); font-size: var(--fs-label); line-height: 1.5; }
.rn-post-foot { color: var(--muted); font-size: var(--fs-caption); }
.rn-post .tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; }
.rn .tags .tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; border-radius: var(--r-xs); background: var(--surface); color: var(--ink-2); font-size: var(--fs-caption); }
.rn .tags:empty { display: none; }
/* AI 표시(N-010) — 지우거나 숨기지 않는다 · 무채색 테두리 배지 */
.rn .pt-ai { border-color: var(--line-strong); background: var(--card); color: var(--ink-2); }
.rn .rn-post-sum .pt-ai.is-inline { margin-right: 4px; }
/* 첫 글(크게) */
.rn-post.is-lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "body"; padding-top: 2px; }
.rn-post.is-lead .rn-post-img { aspect-ratio: 16 / 9; border-radius: var(--r-l); }
.rn-post.is-lead .rn-post-t { font-size: var(--fs-title-l); line-height: 1.36; font-weight: 800; }
.rn-post.is-lead .rn-post-sum { -webkit-line-clamp: 3; }
@media (max-width: 599.98px) {
  /* 휴대폰 첫 글: 제목을 그림 위로(390 첫 화면 안에 첫 글 제목) */
  .rn-post.is-lead { grid-template-areas: "meta" "title" "img" "sum" "foot" "tags"; gap: 8px; }
  .rn-post.is-lead .rn-post-body { display: contents; }
  .rn-post.is-lead .rn-post-meta { grid-area: meta; }
  .rn-post.is-lead .rn-post-t { grid-area: title; }
  .rn-post.is-lead .rn-post-img { grid-area: img; margin: 2px 0; }
  .rn-post.is-lead .rn-post-sum { grid-area: sum; }
  .rn-post.is-lead .rn-post-foot { grid-area: foot; }
  .rn-post.is-lead .tags { grid-area: tags; }
}

/* 쪽 넘김 — 옛 pagingHost 바이트 그대로(.pg_wrap) · 모양만 */
.rn-pager { padding: 4px 0; }
.rn .pg_wrap { display: block; }
.rn .pg_wrap .pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rn .pg_wrap a, .rn .pg_wrap strong { display: inline-grid; place-items: center; min-width: var(--tap-min); height: var(--tap-min); padding: 0 8px; border-radius: var(--r-s); background: var(--card); color: var(--ink-2); font-size: var(--fs-label); font-weight: 650; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1px var(--line); }
.rn .pg_wrap strong.pg_current { background: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: none; }
.rn .pg_wrap a.pg_next, .rn .pg_wrap a.pg_end, .rn .pg_wrap a.pg_start, .rn .pg_wrap a.pg_prev { padding: 0 14px; }
@media (hover: hover) { .rn .pg_wrap a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }
.rn-openmain { display: flex; justify-content: center; min-height: 0; padding: 8px 0; }

/* ---------------------------------------------------------------- 홈 「지역 포털」 띠(결정 2 · views.tsx Band 마크업 그대로) */
.rn .pt-band { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 8px; margin: 0; padding: 16px; border: 0; border-radius: var(--r-l); background: var(--card); box-shadow: var(--elev-1), 0 0 0 1px var(--line); }
.rn .pt-band > * { grid-area: auto; }
.rn .pt-band-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-2); font-size: var(--fs-label); font-weight: 650; }
.rn .pt-band-k b { display: inline-flex; align-items: center; height: 24px; margin: 0; padding: 0 9px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-family: var(--font); font-size: var(--fs-micro); font-weight: 700; }
.rn .pt-band-week { color: var(--ink); font-size: var(--fs-body); font-weight: 600; line-height: 1.55; }
.rn .pt-band-week a { color: var(--accent-ink); padding-block: 12px; }
.rn .pt-band-src { color: var(--muted); font-size: var(--fs-caption); }
.rn .pt-band-src a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.rn .pt-band-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 0; }
.rn .pt-btn { min-height: var(--tap); padding: 0 16px; border: 0; border-radius: var(--r-m); background: var(--surface); color: var(--ink); font-size: var(--fs-body); font-weight: 700; }
.rn .pt-btn.is-primary { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .rn .pt-btn:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } .rn .pt-btn.is-primary:hover { box-shadow: inset 0 0 0 2px rgb(0 0 0 / 22%); } }
.rn .pt-find { display: flex; gap: 6px; margin: 0; }
.rn .pt-find input[type="search"] { flex: 1; min-width: 0; height: var(--tap); padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-m); background: var(--card); color: var(--ink); font-size: 16px; }
.rn .pt-find .pt-btn { flex: none; min-width: 64px; background: var(--ink); color: var(--card); }
.rn .pt-quick { margin-top: 2px; }

/* ---------------------------------------------------------------- 「오늘」 카드 · 권역 · 동네 격자 · 구 카드(rnx) */
.rnx-today { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--accent-tint) 0, var(--card) 110px) var(--card); box-shadow: var(--elev-1), 0 0 0 1px var(--line); }
.rnx-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-2); font-size: var(--fs-label); font-weight: 650; }
.rnx-eyebrow-k { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: var(--fs-micro); font-weight: 700; }
.rnx-today-h { margin-top: -4px; font-size: var(--fs-display); line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.rnx-today-h time { color: var(--accent-ink); }
.rnx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rnx-stat { display: grid; align-content: space-between; gap: 2px; min-height: 64px; padding: 9px 10px 8px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.rnx-stat-k { color: var(--ink-2); font-size: var(--fs-caption); font-weight: 650; line-height: 1.3; }
.rnx-stat-k small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.rnx-stat-v { color: var(--ink); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rnx-stat-v small { margin-left: 1px; color: var(--ink-2); font-size: var(--fs-label); font-weight: 700; }
.rnx-stat-v .is-word { font-size: 16px; color: var(--ink-2); }
.rnx-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k i" "t i"; align-items: center; gap: 4px 8px; min-height: 56px; padding: 8px 10px 9px 12px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.rnx-next-k { grid-area: k; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.rnx-next-t { grid-area: t; color: var(--ink); font-size: var(--fs-body); font-weight: 700; line-height: 1.4; }
.rnx-next-t time { margin-right: 4px; color: var(--accent-ink); white-space: nowrap; }
.rnx-next > .rn-ico { grid-area: i; color: var(--muted); }
@media (hover: hover) { a.rnx-next:hover { box-shadow: 0 0 0 1.5px var(--accent); } }
.rnx-today .pt-dday { margin: 0; }
/* 띠 조각(결정 2 · 출처 줄 · 단추 · 찾기 · 바로가기 — 바이트 그대로)을 「오늘」 카드 아래에 */
.rnx-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rnx-band > * { grid-area: auto; min-width: 0; }
.rnx-band .pt-band-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.rnx-band .pt-band-src { color: var(--muted); font-size: var(--fs-caption); line-height: 1.5; }
.rnx-band .pt-band-src a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.rnx-band .pt-quick .pt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rn .pt-quick .pt-tag { min-height: var(--tap-min); padding: 0 13px; border: 0; border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-label); font-weight: 650; }
.rn .pt-quick .pt-tag.is-all { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (max-width: 599.98px) {
  /* 휴대폰: 바로가기 칩을 한 줄 가로 밀기로(첫 화면 안에 첫 글 제목 · 링크는 숨기지 않는다 — 밀면 보인다) */
  .rnx-band .pt-quick .pt-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 4px; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .rnx-band .pt-quick .pt-tags::-webkit-scrollbar { display: none; }
  .rnx-band .pt-quick .pt-tags:focus-within { -webkit-mask-image: none; mask-image: none; }
  .rnx-band .pt-quick li { flex: none; }
  .rnx-today { gap: 10px; }
  .rnx-stat { min-height: 0; padding: 7px 9px; }
  .rn-feed { padding-top: 14px; }
}

.rnx-zone-list { display: grid; gap: 10px; }
.rnx-zone { display: grid; align-content: start; gap: 6px; padding: 12px; border-radius: var(--r-l); background: var(--surface); }
.rnx-basis { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: var(--fs-caption); line-height: 1.55; counter-reset: rnx-b; }
.rnx-basis li { position: relative; padding-left: 1.6em; }
.rnx-basis li::before { counter-increment: rnx-b; content: counter(rnx-b); position: absolute; left: 0; top: 0; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-top: .15em; border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: 11.5px; font-weight: 800; }
.rnx-basis a { display: inline-block; margin: -14px 0; padding: 14px 2px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.rnx-zone-ref { color: var(--muted); font-size: var(--fs-caption); }
.rnx-zone .rnx-chip { background: var(--card); }
.rnx-zone .rnx-chip[aria-current] { background: var(--accent); }
.rnx-zone-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink); font-size: var(--fs-title-s); font-weight: 800; letter-spacing: -0.02em; }
.rnx-zone-n small { color: var(--muted); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0; }
.rnx-zone-s { color: var(--ink-2); font-size: var(--fs-caption); }
.rnx-zone-s b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rnx-zone-basis { margin-top: 2px !important; }
.rnx-zones.is-area .rnx-zone-basis a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.rnx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.rnx-cell { display: grid; align-content: space-between; gap: 2px; min-height: 60px; padding: 8px 10px; border-radius: var(--r-m); color: var(--ink); }
.rnx-cell.is-l1 { background: var(--surface); }
.rnx-cell.is-l2 { background: var(--accent-tint); }
.rnx-cell.is-l3 { background: var(--accent-line); }
.rnx-cell.is-l4 { background: var(--accent); color: var(--on-accent); }
.rnx-cell-n { font-size: var(--fs-label); font-weight: 700; line-height: 1.25; }
.rnx-cell-v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .rnx-cell:hover { box-shadow: inset 0 0 0 2px var(--ink); } }

.rnx-gu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.rnx-gu { display: grid; align-content: space-between; gap: 4px; min-height: 72px; padding: 12px; border-radius: var(--r-l); background: var(--surface); color: var(--ink); }
.rnx-gu.is-off { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.rnx-gu-n { font-size: var(--fs-title-s); font-weight: 800; letter-spacing: -0.02em; }
.rnx-gu-s { color: var(--ink-2); font-size: var(--fs-caption); line-height: 1.4; }
.rnx-gu-s b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (hover: hover) { a.rnx-gu:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }

.rnx-rows { display: grid; border-top: 1px solid var(--line); }
.rnx-rows a { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; min-height: var(--tap); padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 650; }
.rnx-rows li:last-child a { border-bottom: 0; }
.rnx-rows time { flex: none; color: var(--muted); font-size: var(--fs-caption); font-weight: 500; }
.rnx-hash { margin-right: 1px; color: var(--muted); }
.rnx-emd { margin-top: 20px; }

/* 허브 권역 길(rnx) */
.rnx-zpath { margin-top: 12px; }
.rnx-zpath ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; padding: 2px 6px; border-radius: var(--r-pill); background: var(--surface); width: fit-content; max-width: 100%; }
.rnx-zpath li { display: inline-flex; align-items: center; }
.rnx-zpath li + li::before { content: ""; width: 6px; height: 6px; margin: 0 8px 0 4px; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.rnx-zpath a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 6px; color: var(--accent-ink); font-size: var(--fs-label); font-weight: 700; }
.rnx-zpath [aria-current] { padding: 0 6px; color: var(--ink); font-size: var(--fs-label); font-weight: 800; }

/* ---------------------------------------------------------------- 글 쪽 */
.rn-read { max-width: calc(var(--read) + 2 * var(--gutter)); margin-inline: auto; padding: 16px var(--gutter) 0; }
.rn-art-head { display: grid; gap: 10px; }
.rn-art-cat { display: flex; }
.rn-art-cat .rn-cat { height: 30px; padding: 0 11px; font-size: var(--fs-caption); }
.rn-art-cat .rn-cat::before { content: ""; position: absolute; inset: -7px -4px; }
.rn .rn-art-title { color: var(--ink); font-size: var(--fs-title-xl); line-height: 1.36; font-weight: 800; letter-spacing: -0.03em; }
.rn-art-upd { color: var(--muted); font-size: var(--fs-caption); }
.rn .pt-postmeta { margin: 0; gap: 6px 8px; }
.rn .pt-chip { min-height: 32px; border: 0; background: var(--accent-tint); color: var(--accent-ink); }
.rn .pt-chip.is-off { background: var(--surface); color: var(--ink-2); }
.rn .pt-pin::after { background: var(--accent-tint); }
.rn .pt-tag { border-color: var(--line); background: var(--surface); color: var(--ink); }
.rn .pt-src { color: var(--muted); font-size: var(--fs-caption); }
.rn .pt-src-k { color: var(--ink-2); }
.rn-ad:empty { display: none; }

/* 본문 — renderArticleHtml() 바이트 그대로 · 모양만(#article-view-content) */
.rn #article-view-content { position: relative; min-height: 0; margin-top: 16px; padding: 0; color: var(--ink); font-size: var(--fs-body-l); line-height: 1.75; }
.rn #article-view-content p { margin: 0 0 1.05em; font-family: var(--font); font-weight: 400; letter-spacing: -0.2px; line-height: 1.75; }
.rn #article-view-content strong, .rn #article-view-content b { font-weight: 700; }
.rn #article-view-content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.rn #article-view-content img { display: block; max-width: 100%; width: auto; height: auto; margin: 10px auto; border-radius: var(--r-m); }
.rn #article-view-content figure { margin: 0 0 24px; }
.rn #article-view-content figure img { width: 100%; aspect-ratio: auto 16 / 9; }
.rn #article-view-content figcaption { margin-top: 8px; color: var(--muted); font-size: var(--fs-caption); line-height: 1.5; text-align: center; }
.rn #article-view-content h1 { margin: 32px 0 12px; font-size: 24px; line-height: 1.4; font-weight: 800; }
.rn #article-view-content h2 { position: relative; margin: 36px 0 12px; padding-left: 14px; color: var(--ink); font-size: 21px; line-height: 1.45; font-weight: 800; letter-spacing: -0.02em; scroll-margin-top: calc(var(--bar) + 16px); }
.rn #article-view-content h2::before { content: ""; position: absolute; left: 0; top: .3em; width: 4px; height: .95em; border-radius: 2px; background: var(--accent); }
.rn #article-view-content h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.45; font-weight: 800; }
.rn #article-view-content ul:not(nav ul), .rn #article-view-content ol:not(nav ol) { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.rn #article-view-content ol:not(nav ol) { list-style: decimal; }
.rn #article-view-content li { margin: .2em 0; }
.rn #article-view-content blockquote { margin: 0 0 1.2em; padding: 12px 16px; border-left: 4px solid var(--accent-line); border-radius: 0 var(--r-m) var(--r-m) 0; background: var(--surface); color: var(--ink-2); }
/* 본문 표: 바이트 그대로 두고 가로로 민다(휴대폰) */
.rn #article-view-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 0 0 24px; border-collapse: collapse; background: var(--card); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; -webkit-overflow-scrolling: touch; }
.rn #article-view-content table > tbody, .rn #article-view-content table > thead { display: table; width: 100%; border-collapse: collapse; }
.rn #article-view-content th, .rn #article-view-content td { min-width: 5.5em; padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.rn #article-view-content th { background: var(--surface); color: var(--ink-2); font-weight: 700; }
.rn #article-view-content table:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.rn #article-view-content iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-m); }
.rn #article-view-content iframe[title="YouTube video player"] { height: auto !important; }
.rn #article-view-content .sound_only { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rn #article-view-content dl { display: block; }

/* 목차(본문 nav) — 8줄 이하는 세로 번호 목록 · 9줄 이상은 「목차 n」 + 가로 칩(CSS :has · counter · JS 0) */
.rn #article-view-content > nav { display: flex; flex-direction: column; counter-reset: rn-toc; margin: 0 0 24px; padding: 12px 14px; border-radius: var(--r-l); background: var(--surface); }
.rn #article-view-content > nav::after { content: "목차"; order: -1; margin: 0 0 6px; color: var(--muted); font-size: var(--fs-caption); font-weight: 800; line-height: 1.4; }
.rn #article-view-content > nav:has(li:nth-child(9))::after { content: "목차 " counter(rn-toc); }
.rn #article-view-content > nav ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.rn #article-view-content > nav li { counter-increment: rn-toc; margin: 0; }
.rn #article-view-content > nav a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); align-items: baseline; min-height: var(--tap-min); padding: 10px 2px; border-top: 1px solid var(--line); color: var(--ink); font-size: var(--fs-label); font-weight: 650; line-height: 1.45; text-decoration: none; }
.rn #article-view-content > nav li:first-child a { border-top: 0; }
.rn #article-view-content > nav a::before { content: counter(rn-toc, decimal-leading-zero); color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.rn #article-view-content > nav:has(li:nth-child(9)) ul { display: flex; gap: 6px; margin: 0 -14px; padding: 2px 14px 4px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 14px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.rn #article-view-content > nav:has(li:nth-child(9)) ul::-webkit-scrollbar { display: none; }
.rn #article-view-content > nav:has(li:nth-child(9)) li { flex: none; }
.rn #article-view-content > nav:has(li:nth-child(9)) a { display: inline-flex; gap: 6px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--card); white-space: nowrap; scroll-margin-inline: 14px; }
.rn #article-view-content > nav:has(li:nth-child(9)) a::before { font-size: var(--fs-micro); }
/* 흐림 띠에 초점이 가려지지 않게 — 안에 초점이 오면 띠를 끈다 */
.rn #article-view-content > nav ul:focus-within { -webkit-mask-image: none; mask-image: none; }

/* 옛 글 클래스(DB 원문 본문에 남은 것 — 옛 <style> 덩이 대신 새 토큰으로) */
.rn .btnModoo, .rn .btnModooBG { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min); padding: 0 20px; border: 2px solid var(--accent); border-radius: var(--r-pill); background: var(--card); color: var(--accent-ink) !important; font-size: 16px; font-weight: 700; text-decoration: none !important; }
.rn .btnModooBG { background: var(--accent); color: var(--on-accent) !important; }
.rn .modoo-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap); margin: 6px 0; padding: 12px 16px; border: 0; border-radius: var(--r-m); background: var(--accent); color: var(--on-accent) !important; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none !important; }
@media (hover: hover) { .rn .btnModoo:hover, .rn .modoo-button:hover { box-shadow: inset 0 0 0 2px rgb(0 0 0 / 22%); } }
.rn .list-box { display: flex; align-items: center; max-width: 100%; margin-bottom: 10px; overflow: hidden; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.rn .list-box a { text-decoration: none !important; }
.rn .list-box .left { width: 34%; flex: none; }
.rn .list-box .left img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.rn .list-box .right { flex: 1; min-width: 0; padding: 12px 14px; }
.rn .list-box dl { display: flex; flex-direction: column; margin: 0; }
.rn .list-box dt { margin-bottom: 6px; line-height: 1.4; }
.rn .list-box dt a { color: var(--ink) !important; font-size: 16px; font-weight: 800; }
.rn .list-box dd { margin: 0; line-height: 1.45; }
.rn .list-box dd a { color: var(--ink-2) !important; font-size: 14px; }

/* 반응 단추 · 다음/이전 · 함께 보면 좋은 글 */
.rn-react { display: flex; justify-content: center; gap: 8px; padding: 24px 0 8px; }
.rn-react .btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: var(--fs-body); font-weight: 700; cursor: default; }
.rn-react small { color: var(--ink-2); font-size: var(--fs-label); font-variant-numeric: tabular-nums; }
.rn-np { display: grid; gap: 8px; margin-top: 20px; }
.rn-np a { display: grid; gap: 2px; min-height: 64px; padding: 12px 14px; border-radius: var(--r-l); background: var(--surface); }
.rn-np-k { color: var(--muted); font-size: var(--fs-caption); font-weight: 700; }
.rn-np-t { color: var(--ink); font-weight: 700; line-height: 1.45; }
@media (hover: hover) { .rn-np a:hover .rn-np-t { text-decoration: underline; text-underline-offset: 3px; } }
.rn-rel { margin-top: 24px; }
.rn-rel h2 { margin-bottom: 4px; font-size: var(--fs-title-m); font-weight: 800; }
.rn-rel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 650; }
.rn-rel a .rn-ico { width: 16px; height: 16px; color: var(--muted); }
.rn-ads-k { margin-bottom: 8px; color: var(--muted); font-size: var(--fs-caption); font-weight: 700; }

/* 정책·/c/ 쪽 · 태그 쪽 · 404 */
.rn-doc h1, .rn-list-h1 { margin: 4px 0 16px; font-size: var(--fs-title-xl); line-height: 1.36; font-weight: 800; letter-spacing: -0.03em; }
.rn-doc-body { font-size: 16px; line-height: 1.75; color: var(--ink); }
.rn-doc-body :where(p, ul, ol, table) { margin-bottom: 1em; }
.rn-doc-body a { color: var(--accent-ink); text-decoration: underline; }
/* 새 개인정보처리방침(src/lib/policy.ts · rn-pol 안에서만 — 다른 정책 쪽 옛 글 모양은 그대로) · 접은 지난 판 */
.rn-pol h2 { margin: 28px 0 10px; font-size: var(--fs-title-m); line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; }
.rn-pol ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.rn-pol ul ul { margin: 6px 0 0; list-style: circle; }
.rn-pol li + li { margin-top: 6px; }
.rn-pol a { overflow-wrap: anywhere; }
.rn-pol code { padding: 1px 5px; border-radius: 6px; background: var(--surface); font-size: .92em; overflow-wrap: anywhere; }
.rn-doc-meta { color: var(--muted); font-size: var(--fs-caption); }
.rn-doc-old { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); }
.rn-doc-old > summary { display: flex; align-items: center; min-height: var(--tap-min); color: var(--ink-2); font-weight: 700; cursor: pointer; }
.rn-doc-old-b { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-body); }
.rn-404 { max-width: 560px; margin: 40px auto; }
.rn-404 h1 { font-size: var(--fs-title-xl); font-weight: 800; }
.rn-404 p { margin: 10px 0; color: var(--ink-2); overflow-wrap: anywhere; }
.rn-404 h2 { font-size: var(--fs-body); font-weight: 650; }
.rn-404 a { color: var(--accent-ink); text-decoration: underline; }

/* ---------------------------------------------------------------- 꼬리 — page_tail(진끼리 상호 링크)은 바이트 그대로, 모양만 */
.rn-foot { max-width: var(--wrap); margin: 24px auto 0; padding: 0 var(--gutter) 8px; }
.rn-net { padding: 16px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.rn-net > h2 { margin-bottom: 12px; font-size: var(--fs-title-m); font-weight: 800; letter-spacing: -0.02em; }
.rn-net .container { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; max-width: none; width: auto; margin: 0; padding: 0; text-align: left; }
.rn-net .container > span { display: grid; padding: 0; }
.rn-net .container a { display: flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 6px; border-radius: var(--r-m); background: var(--surface); color: var(--ink) !important; font-size: var(--fs-body); font-weight: 650; white-space: nowrap; text-decoration: none; }
@media (hover: hover) { .rn-net .container a:hover { background: var(--accent-tint); color: var(--accent-ink) !important; } }
.rn-synth-k { margin-bottom: 10px; color: var(--muted); font-size: var(--fs-caption); }
.rn-synth-net { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.rn-synth-net a { display: flex; align-items: center; justify-content: center; min-height: var(--tap); border-radius: var(--r-m); background: var(--surface); color: var(--ink); font-weight: 650; }
.rn-policy { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; margin-top: 12px; }
.rn-policy a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 10px; color: var(--ink-2); font-size: var(--fs-caption); font-weight: 600; }
.rn-copy { padding: 16px 4px 8px; color: var(--muted); font-size: var(--fs-caption); text-align: center; }
.rn-copy a { display: inline-block; padding: 12px 2px; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* 사이트를 연 해(RNX-SINCE · 사장님 11-22 「창간년 하단에 표기」) — 저작권 줄 위 한 줄 */
.rn-copy .rn-since { display: block; margin-bottom: 2px; color: var(--ink-2); font-weight: 650; letter-spacing: .02em; }

/* ---------------------------------------------------------------- 포털 쪽(views.tsx .pt-* 마크업 그대로 · 옷만) */
.rn .pt-root {
  --pt-ink: var(--ink); --pt-text: var(--ink); --pt-text-2: var(--ink-2); --pt-muted: var(--muted);
  --pt-line: var(--line); --pt-line-2: #CDD2D9; --pt-row: var(--line); --pt-wash: var(--surface); --pt-tag: var(--surface);
  --pt-blue: var(--accent-ink); --pt-blue-deep: var(--accent-ink); --pt-blue-tint: var(--accent-tint); --pt-blue-line: var(--accent-line);
  --pt-focus: var(--accent); --pt-head: var(--font); --pt-r: 14px; --pt-r-sm: 8px;
  font-family: var(--font);
}
.rn-page { max-width: var(--wrap); margin-inline: auto; padding: 12px var(--gutter) 0; }
.rn .pt-page { display: grid; gap: 12px; max-width: none; margin: 0; padding: 0; }
.rn .pt-page > * { min-width: 0; margin: 0; }
.rn .pt-crumb { padding: 0 4px; }
.rn .pt-crumb ol { row-gap: 0; }
.rn .pt-crumb a, .rn .pt-crumb [aria-current] { display: inline-flex; align-items: center; min-height: var(--tap-min); margin: 0; padding: 0 4px; }
.rn .pt-crumb a { color: var(--ink-2); font-weight: 600; }
.rn .pt-head { display: grid; gap: 10px; padding: 16px; border: 0; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--accent-tint) 0, var(--card) 120px) var(--card); box-shadow: var(--elev-1), 0 0 0 1px var(--line); }
.rn .pt-head > * { margin: 0; }
.rn .pt-title { font-family: var(--font); font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; }
.rn .pt-now { margin: 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.rn .pt-now-day::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.rn .pt-now a { color: var(--accent-ink); }
.rn .pt-facts { margin-top: 0; }
.rn .pt-sec { margin: 0; padding: 16px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--elev-1), 0 0 0 1px var(--line); }
.rn .pt-sec-title { padding-left: 0; border-left: 0; font-size: var(--fs-title-m); font-weight: 800; letter-spacing: -0.02em; }
.rn .pt-more { color: var(--accent-ink); }
.rn .pt-asof { margin: 0; padding: 4px 4px 0; border-top: 0; }
.rn .pt-state { border: 0; border-radius: var(--r-m); background: var(--surface); }
.rn .pt-state a { color: var(--accent-ink); }
/* 배지: 진행 중 = 진 색 · 마감 임박 = 무채색 경보(진 색과 섞이지 않게) */
.rn .pt-dday { border-radius: var(--r-xs); }
.rn .pt-dday.is-now { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.rn .pt-dday.is-soon { border-color: var(--accent-line); background: var(--accent-tint); color: var(--accent-ink); }
.rn .pt-dday.is-due { border-color: var(--alert); background: var(--alert); color: #FFFFFF; }
.rn .pt-date { border-radius: var(--r-m); }
.rn .pt-near-link { border-radius: var(--r-l); }
.rn .pt-ad { border-radius: var(--r-l); }
.rn .pt-gov-emd > summary { border-radius: var(--r-m); }
/* 달력 쪽 · 찾기 쪽 · 지역 목록 머리도 같은 카드 */
.rn .pt-page > .pt-mnav, .rn .pt-page > nav.pt-mnav-foot { padding: 8px 12px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); }

/* 언어 고르기(외국어 층 · src/portal/i18n/switch.ts · 머리 맨 끝) — 지역 고르기와 같은 알약 · 좁은 폭은 지구 아이콘만(낭독 이름 = aria-label) */
.rn-lang { flex: none; }
.rn-lang > summary {
  display: flex; align-items: center; justify-content: center; gap: 5px; min-width: var(--tap-min); min-height: var(--tap-min); padding: 0 10px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); font-size: var(--fs-label); font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none;
}
.rn-lang > summary::-webkit-details-marker { display: none; }
.rn-lang > summary .rn-ico { width: 18px; height: 18px; color: var(--accent-ink); }
.rn-lang-pop {
  position: absolute; right: var(--gutter); top: calc(100% + 6px); z-index: 45; width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 12px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--elev-2), 0 0 0 1px var(--line);
}
.rn-lang:not([open]) .rn-lang-pop { display: none; }
.rn-lang-h { margin: 0 2px 8px; color: var(--muted); font-size: var(--fs-caption); font-weight: 700; }
.rn-lang-l { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rn-lang-l a { display: flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; border-radius: var(--r-s); color: var(--ink-2); font-size: var(--fs-body); font-weight: 600; }
.rn-lang-l a[aria-current] { background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (hover: hover) { .rn-lang-l a:not([aria-current]):hover { background: var(--surface); color: var(--ink); } }
@media (max-width: 479.98px) { .rn-lang-k { display: none; } .rn-lang > summary { padding: 0 11px; } }
@media (max-width: 359.98px) { .rn-lang > summary { padding: 0 8px; } }
/* 외국어 쪽: 글 본문 · 정책 쪽 앞 안내(한국어 글 · 브라우저 번역) */
.rn-i18n-note { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-m); background: var(--accent-tint); color: var(--ink); font-size: var(--fs-caption); line-height: 1.6; }
/* 외국어 쪽 글꼴: 그 말 글꼴 먼저(한자 · 가나 · 베트남어 성조가 한국어 글꼴 꼴로 나오지 않게) · 한국어 자료 칸(lang="ko")은 본디 글꼴 */
html:lang(en) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
html:lang(vi) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
html:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
html:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
html:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
html:not(:lang(ko)) [lang="ko"] { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif; word-break: keep-all; }
/* 외국어 쪽: 말이 길어지는 칸 — 칩은 줄을 나누고(320 넘침 0) · 좁은 머리의 지역 단추는 꺾쇠를 빼 이름 자리를 낸다 */
html:not(:lang(ko)) .rv-chip { white-space: normal; flex-wrap: wrap; max-width: 100%; padding-block: 6px; line-height: 1.3; }
@media (max-width: 479.98px) { html:not(:lang(ko)) .rn-where > summary .rn-ico:last-child { display: none; } html:not(:lang(ko)) .rn-where > summary { padding: 0 10px; } }
/* 외국어 쪽 분야 타일 이름: 낱말 가운데서 끊지 않는다(「Governmen|t」 0) — 칸이 좁으면 하이픈 · 글자 조금 작게 */
html:not(:lang(ko)) :is(.rv-tile-n, .rv-sd-gn) { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
html:not(:lang(ko)) .rv-sd-gn { font-size: 12.5px; letter-spacing: -0.01em; }
/* CSS 가 넣는 글자(본문 목차 머리 · 달력 접기)도 그 말로 */
html:lang(en) .rn #article-view-content > nav::after { content: "Contents"; }
html:lang(ja) .rn #article-view-content > nav::after { content: "目次"; }
html:lang(zh-Hans) .rn #article-view-content > nav::after { content: "目录"; }
html:lang(zh-Hant) .rn #article-view-content > nav::after { content: "目錄"; }
html:lang(vi) .rn #article-view-content > nav::after { content: "Mục lục"; }
html:lang(en) .rn #article-view-content > nav:has(li:nth-child(9))::after { content: "Contents " counter(rn-toc); }
html:lang(ja) .rn #article-view-content > nav:has(li:nth-child(9))::after { content: "目次 " counter(rn-toc); }
html:lang(zh-Hans) .rn #article-view-content > nav:has(li:nth-child(9))::after { content: "目录 " counter(rn-toc); }
html:lang(zh-Hant) .rn #article-view-content > nav:has(li:nth-child(9))::after { content: "目錄 " counter(rn-toc); }
html:lang(vi) .rn #article-view-content > nav:has(li:nth-child(9))::after { content: "Mục lục " counter(rn-toc); }
@media (max-width: 599.98px) {
  html:lang(en) .rn #article-view-content > nav:has(li:nth-child(5))::after { content: "Contents " counter(rn-toc); }
  html:lang(ja) .rn #article-view-content > nav:has(li:nth-child(5))::after { content: "目次 " counter(rn-toc); }
  html:lang(zh-Hans) .rn #article-view-content > nav:has(li:nth-child(5))::after { content: "目录 " counter(rn-toc); }
  html:lang(zh-Hant) .rn #article-view-content > nav:has(li:nth-child(5))::after { content: "目錄 " counter(rn-toc); }
  html:lang(vi) .rn #article-view-content > nav:has(li:nth-child(5))::after { content: "Mục lục " counter(rn-toc); }
  html:lang(en) .rv-cal-l:has(.rv-cal-t:checked) span::after { content: " — hide"; }
  html:lang(ja) .rv-cal-l:has(.rv-cal-t:checked) span::after { content: "を閉じる"; }
  html:lang(zh-Hans) .rv-cal-l:has(.rv-cal-t:checked) span::after { content: " 收起"; }
  html:lang(zh-Hant) .rv-cal-l:has(.rv-cal-t:checked) span::after { content: " 收合"; }
  html:lang(vi) .rv-cal-l:has(.rv-cal-t:checked) span::after { content: " — thu gọn"; }
}
/* 한자 · 가나는 띄어쓰기가 없어 keep-all 이면 줄이 안 나뉜다 — 그 말 쪽은 보통 줄바꿈 */
html:lang(ja) body.rn, html:lang(zh-Hans) body.rn, html:lang(zh-Hant) body.rn { word-break: normal; line-break: strict; }

/* ---------------------------------------------------------------- 폭 */
@media (min-width: 390px) {
  :root { --gutter: 16px; --logo-h: 40px; }
  .rn-card, .rnx-today, .rn .pt-band, .rn .pt-sec, .rn .pt-head, .rn-net { padding-inline: 18px; }
}
@media (max-width: 359.98px) {
  :root { --thumb-w: 88px; --logo-h: 32px; }
  .rn-top-in { gap: 4px; }
  .rn-cats > summary, .rn-where > summary { padding: 0 8px; gap: 3px; }
  .rn-cats-v { display: none; }
  .rnx-stat { padding: 8px 7px 7px; }
  .rnx-stat-v { font-size: 19px; }
  .rnx-today-h { font-size: 23px; }
  .rn-cats-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 600px) {
  :root { --gutter: 24px; --fs-title-xl: 30px; --thumb-w: 140px; }
  .rn-main, .rn .pt-page { gap: 16px; }
  .rn-card, .rnx-today, .rn .pt-band, .rn .pt-sec, .rn .pt-head, .rn-net { padding: 20px 24px; }
  .rn-feed-list:not(.is-rest) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
  .rn-feed-list.is-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
  .rn-feed-list > .rn-post { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "body"; padding: 0; border-top: 0; }
  .rn-feed-list > .rn-post .rn-post-img { aspect-ratio: 16 / 9; }
  .rn-feed-list > .rn-post.is-lead { grid-column: 1 / -1; }
  .rn-cats-l { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rn-cats-pop, .rn-where-pop { left: auto; width: min(560px, calc(100vw - 2 * var(--gutter))); }
  .rn-where-pop { width: min(440px, calc(100vw - 2 * var(--gutter))); }
  .rnx-stats { gap: 8px; }
  .rn-np { grid-template-columns: 1fr 1fr; }
  .rn .pt-band-go { grid-template-columns: auto auto; justify-content: start; }
  .rnx-zone-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  :root { --bar: 64px; --logo-h: 44px; --fs-display: 30px; --fs-title-xl: 36px; --gutter: 32px; }
  body.rn.has-tabs { padding-bottom: 0; }
  .rn-tabs { position: static; display: flex; gap: 2px; order: 0; margin: 0 auto 0 16px; padding: 0; background: none; border: 0; box-shadow: none; }
  .rn-brand { margin-right: 0; }
  .rn-top-in:not(:has(.rn-tabs)) .rn-brand { margin-right: auto; }
  .rn-tabs a { flex-direction: row; gap: 6px; min-height: var(--tap-min); padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); font-size: var(--fs-body); font-weight: 700; }
  .rn-tabs a .rn-ico { width: 20px; height: 20px; }
  .rn-tabs a[aria-current] { background: var(--accent-tint); color: var(--accent-ink); }
  .rn-tabs a[aria-current]::before { display: none; }
  @media (hover: hover) { .rn-tabs a:hover { background: var(--surface); } }
  .rn-main.is-home { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding-top: 20px; }
  .rn-main.is-home > * { grid-column: 1 / -1; }
  .rnx-today:has(.rnx-band) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 28px; }
  .rnx-today:has(.rnx-band) > :not(.rnx-band) { grid-column: 1; }
  .rnx-today > .rnx-band { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .rn-feed-list:not(.is-rest), .rn-feed-list.is-rest { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
  .rn-feed-list > .rn-post.is-lead { grid-column: 1 / 3; grid-row: 1 / 3; }
  .rn-feed-list > .rn-post.is-lead .rn-post-t { font-size: 26px; line-height: 1.32; }
  .rn-feed-list > .rn-post.is-lead .rn-post-img { aspect-ratio: 16 / 10; }
  .rnx-zone-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rnx-zones.is-area .rnx-zone-list, .rnx-zone-list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn .pt-title { font-size: 38px; }
  .rn-read { padding-top: 28px; }
  .rn-net .container { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

/* 글 쪽 · 높이가 짧은 창(가로 휴대폰 844×390)에서는 아래 탭 막대 · 머리 고정을 푼다(읽는 창을 넓게) —
   탭은 머리 둘째 줄로 선다(DOM 은 머리 안 그대로 · 초점 순서 같음) */
@media (max-width: 999.98px) {
  body.rn.is-read .rn-top { position: static; }
  body.rn.is-read.has-tabs { padding-bottom: 0; }
  body.rn.is-read .rn-top-in { flex-wrap: wrap; }
  /* 줄바꿈 머리에서도 첫 줄(로고 · 지역 · 메뉴)은 한 줄 — 지역 단추가 남는 폭만 쓰고 줄이 넘치면 이름을 말줄임(390 「세종특별자치시」가 메뉴를 둘째 줄로 밀던 흠) */
  body.rn.is-read .rn-where { flex: 1 1 0; }
  body.rn.is-read .rn-where > summary { width: fit-content; margin-left: auto; }
  body.rn.is-read .rn-tabs { position: static; order: 9; flex: 1 1 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0; border-top: 1px solid var(--line); box-shadow: none; }
  body.rn.is-read .rn-tabs a { min-height: 48px; flex-direction: row; gap: 4px; font-size: 12.5px; }
  body.rn.is-read .rn-tabs a .rn-ico { width: 18px; height: 18px; }
}
@media (max-height: 500px) and (max-width: 999.98px) {
  .rn-top { position: static; }
  body.rn.has-tabs { padding-bottom: 0; }
  .rn-top-in { flex-wrap: wrap; }
  .rn-where { flex: 1 1 0; }
  .rn-where > summary { width: fit-content; margin-left: auto; }
  .rn-tabs { position: static; order: 9; flex: 1 1 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0; border-top: 1px solid var(--line); box-shadow: none; }
  .rn-tabs a { min-height: 48px; flex-direction: row; gap: 4px; }
  .rn-tabs a .rn-ico { width: 18px; height: 18px; }
  .rn-cats-pop, .rn-where-pop { max-height: none; }
}
@media (max-height: 500px) and (min-width: 1000px) {
  .rn-top { position: static; }
}
/* 고정 막대에 초점이 가려지지 않게: 탭·머리 높이만큼 스크롤 여백 */
body.rn.has-tabs :is(a, button, input, summary):focus-visible { scroll-margin-bottom: calc(var(--tabbar) + 16px); scroll-margin-top: calc(var(--bar) + 12px); }
@media (prefers-reduced-motion: reduce) { .rn * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .rn-top, .rn-tabs { position: static; } }

/* ==========================================================================
   모두프레스 매체 틀 — press.css (rn.css 위에 · 2026-12-06)
   --------------------------------------------------------------------------
   · /__press/css/press.css = rn.css(모두진 리뉴얼 토큰 · 머리 · 글 쪽 · 쪽 넘김 · 꼬리) + 이 파일(src/press/rn.ts rnCss).
   · 새 틀이 켜진 쪽에서만 나간다(시험 문 기본 · 본 블록은 PRESS_RN_PUBLIC). 옛 틀 쪽은 이 파일을 싣지 않는다.
   · 「주제 전문 매체」 꼴: 흰 바탕 · 굵은 머리 이름 · 분야 막대 · 톱 기사 + 주요 기사 · 오늘의 자료 · 분야별 묶음 · 최신 기사.
   · 사이트 색은 <head> 의 :root 변수(--accent …)만 — src/render/rntheme.ts. 클라이언트 JS 0.
   ========================================================================== */

body.rn.pm { background: var(--card); }
.pm .rn-main { gap: 28px; padding-top: 16px; padding-bottom: 8px; }
.pm .rn-card { box-shadow: 0 0 0 1px var(--line); }

/* 시험 문 띠(시험 문에서만 · 공개 화면에는 없다) */
.pm-ribbon { position: relative; z-index: 31; padding: 6px var(--gutter); background: var(--ink); color: #FFFFFF; font-size: 12.5px; line-height: 1.5; text-align: center; }
.pm-ribbon a { display: inline-block; padding: 4px 6px; color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- 머리 */
.pm-top { border-bottom: 0; }
.pm-top > .rn-top-in { border-bottom: 1px solid var(--line); }
/* 분야 막대는 머리(header) 안 — 애드센스 자동 광고가 로고와 막대 사이에 끼지 못하게(12-06 휴대폰 검수). 휴대폰은 머리 고정을 풀어 화면을 덜 가린다 */
@media (max-width: 699px) { .pm-top { position: relative; } }
.pm-top .rn-top-in { gap: 10px; }
.pm-brand { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: var(--bar); padding: 6px 0; }
.pm-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1.15; letter-spacing: -0.04em; }
.pm-logo::before { content: ""; flex: none; width: 8px; height: 20px; border-radius: 2px; background: var(--accent); }
.pm-kicker { margin-left: 16px; color: var(--muted); font-size: var(--fs-micro); font-weight: 700; letter-spacing: .02em; }
.pm-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.pm-tool { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap-min); padding: 0 12px; border-radius: var(--r-pill); color: var(--ink-2); font-size: var(--fs-label); font-weight: 700; white-space: nowrap; }
.pm-tool .rn-ico { width: 18px; height: 18px; }
.pm-tool.is-data { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .pm-tool:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } .pm-tool.is-data:hover { box-shadow: inset 0 0 0 2px rgb(0 0 0 / 22%); } }
@media (max-width: 519.98px) { .pm-tool .pm-tool-t { display: none; } .pm-tool { padding: 0 11px; } .pm-tool.is-data .pm-tool-t { display: inline; } .pm-tool.is-data { padding: 0 12px; } }
@media (max-width: 379.98px) { .pm-kicker { display: none; } .pm-logo { font-size: 20px; } }

/* 분야 막대(옛 분류 <li> 바이트 그대로 · 링크 수·주소 그대로 — 모양만) */
.pm-secbar { position: relative; background: var(--card); border-bottom: 2px solid var(--ink); }
.pm-secbar-in { display: flex; align-items: center; gap: 8px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.pm-secbar-in::-webkit-scrollbar { display: none; }
.pm-secbar-in:focus-within { -webkit-mask-image: none; mask-image: none; }
.pm-secbar-l, .pm-secbar-x { display: flex; gap: 0; flex: none; margin: 0; padding: 0; list-style: none; }
.pm-secbar-l li { float: none; }
.pm-secbar-l a, .pm-secbar-x a { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 12px; color: var(--ink-2); font-size: 15px; font-weight: 700; white-space: nowrap; }
.pm-secbar-l a.bo_cate_on { color: var(--ink); font-weight: 900; }
.pm-secbar-l a.bo_cate_on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.pm-secbar-x { padding-left: 8px; border-left: 1px solid var(--line); }
.pm-secbar-x a { color: var(--accent-ink); }
.pm-secbar-x a::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); }
@media (hover: hover) { .pm-secbar-l a:hover, .pm-secbar-x a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }

/* 날짜 · 한 줄 소개(첫 화면) */
.pm-mast { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; max-width: var(--wrap); margin-inline: auto; padding: 12px var(--gutter) 0; color: var(--muted); font-size: var(--fs-caption); }
.pm-mast-d { color: var(--ink-2); font-weight: 800; }
.pm-mast-m { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- 그림 칸 — 그림이 깨지면(주소가 없는 그림) 사이트 색 판으로 덮는다(JS 0) */
.pm-img { position: relative; display: block; overflow: hidden; border-radius: var(--r-m); background: linear-gradient(135deg, var(--accent-tint), var(--surface)); }
.pm-img img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
.pm-img img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-tint), var(--surface)); }
.pm-img img::after { content: attr(data-k); position: absolute; left: 12px; bottom: 10px; color: var(--accent-ink); font-size: 13px; font-weight: 800; }

/* ---------------------------------------------------------------- 기사 한 줄(공통) */
.pm-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "body img"; gap: 12px; align-items: start; }
.pm-item.is-noimg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; }
.pm-item .pm-img { grid-area: img; aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.pm-item.is-noimg .pm-img { display: none; }
.pm-item-b { grid-area: body; display: grid; align-content: start; gap: 4px; min-width: 0; }
.pm-item-t { color: var(--ink); font-size: 16px; line-height: 1.42; font-weight: 800; letter-spacing: -0.02em; }
.pm-item-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pm-item .rn-cat { position: relative; z-index: 2; justify-self: start; }
.pm-item-f { color: var(--muted); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .pm-item:hover .pm-item-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.pm-ai { display: inline-flex; align-items: center; height: 22px; margin-right: 6px; padding: 0 7px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); font-size: 11.5px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }

/* ---------------------------------------------------------------- 톱 기사 + 주요 기사 */
.pm-hero { display: grid; gap: 18px; }
.pm-lead { position: relative; display: grid; gap: 10px; align-content: start; }
.pm-lead .pm-img { aspect-ratio: 16 / 9; border-radius: var(--r-l); }
.pm-lead-t { color: var(--ink); font-size: 25px; line-height: 1.3; font-weight: 900; letter-spacing: -0.035em; }
.pm-lead-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pm-lead .rn-cat { position: relative; z-index: 2; justify-self: start; }
.pm-lead-s { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.pm-lead-f { color: var(--muted); font-size: var(--fs-caption); }
@media (hover: hover) { .pm-lead:hover .pm-lead-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; } }
.pm-tops { display: grid; align-content: start; }
.pm-tops > .pm-item { padding: 14px 0; border-top: 1px solid var(--line); }
.pm-tops > .pm-item:first-child { border-top: 0; padding-top: 0; }
.pm-tops-h { display: none; }
@media (min-width: 900px) {
  .pm-hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; }
  .pm-lead-t { font-size: 30px; }
  .pm-tops { padding-left: 24px; border-left: 1px solid var(--line); }
  .pm-tops > .pm-item { grid-template-columns: minmax(0, 1fr) 104px; }
}

/* ---------------------------------------------------------------- 오늘의 자료(사이트 자료 칸 = 칸 home.top 의 위젯) */
.pm-data { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-l); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pm-data-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.pm-data-h h2 { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: var(--fs-title-m); font-weight: 900; letter-spacing: -0.02em; }
.pm-data-h h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pm-data-l { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pm-data-l a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 14px; border-radius: var(--r-pill); background: var(--card); color: var(--accent-ink); font-size: var(--fs-label); font-weight: 800; box-shadow: inset 0 0 0 1px var(--accent-line); }
@media (hover: hover) { .pm-data-l a:hover { background: var(--accent); color: var(--on-accent); } }
.pm-data-w { display: grid; gap: 12px; min-width: 0; }
.pm-data-w:empty { display: none; }
/* 위젯도 바로 가기도 없으면 칸째 숨김(자료 위젯이 없는 사이트 · 자료가 빈 날) */
.pm-data:not(:has(.pm-data-l)):has(.pm-data-w:empty) { display: none; }
@media (min-width: 900px) { .pm-data-w:has(> .pw + .pw) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* 위젯(.pw)을 새 틀 옷으로 — 위젯 CSS 덩이(.pw{--pw-accent…})보다 두 클래스 셈이라 앞선다 */
.rn .pw { --pw-accent: var(--accent); --pw-accent-text: var(--on-accent); --pw-line: var(--line); --pw-mute: var(--muted); margin: 0; padding: 16px; border: 0; border-radius: var(--r-l); background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-size: var(--fs-body); }
.rn .pw .pw-h { font-size: var(--fs-title-s); font-weight: 800; letter-spacing: -0.02em; }
.rn .pw .pw-more { color: var(--accent-ink); }
.rn .pw.pw-plain, .rn .pw.pw-page { padding: 0; background: none; box-shadow: none; }
.rn .pm-data .pw { box-shadow: var(--elev-1); }
.rn-main > .pw, .pm-page-in > .pw { margin: 0; }
.pm-above { display: grid; gap: 12px; max-width: var(--wrap); margin: 24px auto 0; padding-inline: var(--gutter); }
.pm-above:empty { display: none; }

/* ---------------------------------------------------------------- 분야별 묶음 */
.pm-secs { display: grid; gap: 28px; }
.pm-sec { display: grid; align-content: start; gap: 0; min-width: 0; }
.pm-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.pm-sec-h h2 { font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.pm-sec-h h2 a::after { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 0 3px 8px; border: solid var(--accent); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
.pm-sec > .pm-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pm-sec > .pm-item:last-child { border-bottom: 0; }
.pm-sec > .pm-item.is-first { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "body"; }
.pm-sec > .pm-item.is-first .pm-img { aspect-ratio: 16 / 9; }
.pm-sec > .pm-item.is-first.is-noimg { grid-template-areas: "body"; }
@media (min-width: 700px) { .pm-secs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
@media (min-width: 1000px) { .pm-secs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- 최신 기사 + 곁 칸 */
.pm-cols { display: grid; gap: 24px; }
.pm-cols > * { min-width: 0; }
.pm-feed { display: grid; gap: 0; }
.pm-feed-h, .pm-side-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.pm-feed-h h2, .pm-side-h h2 { font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.pm-feed-h small { color: var(--muted); font-size: var(--fs-label); font-weight: 600; }
.pm-feed > .pm-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pm-feed > .pm-item .pm-img { width: 100%; }
.pm-feed > .pm-item .pm-item-s { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ink-2); font-size: var(--fs-label); line-height: 1.55; }
.pm-feed .tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; }
.pm-feed > .pw { margin: 12px 0; }
@media (min-width: 600px) { .pm-feed > .pm-item { grid-template-columns: minmax(0, 1fr) 168px; } }
.pm-side { display: grid; align-content: start; gap: 20px; }
.pm-side-l { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: pm-rank; }
.pm-side-l li { counter-increment: pm-rank; border-bottom: 1px solid var(--line); }
.pm-side-l a { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 6px; align-items: baseline; min-height: var(--tap); padding: 10px 0; color: var(--ink); font-size: var(--fs-label); font-weight: 700; line-height: 1.45; }
.pm-side-l a::before { content: counter(pm-rank); color: var(--accent-ink); font-weight: 900; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .pm-side-l a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.pm-side-box { padding: 16px; border-radius: var(--r-l); background: var(--surface); }
.pm-side-box h2 { margin-bottom: 8px; font-size: var(--fs-title-s); font-weight: 900; }
.pm-side-box .pm-data-l a { background: var(--card); }
@media (min-width: 1000px) { .pm-cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; } .pm-side { position: sticky; top: calc(var(--bar) + 16px); } }

/* 분야 쪽 머리 */
.pm-cathead { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.pm-cathead-k { color: var(--accent-ink); font-size: var(--fs-caption); font-weight: 800; letter-spacing: .04em; }
.pm-cathead h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.25; }
.pm-cathead p.pm-cathead-n { color: var(--muted); font-size: var(--fs-label); }

/* ---------------------------------------------------------------- 기사 쪽 */
.pm-readwrap { display: grid; gap: 32px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.pm-readwrap > * { min-width: 0; }
.pm-readwrap > .rn-read { width: 100%; max-width: var(--read); margin: 0; padding-inline: 0; }
@media (min-width: 1100px) { .pm-readwrap { grid-template-columns: minmax(0, var(--read)) 300px; justify-content: space-between; gap: 56px; } .pm-readwrap > .pm-side { position: sticky; top: calc(var(--bar) + 16px); padding-top: 28px; } }
.pm-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-bottom: 12px; color: var(--muted); font-size: var(--fs-caption); font-weight: 700; }
.pm-crumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); }
.pm-crumb a:hover { text-decoration: underline; }
.pm-crumb span[aria-hidden] { color: var(--line-strong); }
.pm .rn-art-title { font-size: 28px; line-height: 1.32; font-weight: 900; letter-spacing: -0.04em; }
@media (min-width: 600px) { .pm .rn-art-title { font-size: 34px; } }
.pm-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-label); }
.pm-by b { color: var(--ink); font-weight: 800; }
.pm-by .pm-ai { margin: 0; }
.pm-dates { color: var(--muted); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.pm .rn-art-head { gap: 12px; }
.pm .rn-art-upd { margin-top: -6px; }
.pm-more { margin-top: 32px; }
.pm-more .pm-sec-h { margin-bottom: 0; }
.pm-more-l { display: grid; gap: 0; }
.pm-more-l > .pm-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .pm-more-l { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.pm-datacard { margin-top: 28px; padding: 18px; border-radius: var(--r-l); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pm-datacard h2 { margin-bottom: 4px; font-size: var(--fs-title-s); font-weight: 900; }
.pm-datacard p { margin-bottom: 10px; color: var(--ink-2); font-size: var(--fs-label); }
.pm .rn-read > .pw, .pm .rn-art > .pw { margin: 16px 0; }

/* ---------------------------------------------------------------- 전용 쪽 · 정책 쪽 */
.pm-page-in { display: grid; gap: 16px; min-width: 0; }
.rn .container { width: auto; max-width: none; margin: 0; padding: 0; }
.rn .small { font-size: var(--fs-caption); }
.rn .text-center { text-align: center; }
.rn .table { width: 100%; border-collapse: collapse; font-size: var(--fs-label); }
.rn .table th, .rn .table td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.pm .rn-doc { padding-top: 8px; }

/* ---------------------------------------------------------------- 꼬리 */
.pm-foot { max-width: none; margin: 40px 0 0; padding: 0; background: var(--surface); border-top: 2px solid var(--ink); }
.pm-foot-in { display: grid; gap: 16px; max-width: var(--wrap); margin-inline: auto; padding: 24px var(--gutter) 12px; }
.pm-foot-brand { display: grid; gap: 4px; }
.pm-foot-brand .pm-logo { font-size: 20px; }
.pm-foot-brand p { color: var(--ink-2); font-size: var(--fs-label); }
.pm-foot .rn-net { background: var(--card); }
/* page_tail(바이트 그대로) 안 링크 — 글자가 길면 줄을 바꾼다(겹치지 않게) */
.pm-foot .rn-net .container { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.pm-foot .rn-net .container a { min-height: var(--tap-min); padding: 6px 10px; white-space: normal; text-align: center; line-height: 1.35; overflow-wrap: anywhere; }
@media (min-width: 1000px) { .pm-foot .rn-net .container { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
/* 하단 망(page_tail · 바이트 그대로)이 Bootstrap 격자 꼴(container > row > col-N > a — epassmobile · nasdoc)이어도 링크가 격자 칸이 되게 감싸개를 상자에서 뺀다(운영자 12-06 「함께보는 사이트 제대로 정렬안됐는데」) */
.pm-foot .rn-net .container > .row, .pm-foot .rn-net .container > .row > [class*="col-"] { display: contents; }
/* 사이트 문구 칸(page_main · 바이트 그대로)의 옛 Bootstrap 단추(btn btn-dark …) — 새 틀은 Bootstrap 을 싣지 않으니 같은 클래스에 단추 꼴만(운영자 12-06 「버튼처럼 보이게」) */
.rn-pagemain .text-center { text-align: center; }
.rn-pagemain .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin: 4px 3px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; vertical-align: middle; }
.rn-pagemain .btn-light, .rn-pagemain .btn-outline-dark { background: var(--card); color: var(--ink) !important; border-color: var(--line); }
@media (hover: hover) { .rn-pagemain .btn:hover { filter: brightness(0.92); text-decoration: none; } }
.rn-pagemain .btn:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
/* ── 사이트 문구 칸의 바로가기 묶음(옛 Bootstrap 단추가 든 .text-center) → 「바로가기」 카드 · 아이콘(선 그림 · 브랜드 마크 아님) — HTML 은 CMS2 바이트 그대로, 꼴만 CSS(운영자 12-06 「아이콘 넣고 사람들이 더 와닿게해」) ── */
.rn-pagemain > .text-center:has(> .btn) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px; border-radius: var(--r-l); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-line); text-align: left; }
.rn-pagemain > .text-center:has(> .btn) > br { display: none; }
.rn-pagemain > .text-center:has(> .btn)::before { content: "바로가기"; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.rn-pagemain > .text-center:has(> a[href*="kobus"])::before { content: "고속버스 시간표 · 예매 바로가기"; }
.rn-pagemain > .text-center:has(> .btn) > .btn { position: relative; justify-content: flex-start; gap: 10px; min-height: 56px; margin: 0; padding: 0 40px 0 16px; border-radius: var(--r-m); background: var(--card); color: var(--ink) !important; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); font-size: 16px; white-space: normal; text-align: left; }
.rn-pagemain > .text-center:has(> .btn) > .btn:first-of-type { grid-column: 1 / -1; min-height: 60px; background: var(--accent); color: #fff !important; border-color: transparent; font-size: 17px; }
.rn-pagemain > .text-center:has(> .btn) > .btn::before { content: ""; flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.rn-pagemain > .text-center:has(> .btn) > .btn::after { content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.rn-pagemain > .text-center:has(> .btn) > .btn[href*="/kobus"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.rn-pagemain > .text-center:has(> .btn) > .btn[href*="play.google.com"]::before, .rn-pagemain > .text-center:has(> .btn) > .btn[href*="apps.apple.com"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.8' width='10' height='18.4' rx='2.4'/%3E%3Cpath d='M10.8 17.8h2.4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.8' width='10' height='18.4' rx='2.4'/%3E%3Cpath d='M10.8 17.8h2.4'/%3E%3C/svg%3E"); }
.rn-pagemain > .text-center:has(> .btn) > .btn[href*="kobus.co.kr"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5A1.5 1.5 0 0 1 5.5 6h13A1.5 1.5 0 0 1 20 7.5V10a2 2 0 0 0 0 4v2.5a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 16.5V14a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14.5 6.5v11' stroke-dasharray='1.6 2.2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5A1.5 1.5 0 0 1 5.5 6h13A1.5 1.5 0 0 1 20 7.5V10a2 2 0 0 0 0 4v2.5a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 16.5V14a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14.5 6.5v11' stroke-dasharray='1.6 2.2'/%3E%3C/svg%3E"); }
.rn-pagemain > .text-center:has(> a[href*="kobus"])::before { }
@media (hover: hover) { .rn-pagemain > .text-center:has(> .btn) > .btn:hover { filter: none; border-color: var(--accent); color: var(--accent-ink) !important; } .rn-pagemain > .text-center:has(> .btn) > .btn:first-of-type:hover { filter: brightness(0.93); color: #fff !important; } }
@media (max-width: 560px) {
  .rn-pagemain > .text-center:has(> .btn) { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 8px; }
  .rn-pagemain > .text-center:has(> .btn) > .btn { min-height: 52px; padding: 0 30px 0 12px; font-size: 15px; gap: 8px; }
  .rn-pagemain > .text-center:has(> .btn) > .btn[href*="kobus.co.kr"] { grid-column: 1 / -1; }
}

.pm-foot .rn-policy { justify-content: flex-start; margin-top: 0; }
.pm-foot .rn-policy a { padding: 0 12px 0 0; }
.pm-foot .rn-copy { padding: 8px 0 4px; text-align: left; }
/* ── 애드센스 자동 광고(div.google-auto-placed)가 카드 안에 들어올 때 — 광고는 그대로 두고(숨기지 않음 · 정책) 카드가 깨지지 않게 자리만 옮긴다(12-06 휴대폰 검수) ── */
.pm-item-b > .google-auto-placed { order: 9; margin-top: 10px; min-width: 0; }
/* 카드 몸에 광고가 들어오면 몸 감싸개를 풀어(display: contents) 광고만 카드 폭 전체 줄로 — 글자는 왼쪽 칸 · 그림은 오른쪽 칸 그대로 */
.pm-item:has(> .pm-item-b > .google-auto-placed) { grid-template-areas: none; row-gap: 4px; }
.pm-item:has(> .pm-item-b > .google-auto-placed) > .pm-item-b { display: contents; }
.pm-item:has(> .pm-item-b > .google-auto-placed) > .pm-item-b > * { grid-column: 1; }
.pm-item:has(> .pm-item-b > .google-auto-placed) > .pm-img { grid-area: 1 / 2 / span 3 / 3; }
.pm-item.is-noimg:has(> .pm-item-b > .google-auto-placed) > .pm-item-b > * { grid-column: 1 / -1; }
.pm-item:has(> .pm-item-b > .google-auto-placed) > .pm-item-b > .google-auto-placed { grid-column: 1 / -1; margin-top: 10px; }
/* 머리(header) 안에 광고가 들어오면 분야 막대 아래로 보내고, 그때는 머리 고정을 푼다(광고가 화면 위에 붙어 따라오지 않게) */
.pm-top { display: flex; flex-direction: column; }
.pm-top > .rn-top-in { width: 100%; box-sizing: border-box; }
.pm-top > .pm-secbar { order: 1; }
.pm-top > .google-auto-placed { order: 2; width: 100%; }
.pm-top:has(> .google-auto-placed) { position: relative; }
.pm-item > .google-auto-placed { grid-area: auto; grid-column: 1 / -1; min-width: 0; }
.pm-tops > .google-auto-placed, .pm-sec > .google-auto-placed, .pm-feed > .google-auto-placed, .pm-secs > .google-auto-placed { margin: 12px 0; }
.rn-pagemain > .text-center > .google-auto-placed { grid-column: 1 / -1; }

/* 채워지지 않은 애드센스 칸 접기 — 구글 도움말 「광고가 없을 때 칸 숨기기」 꼴(ins.adsbygoogle[data-ad-status="unfilled"]) · 채워진 광고는 그대로 */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.google-auto-placed:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
/* 로고 아이콘(사이트 모양 SITE_LOOK.mark — 지금 epassmobile.co.kr 고속버스) — 아이콘이 있으면 글자 앞 강조색 막대는 뺀다 */
.pm-mark { flex: none; width: 40px; height: 40px; }
.pm-mark .a { fill: var(--accent); }
.pm-mark .w { fill: #fff; }
.pm-mark .ws { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pm-brand.has-mark { flex-direction: row; align-items: center; gap: 10px; }
.pm-brand-t { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.has-mark .pm-logo::before { display: none; }
.has-mark .pm-kicker { margin-left: 0; }
.pm-foot-brand.has-mark { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.pm-foot-brand.has-mark > .pm-mark { grid-row: 1 / span 2; width: 36px; height: 36px; }
/* 휴대폰 머리 줄 — 아이콘 + 글자 로고 + 찾기 + 자료 단추가 한 줄에 들어가게(12-06 실측: 390px 에서 9px · 360px 에서 14px 넘침) */
@media (max-width: 479.98px) {
  .pm-mark { width: 32px; height: 32px; }
  .pm-brand.has-mark { gap: 7px; }
  .has-mark .pm-logo { font-size: 18px; }
  .pm-brand { min-width: 0; flex: 0 1 auto; }
  .pm-brand-t, .pm-logo { min-width: 0; }
  .pm-tools { flex: none; gap: 2px; }
  .pm-tool.is-data { padding: 0 10px 0 9px; font-size: 13px; }
}
@media (max-width: 379.98px) { .pm-tool.is-data .pm-tool-t { display: none; } .pm-tool.is-data { padding: 0 11px; } }

/* 격자 · 흐름 칸의 자식은 내용보다 좁아질 수 있게(min-width:auto 가 넓은 표 · 긴 낱말 크기로 칸을 늘려 쪽 전체가 옆으로 밀리던 것 — 12-06 /bus/route 375px 실측) */
.rn-main > *, .pm-page-in > *, .pm-cols > *, .pm-readwrap > *, .pm-secs > *, .pw-page > * { min-width: 0; }
.pm-page-in .container { max-width: 100%; }
.rn-art img, .rn-art iframe, .rn-art video, .pm-page-in img { max-width: 100%; height: auto; }
@media (max-width: 699.98px) { .rn-art table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
.rn-art pre { max-width: 100%; overflow-x: auto; }
.rn-art, .pm-page-in { overflow-wrap: break-word; }
