@charset "utf-8";
/* ==========================================================================
   모두진 지역 포털 — portal.css  (명세: SPEC.md · 기준일 2026-11-16 KST)
   --------------------------------------------------------------------------
   · 기존 진의 CSS 세 장(fonts.css → default.css → bootstrap 4.6.2) 뒤에 이 한 장만 붙인다.
   · 모든 선택자는 .pt- 로 시작한다. 전역 선택자(body, a, p …)는 쓰지 않는다.
     포털 칸은 늘 .pt-root 를 단 섬(island) 안에 있고, 되돌림은 :where() 로 특정도를 낮춘다.
   · 진의 default.css 가 p { word-break: break-all } 를 건다 → .pt-root 안에서 keep-all 로 되돌린다.
   · 클라이언트 JS 없음. 상호작용은 링크 · :target · :hover · :focus-visible 만.
   · 색은 진에 이미 있는 값(#222 · #e5e5e5 · #d2d2d2 · #f0f0f0 · 부트스트랩 파랑 계열)을 쓴다.
     「문」(modoo.io 링크 카드): modoo.io 를 나타내는 글자(문패 「modoo.io」)만 본체 브랜드 보라 #7C3AED(내규 N-001 5조)이고,
     표지는 본체가 만든 대표 마크 파일을 고치지 않고 그대로 싣는다(N-001 1·2·6조 — 직접 그리지 않음 · 테두리·그림자·색 바꾸기 없음).
     문의 테두리·hover·초점은 진의 중립색과 파랑 그대로. 창빛(#FFD84D)은 쓰지 않는다(N-001 3조 — 마크 파일 안의 ㅁ 은 마크 그 자체).
   · 대비(흰 바탕 기준): 본문 #212529 15.4 · 제목 #222 15.9 · 보조 #666 5.7 · 파랑 #0062cc 5.8 ·
     짙은 파랑 #004a99 8.6 · 일요일 #c82333 5.6 · 문패 보라 #7C3AED 5.7 — 모두 4.5:1 이상.
   ========================================================================== */

/* 제목 글꼴: 진 fonts.css 와 같은 파일·같은 주소(새 글꼴 아님 · 한 번만 내려받는다)를 swap 으로 한 번 더 이름 붙인다 —
   진 fonts.css 는 block 이라 느린 망에서 h1·행사 제목이 몇 초 빈칸이 된다(1판 검토 a11y). 진 CSS 바이트는 그대로. */
@font-face { font-family: "PT Head"; src: url("/fonts/NEXON%20Lv2%20Gothic%20Medium.woff") format("woff"); font-display: swap; }

/* ---------- 0. 토큰 · 바탕 ---------- */
.pt-root {
  /* 색 */
  --pt-ink: #222;            /* 제목 · 진 글 목록 제목과 같은 값 · 15.9:1 */
  --pt-text: #212529;        /* 본문 · 부트스트랩 body · 15.4:1 */
  --pt-text-2: #444;         /* 진한 보조 · 9.7:1 */
  --pt-muted: #666;          /* 보조 글 · 흰 바탕 5.7:1 · #f7f7f7 위 5.4:1 · #eaf3ff 위 5.1:1 */
  --pt-line: #e5e5e5;        /* 진 머리·목록 가는 줄 */
  --pt-line-2: #d2d2d2;      /* 진 글 제목 밑줄 · 단추 테두리 */
  --pt-row: #f0f0f0;         /* 진 「함께 보면 좋은 글」 줄 */
  --pt-wash: #f7f7f7;        /* 옅은 바탕 */
  --pt-tag: #f1f1f1;         /* 태그 바탕(진 .tags .tag #ececec 를 한 단 밝게) */
  --pt-blue: #0062cc;        /* 글자 파랑 · 부트스트랩 #007bff 를 AA 로 한 단 짙게 · 5.8:1 */
  --pt-blue-deep: #004a99;   /* 옅은 파랑 바탕 위 글자 · 8.6:1(#eaf3ff 위 7.7:1) */
  --pt-blue-tint: #eaf3ff;   /* 칩·날짜 칸·진행 막대 바탕 */
  --pt-blue-line: #b8d6fb;   /* 칩 테두리(장식) */
  --pt-red: #c82333;         /* 일요일 · 5.6:1 */
  --pt-red-deep: #a71d2a;    /* 마감 배지 글자 · #fdeced 위 6.6:1 */
  --pt-red-tint: #fdeced;
  --pt-door: #7C3AED;        /* 문패 「modoo.io」 글자만 — 본체 브랜드 보라(내규 N-001 5조) · 흰 바탕 5.7:1 */
  --pt-focus: #0062cc;
  /* 확장판(명세 2판 3.5) — 새 색은 이 둘뿐 */
  --pt-label: #595959;       /* 광고 라벨 「광고」 · 흰 바탕 7.0:1(1판 끝남 배지와 같은 값) */
  --pt-field: #767676;       /* 검색 입력 칸 테두리(입력 경계) · 흰 바탕 4.54:1(비텍스트 3:1 넘음) */
  /* 글꼴 */
  --pt-head: "PT Head", "NEXON Lv2 Medium", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --pt-latin: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* 크기 단계(px) */
  --pt-fs-xs: 12px; --pt-fs-sm: 13px; --pt-fs-md: 15px; --pt-fs-lg: 17px; --pt-fs-xl: 20px; --pt-fs-h1: 34px;
  /* 간격(4px 눈금) */
  --pt-s1: 4px; --pt-s2: 8px; --pt-s3: 12px; --pt-s4: 16px; --pt-s5: 20px; --pt-s6: 24px; --pt-s8: 32px; --pt-s10: 40px;
  /* 모서리 · 그림자 · 터치 */
  --pt-r-sm: 4px; --pt-r: 8px; --pt-pill: 999px;
  --pt-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .06);
  --pt-tap: 44px;

  color: var(--pt-text);
  font-size: var(--pt-fs-md);
  line-height: 1.6;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
/* 되돌림 — 특정도 (0,1,0): 부트스트랩·default.css 의 태그 규칙(0,0,1)은 이기고, 뒤에 오는 부품 규칙에는 진다 */
.pt-root :where(h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure) { margin: 0; padding: 0; }
.pt-root :where(ul, ol) { list-style: none; }
.pt-root :where(h1, h2, h3, h4) { font-size: inherit; line-height: 1.35; }
.pt-root :where(p, li, dt, dd, span, a, h1, h2, h3, h4, time, b, strong) { word-break: keep-all; }
.pt-root :where(a) { color: inherit; text-decoration: none; }
.pt-root :where(a:hover) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pt-root :where(a, summary, button, label):focus-visible { outline: 2px solid var(--pt-focus); outline-offset: 2px; border-radius: 2px; }
/* 검색 상자 입력 칸(6.19)은 모서리를 바꾸지 않는다 — 글자 칸은 누르기만 해도 :focus-visible 이라 누를 때마다 8px → 2px 로 네모가 됐다(r4 검토 · 옆 「찾기」 단추는 8px) */
.pt-root :where(input):focus-visible { outline: 2px solid var(--pt-focus); outline-offset: 2px; }
.pt-root :where(b, strong) { font-weight: 700; }
.pt-root :where(img) { max-width: 100%; height: auto; }
.pt-num, .pt-root time { font-variant-numeric: tabular-nums; }
.pt-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 포털 쪽 본문 칸 — 진 목록과 같은 단(.row.main 780px) · 같은 여백: 넓을 때 24px(px-4) · 800 미만 0(mpx-0 → 바깥 .container 15px 만) */
.pt-page { padding: 4px 24px 48px; }

/* ---------- 1. 위치 줄 ---------- */
.pt-crumb ol { display: flex; flex-wrap: wrap; align-items: center; row-gap: 24px; font-size: var(--pt-fs-sm); color: var(--pt-muted); }   /* 줄이 접히면(달 쪽 네 칸 · 320) 위아래 줄의 44px 누르는 칸이 겹치지 않게 줄 사이 24px(한 줄이면 영향 없음 · 3판) */
.pt-crumb li { display: inline-flex; align-items: center; }
.pt-crumb li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px 0 8px; border: solid #999; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.pt-crumb a { color: var(--pt-muted); padding: 12px 4px; margin: -12px -4px; }      /* 글자는 작게 · 누르는 칸은 44px */
.pt-crumb [aria-current] { color: var(--pt-text-2); }

/* ---------- 2. 허브 머리(쪽 머리) ---------- */
.pt-head { padding: var(--pt-s5) 0 var(--pt-s5); border-bottom: 1px solid var(--pt-line-2); }
.pt-title { font-family: var(--pt-head); font-weight: 400; font-size: var(--pt-fs-h1); line-height: 1.25; letter-spacing: -.02em; color: var(--pt-ink); }
.pt-title-en { display: block; margin-top: var(--pt-s1); font-family: var(--pt-latin); font-size: var(--pt-fs-md); font-weight: 400; letter-spacing: 0; color: var(--pt-muted); }  /* 공식 영문 이름이 있을 때만 */
.pt-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: var(--pt-s4); padding: 10px 14px; border-radius: var(--pt-r); background: var(--pt-wash); font-size: var(--pt-fs-md); line-height: 1.5; color: var(--pt-text); }
.pt-now-day { font-weight: 700; color: var(--pt-ink); white-space: nowrap; }
.pt-now-day::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--pt-blue); box-shadow: 0 0 0 3px var(--pt-blue-tint); vertical-align: 1px; }
.pt-now a { color: var(--pt-blue); font-weight: 700; }
.pt-now .pt-dday { height: 22px; margin-right: 6px; vertical-align: 1px; }
/* 사실 줄: 모든 항목이 왼쪽 선 + 12px 여백을 갖고, 줄 전체를 왼쪽으로 13px 당겨 그만큼 잘라 낸다 —
   두 줄로 접혀도 줄마다 첫 항목이 x=0 에 맞는다(첫 항목만 덮어쓰면 둘째 줄 첫 항목이 들여 써진다 · 2판 검토) */
.pt-facts { display: flex; flex-wrap: wrap; margin-top: var(--pt-s3); margin-left: -13px; font-size: 14px; color: var(--pt-muted); overflow: hidden; clip-path: inset(0 0 0 13px); }
.pt-facts li { position: relative; padding: 0 12px; border-left: 1px solid var(--pt-line-2); line-height: 1.4; white-space: nowrap; }
.pt-facts b { color: var(--pt-ink); }

/* ---------- 3. 칸(섹션) ---------- */
.pt-sec { margin-top: var(--pt-s10); }
.pt-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: var(--pt-s3); }
/* 칸 제목 — 진 글 쪽 「함께 보면 좋은 글」 머리와 같은 꼴(굵게 · 왼쪽 3px 막대 #333) */
.pt-sec-title { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--pt-ink); border-left: 3px solid #333; padding-left: 9px; }
.pt-count { margin-left: 2px; font-size: var(--pt-fs-md); font-weight: 400; color: var(--pt-muted); font-variant-numeric: tabular-nums; }
.pt-more { flex: none; padding: 12px 0; margin: -12px 0; font-size: 14px; font-weight: 700; color: var(--pt-blue); white-space: nowrap; }
.pt-more::after { content: " →"; }
.pt-sec-note { margin: -4px 0 var(--pt-s3); font-size: var(--pt-fs-sm); line-height: 1.55; color: var(--pt-muted); }
.pt-sec-foot { margin-top: var(--pt-s3); font-size: var(--pt-fs-sm); color: var(--pt-muted); }
/* 짧은 안내 — 빈 칸 대신 사실 한 줄과 다음 걸음(「곧」 · 「준비 중」 금지) */
.pt-state { margin-top: var(--pt-s3); padding: 12px 14px; border: 1px solid var(--pt-line); border-radius: var(--pt-r); background: var(--pt-wash); font-size: 14px; line-height: 1.6; color: var(--pt-text); }
.pt-state b { color: var(--pt-ink); }
.pt-state a { color: var(--pt-blue); font-weight: 700; }

/* ---------- 4. 행사 항목 ---------- */
.pt-evs { border-top: 1px solid var(--pt-line); }
.pt-ev { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "date body dday"; column-gap: var(--pt-s4); align-items: start; padding: var(--pt-s4) 0; border-bottom: 1px solid var(--pt-row); }
.pt-ev-body { grid-area: body; min-width: 0; }
.pt-ev-sgg { display: inline-block; margin-right: 2px; font-family: var(--pt-latin); font-size: var(--pt-fs-xs); font-weight: 700; color: var(--pt-muted); vertical-align: 2px; }   /* 시군구가 여럿인 진에서만 */
.pt-ev-title { font-family: var(--pt-head); font-weight: 400; font-size: var(--pt-fs-lg); line-height: 1.45; color: var(--pt-ink); }
.pt-ev-title a { color: inherit; }
.pt-ev-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }       /* 줄 전체가 눌린다(글이 있는 행사만) */
@media (hover: hover) { .pt-ev:hover .pt-ev-title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
/* 달력 막대를 누르면 오는 목록 줄(#ev-id): 어느 줄인지 옅은 파랑으로(12px 은 휴대폰 바깥 여백 15px 안) */
.pt-ev { scroll-margin-top: 12px; }
.pt-ev:target { background: var(--pt-blue-tint); box-shadow: -12px 0 0 var(--pt-blue-tint), 12px 0 0 var(--pt-blue-tint); }
.pt-ev:target .pt-ev-title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pt-ev-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--pt-muted); }
.pt-ev-when { font-weight: 700; color: var(--pt-blue-deep); white-space: nowrap; }
.pt-ev-where::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #999; }
.pt-ev-fee { display: inline-block; padding: 0 7px; border-radius: var(--pt-pill); background: #e9f6ee; color: #146c43; font-size: var(--pt-fs-xs); font-weight: 700; line-height: 20px; }   /* 6.0:1 */
.pt-ev-post { margin-top: 6px; font-size: var(--pt-fs-sm); color: var(--pt-muted); }
.pt-ev-post b { font-weight: 700; color: var(--pt-text-2); }
.pt-ev.is-past .pt-ev-title, .pt-ev.is-past .pt-ev-when { color: var(--pt-text-2); }

/* 날짜 칸 — 숫자는 읽기 쉽게 크게, 화면 낭독은 본문 <time> 이 맡는다(aria-hidden) */
.pt-date { grid-area: date; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; min-height: 64px; padding: 7px 0 6px; border-radius: var(--pt-r); background: var(--pt-blue-tint); color: var(--pt-blue-deep); line-height: 1; font-variant-numeric: tabular-nums; }
.pt-date-m { font-size: var(--pt-fs-xs); font-weight: 700; }
.pt-date-d { margin: 4px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pt-date-w { font-size: var(--pt-fs-xs); color: var(--pt-text-2); }
.pt-date-w.is-sun { color: var(--pt-red); }
.pt-date-w.is-sat { color: var(--pt-blue); }
.pt-ev.is-past .pt-date { background: var(--pt-tag); color: #555; }
/* 이번 달이 아닌 달 쪽의 마감일 없는 신청(시작 지남): 회색 날짜 칸 — 지난 달에 열린 신청처럼 보이지 않게(4판) */
.pt-ev.is-open .pt-date { background: var(--pt-tag); color: #555; }

/* 상태 배지 — 색만으로 말하지 않는다(늘 글자: 진행 중 · D-n · 끝남 · 마감 D-n) */
.pt-dday { grid-area: dday; justify-self: end; display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-pill); background: #fff; color: var(--pt-text-2); font-size: var(--pt-fs-xs); font-weight: 700; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-dday.is-now { border-color: var(--pt-blue); background: var(--pt-blue); color: #fff; }                    /* 진행 중 · 5.8:1 */
.pt-dday.is-soon { border-color: var(--pt-blue-line); background: var(--pt-blue-tint); color: var(--pt-blue-deep); }  /* 7일 안 */
.pt-dday.is-end { border-color: transparent; background: var(--pt-tag); color: #595959; }                    /* 끝남 · 6.2:1 */
.pt-dday.is-due { border-color: #f5c2c7; background: var(--pt-red-tint); color: var(--pt-red-deep); }          /* 신청 마감 임박 */
.pt-dday.is-open { border-color: var(--pt-line-2); background: #fff; color: #595959; }                          /* 마감 미정(마감일 없는 신청) · 7.0:1 — 묶음 단계의 회색 「마감 미정」과 같은 중립 꼴(4판) */

/* 같은 글에서 나온 일정 묶음(접수 → 발표 → 추첨 → 계약) */
.pt-steps { display: grid; margin-top: var(--pt-s3); }
.pt-step { position: relative; display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr); column-gap: var(--pt-s3); padding: 3px 0 3px 22px; font-size: 14px; line-height: 1.5; }
.pt-step::before { content: ""; position: absolute; z-index: 1; left: 2px; top: 8px; width: 11px; height: 11px; border: 2px solid var(--pt-blue); border-radius: 50%; background: #fff; box-sizing: border-box; }
.pt-step:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 14px; height: 100%; border-left: 1px solid var(--pt-blue-line); }
.pt-step-when { font-weight: 700; color: var(--pt-blue-deep); white-space: nowrap; }
.pt-step-what { color: var(--pt-text-2); }
.pt-step.is-next::before { background: var(--pt-blue); box-shadow: 0 0 0 3px var(--pt-blue-tint); }
.pt-step.is-past::before { border-color: #bbb; background: #bbb; }
.pt-step.is-past .pt-step-when, .pt-step.is-past .pt-step-what { font-weight: 400; color: var(--pt-muted); }
/* 마감일 없는 신청 단계(「마감 미정」): 회색 테두리 빈 동그라미 — 아직 오지 않은 단계(파란 빈 동그라미)·다음 단계(파랑 채움)와 가른다(4판) */
.pt-step.is-open::before { border-color: #999; background: #fff; box-shadow: none; }
.pt-step-done, .pt-step-open { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: var(--pt-pill); background: var(--pt-tag); color: #595959; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; }

/* ---------- 5. 소식 ---------- */
.pt-news { border-top: 1px solid var(--pt-line); }
.pt-news-lead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--pt-s5); padding: var(--pt-s4) 0 var(--pt-s5); border-bottom: 1px solid var(--pt-row); }
.pt-news-title { font-family: var(--pt-head); font-weight: 400; font-size: var(--pt-fs-xl); line-height: 1.4; color: var(--pt-ink); }
.pt-news-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* 첫 글은 칸 전체가 눌린다 */
@media (hover: hover) { .pt-news-lead:hover .pt-news-title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.pt-news-ex { margin-top: var(--pt-s2); font-size: var(--pt-fs-md); line-height: 1.65; color: var(--pt-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* 첫 소식 메타: 조각(형제 요소)마다 앞에 점 칸(15px)을 두고 flex 로 줄을 바꾼다 — 조각은 통째로 다음 줄로 가고, 줄 머리에 온 점은 왼쪽으로
   15px 당겨 그만큼 잘라 낸다(사실 줄 .pt-facts 와 같은 수법 · 5판 검토: 인라인 「* + *::before」는 점·한 글자가 홀로 떨어졌다).
   15px = 휴대폰 단 여백(col-12) 안 — 화면 왼쪽 밖으로 나가지 않는다. AI 표시(테두리 꼬리표)는 점 대신 같은 너비의 왼쪽 여백 */
.pt-news-meta { display: flex; flex-wrap: wrap; align-items: baseline; margin: 10px 0 0 -15px; font-size: var(--pt-fs-sm); color: var(--pt-muted); clip-path: inset(0 0 0 15px); }
.pt-news-meta > *::before { content: "·"; display: inline-block; width: 15px; text-align: center; color: #999; }
.pt-news-meta > .pt-ai { margin-left: 15px; }
.pt-news-meta > .pt-ai::before { content: none; }
.pt-news-thumb { display: block; align-self: start; aspect-ratio: 4 / 3; border-radius: var(--pt-r); overflow: hidden; background: var(--pt-wash); }
.pt-news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-news-link { display: flex; align-items: baseline; gap: 14px; min-height: 45px; padding: 10px 0; border-bottom: 1px solid var(--pt-row); color: var(--pt-ink); }
.pt-news-date { flex: none; width: 44px; font-size: var(--pt-fs-sm); color: var(--pt-muted); }
.pt-news-t { min-width: 0; font-size: 16px; line-height: 1.5; }

/* ---------- 6. 읍면동 태그 · 동네별 소식 ---------- */
.pt-emd-group { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--pt-s3); align-items: start; }
.pt-emd-group + .pt-emd-group { margin-top: var(--pt-s3); }
.pt-emd-label { padding-top: 6px; font-size: var(--pt-fs-sm); font-weight: 700; color: var(--pt-muted); }
.pt-tags { display: flex; flex-wrap: wrap; gap: 10px 8px; }
/* 진의 태그(#ececec · 둥근 4px)와 같은 꼴 · 보이는 높이 34px, 누르는 칸은 ::after 로 44px */
.pt-tag { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border-radius: var(--pt-r-sm); background: var(--pt-tag); color: var(--pt-ink); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.pt-tag::after { content: ""; position: absolute; inset: -5px 0; }
.pt-tag:hover { background: var(--pt-blue-tint); color: var(--pt-blue-deep); text-decoration: none; }
.pt-tag-h { margin-right: 1px; color: var(--pt-muted); }
.pt-tag-n { font-size: var(--pt-fs-xs); font-weight: 700; color: var(--pt-muted); font-variant-numeric: tabular-nums; }
/* 동네 판: 태그(#dong-{법정동코드})를 누르면 그 판이 열린다(:target). 아무것도 안 눌렀으면 첫 판. */
.pt-emd-panels { margin-top: var(--pt-s4); }
.pt-emd-panel { display: none; padding: 14px 16px 4px; border: 1px solid var(--pt-line); border-radius: var(--pt-r); scroll-margin-top: 16px; }
.pt-emd-panel:target { display: block; }
.pt-emd-panels:not(:has(.pt-emd-panel:target)) > .pt-emd-panel:first-child { display: block; }   /* :has 를 못 읽는 옛 브라우저는 태그를 눌러야 열린다 */
.pt-emd-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding-bottom: var(--pt-s2); border-bottom: 1px solid var(--pt-line); }
.pt-emd-panel-title { font-family: var(--pt-head); font-weight: 400; font-size: 18px; color: var(--pt-ink); }
.pt-emd-panel-title .pt-count { font-family: var(--pt-latin); font-size: 14px; }
.pt-emd-code { font-size: var(--pt-fs-xs); color: var(--pt-muted); white-space: nowrap; }
.pt-emd-panel a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pt-s4); min-height: var(--pt-tap); padding: 10px 0; border-bottom: 1px solid var(--pt-row); color: var(--pt-ink); }
.pt-emd-panel li:last-child a { border-bottom: 0; }
.pt-emd-panel time { flex: none; font-size: var(--pt-fs-sm); color: var(--pt-muted); }

/* ---------- 7. 이웃 지역(rg_near 가 있을 때만) ---------- */
.pt-near { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--pt-s2); }
.pt-near-link { display: flex; flex-direction: column; justify-content: center; min-height: var(--pt-tap); padding: 8px 14px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-r); background: #fff; color: var(--pt-ink); }
.pt-near-link:hover { border-color: var(--pt-blue-line); background: var(--pt-blue-tint); text-decoration: none; }
.pt-near-name { font-family: var(--pt-head); font-weight: 400; font-size: 16px; line-height: 1.35; }
.pt-near-sub { font-size: var(--pt-fs-xs); color: var(--pt-muted); }

/* ---------- 8. modoo.io 링크 카드 = 「문」 (생활 데이터 · For Foreigners 공통 꼴 하나) ---------- */
.pt-doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--pt-s3); }
.pt-door { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-r); background: #fff; color: var(--pt-ink); transition: border-color .15s ease, background-color .15s ease; }
.pt-door:hover { border-color: #999; background: var(--pt-wash); text-decoration: none; }
/* 표지 = 본체 대표 마크 파일 그대로(24px · 정사각 원본 48px 의 절반 — 늘이기·테두리·그림자·색 바꾸기 없음 · 장식이라 aria-hidden) */
.pt-door-mark { display: block; width: 24px; height: 24px; }
.pt-door-mark picture, .pt-door-mark img { display: block; width: 24px; height: 24px; }
.pt-door-body { display: grid; gap: 1px; min-width: 0; }
.pt-door-kind { font-size: var(--pt-fs-xs); font-weight: 700; color: var(--pt-muted); }
.pt-door-label { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--pt-ink); }
.pt-door-plate { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border: 1px solid var(--pt-line-2); border-radius: 6px; background: #fff; color: var(--pt-door); font-family: var(--pt-latin); font-size: var(--pt-fs-xs); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pt-door-plate::after { content: "↗"; content: "↗" / ""; }   /* 그림 글자는 낭독 이름에서 뺀다(대체 글자 "" — 모르는 브라우저는 첫 줄 · 10.13 · r1 검토) */
.pt-code { display: inline-block; padding: 0 6px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-r-sm); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--pt-fs-xs); font-weight: 700; color: var(--pt-ink); line-height: 20px; }
/* For Foreigners — 외국어 카드가 1장 이상일 때만 칸을 그린다 */
.pt-ff .pt-sec-title { font-family: var(--pt-latin); }
.pt-ff-lead { margin: -4px 0 var(--pt-s3); font-family: var(--pt-latin); font-size: 14px; line-height: 1.55; color: var(--pt-text-2); word-break: normal; }

/* ---------- 9. 행사 달력 ---------- */
.pt-mnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--pt-s2); margin-top: var(--pt-s6); }
.pt-mnav-now { font-family: var(--pt-head); font-weight: 400; font-size: 24px; letter-spacing: -.01em; color: var(--pt-ink); text-align: center; white-space: nowrap; }
.pt-mnav-go { display: inline-flex; align-items: center; gap: 4px; min-height: var(--pt-tap); padding: 0 12px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-r); background: #fff; color: var(--pt-ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.pt-mnav-go:hover { border-color: #999; text-decoration: none; }
.pt-mnav-go small { font-size: var(--pt-fs-xs); font-weight: 400; color: var(--pt-muted); }
.pt-mnav-go.is-prev { justify-self: start; }
.pt-mnav-go.is-next { justify-self: end; }
/* 달력 격자는 보는 그림(aria-hidden). 화면 낭독과 검색은 아래 목록(<time>)이 정본이다. */
.pt-cal { margin-top: var(--pt-s4); border: 1px solid var(--pt-line); border-radius: var(--pt-r); overflow: hidden; background: #fff; }
.pt-cal-dow, .pt-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pt-cal-dow { background: var(--pt-wash); border-bottom: 1px solid var(--pt-line); }
.pt-cal-dow span { padding: 8px 0; text-align: center; font-size: var(--pt-fs-sm); font-weight: 700; color: var(--pt-text-2); }
.pt-cal-dow .is-sun { color: var(--pt-red); }
.pt-cal-dow .is-sat { color: var(--pt-blue); }
.pt-cal-week { grid-auto-rows: min-content; align-content: start; row-gap: 3px; min-height: 92px; padding-bottom: 8px;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), var(--pt-row) calc(100% - 1px)); background-size: calc(100% / 7) 100%; }
.pt-cal-week + .pt-cal-week { border-top: 1px solid var(--pt-line); }
.pt-cal-day { grid-row: 1; position: relative; padding: 8px 8px 2px; font-size: 14px; font-weight: 700; line-height: 22px; color: var(--pt-text); font-variant-numeric: tabular-nums; }
.pt-cal-day.is-sun { color: var(--pt-red); }
.pt-cal-day.is-sat { color: var(--pt-blue); }
.pt-cal-day.is-past { font-weight: 400; }
.pt-cal-day.is-blank { visibility: hidden; }
.pt-cal-day.is-today .pt-cal-num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -3px 0 -3px -6px; border-radius: 50%; background: var(--pt-blue); color: #fff; }
.pt-cal-day.is-today::after { content: "오늘"; margin-left: 4px; font-size: 11px; font-weight: 700; color: var(--pt-blue); }
.pt-cal-more { position: absolute; top: 9px; right: 6px; font-size: 11px; font-weight: 700; color: var(--pt-muted); }
/* 막대: 서버가 --c(시작 칸 1~7) · --s(칸 수) · --r(줄 번호, 2부터)를 적는다. 한 주에 3줄까지, 넘으면 그날 칸에 +n */
.pt-cal-bar { grid-column: var(--c) / span var(--s); grid-row: var(--r, 2); position: relative; margin: 0 4px; height: 22px; padding: 0 8px; border-radius: var(--pt-r-sm); background: var(--pt-blue-tint); color: var(--pt-blue-deep); font-size: var(--pt-fs-xs); font-weight: 700; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 진행·다가오는 막대 = 채운 막대(테두리 파랑) · 끝난 막대 = 속 빈 막대(회색 테두리) — 회색조·색맹에서도 갈린다 */
.pt-cal-bar { box-shadow: inset 0 0 0 1px var(--pt-blue-line); }
.pt-cal-bar.is-past { background: #fff; color: #555; font-weight: 400; box-shadow: inset 0 0 0 1px #999; }   /* #555 on #fff 7.5:1 */
@media (hover: hover) {
  .pt-cal-bar:hover { background: #d9e9fd; text-decoration: none; }
  .pt-cal-bar.is-past:hover { background: var(--pt-wash); }
}
.pt-cal-bar.is-cont { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pt-cal-bar.is-more { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pt-cal-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: var(--pt-s2); font-size: var(--pt-fs-sm); color: var(--pt-muted); }
.pt-cal-key li { display: inline-flex; align-items: center; gap: 6px; }
.pt-cal-key i { display: inline-block; width: 18px; height: 8px; border-radius: 2px; background: var(--pt-blue-tint); box-shadow: inset 0 0 0 1px var(--pt-blue-line); }
.pt-cal-key i.is-past { background: #fff; box-shadow: inset 0 0 0 1px #999; }
.pt-cal-key i.is-today { width: 10px; height: 10px; border-radius: 50%; background: var(--pt-blue); box-shadow: none; }

/* ---------- 10. 글 쪽: 제목 아래 지역 줄 ---------- */
.pt-postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; }
.pt-postmeta .pt-tags { gap: 8px; }
.pt-postmeta .pt-tag { min-height: 30px; font-size: var(--pt-fs-sm); }
.pt-postmeta .pt-tag::after { inset: -7px 0; }
.pt-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--pt-blue-line); border-radius: var(--pt-pill); background: var(--pt-blue-tint); color: var(--pt-blue-deep); font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pt-chip::after { content: ""; position: absolute; inset: -7px 0; }   /* 1px 테두리 안쪽에서 재므로 32 + 2 + 14 = 44(3판 실측 43 → 44) */
.pt-chip:not(.is-off):hover { border-color: var(--pt-blue); text-decoration: none; }
.pt-chip.is-off { border-color: var(--pt-line-2); background: #fff; color: var(--pt-text-2); }   /* 허브 문턱 미달 — 링크 없이 이름만 */
.pt-pin { position: relative; flex: none; width: 10px; height: 10px; margin-top: -2px; border-radius: 50% 50% 50% 0; background: currentColor; transform: rotate(-45deg); }
.pt-pin::after { content: ""; position: absolute; left: 3px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--pt-blue-tint); }
.pt-chip.is-off .pt-pin::after { background: #fff; }
.pt-src { font-size: 14px; line-height: 1.5; color: var(--pt-muted); }
.pt-src-k { font-weight: 700; color: var(--pt-text-2); }

/* ---------- 11. 홈 목록 위 「지역 포털」 띠 ---------- */
.pt-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k go" "wk go" "src go"; align-items: center; gap: 4px var(--pt-s5); margin: 8px 0 4px; padding: 14px 16px; border: 1px solid var(--pt-line); border-left: 3px solid #333; border-radius: 0 var(--pt-r) var(--pt-r) 0; background: #fff; }
.pt-band-k { grid-area: k; font-size: var(--pt-fs-sm); color: var(--pt-muted); }
.pt-band-k b { margin-right: 8px; font-family: var(--pt-head); font-weight: 400; font-size: 16px; color: var(--pt-ink); }
.pt-band-week { grid-area: wk; font-size: var(--pt-fs-md); line-height: 1.55; color: var(--pt-text); }
.pt-band-week a { color: var(--pt-blue); font-weight: 700; }
.pt-band-week .pt-dday { height: 22px; margin: 0 2px; vertical-align: 1px; }
.pt-band-go { grid-area: go; display: flex; flex-wrap: wrap; gap: var(--pt-s2); }
.pt-band-src { grid-area: src; font-size: var(--pt-fs-xs); line-height: 1.5; color: var(--pt-muted); }   /* 바깥 값의 출처·기준일(내규 N-005 5조) */
.pt-band-src a { color: var(--pt-blue); font-weight: 700; }   /* 「외 n곳」 → 행사 달력 자료 기준 줄(기관 이름 전부) */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: var(--pt-tap); padding: 0 14px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-r); background: #fff; color: var(--pt-ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.pt-btn:hover { border-color: #999; text-decoration: none; }
.pt-btn.is-primary { border-color: #222; background: #222; color: #fff; }
.pt-btn.is-primary:hover { background: #000; }

/* ---------- 12. 자료 기준 줄 ---------- */
.pt-asof .pt-code { padding: 0; border: 0; font-family: inherit; font-size: inherit; font-weight: 400; color: inherit; line-height: inherit; }
.pt-asof { margin-top: var(--pt-s10); padding-top: var(--pt-s3); border-top: 1px solid var(--pt-line); font-size: var(--pt-fs-sm); line-height: 1.6; color: var(--pt-muted); }

/* ---------- 13. 좁은 화면 ---------- */
@media (max-width: 799.98px) {
  .pt-page { padding-left: 0; padding-right: 0; }
}
/* 태블릿 소형 띠(576–767.98): 오늘 칸이 73px 남짓이라 「오늘」 글자가 오른쪽 위 +n 과 9px 겹친다 — 파란 동그라미와 범례 「● 오늘 11.18(수)」가
   이미 오늘을 알리므로 글자를 뺀다(575.98 이하와 같게 · 4판 검토) */
@media (max-width: 767.98px) {
  .pt-cal-day.is-today::after { content: none; }
}
@media (max-width: 575.98px) {
  .pt-root { --pt-fs-h1: 26px; }   /* 진 글 쪽 h1(800 미만 1.6rem)과 같은 급 */
  .pt-page { padding-bottom: 32px; }   /* .pt-page 는 토큰 없이도 서게 글자값 */
  .pt-head { padding-top: var(--pt-s4); }
  .pt-now { margin-top: var(--pt-s3); padding: 10px 12px; font-size: 14px; }   /* 16 → 12(390×844 머리 끝 ≤ 640 여유 · r4 검토) */
  .pt-facts { margin-left: -11px; font-size: 13px; clip-path: inset(0 0 0 11px); }
  .pt-facts li { padding: 0 10px; }
  .pt-sec { margin-top: var(--pt-s8); }
  .pt-sec-title { font-size: 17px; }
  /* 행사: 배지를 제목 위로 */
  .pt-ev { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "date dday" "date body"; column-gap: var(--pt-s3); row-gap: 6px; padding: 14px 0; }
  .pt-ev:not(:has(.pt-dday)) { grid-template-areas: "date body" "date body"; }
  .pt-dday { justify-self: start; height: 24px; }
  .pt-date { width: 48px; min-height: 60px; }
  .pt-date-d { font-size: 20px; }
  .pt-ev-title { font-size: 16px; }
  .pt-ev-meta { font-size: 13px; }
  .pt-step { grid-template-columns: minmax(0, 1fr); padding: 2px 0 6px 22px; }
  /* 소식 */
  .pt-news-lead { grid-template-columns: minmax(0, 1fr) 104px; gap: var(--pt-s3); }
  .pt-news-title { font-size: 18px; }
  .pt-news-ex { font-size: 14px; }
  .pt-news-link { gap: 10px; }
  .pt-news-date { width: 40px; }
  .pt-news-t { font-size: 15px; }
  /* 동네 */
  .pt-emd-group { grid-template-columns: minmax(0, 1fr); gap: var(--pt-s2); }
  .pt-emd-label { padding-top: 0; }
  .pt-emd-panel { padding: 12px 14px 2px; }
  .pt-emd-panel a { flex-direction: column; justify-content: center; gap: 2px; }
  /* 문 */
  .pt-door { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "mark body" "mark plate"; row-gap: 6px; }
  .pt-door-mark { grid-area: mark; }
  .pt-door-body { grid-area: body; }
  .pt-door-plate { grid-area: plate; justify-self: start; }
  /* 달력 */
  .pt-mnav-now { font-size: 20px; }
  .pt-mnav-go { padding: 0 10px; }
  .pt-cal-week { min-height: 60px; row-gap: 2px; padding-bottom: 6px; }
  .pt-cal-dow span { font-size: var(--pt-fs-xs); }
  .pt-cal-day { padding: 6px 0 0; text-align: center; font-size: 13px; }
  .pt-cal-day.is-today .pt-cal-num { width: 26px; height: 26px; margin: -2px 0; }
  .pt-cal-day.is-today::after { content: none; }
  .pt-cal-more { position: static; display: block; line-height: 14px; }
  .pt-cal-bar { margin: 0 2px; height: 16px; padding: 0 4px; font-size: 11px; line-height: 16px; }
  .pt-cal-bar.is-cont { margin-left: 0; }
  .pt-cal-bar.is-more { margin-right: 0; }
  .pt-cal-bar.is-short { height: 6px; margin-top: 5px; padding: 0; font-size: 0; }   /* 하루짜리 조각은 글자 없이 막대만 */
  /* 휴대폰 달력은 보는 그림 — 16px·6px 막대가 2px 간격으로 붙어 잘못 누르기 쉬워(WCAG 2.5.8) 누르지 않게 한다. 정본은 아래 목록 */
  .pt-cal-bar { pointer-events: none; }
  /* 글 쪽 · 띠 */
  .pt-postmeta .pt-src { flex-basis: 100%; }
  .pt-band { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "wk" "src" "go"; gap: 6px; padding: 12px 14px 14px; }
  .pt-band-go { margin-top: 6px; }
  .pt-btn { flex: 1 1 0; min-height: var(--pt-tap); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-door { transition: none; }
}
@media print {
  .pt-cal-bar, .pt-date, .pt-now { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 14. 구현 덧붙임(앱에 옮기며 생긴 상태 · 명세 토큰만 씀) ---------- */
/* 첫 소식에 그림이 없으면 글만 한 단 */
.pt-news-lead.is-text { grid-template-columns: minmax(0, 1fr); }
/* 그림은 <picture> 로 감싼다(서버 렌더러가 미리 불러오기 링크를 끼워 넣지 않게) */
.pt-news-thumb picture { display: block; width: 100%; height: 100%; }
/* 날짜·내용 추출 확신이 낮은 행사(rg_event.confidence = mid) — 사실 한마디 */
.pt-ev-unsure { font-size: var(--pt-fs-xs); font-weight: 700; color: var(--pt-muted); }
/* 링크가 아닌 태그(허브가 없는 시군구 · 허브 문턱 미달 동네) — 진 태그 꼴 그대로, 누르는 칸 늘림 없음 */
.pt-tag.is-static::after { content: none; }
.pt-tag.is-static:hover { background: var(--pt-tag); color: var(--pt-ink); }
/* 지역 목록(/area)의 허브 카드: 이웃 지역 카드 꼴을 칸 폭 최소 220px 로 채운다 */
.pt-hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pt-hubs .pt-near-link { display: flex; width: 100%; min-height: 64px; }
/* 달력 범례의 「+n」(그날 칸에 다 못 그린 행사) */
.pt-cal-key-n { display: inline-block; margin-right: 2px; font-size: 11px; font-weight: 700; color: var(--pt-muted); }
/* 글 쪽 'AI 재작성'(내규 N-010 스위치) — 진의 회색 말투(보라·창빛 쓰지 않음) · #444 on #fff 9.7:1 */
.pt-ai { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-r-sm); background: #fff; color: var(--pt-text-2); font-size: var(--pt-fs-xs); font-weight: 700; line-height: 1.2; white-space: nowrap; }
/* 장소가 이 지역(허브 = 그 시군구 · 달력 = 그 진) 밖인 행사 — 사실 꼬리표(숫자에는 넣지 않는다) · #444 on #fff 9.7:1 */
.pt-ev-away { display: inline-block; padding: 0 7px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-pill); background: #fff; color: var(--pt-text-2); font-size: var(--pt-fs-xs); font-weight: 700; line-height: 20px; white-space: nowrap; }
/* 일정 묶음: 다음 단계는 아니지만 오늘에 걸친 단계 */
.pt-step-today { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: var(--pt-pill); background: var(--pt-blue-tint); color: var(--pt-blue-deep); font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; }
/* 목록 안 갈래 줄(이번 달 이미 끝난 행사 · 허브 밖에서 열리는 행사) */
.pt-ev-split { margin-top: var(--pt-s6); padding-bottom: var(--pt-s2); font-size: 14px; font-weight: 700; color: var(--pt-text-2); }
.pt-ev-split span { font-weight: 400; color: var(--pt-muted); }
/* 칸 아래 안내 줄의 링크는 둘레 회색 글과 갈리게 파랑·굵게(WCAG 1.4.1) */
.pt-ev-rest a, .pt-area-rest a, .pt-sec-foot a { color: var(--pt-blue); font-weight: 700; }
.pt-ev-rest a, .pt-area-rest a, .pt-news-foot a { display: inline-block; padding: 12px 0; margin: -12px 0; }   /* 누르는 칸 44px(13px 글자 1.6줄 + 위아래 12px) */
.pt-ev-rest, .pt-area-rest { line-height: 1.6; }   /* 5판: 달 링크는 문장과 나눈 한 줄 목록(.pt-rest-m)으로 — 문장까지 44px 줄 간격이면 두 단락처럼 벌어졌다 */
/* 달 링크 · 다음 걸음 링크의 한 줄 목록(허브 「그 밖」 · /area 나머지 · 포털 404): 조각은 통째로 줄을 바꾸고(flex) 점은 조각마다 앞 15px 칸에
   그려, 줄 머리에 온 점은 왼쪽 자르기로 숨긴다. 15px 중 11px 만 잘라 초점 테두리(2px + 간격 2px)는 줄 머리에서도 보이고, 위아래·오른쪽도
   테두리만큼 남긴다. 링크 칸만 44px(누르는 칸이 위아래 줄과 겹치지 않는다 · 5판 검토) */
.pt-rest-m { display: flex; flex-wrap: wrap; margin-left: -15px; font-size: var(--pt-fs-sm); line-height: 1.6; color: var(--pt-muted); clip-path: inset(-6px -6px -6px 11px); }
.pt-rest-m li { display: inline-flex; align-items: center; white-space: nowrap; }
.pt-rest-m li::before { content: "·"; flex: none; width: 15px; text-align: center; color: #999; }
.pt-rest-m a { display: inline-flex; align-items: center; min-height: var(--pt-tap); color: var(--pt-blue); font-weight: 700; }
.pt-rest-m > li > span { display: inline-flex; align-items: center; min-height: var(--pt-tap); }
.pt-state .pt-rest-m { margin-top: 2px; margin-bottom: -10px; font-size: inherit; color: inherit; }
/* 쪽 끝의 달 이동(목록·미리 보기 뒤 · 자료 기준 줄 앞 — 위로 거슬러 가지 않게). 앞·뒤 달이 없으면 빈 칸이 자리를 지켜 「맨 위로」는 늘 가운데(3판 검토) */
.pt-mnav-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 16px; margin-top: var(--pt-s6); padding-top: var(--pt-s2); }
.pt-mnav-foot > :first-child { justify-self: start; }
.pt-mnav-foot > :nth-child(2) { justify-self: center; }
.pt-mnav-foot > :last-child { justify-self: end; text-align: right; }
.pt-mnav-foot a { display: inline-flex; align-items: center; min-height: var(--pt-tap); font-size: 14px; font-weight: 700; color: var(--pt-blue); }
.pt-mnav-foot + .pt-asof { margin-top: var(--pt-s4); }
/* 320 폭(1280 을 400% 확대한 폭 · WCAG 1.4.10): 바쁜 달의 달 이동 단추가 넘치지 않게 개수를 둘째 줄로 */
@media (max-width: 389.98px) {
  .pt-mnav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .pt-mnav-go { flex-wrap: wrap; justify-content: center; row-gap: 0; padding: 4px 8px; white-space: normal; text-align: center; line-height: 1.25; }
  .pt-mnav-go small { flex-basis: 100%; order: 1; }
  /* 해가 다른 달: 연도는 작은 윗줄 · 「1월 ›」 한 줄 · 개수는 아랫줄(3판 검토 — 320 에서 네 줄로 부서졌다) */
  .pt-mnav-y { display: block; flex-basis: 100%; order: -1; font-size: 11px; font-weight: 400; }
}
/* 조사가 앞 낱말과 떨어져 줄 첫머리로 가지 않게(「(36110)로」 한 덩이) */
.pt-nowrap { white-space: nowrap; }
/* 달력 줄의 시군구 표지가 열린 허브면 그 허브로 — 줄 전체 링크(::after · z-index 1) 위에 올려 따로 눌리게.
   칸은 24px 이상(폭 min-width · 높이 위아래 4px) · 점선 밑줄로 글자 표지(span)와 가른다. 터치에서는 누르는 칸을 위로 늘려 44px —
   아래로는 늘리지 않아 제목 둘째 줄을 덮지 않는다(3판 검토: 위아래 14px 가 둘째 줄 첫머리를 덮었다) */
a.pt-ev-sgg { position: relative; z-index: 2; min-width: 24px; padding: 4px 2px; margin: -4px 2px -4px -2px; text-align: center; text-decoration: underline dotted; text-underline-offset: 2px; }
@media (pointer: coarse) { .pt-ev-title a.pt-ev-sgg::after { inset: -16px 0 -3px; } }
/* 묶음의 단계 줄(#ev-id — 허브 「그 밖」 링크가 바로 오는 자리) */
.pt-step { scroll-margin-top: 12px; }
.pt-step:target { background: var(--pt-blue-tint); box-shadow: -6px 0 0 var(--pt-blue-tint), 6px 0 0 var(--pt-blue-tint); }
/* 허브 소식: 목록 15편 뒤의 최근 글은 접어 두고 「더 보기」(#news-all)를 누르면 펼친다 — 링크는 서버 HTML 에 있다(JS 0 · 내규 N-005 7조) */
.pt-news-foot { margin-bottom: var(--pt-s2); }
.pt-news-more { display: none; scroll-margin-top: 12px; }
.pt-news-more:target { display: block; }
.pt-news-foot:has(+ .pt-news-more:target) { display: none; }
/* 옛 목록 요약(<dd>) 앞 'AI 재작성'(내규 N-010 스위치) — 진 목록 글줄 높이를 늘리지 않게 낮게 */
.pt-ai.is-inline { min-height: 0; margin-right: 4px; padding: 0 6px; line-height: 18px; vertical-align: 1px; }

/* ==========================================================================
   15~19. 확장판(명세 2판 · docs/region/PORTAL_SPEC2_20261118.md 14~18절) — 2026-11-18 골격
   --------------------------------------------------------------------------
   · 시험 문에서 확장판 스위치(조작판 「확장판 칸」 · 명세 18장)가 켤 때만 마크업이 나온다. 마크업이 없으면 이 규칙들은 아무것도 바꾸지 않는다
     (그래서 1판 쪽은 그대로다 — 홈 띠 격자도 새 줄을 만들지 않고, 붙는 것만 grid-column 1 / -1 로 아래에 앉힌다).
   · 경계: 991.98(새 · 광고 칸만 — 728×90 을 받는 띠의 아래 끝) · 767.98(새 · 관공서 묶음 2단 → 1단) · 575.98 · 389.98(1판).
     띠마다의 본문 칸 폭(4.1 실측): ≥992 732 · 800~991 642 · 768~799 690 · 576~767 510 · 390~575 창−30 · <390 290.
   · 부품마다 기본 규칙 뒤에 그 부품의 좁은 화면 규칙을 둔다(13절 뒤에 오므로 같은 특정도에서 순서로 이긴다).
   · .pt- 밖 선택자 0 · !important 0(.pt-sr 하나만 — 1판 11장) · 창빛·보라 0(N-001 3·5조) · 광고 칸 바탕은 흰색.
   ========================================================================== */

/* ---------- 15. 지역 개요(6.14) — 허브 머리 사실 줄 아래 · 바깥 숫자라 굵게 하지 않는다 ---------- */
/* 사실 줄(.pt-facts)과 같은 수법: 칸마다 왼쪽 선 + 12px 여백, 줄 전체를 13px 당겨 그만큼 잘라 낸다 — 줄이 접혀도 줄마다 첫 칸이 x=0 에 맞는다.
   위 가는 줄(--pt-line)도 같이 잘려 본문 칸 폭 그대로 보인다 */
.pt-about { display: flex; flex-wrap: wrap; row-gap: var(--pt-s1); margin: var(--pt-s3) 0 0 -13px; padding-top: var(--pt-s2); border-top: 1px solid var(--pt-line); font-size: 14px; line-height: 1.5; clip-path: inset(0 0 0 13px); }
.pt-about > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; padding: 0 12px; border-left: 1px solid var(--pt-line-2); }
.pt-about dt { font-weight: 400; color: var(--pt-muted); }       /* #666 · 5.7:1 */
.pt-about dd { font-weight: 400; color: var(--pt-text-2); font-variant-numeric: tabular-nums; }   /* #444 · 9.7:1 */
.pt-about-src { margin-top: var(--pt-s1); font-size: var(--pt-fs-xs); line-height: 1.5; color: var(--pt-muted); }   /* 12px · 5.7:1(1판 3.2 「5:1 이상」) */
@media (max-width: 575.98px) {
  .pt-about { margin-top: var(--pt-s2); margin-left: -11px; clip-path: inset(0 0 0 11px); }   /* 위 12 → 8(머리 끝 여유 · r4 검토) */
  .pt-about > div { padding: 0 10px; }
  .pt-about-pop { flex-basis: 100%; }   /* 휴대폰: 인구 한 줄 전체 · 아래 줄에 면적 │ 행정구역(1장 9) */
}

/* ---------- 16. 「○○ 소개」(6.15) — 사람이 쓰거나 검수한 글 · 상징 · 연혁(자료가 없으면 칸이 없다) ---------- */
.pt-intro-body { font-size: var(--pt-fs-md); line-height: 1.7; color: var(--pt-text); }
.pt-intro-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: var(--pt-s2); font-size: var(--pt-fs-sm); color: var(--pt-muted); }
.pt-intro-sym { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: var(--pt-s3); font-size: 14px; line-height: 1.5; }
.pt-intro-sym > div { display: flex; align-items: baseline; gap: 6px; }
.pt-intro-sym dt { font-weight: 400; color: var(--pt-muted); }
.pt-intro-sym dd { color: var(--pt-text-2); }
.pt-intro-hist { margin-top: var(--pt-s3); border-top: 1px solid var(--pt-line); }
.pt-intro-hist li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: var(--pt-s3); padding: 8px 0; border-bottom: 1px solid var(--pt-row); font-size: 14px; line-height: 1.5; }
.pt-intro-hist time { color: var(--pt-muted); }
.pt-intro-hist span { color: var(--pt-text-2); }
@media (max-width: 389.98px) {
  .pt-intro-hist li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }   /* 날짜 위 / 글 아래(4.3) */
}

/* ---------- 17. 관공서 칸(6.16) · 읍면동 주민센터 표(6.17) · 동네 판 주민센터 줄(6.18) ---------- */
/* 묶음: 768 이상 2단(사이 32px · 본문 732/642/690 → 한 단 350/305/329) · 그 아래 1단(1장 8 — 이 부품에만 쓰는 경계).
   단은 다단(columns)으로 짠다 — 격자(1fr 1fr)는 줄 높이를 맞춰 「행정」 1곳 옆 「안전」 4곳 아래로 200px 넘는 빈자리가 났다(b2 로컬 실측 1280).
   묶음은 단 사이에서 쪼개지지 않는다(break-inside) · 읽는 차례 = 왼쪽 단 위→아래, 그다음 오른쪽 단(문서 차례 그대로) */
.pt-gov-groups { columns: 2; column-gap: var(--pt-s8); }
.pt-gov-group { break-inside: avoid; padding-bottom: var(--pt-s5); }
.pt-gov-groups ~ .pt-gov-emd { margin-top: var(--pt-s1); }   /* 사이에 낭독 제목(h3.pt-sr)이 있다 */
.pt-gov-label { margin-bottom: var(--pt-s2); font-size: var(--pt-fs-sm); font-weight: 700; line-height: 1.4; color: var(--pt-muted); }   /* h3 13px 굵게 · 칸 제목(h2 18px)보다 작게 */
.pt-gov-list { border-top: 1px solid var(--pt-line); }
.pt-gov-item { padding: 10px 0; border-bottom: 1px solid var(--pt-row); }
/* 종류 배지 = 진 태그 꼴(#f1f1f1 위 #222 · 14.1:1 · 4px 둥근 · 12px 굵게) */
.pt-gov-kind { display: inline-block; margin-right: 2px; padding: 0 6px; border-radius: var(--pt-r-sm); background: var(--pt-tag); color: var(--pt-ink); font-size: var(--pt-fs-xs); font-weight: 700; line-height: 20px; vertical-align: 2px; white-space: nowrap; }
.pt-gov-name { font-family: var(--pt-head); font-weight: 400; font-size: 16px; line-height: 1.4; color: var(--pt-ink); }
/* 「관할」 표지(근거가 적힌 줄만 · 9.10) — 글자로 말한다(색만으로 말하지 않는다) · #666 5.7:1 */
.pt-gov-rel { display: inline-block; margin-left: 2px; padding: 0 6px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-pill); background: #fff; color: var(--pt-muted); font-size: var(--pt-fs-xs); font-weight: 700; line-height: 18px; vertical-align: 2px; white-space: nowrap; }
/* 아랫줄: 전화 → 주소 → 누리집(순서 고정) · 넘치면 줄바꿈. 전화·누리집은 위아래 12px 늘린 누르는 칸(44px)이라 접힌 줄과 겹친다 —
   · position:relative 로 주소 글자보다 위에 그린다(뒤에 그려지는 주소 칸이 늘린 칸을 덮어 34~35px 가 됐다 · b2 로컬 실측)
   · 누리집은 줄 오른쪽 끝(margin-left:auto) — 접혀 다음 줄로 가도 위 줄 전화 칸과 가로로 겹치지 않는다(휴대폰은 주소 한 줄이 둘 사이를 벌린다) */
.pt-gov-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--pt-muted); }
.pt-gov-tel { position: relative; padding: 12px 0; margin: -12px 0; color: var(--pt-blue); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }   /* 누르는 칸 44px(데스크톱에서도 tel: 링크) */
.pt-gov-addr { font-size: var(--pt-fs-sm); color: var(--pt-muted); }
.pt-gov-meta > .pt-gov-web:first-child { margin-left: 0; }   /* 누리집만 있는 줄(시청 · 교육청)은 왼쪽 */
.pt-gov-web { position: relative; padding: 12px 0; margin: -12px 0 -12px auto; color: var(--pt-blue); font-weight: 700; }
/* 바깥 링크(누리집 · 원천 쪽) 표시는 그림 · 낭독은 「(다른 사이트로 이동)」(.pt-sr · 10.13): 앞 빈칸은 줄을 바꾸지 않는 빈칸(↗ 가 줄 머리로 홀로 떨어지지 않게) ·
   대체 글자 "" 로 낭독 이름에서 뺀다(모르는 브라우저는 첫 선언을 쓴다 · r1 검토) */
.pt-gov-web::after, .pt-gov-src a::after, .pt-emd-src a::after, .pt-intro .pt-sec-foot a::after { content: "\00a0↗"; content: "\00a0↗" / ""; }
.pt-gov-src { margin-top: var(--pt-s4); }
.pt-gov > .pt-sec-note + .pt-sec-note { margin-top: var(--pt-s2); }
/* 주민센터 표(details · 기본 닫힘 · JS 아님): summary 44px · 「n곳」은 .pt-count */
.pt-gov-emd { margin-top: var(--pt-s5); border: 1px solid var(--pt-line); border-radius: var(--pt-r); background: #fff; }
/* summary 는 기본 꼴(list-item)을 둔다 — 브라우저의 여닫이 삼각형이 그대로 보이고(flex 로 바꾸면 사라진다) 낭독은 펼침 상태를 말한다 ·
   위아래 11px + 줄 22px = 44px */
.pt-gov-emd > summary { display: list-item; min-height: var(--pt-tap); padding: 11px 14px; font-size: var(--pt-fs-md); font-weight: 700; line-height: 22px; color: var(--pt-ink); cursor: pointer; }
.pt-gov-emd > summary:hover { background: var(--pt-wash); }
.pt-gov-emd > .pt-sec-note { margin: 0; padding: 10px 14px; border-top: 1px solid var(--pt-row); }
.pt-gov-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.pt-gov-table th, .pt-gov-table td { padding: 12px 14px; border-top: 1px solid var(--pt-row); text-align: left; vertical-align: top; font-weight: 400; color: var(--pt-text-2); }   /* 위아래 12px = 전화 칸(위아래 12px 늘림)이 이웃 줄에 걸치지 않는 높이 */
.pt-gov-table thead th { padding-top: 8px; padding-bottom: 8px; background: var(--pt-wash); font-size: var(--pt-fs-sm); font-weight: 700; color: var(--pt-muted); }   /* #f7f7f7 위 #666 5.4:1 */
.pt-gov-table tbody th { width: 38%; color: var(--pt-ink); }   /* 주민센터(이름+주소) 열 — 자동 폭이면 맡는 동네가 넓게 가져가 이름·주소가 「8-/6」처럼 잘게 접혔다(b2 1280 실측) */
/* bridge 끔(공개 문 D 꼴 · 주민센터 │ 전화 2열): 맡는 동네 열이 없으면 38% 가 전화 열을 표 한가운데에 띄웠다(r4 검토 1280 — 오른쪽 330px 빈칸) —
   이름 열은 자동 폭, 전화 열은 3열과 같은 134px 로 오른쪽 끝에(휴대폰 격자 규칙은 아래 575.98 그대로) */
@media (min-width: 576px) {
  .pt-gov-table:not(.is-notel):not(:has(td + td)) tbody th { width: auto; }
  .pt-gov-table:not(.is-notel):not(:has(td + td)) td:last-child { width: 134px; }
}
.pt-gov-table .pt-gov-addr { display: block; margin-top: 2px; }
.pt-gov-table .pt-gov-tel { display: inline-block; }   /* 줄 높이 + 위아래 12px = 누르는 칸 45px */
.pt-gov-table tr { scroll-margin-top: 12px; }
.pt-gov-table tr:target { background: var(--pt-blue-tint); }
/* 동네 판 주민센터 한 줄(판 머리 뒤 · 글 목록 앞) · 줄 끝 짧은 출처(12px · <small>) */
.pt-emd-gov { padding: var(--pt-s2) 0; border-bottom: 1px solid var(--pt-line); font-size: 14px; line-height: 1.6; color: var(--pt-text-2); }
.pt-emd-gov-k { margin-right: 2px; font-weight: 700; color: var(--pt-muted); }
/* 판 안 링크 규칙(.pt-emd-panel a — 글 한 줄 꼴: flex · 위아래 10px · 밑줄)을 되돌린다. 전화 · 「관공서 칸의 표」는 그 줄을 44px 로 세운다
   (위아래로 늘린 칸은 접혀 내려온 다음 줄 글자 — 줄 끝 출처 — 에 덮여 34px 가 된다 · b2 계산) */
.pt-emd-panel .pt-emd-gov a { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 0; min-height: var(--pt-tap); margin: 0; padding: 0; border: 0; vertical-align: middle; color: var(--pt-blue); font-weight: 700; }
/* 줄 끝 짧은 출처는 모든 폭에서 아랫줄(r1 검토 — 기관과 기준일이 줄을 갈라 34px 벌어진 다음 줄에 날짜만 홀로 떨어졌다) · 토막은 .pt-nowrap 한 덩이 */
.pt-emd-gov-src { display: block; margin: 2px 0 0; font-size: var(--pt-fs-xs); color: var(--pt-muted); }
.pt-emd-panel .pt-emd-gov-src time { flex: initial; font-size: inherit; color: inherit; }   /* 판 글 날짜 규칙(13px)을 되돌린다 */
.pt-emd-src { margin-top: var(--pt-s3); }
.pt-about-src time, .pt-gov-src time, .pt-emd-src time, .pt-emd-gov-src time { white-space: nowrap; }   /* 기준일 글자 안에서 줄을 바꾸지 않는다(「2026년 10월 ⏎ 말」) */
@media (max-width: 767.98px) {
  .pt-gov-groups { columns: auto; }
}
@media (max-width: 575.98px) {
  .pt-gov-meta .pt-gov-addr { flex-basis: 100%; }   /* 주소가 한 줄 전체(전화 → 주소 → 누리집) */
  .pt-gov-web { margin-left: 0; }   /* 휴대폰: 주소 줄이 전화와 누리집 사이를 벌리므로 왼쪽에 둔다 */
  .pt-gov-emd > summary { padding-left: 12px; padding-right: 12px; }
  /* 표 → 줄마다 2단(이름+주소 │ 전화 / 맡는 동네 아래 줄 전체). thead 는 .pt-sr 꼴(display:none 아님 — 낭독은 남는다) · role 은 마크업에 늘 적는다 */
  .pt-gov-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .pt-gov-table, .pt-gov-table tbody { display: block; }
  .pt-gov-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--pt-s3); padding: 12px; border-top: 1px solid var(--pt-row); }
  .pt-gov-table th, .pt-gov-table td { display: block; padding: 0; border: 0; }
  .pt-gov-table tbody th { width: auto; }
  .pt-gov-table tbody th { grid-column: 1; }
  .pt-gov-table:not(.is-notel) td:last-child { grid-column: 2; grid-row: 1; justify-self: end; }   /* 전화 */
  .pt-gov-table td:first-of-type:not(:last-child), .pt-gov-table.is-notel td { grid-column: 1 / -1; margin-top: 4px; color: var(--pt-muted); }   /* 맡는 동네 */
  /* 표 머리를 숨겼으니 맡는 동네 줄에 보이는 이름표(주소 줄과 헷갈렸다 · b2 390 실측) — 낭독은 열 머리가 말하므로 대체 글자 "" 로 한 번 더 읽히지 않게 */
  .pt-gov-table td:first-of-type:not(:last-child)::before, .pt-gov-table.is-notel td::before { content: "맡는 동네 " / ""; font-weight: 700; }
  .pt-gov-table.is-notel tr { grid-template-columns: minmax(0, 1fr); }   /* 전화 0건 허브 = 1단 */
}
@media (max-width: 389.98px) {
  .pt-gov-table tr { grid-template-columns: minmax(0, 1fr); }   /* 1단: 이름+주소 / 맡는 동네 / 전화 */
  .pt-gov-table:not(.is-notel) td:last-child { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
}

/* ---------- 18. 검색 상자(6.19) · 지역 바로가기(6.20) · 찾기 쪽(6.21) ---------- */
/* 입력 │ 단추 「찾기」 — 여섯 띠 모두 같은 꼴(입력 폭만 218~660) · 입력 16px(iOS 확대 방지) · 경계 #767676 4.54:1 */
.pt-find { display: flex; gap: var(--pt-s2); margin-top: var(--pt-s4); }
.pt-find input { flex: 1 1 auto; min-width: 0; height: var(--pt-tap); margin: 0; padding: 0 12px; border: 1px solid var(--pt-field); border-radius: var(--pt-r); background: #fff; color: var(--pt-text); font-family: inherit; font-size: 16px; line-height: 1.2; -webkit-appearance: none; appearance: none; }
.pt-find input::placeholder { color: var(--pt-muted); opacity: 1; }   /* 자리 글 #666 5.7:1 · 라벨 대신 쓰지 않는다(.pt-sr 라벨) */
.pt-find .pt-btn { flex: none; min-width: 64px; min-height: var(--pt-tap); }   /* 휴대폰 띠의 .pt-btn { flex: 1 1 0 } 을 이긴다(특정도 0,2,0) */
/* 홈 띠에 붙을 때: 새 격자 줄을 만들지 않고 붙는 것만 아래 줄 전체(6.12+ · 없으면 띠 높이 그대로) */
.pt-band .pt-find, .pt-band .pt-quick { grid-column: 1 / -1; }
.pt-band .pt-find { margin-top: var(--pt-s2); }
.pt-quick { margin-top: var(--pt-s1); }
.pt-quick .pt-tags { gap: 10px 8px; }
.pt-tag.is-all { border: 1px solid var(--pt-line-2); background: #fff; color: var(--pt-blue); }   /* 「지역 목록 n곳」 */
.pt-tag.is-all::after { inset: -6px 0; }   /* 1px 테두리 안쪽에서 재므로 32 + 2 + 12 = 44(누르는 칸 44px · 다른 태그는 테두리 없이 34 + 10) */
/* 찾은 낱말: 굵게만(색 하나로 말하지 않는다) */
.pt-hit { font-weight: 700; color: inherit; }
/* 행사 제목 글꼴(PT Head · 한 굵기 웹폰트 · 이미 중간 굵기)에는 굵은 꼴이 없어 굵게가 보이지 않았다(b3 캡처) — 찾은 낱말만 굵은 꼴이 있는
   시스템 한글 글꼴로 · 한 단 더 굵게(800 — 없는 글꼴은 700 으로 내려앉는다) */
.pt-ev-title .pt-hit { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-weight: 800; }
/* 쪽 넘김: 칸마다 44px · 지금 쪽 aria-current · 좁으면 줄을 바꾼다(숨기지 않는다) */
.pt-pages { display: flex; flex-wrap: wrap; gap: var(--pt-s1); margin-top: var(--pt-s4); }
.pt-pages a, .pt-pages [aria-current] { display: inline-flex; align-items: center; justify-content: center; min-width: var(--pt-tap); min-height: var(--pt-tap); padding: 0 8px; border: 1px solid var(--pt-line-2); border-radius: var(--pt-r); background: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-pages a { color: var(--pt-blue); }
.pt-pages a:hover { border-color: #999; text-decoration: none; }
.pt-pages [aria-current] { border-color: #222; background: #222; color: #fff; }
/* 찾기 결과 글 목록: 날짜는 올해면 「11.02」 · 다른 해면 「2025.6.9」(1판 「해가 다르면 2026.8.23」 · 가장 넓은 꼴 「2025.12.22」) — 다른 해 글이 든 쪽(is-years)만 날짜 열을 그 폭으로 맞춘다 */
.pt-sr-list .pt-news-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-sr-list.is-years .pt-news-date { width: 5.9em; }
/* 칸 머리 바로 아래 다음 걸음 한 줄(찾기 쪽 「분류 ‘…’ 글 모두 보기」) — 머리와 목록 사이에 붙인다 */
.pt-sec-head + .pt-rest-m { margin-top: -6px; margin-bottom: 4px; }
/* 허브에서 온 찾기(a): 「서구 결과를 먼저 보입니다 · 광주진 전체 순서로 보기」 — 사실 줄 아래 · 검색 상자 위 */
.pt-head .pt-sr-a { margin-top: var(--pt-s2); }
@media (max-width: 575.98px) {
  .pt-head .pt-find { margin-top: var(--pt-s3); }   /* 16 → 12 — 390×844 허브 머리 끝 629/640 이라 지금 줄이 한 줄만 늘어도 넘었다(r4 검토) */
}

/* ---------- 19. 지역 광고 칸(6.22 · 17장) — 칸 사이에만 · 첫 화면 밖 · 라벨 「광고」 · 미리보기는 점선 자리(스크립트 0) ---------- */
/* 내용 칸과 꼴이 다르다: 칸 머리(h2 · 3px 막대) 없음 · 위에 가는 줄 · 위아래 틈 32px · 흰 바탕(옅은 바탕은 .pt-state 와 헷갈린다) */
.pt-ad { margin: var(--pt-s8) 0; padding-top: var(--pt-s2); border-top: 1px solid var(--pt-line); background: #fff; }
.pt-ad-k { margin-bottom: 6px; font-size: var(--pt-fs-xs); font-weight: 700; line-height: 14px; color: var(--pt-label); }   /* 라벨 20px · #595959 7.0:1 */
.pt-ad-box { max-width: 100%; overflow: hidden; }   /* 칸 폭을 넘는 소재는 받지 않는다(가로로 밀지 않는다 · 17.3) */
/* 미리보기 점선 자리: 공개 때 잡을 자리 높이와 같다(≥576 140 · 390~575 270 · <390 230) · 점선은 장식 */
.pt-ad.is-pv .pt-ad-box { display: flex; align-items: center; justify-content: center; min-height: 140px; padding: 12px 16px; border: 1px dashed var(--pt-line-2); border-radius: var(--pt-r); font-size: var(--pt-fs-sm); line-height: 1.5; color: var(--pt-muted); text-align: center; }
/* 받는 소재 크기는 창 폭이 아니라 본문 칸 폭으로 고른다(17.3) — 한 자리에 칸 하나라 크기 글자를 폭마다 CSS 로 바꾼다(숨긴 칸 0) */
.pt-ad-size::before { content: "728×90 또는 가로 카드(높이 ≤140)"; }
@media (max-width: 991.98px) {
  .pt-ad-size::before { content: "468×60 또는 가로 카드(높이 ≤140)"; }   /* 800~991 은 본문 642 — 728×90 금지(86px 넘친다) */
}
@media (max-width: 575.98px) {
  .pt-ad.is-pv .pt-ad-box { min-height: 270px; }
  .pt-ad-size::before { content: "300×250 또는 카드(높이 ≤270)"; }
}
@media (max-width: 389.98px) {
  .pt-ad.is-pv .pt-ad-box { min-height: 230px; }
  .pt-ad-size::before { content: "폭 따라 줄어드는 카드(높이 ≤230 · 300×250 금지)"; }   /* 본문 290 */
}
/* 공개 때(승인 뒤 · S2S 가 없을 때만): 못 채움 신호가 오면 라벨까지 통째로 접는다 — :has 를 못 읽는 브라우저는 라벨과 빈 자리가 남는다 */
.pt-ad:has([data-ad-status="unfilled"]) { display: none; }

/*
 * 미리보기 조작 전용(시험 문에서만 나간다) — 리본 · 조작판(/__pv) · 시험 문 글꼴.
 * - 라우터가 /css/portal.css 를 낼 때 src/portal/portal.css 뒤에 이 파일을 붙여 한 장으로 낸다(src/portal/serve.tsx).
 * - 선택자는 .zt- 로 시작한다(.pt- 디자인 판과 따로 고칠 수 있게). 전역 선택자는 쓰지 않는다.
 * - 값은 디자인 명세(SPEC.md 3장) 토큰과 같은 값: 글자 #222 · #444 · #666 · 파랑 #0062cc · 줄 #e5e5e5 · #d2d2d2 ·
 *   옅은 바탕 #f7f7f7 · #f1f1f1 · 모서리 4/8px · 누르는 칸 44px · :focus-visible 2px 파랑. 창빛(노랑)·보라는 쓰지 않는다.
 * - 고치면 src/portal/links.ts 의 PORTAL_CSS_HREF ?v= 를 올린다.
 */

/* ── 시험 문 글꼴: IP 출처라 진 도메인 웹폰트(fonts.css)가 CORS 로 막힌다 → 같은 파일을 같은 출처로 다시 선언 ──
   (진 글꼴 그대로 · 새 웹폰트·외부 CDN 아님 · 본 블록에는 이 파일이 나가지 않는다) */
@font-face { font-family: "NEXON Lv2 Medium"; src: url("/fonts/NEXON%20Lv2%20Gothic%20Medium.woff") format("woff"); font-display: swap; }
@font-face { font-family: "NEXON Lv2 Light"; src: url("/fonts/NEXON%20Lv2%20Gothic%20Light.woff") format("woff"); font-display: swap; }

/* ── 리본: 모든 미리보기 화면 맨 위 한 줄 ───────────────── */
.zt-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 9px 16px;
  background: #222;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  word-break: keep-all;
  box-sizing: border-box;
}
.zt-ribbon-t {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* 리본 글자: 넓은 화면은 긴 꼴(켠 스위치 이름) · 휴대폰은 짧은 꼴(켬 2·3·7·9 · N-010 끔 · 확장 5/6) — 긴 꼴은 title 에도 있다.
   휴대폰은 말줄임 대신 낱말 사이에서 줄을 바꾼다(확장판 「확장 n/6」이 붙어 320 폭에서 끝이 잘렸다 · 2026-11-18 b1 실측 223<259) */
.zt-ribbon-s { display: none; }
@media (max-width: 575.98px) {
  .zt-ribbon-l { display: none; }
  .zt-ribbon-s { display: inline; }
  .zt-ribbon-t { overflow: visible; white-space: normal; text-overflow: clip; }
}
.zt-ribbon .zt-ribbon-a,
.zt-ribbon .zt-ribbon-a:visited {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
/* 보이는 단추는 26px, 누르는 칸은 위아래로 늘려 44px — 리본도 44px 라 쪽 맨 위에서도 누르는 칸이 화면 위로 잘리지 않는다.
   ::after 의 inset 은 1px 테두리 안쪽(padding box)에서 재므로 24 + 20 = 44(2판 실측 38px · 3판 실측 43px → 44px) */
.zt-ribbon .zt-ribbon-a::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
.zt-ribbon .zt-ribbon-a:hover {
  background: #fff;
  color: #222;
  text-decoration: none;
}
.zt-ribbon .zt-ribbon-a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── 조작판(/__pv) ──────────────────────────────────── */
.zt-body {
  margin: 0;
  background: #f7f7f7;
  color: #212529;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.zt-body *,
.zt-body *::before,
.zt-body *::after {
  box-sizing: border-box;
}
.zt-body a:focus-visible {
  outline: 2px solid #0062cc;
  outline-offset: 2px;
  border-radius: 2px;
}
.zt-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.zt-h1 {
  margin: 0 0 8px;
  font-family: "NEXON Lv2 Medium", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #222;
}
.zt-lead,
.zt-muted {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
}
.zt-sec {
  margin: 24px 0 0;
  padding: 16px 20px 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}
.zt-sec h2 {
  margin: 0 0 12px;
  padding-left: 9px;
  border-left: 3px solid #333;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.zt-zins,
.zt-sws,
.zt-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.zt-zins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zt-zin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
a.zt-zin:hover {
  border-color: #999;
  color: #222;
  text-decoration: none;
}
.zt-zin-on {
  border-color: #222;
  background: #222;
  color: #fff;
}
.zt-zin small {
  font-size: 12px;
  font-weight: 400;
}
.zt-sw {
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
}
.zt-sw:first-child {
  border-top: 0;
  padding-top: 4px;
}
.zt-sw-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.zt-sw-tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f1f1;
  color: #444;
  font-size: 12px;
  font-weight: 700;
}
.zt-sw-n {
  color: #222;
  font-size: 16px;
}
.zt-st {
  padding: 1px 9px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #595959;
  font-size: 12px;
  font-weight: 700;
}
.zt-st-on {
  background: #0062cc;
  color: #fff;
}
.zt-sw-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 72px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.zt-sw-go:hover {
  border-color: #999;
  color: #222;
  text-decoration: none;
}
.zt-sw-c {
  margin: 8px 0 0;
  color: #212529;
  font-size: 14px;
}
.zt-q {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-left: 3px solid #d2d2d2;
  background: #f7f7f7;
  color: #444;
  font-size: 14px;
}
.zt-sw-note {
  margin: 6px 0 0;
  color: #666;
  font-size: 13px;
}
.zt-reset {
  margin: 12px 0 0;
  font-size: 14px;
}
.zt-reset a,
.zt-links a {
  color: #0062cc;
  font-weight: 700;
}
.zt-reset a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.zt-links li {
  border-top: 1px solid #f0f0f0;
}
.zt-links li:first-child {
  border-top: 0;
}
.zt-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
/* 스위치가 꺼져 그 자리가 없는 바로 가기(관공서 칸 · 동네 판 주민센터 줄) — 링크 대신 글자 + 안내(r4 검토) · 줄 높이는 링크 줄과 같게 */
.zt-links li > .zt-muted {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
}

/* ==========================================================================
   모두진 리뉴얼 — 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); }

/* 칩(시군구 · 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%); }
.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; }
.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; }

/* ---------------------------------------------------------------- 포털 쪽(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); }

/* ---------------------------------------------------------------- 폭 */
@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; } }

/* ==========================================================================
   모두진 리뉴얼 2차 — rv.css (2026-11-19 · src/portal/rv.tsx 조각의 옷)
   --------------------------------------------------------------------------
   · /css/rn.css = portal.css + pv.css + rn.css + 이 파일 — 미리보기 문 · 스위치 rn 켬에서만 나간다(rnx 칸이 없으면 규칙이 닿을 곳이 없다).
   · 그림: 틀에 aspect-ratio + img object-fit: cover · 그림 위 글자는 불투명 흰 판(#fff) 위 ink 만 · 곁 「AI 그림」 표시 없음(사장님 11-19).
   · 묶음 색(--g 글자 · --gt 옅은 바탕)은 src/portal/data/cat_groups.json 에서 style 속성으로 온다(대비 ≥ 5.3 — 표의 _source.colors).
   · 창빛 노랑 #FFD84D · 본체 보라 #7C3AED 는 쓰지 않는다. 클라이언트 JS 0(details · :checked · :target · :has).
   · 누르는 칸 44px 이상(칩 44 · 줄 56 · 타일 60) · 말줄임표(text-overflow) 0 — 줄바꿈 · 2줄 clamp.
   ========================================================================== */

/* ---------------------------------------------------------------- 그림 틀 · AI 표시 */
.rv-fig { position: relative; margin: 0; overflow: hidden; background: #EEF0EC; }
.rn .rv-fig img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.rv-plate { position: absolute; left: 12px; top: 12px; z-index: 2; display: grid; gap: 1px; max-width: calc(100% - 24px); padding: 7px 12px 8px; border-radius: 14px; background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 3px rgb(16 24 32 / 16%); }
.rv-plate-s { color: var(--ink-2); font-size: 12.5px; font-weight: 650; line-height: 1.35; }
.rv-plate.is-zone { left: 10px; top: 10px; padding: 5px 10px 6px; border-radius: 12px; }
.rv-plate.is-zone b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.rv-plate.is-zone small { color: var(--ink-2); font-size: 12.5px; font-weight: 650; }
.rv-plate.is-zone a { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap-min); margin: -10px -6px -6px; padding: 0 6px; color: var(--ink); }
.rv-plate.is-zone a .rn-ico { width: 16px; height: 16px; color: var(--muted); }
.rv-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-h-i { width: 20px; height: 20px; margin: 0 6px -3px 0; color: var(--accent-ink); }
/* 묶음 배지(아이콘 동그라미) */
.rv-gbadge { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--gt, var(--surface)); color: var(--g, var(--ink-2)); }
.rv-gbadge .rv-ico { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- 홈 「오늘」 카드 2판(그림 3:1 · 날짜 판 · 숫자 링크) */
.rnx-today.rv-today { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; background: var(--card); }
.rv-hero { aspect-ratio: 3 / 1; }
.rv-hero .rnx-today-h { margin: 0; font-size: 22px; line-height: 1.2; }
.rv-today-b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px 14px; }
.rv-stats { gap: 6px; }
.rv-stats.is-1 { grid-template-columns: minmax(0, 1fr); }
.rv-stats.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-stats.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rv-stats > li { display: grid; min-width: 0; }
a.rnx-stat { min-height: 60px; color: inherit; }
a.rnx-stat .rnx-stat-v { color: var(--accent-ink); }
@media (hover: hover) { a.rnx-stat:hover { box-shadow: 0 0 0 1.5px var(--accent); } }
.rv-k-s { display: none; }
.rv-oneline { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-m); background: var(--surface); color: var(--ink); font-weight: 650; }
@media (max-width: 599.98px) {
  /* 띠 단추 · 찾기 상자는 아래 탭과 같은 길(DOM · 링크 수 그대로 — 출처 줄은 보인다) */
  .rv-today .pt-band-go, .rv-today .pt-find { display: none; }
}
/* 키가 낮은 휴대폰 창(Safari 주소창·도구 막대가 보일 때 약 664 — A1-28): 대표 그림을 낮춰 첫 글 제목을 탭 막대 위로 */
@media (max-width: 599.98px) and (max-height: 720px) {
  .rv-hero { aspect-ratio: 4 / 1; }
  .rv-today-b { gap: 8px; padding: 10px 16px 12px; }
  a.rnx-stat { min-height: 56px; }
}
@media (max-width: 359.98px) {
  .rv-hero { aspect-ratio: 5 / 2; }
  .rv-k-l { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rv-k-s { display: inline; }
}

/* ---------------------------------------------------------------- 분야 칩 줄(1단) */
.rv-cgbar { margin: -2px -16px 10px; }
.rv-cgbar ul { display: flex; gap: 6px; margin: 0; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.rv-cgbar ul::-webkit-scrollbar { display: none; }
.rv-cgbar ul:focus-within { -webkit-mask-image: none; mask-image: none; }
.rv-cgbar li { flex: none; }
.rv-cg { display: inline-flex; align-items: center; gap: 5px; min-height: var(--tap-min); padding: 0 14px 0 11px; border-radius: var(--r-pill); background: var(--gt, var(--surface)); color: var(--g, var(--ink)); font-size: var(--fs-label); font-weight: 750; white-space: nowrap; }
.rv-cg.is-all { padding: 0 15px; background: var(--surface); color: var(--ink); }
.rv-cg-i { width: 18px; height: 18px; }
.rv-cg[aria-current] { background: var(--g, var(--ink)); color: #FFFFFF; }
.rv-cg.is-all[aria-current] { background: var(--ink); }
@media (hover: hover) { .rv-cg:hover { box-shadow: inset 0 0 0 1.5px currentColor; } }
/* 목록 쪽: main 맨 위(카드 밖) */
.rn-main > .rv-cgbar { margin: 0 calc(-1 * var(--gutter)); }
.rn-main > .rv-cgbar ul { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- 홈 분야 타일 */
.rv-tile-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* 검수 M-05: 타일 = 묶음 머리 링크(→ 같은 쪽 묶음 칸) + 가장 새 글 링크(→ 그 글) 두 칸 · 둘 다 44px 이상 */
.rv-tile { display: grid; grid-template-rows: auto 1fr; gap: 4px; height: 100%; padding: 6px; border-radius: 16px; background: var(--gt, var(--surface)); color: var(--ink); }
.rv-tile-a { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "i n" "i c"; gap: 1px 10px; align-content: center; min-height: 56px; padding: 6px; border-radius: 12px; color: var(--ink); }
.rv-tile-i { grid-area: i; width: 44px; height: 44px; border-radius: 12px; background: #F6F1E8; }
.rv-tile-n { grid-area: n; align-self: end; color: var(--g, var(--ink)); font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.rv-tile-c { grid-area: c; color: var(--ink-2); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rv-tile-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 44px; padding: 4px 6px 6px; border-radius: 10px; color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.45; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
@media (hover: hover) { .rv-tile-a:hover, .rv-tile-t:hover { box-shadow: inset 0 0 0 1.5px var(--g, var(--accent)); } }
@media (max-width: 359.98px) { .rv-tile-n { font-size: 13.5px; } .rv-tile-a { grid-template-columns: 36px minmax(0, 1fr); gap: 1px 8px; } .rv-tile-i { width: 36px; height: 36px; } }
@media (min-width: 600px) { .rv-tile-l { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- 분야별 최근 소식(묶음 칸) */
.rv-grp-l { display: grid; grid-template-columns: minmax(0, 1fr); }
.rv-grp { padding: 14px 0 16px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 12px); }
.rv-grp:first-child { border-top: 0; padding-top: 2px; }
.rv-grp:target .rv-grp-head h3, .rv-grp:target .rv-grp-head h2 { color: var(--g, var(--accent-ink)); }
.rv-grp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.rv-grp-head h3, .rv-grp-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.rv-grp-head small { color: var(--muted); font-size: var(--fs-caption); font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-grp-rows { display: grid; margin-bottom: 10px; }
.rv-grp-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ca t" "t2 t"; gap: 2px 10px; align-items: baseline; min-height: 56px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rv-grp-rows a { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: none; }
.rv-grp-rows li:last-child a { border-bottom: 0; }
.rv-grp-ca { padding: 1px 7px; border-radius: 6px; background: var(--gt, var(--surface)); color: var(--g, var(--ink-2)); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.rv-grp-t { font-size: 15px; font-weight: 650; line-height: 1.45; }
.rv-grp-rows time { color: var(--muted); font-size: var(--fs-caption); white-space: nowrap; }
@media (hover: hover) { .rv-grp-rows a:hover .rv-grp-t { text-decoration: underline; text-underline-offset: 3px; } }
.rv-grp-none { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-label); }
@media (min-width: 1000px) {
  .rv-grp-l { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .rv-grp:nth-child(2) { border-top: 0; padding-top: 2px; }
}

.rnx-cell.is-more { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; min-height: 48px; background: var(--card); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.rnx-cell.is-more .rn-ico { width: 16px; height: 16px; }

/* 분류 칩(2단) */
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rv-chip { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap-min); padding: 0 12px; border-radius: var(--r-pill); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 650; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.rv-chip small { color: var(--muted); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rv-chip.is-old { background: var(--surface); color: var(--ink-2); box-shadow: none; }
.rv-chip[aria-current] { background: var(--g, var(--ink)); color: #FFFFFF; box-shadow: none; }
.rv-chip[aria-current] small { color: #FFFFFF; }
/* 검수 C-10: 90일 새 글 없는 분류는 「그 밖 n개」 안(주소 그대로) */
.rv-chips-more { display: block; }
.rv-chips-more:has(> details[open]) { flex-basis: 100%; }
.rv-chips-more > details > summary { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.rv-chips-more > details > summary::-webkit-details-marker { display: none; }
.rv-chips-more > details > summary::after { content: ""; width: 7px; height: 7px; margin: 0 0 3px 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rv-chips-more > details[open] > summary::after { margin: 3px 0 0 8px; transform: rotate(-135deg); }
.rv-chips-more > details > .rv-chips { margin-top: 6px; }
@media (hover: hover) { .rv-chip:hover { box-shadow: inset 0 0 0 1.5px var(--g, var(--accent)); } }

/* ---------------------------------------------------------------- 분류 쪽 머리 띠 */
.rv-cathead { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; align-items: center; background: linear-gradient(180deg, var(--gt, var(--surface)) 0, var(--card) 96px) var(--card); }
.rv-cathead-i { width: 64px; height: 64px; border-radius: 16px; background: #F6F1E8; }
.rv-cathead-k { color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.rv-cathead-k a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--g, var(--accent-ink)); text-decoration: underline; text-underline-offset: 3px; }
.rv-cathead h2, .rv-cathead-n { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
/* 검수 C-13 ⑥: 빈 분류 — 머리 띠 「아직 글이 없습니다」와 옛 「준비된 컨텐츠가 없습니다」 두 번 → 머리 띠 하나 */
.rv-cathead ~ .rn-feed:has(> .rn-empty) { display: none; }
.rv-cathead-f { margin-top: 2px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.rv-cathead-c { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- 목록 줄 꼬리 칩(상태 · 시군구) · 요약 머리 */
.rn-post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rv-age, .rv-sgg { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.rv-age { background: #E9ECEF; color: #2B3038; }
.rv-age.is-end { background: #E9ECEF; color: #2B3038; box-shadow: inset 0 0 0 1px #C9CED5; }
.rv-age.is-old { background: #F1F2F4; color: #3B4148; }
.rv-age.is-live { background: var(--accent-tint); color: var(--accent-ink); }
.rv-age.is-due { background: var(--alert); color: #FFFFFF; }
.rv-sgg { position: relative; z-index: 2; background: var(--surface); color: var(--ink-2); }
.rv-sum-h { color: var(--ink); font-weight: 700; }
.rv-sum-h::after { content: "\00a0· "; color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- 글 쪽: 머리 안내 · 바로 가기 칩 */
.rv-arthead { display: grid; gap: 8px; }
.rv-note { padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-label); line-height: 1.55; box-shadow: inset 4px 0 0 var(--line-strong); }
.rv-note.is-end { background: #EEF0F3; color: #2B3038; box-shadow: inset 4px 0 0 #2B3038; }
.rv-note.is-live, .rv-note.is-due, .rv-note.is-info { box-shadow: inset 4px 0 0 var(--accent); }
.rv-jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-jump { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap-min); padding: 0 12px; border-radius: var(--r-pill); background: var(--card); color: var(--ink); font-size: var(--fs-label); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-strong); }
.rv-jump.is-sched { background: var(--accent-tint); color: var(--accent-ink); box-shadow: none; }
.rv-jump .rv-ico { width: 17px; height: 17px; }
.rv-jump .rv-jump-a { width: 15px; height: 15px; color: var(--muted); }
.rv-jump.is-sched .rv-jump-a { color: var(--accent-ink); }
.rv-jump.is-shut { background: #EEF0F3; color: #2B3038; box-shadow: none; }
@media (hover: hover) { .rv-jump:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }
#article-view-content h2:target { color: var(--accent-ink); }
/* 글 끝 칸(본문 흰 바탕 위 카드) */
.rn-read .rv-sched, .rn-read .rv-hubnext, .rn-read .rv-catmore { margin-top: 20px; }
.rn-read .rv-sched { scroll-margin-top: calc(var(--bar) + 12px); }
.rv-sub-h { display: flex; align-items: center; margin: 14px 0 4px; color: var(--ink); font-size: var(--fs-body); font-weight: 800; }
.rv-catmore .rv-grp-head { margin-bottom: 10px; }
.rv-catmore .rv-grp-head h2 { font-size: var(--fs-title-m); }
/* 바로 가기 4칸 */
.rv-go { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 20px; }
.rv-go a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border-radius: var(--r-m); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.rv-go a .rn-ico { width: 22px; height: 22px; color: var(--accent-ink); }
@media (hover: hover) { .rv-go a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }
/* 반응 단추(쓰기 경로 없음 · 눌러도 아무 일 없음 — A2-14): rnx 에서 숨긴다(마크업 바이트는 DOM 그대로 · 운영자 확인 항목) */
body.rn.has-tabs .rn-react { display: none; }

/* ---------------------------------------------------------------- 행사 짧은 줄(홈 · 행사 쪽 · 글 일정) */
.rv-evs { display: grid; border-top: 1px solid var(--line); }
.rv-ev > a, .rv-ev > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; align-items: start; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rv-ev:last-child > a, .rv-ev:last-child > div { border-bottom: 0; }
.rv-ev-d { display: grid; place-items: center; align-content: center; width: 44px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rv-ev-d b { font-size: 17px; }
.rv-ev-d small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.rv-ev-d.is-sat small { color: #1D5FBF; }
.rv-ev-d.is-sun small { color: #B42318; }
.rv-ev-b { display: grid; gap: 3px; min-width: 0; }
.rv-ev-t { font-size: 15px; font-weight: 700; line-height: 1.42; }
.rv-ev-sgg { margin-right: 2px; color: var(--accent-ink); font-size: 12.5px; font-weight: 800; }
.rv-ev-m { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.rv-free { padding: 0 6px; border-radius: 6px; background: #E5F3EA; color: #0B6B3A; font-weight: 700; }
/* 검수 C-05 · C-14: 신청 마감(지남 = 회색) · 일정 확인 필요 · 글 없는 줄의 원문 기관 */
.rv-apx { padding: 0 6px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.rv-apx.is-past { background: #EEF0F3; color: #3B4148; }
.rv-unsure { padding: 0 6px; border-radius: 6px; color: #3B4148; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.rv-org { color: var(--ink-2); }
@media (hover: hover) { .rv-ev > a:hover .rv-ev-t { text-decoration: underline; text-underline-offset: 3px; } }
.rv-bd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.rv-bd.is-now { background: var(--accent); color: var(--on-accent); }
.rv-bd.is-soon { background: var(--accent-tint); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.rv-bd.is-due { background: var(--alert); color: #FFFFFF; }
.rv-bd.is-end { background: #E9ECEF; color: #3B4148; }
.rv-bd.is-open { background: var(--card); color: #3B4148; box-shadow: inset 0 0 0 1px var(--line-strong); }
/* 여닫이(권역 · 나머지) */
.rv-acc { border-top: 1px solid var(--line); }
.rv-acc:first-of-type { border-top: 0; }
.rv-acc > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; list-style: none; cursor: pointer; color: var(--ink); font-size: var(--fs-body); }
.rv-acc > summary::-webkit-details-marker { display: none; }
.rv-acc > summary b { font-weight: 800; }
.rv-acc > summary small { color: var(--muted); font-size: var(--fs-caption); font-weight: 650; }
.rv-acc > summary::after { content: ""; width: 8px; height: 8px; margin: 0 6px 4px auto; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rv-acc[open] > summary::after { margin-bottom: -2px; transform: rotate(-135deg); }
.rv-acc .rv-evs { border-top: 0; }
.rv-acc.is-none p { display: flex; align-items: center; min-height: 48px; color: var(--ink-2); font-weight: 700; }
.rv-acc.is-none small { margin-left: 6px; color: var(--muted); font-weight: 600; }
.rv-acc-more { padding: 8px 0 2px; color: var(--ink-2); font-size: var(--fs-caption); }
.rv-acc-more a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* 빠른 칸(진행 중 · 이번 주말 · 신청) */
.rv-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rv-quick a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i k" "v v"; align-content: center; gap: 2px 6px; min-height: 60px; padding: 8px 10px; border-radius: var(--r-m); background: var(--card); color: var(--ink); box-shadow: var(--elev-1), 0 0 0 1px var(--line); }
.rv-quick a .rv-ico { grid-area: i; width: 18px; height: 18px; color: var(--accent-ink); }
.rv-quick a span { grid-area: k; color: var(--ink-2); font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.rv-quick a b { grid-area: v; color: var(--ink); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rv-quick a b small { margin-left: 1px; color: var(--ink-2); font-size: 13px; }
.rv-quick.is-s a { min-height: 56px; }
.rv-quick.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-quick.is-1 { grid-template-columns: minmax(0, 1fr); }
@media (hover: hover) { .rv-quick a:hover { box-shadow: 0 0 0 1.5px var(--accent); } }
.rv-wk, .rv-ap { scroll-margin-top: calc(var(--bar) + 12px); }
.rn .pt-page > .rv-wk, .rn .pt-page > .rv-ap, .rn .pt-page > .rv-quick { margin: 0; }
/* 빈 화면(empty-*) */
.rv-empty { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 6px 0; }
.rv-empty-i { width: 96px; height: 96px; border-radius: 18px; background: #F6F1E8; }
/* 검수 M-13: 0건 칸은 작게(실제 일정 위에 큰 빈 카드가 쌓이지 않게) */
.rv-empty.is-s { grid-template-columns: 56px minmax(0, 1fr); gap: 2px 12px; }
.rv-empty.is-s .rv-empty-i { width: 56px; height: 56px; border-radius: 14px; }
.rv-empty.is-s .rv-empty-h { font-size: 15.5px; }
.rv-empty.is-s a { min-height: var(--tap-min); }
.rv-empty-h, .rv-prep-h { margin-bottom: 2px; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.rv-empty p:not(.rv-empty-h), .rv-prep p:not(.rv-prep-h) { color: var(--ink-2); font-size: var(--fs-label); line-height: 1.55; }
.rv-empty a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rv-prep { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.rv-prep-i { width: 96px; height: 96px; border-radius: 18px; background: #F6F1E8; }
.rv-prep-i.is-s { width: 64px; height: 64px; border-radius: 14px; }
.rv-prep:has(.is-s) { grid-template-columns: 64px minmax(0, 1fr); }
/* 행사 쪽: 끝난 줄 접기 · 휴대폰 달력 접기 */
.rv-ended { margin-top: 12px; border-top: 1px solid var(--line); }
.rv-ended > summary, .rv-more > summary { display: flex; align-items: center; gap: 6px; min-height: 52px; list-style: none; cursor: pointer; color: var(--ink-2); font-size: var(--fs-label); font-weight: 700; }
.rv-ended > summary::-webkit-details-marker, .rv-more > summary::-webkit-details-marker { display: none; }
.rv-ended > summary b { color: var(--ink); }
.rv-ended > summary::after, .rv-more > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 4px auto; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rv-ended[open] > summary::after, .rv-more[open] > summary::after { margin-bottom: -2px; transform: rotate(-135deg); }
.rv-ended .pt-ev-split { margin-top: 0; }
.rv-more { margin-top: 6px; border-top: 1px solid var(--line); }
/* 검수 M-03: 체크박스는 라벨 안(초점 자리 = 라벨) · 600 이상은 라벨째 숨김(유령 정지점 0) · :has 없으면 규칙이 버려져 달력이 늘 보인다 */
.rv-cal-l { display: none; }
.rv-cal-t { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (max-width: 599.98px) {
  .rv-cal-l { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: var(--r-l); background: var(--card); color: var(--ink); font-size: var(--fs-label); font-weight: 700; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
  .rv-cal-l .rv-ico { color: var(--accent-ink); }
  .rv-cal-l:has(.rv-cal-t:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
  .rv-cal-l:has(.rv-cal-t:not(:checked)) ~ .pt-cal, .rv-cal-l:has(.rv-cal-t:not(:checked)) ~ .pt-cal-key { display: none; }
  .rv-cal-l:has(.rv-cal-t:checked) span::after { content: " 접기"; }
  /* 달력 막대는 누르는 높이가 6px — 휴대폰에서는 누르지 않는 그림으로(목록이 정본) */
  .rn .pt-cal-bar { pointer-events: none; }
}

/* ---------------------------------------------------------------- 권역(그림 카드 · 바로 가기 칩) */
.rv-zjump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.rv-zjump.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rv-zjump.is-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rv-zjump a { display: grid; place-items: center; min-height: var(--tap-min); padding: 0 4px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); font-size: 14px; font-weight: 800; text-align: center; }
@media (hover: hover) { .rv-zjump a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }
.rnx-zone.rv-zone { gap: 0; padding: 0; overflow: hidden; scroll-margin-top: calc(var(--bar) + 12px); }
.rv-zimg { aspect-ratio: 3 / 1; }
.rv-zone-b { display: grid; gap: 7px; padding: 10px 12px 12px; }
.rv-ztag { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.rnx-zone.rv-zone:target { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 359.98px) { .rv-zjump.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rv-zjump.is-5 a, .rv-zjump a { font-size: 13.5px; } }

/* ---------------------------------------------------------------- 허브: 권역 그림 머리 · 쪽 안 차례 */
.rv-hubhero { aspect-ratio: 9 / 2; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.rn .pt-page > .rv-hubhero { margin-bottom: -12px; }
.rn .rv-hubhero + .pt-head { border-top-left-radius: 0; border-top-right-radius: 0; }
@media (min-width: 600px) { .rv-hubhero { aspect-ratio: 6 / 1; } .rn .pt-page > .rv-hubhero { margin-bottom: -16px; } }
.rv-idx { display: flex; gap: 6px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.rv-idx::-webkit-scrollbar { display: none; }
.rn .pt-page > .rv-idx { margin: 0 calc(-1 * var(--gutter)); }
.rv-idx a { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: var(--tap-min); padding: 0 14px 0 11px; border-radius: var(--r-pill); background: var(--card); color: var(--ink); font-size: var(--fs-label); font-weight: 700; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.rv-idx a .rv-ico { width: 17px; height: 17px; color: var(--accent-ink); }
@media (hover: hover) { .rv-idx a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }
.rn .pt-sec { scroll-margin-top: calc(var(--bar) + 12px); }
/* 허브 「최근 소식」 첫 줄 흠(A1-15 · U4): 원문 줄 둘째 줄 머리 잘림 · 썸네일 아래 회색 띠 */
.rn .pt-news-meta { margin-left: 0; clip-path: none; gap: 0 10px; }
.rn .pt-news-meta > *::before { content: none; }
.rn .pt-news-thumb img { height: 100%; }
/* 동네 판 머리 법정동코드(주민 말 아님 — A1-24) */
body.rn.has-tabs .pt-emd-code { display: none; }

/* ---------------------------------------------------------------- 다른 진(17진 로고 격자 · page_tail 작은 글자 줄) */
.rv-net { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.rv-net > li { display: grid; min-width: 0; }
/* 사장님 11-19 「로고들 … 여백이 좀많은거같은데」 → 꼬리표는 카드 윗선에 걸친 알약(카드 안 한 줄 차지 0) · 카드 높이 = 로고 + 최소 여백 · 데스크톱 9열 */
.rv-net-t { position: relative; display: grid; place-items: center; min-height: 48px; padding: 7px 9px 7px 5px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.rn .rv-net-t img { display: block; width: 100%; max-width: 124px; height: auto; aspect-ratio: 148 / 48; }
.rv-net-t small { position: absolute; right: 8px; top: -8px; padding: 0 6px; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); color: #3B4148; font-size: 12px; font-weight: 750; line-height: 16px; white-space: nowrap; }
.rv-net-t.is-here { box-shadow: inset 0 0 0 2px var(--accent); }
.rv-net-t.is-here small { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-ink); font-weight: 800; }
@media (hover: hover) { a.rv-net-t:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }
.rn-net.is-rv > h2 small { margin-left: 4px; color: var(--muted); font-size: var(--fs-label); font-weight: 600; }
.rv-net-k { margin: 0 2px 4px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.rn-net.is-rv .container { display: flex; flex-wrap: wrap; gap: 0 2px; }
.rn-net.is-rv .container > span { display: inline-flex; }
.rn-net.is-rv .container a { min-height: var(--tap-min); padding: 0 9px; background: none; color: var(--ink-2) !important; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (min-width: 600px) { .rv-net { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rv-net { grid-template-columns: repeat(9, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- 머리 「분야」 덮개 · 지역 고르기 동네 칩 */
.rn-cats.is-hide { display: none; }
.rv-menu { display: grid; gap: 4px; margin-bottom: 10px; }
.rv-menu-g { border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.rv-menu-g > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px 0 8px; list-style: none; cursor: pointer; }
.rv-menu-g > summary::-webkit-details-marker { display: none; }
.rv-menu-g > summary b { color: var(--g, var(--ink)); font-size: var(--fs-body); font-weight: 800; }
.rv-menu-g > summary small { color: var(--muted); font-size: var(--fs-caption); font-weight: 650; }
.rv-chev { width: 15px; height: 15px; margin-left: auto; color: var(--muted); transition: transform .15s; }
.rv-menu-g[open] > summary .rv-chev { transform: rotate(180deg); }
.rv-menu-g .rv-chips { padding: 2px 10px 12px; }
.rv-cats-old > summary { display: flex; align-items: center; min-height: var(--tap-min); padding: 0 4px; list-style: none; cursor: pointer; color: var(--ink-2); font-size: var(--fs-caption); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rv-cats-old > summary::-webkit-details-marker { display: none; }
.rv-cats-old[open] > summary { margin-bottom: 8px; }
.rv-dongs { margin-top: 14px; }
.rv-dong-chips .rnx-chip small { margin-left: 4px; color: var(--muted); font-size: 12.5px; font-weight: 650; }

/* ---------------------------------------------------------------- 찾기 빈 화면 · 태그 쪽 */
.rv-zero { display: grid; justify-items: center; gap: 8px; padding: 8px 0; text-align: center; }
.rv-zero-i { width: 112px; height: 112px; border-radius: 20px; background: #F6F1E8; }
.rv-zero p { color: var(--ink-2); font-size: var(--fs-label); }
.rv-sidx-l { display: grid; gap: 0; }
.rv-sidx-l > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.rv-sidx-l > li:first-child { border-top: 0; padding-top: 2px; }
.rv-sidx-i { width: 40px; height: 40px; border-radius: 12px; background: #F6F1E8; }
.rv-sidx-n { margin: 6px 0 6px; color: var(--g, var(--ink)); font-size: var(--fs-body); font-weight: 800; }
.rv-sidx-n small { margin-left: 4px; color: var(--muted); font-size: var(--fs-caption); font-weight: 650; }
.rv-sarea-l { display: grid; gap: 10px; }
.rv-tagfind { margin-top: 0; }
.rv-tagfind a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-m); background: var(--ink); color: #FFFFFF; font-weight: 700; }
.rv-tagfind a .rn-ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- 휴대폰 · 글자 · 쪽 넘김(rnx 쪽만) */
@media (max-width: 599.98px) {
  /* 포털 머리 찾기 상자: 아래 탭 「찾기」와 같은 길(찾기 쪽은 그대로) — A1 A1 */
  body.rn.has-tabs:not(.is-search) .pt-head .pt-find { display: none; }
  /* 목차 5줄 이상이면 가로 한 줄(본문 바이트 그대로 · CSS 만 — A2-08) */
  .rn #article-view-content > nav:has(li:nth-child(5)) 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(5)) ul::-webkit-scrollbar { display: none; }
  .rn #article-view-content > nav:has(li:nth-child(5)) li { flex: none; }
  .rn #article-view-content > nav:has(li:nth-child(5)) a { display: inline-flex; align-items: center; 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(5))::after { content: "목차 " counter(rn-toc); }
  /* 쪽 넘김(pagingHost 바이트 그대로): 검수 M-10 — 한 줄 가로 밀기는 6쪽부터 지금 쪽이 화면 밖이었다 → 감아서 모두 보이게 · 첫 쪽 머리 「1/274쪽」 숨김 */
  body.rn.has-tabs .pg_wrap .pg { gap: 6px 5px; }
  body.rn.is-home.has-tabs #rn-feed-h small { display: none; }
  /* 보조 글자 13px 이상(T1) */
  body.rn.has-tabs .rn-post-foot, body.rn.has-tabs .rnx-zone-s, body.rn.has-tabs .rnx-gu-s, body.rn.has-tabs .rn-src { font-size: 13px; }
  /* 지역 목록 허브 카드 2열(A3 — 순서 그대로) */
  body.rn.has-tabs .pt-hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rv-cathead { grid-template-columns: 56px minmax(0, 1fr); }
  .rv-cathead-i { width: 56px; height: 56px; }
}
/* 깨진 썸네일(바깥 핫링크): 대체 글자 대신 빈 타일(A2-17) */
.rn .rn-post-img img { color: transparent; font-size: 0; }
@media (min-width: 1000px) {
  .rnx-today.rv-today:has(.rnx-band) { grid-template-columns: minmax(0, 1fr); }
  .rv-hero { aspect-ratio: 5 / 1; }
  .rv-today-b { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 28px; padding: 16px 24px 20px; }
  .rv-today-b > :not(.rnx-band) { grid-column: 1; }
  .rv-today-b > .rnx-band { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .rv-quick { grid-template-columns: repeat(3, minmax(0, 220px)); }
}
@media (min-width: 600px) and (max-width: 999.98px) {
  .rv-hero { aspect-ratio: 4 / 1; }
}

/* ==========================================================================
   2차 검수 반영(2026-11-19 · Fable 5.2 max 검수 M · C · V)
   ========================================================================== */
/* 머리 지역 고르기 「1 진」: 지금 진 + 다른 진 여닫이(같은 쪽 조각 링크 0 — M-01) */
.rv-pick-net { margin-bottom: 14px; border-radius: var(--r-m); background: var(--accent-tint); }
.rv-pick-net > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 4px 4px 4px 14px; list-style: none; cursor: pointer; color: var(--accent-ink); font-weight: 800; }
.rv-pick-net > summary::-webkit-details-marker { display: none; }
.rv-pick-k { display: inline-flex; align-items: center; gap: 6px; 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; }
.rv-pick-k::after { content: ""; width: 7px; height: 7px; margin-bottom: 3px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rv-pick-net[open] .rv-pick-k::after { margin: 3px 0 0; transform: rotate(-135deg); }
.rv-pick-nl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 4px 8px 10px; list-style: none; }
.rv-pick-nl a { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: var(--tap-min); padding: 4px 12px; border-radius: var(--r-s); background: var(--card); color: var(--ink); font-size: var(--fs-label); font-weight: 700; }
.rv-pick-nl small, .rnx-chip.is-off small { color: var(--muted); font-size: 12px; font-weight: 600; }
@media (hover: hover) { .rv-pick-nl a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }

/* 「오늘」 카드: 행사 자료 기준(C-02) */
.rv-stale { color: var(--ink-2); font-size: 13px; font-weight: 650; }

/* 이번 주말: 규칙 한 줄 · 긴 전시·축제(C-06) */
.rv-wk > .rn-src { margin-top: 8px; }
.rv-long { margin-top: 4px; border-top: 1px solid var(--line); }

/* 큰 진 이번 달 권역별(M-07) */
.rv-mz { scroll-margin-top: calc(var(--bar) + 12px); }
.rn .pt-page > .rv-mz { margin: 0; }

/* 짧은 창(M-11 · V-05): 대표 그림을 더 낮게 — 첫 글 제목을 탭 위로 */
@media (max-width: 599.98px) and (max-height: 720px) {
  .rv-hero { aspect-ratio: 5 / 1; }
  .rv-plate { top: 8px; padding: 5px 10px 6px; }
  .rv-hero .rnx-today-h { font-size: 19px; }
}
@media (max-width: 599.98px) and (max-height: 640px) {
  .rv-hero { aspect-ratio: 7 / 1; }
  .rv-plate-s { display: none; }
  .rv-today-b .pt-band-src { font-size: 12px; line-height: 1.4; }
}
/* 가로 휴대폰(M-12): 대표 그림 낮게 · 허브 머리 그림도 */
@media (max-height: 500px) and (max-width: 999.98px) {
  .rv-hero { aspect-ratio: 7 / 1; }
  .rv-hubhero { aspect-ratio: 9 / 1; }
  .rv-plate-s { display: none; }
}

/* 작은 칸(M-16): 분야 덮개 「메뉴 모두 보기」 · 허브 권역 판 링크 · 홈 출처 줄 링크 44px */
.rv-cats-old > summary { min-height: 46px; }
.rv-plate.is-zone a { min-height: 46px; margin: -12px -6px -6px; }
/* 「외 n곳」: 줄 높이는 그대로 두고 누르는 칸만 넓힌다(위아래 여백 + 같은 크기 음수 여백) */
.rnx-band .pt-band-src a { padding: 14px 4px; margin: 0 -4px; }
.rnx-band .pt-find { position: relative; z-index: 1; }

/* 허브 머리 그림 판(V-08): 휴대폰은 권역 이름 한 줄만(그림을 가리지 않게 · 위치 줄 두 번 0) */
@media (max-width: 599.98px) { .rv-hubhero .rv-plate.is-zone small { display: none; } }

/* 데스크톱(V-04 · V-10 · V-11) */
@media (min-width: 1000px) {
  .rv-hero { aspect-ratio: 6 / 1; }
  /* 첫 글: 그림 왼쪽 · 제목·요약 오른쪽(1280×800 첫 화면에 제목) */
  body.rn.has-tabs .rn-feed-list:not(.is-rest) > .rn-post.is-lead { grid-column: 1 / -1; grid-row: auto; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "img body"; gap: 0 24px; align-items: start; }
  body.rn.has-tabs .rn-feed-list:not(.is-rest) > .rn-post.is-lead .rn-post-img { aspect-ratio: 16 / 9; }
  /* 권역 바로 가기 칩: 바로 아래 카드와 같은 내용 — 넓은 화면은 숨김 */
  .rv-zjump { display: none; }
  /* 5권역(서울): 3 + 2 넓은 카드 */
  .rv-zone-list:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rv-zone-list:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .rv-zone-list:has(> li:nth-child(5):last-child) > li:nth-child(n+4) { grid-column: span 3; }
  /* 구·군 카드 높이 맞춤 */
  .rnx-gu-list { align-items: stretch; }
  .rnx-gu-list > li > .rnx-gu { height: 100%; }
  /* 글 목차: 가로 밀기 대신 2~3열 격자(마우스로 넘기기 어렵던 것) */
  .rn #article-view-content > nav:has(li:nth-child(9)) ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .rn #article-view-content > nav:has(li:nth-child(9)) a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); padding: 8px 2px; border-radius: 0; background: none; white-space: normal; }
}
@media (min-width: 600px) and (max-width: 999.98px) {
  .rn #article-view-content > nav:has(li:nth-child(9)) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .rn #article-view-content > nav:has(li:nth-child(9)) a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); padding: 8px 2px; border-radius: 0; background: none; white-space: normal; }
}
/* 닫힌 「그 밖 n개」 안 칩은 그리지 않는다(좁은 li 안 숨은 칸이 넘침으로 잡히지 않게) */
.rv-chips-more > details:not([open]) > .rv-chips { display: none; }
.rnx-chip.is-off { gap: 5px; }
.rv-stale a { padding: 12px 2px; margin: 0 -2px; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
/* 아주 짧은 창(아이폰 SE Safari 375×553 · 320×568 — M-11): 숫자 칸 · 한 줄 카드를 조금 더 낮게 */
@media (max-width: 599.98px) and (max-height: 600px) {
  .rv-hero { aspect-ratio: 8 / 1; }
  a.rnx-stat { min-height: 50px; padding-block: 6px; }
  .rv-today-b .rnx-next { padding-block: 7px; }
  .rv-today-b { gap: 6px; padding: 8px 14px 10px; }
}
/* 「오늘」 카드 둘째 줄(지금 화면의 「다음 일정」 — 마감 · 절차): 작게 · 짧은 창에서는 숨김(DOM · 링크 그대로) */
.rv-next2 .rnx-next { min-height: 44px; padding-block: 6px; background: var(--surface); box-shadow: none; }
.rv-next2 .rnx-next-t { font-size: 13.5px; font-weight: 600; }
@media (max-width: 599.98px) and (max-height: 720px) { .rv-next2 { display: none; } }

/* ==========================================================================
   2차 재검수 반영(2026-11-19 · Fable 5.2 max 재검수 R2-01~R2-19)
   ========================================================================== */
/* R2-02: 날짜 칩 — 오늘과 다른 달이면 위에 작은 「12월」 */
.rv-ev-d.has-m { gap: 0; padding: 2px 0; line-height: 1.05; }
.rv-ev-d i { color: var(--ink-2); font-size: 12px; font-style: normal; font-weight: 750; }
.rv-ev-d.has-m b { font-size: 16px; }
/* R2-04: 행사 자료가 묵었으면 카드 끝 「자료 기준 …」을 굵게 · 색(새 줄 0 — 첫 화면 높이 그대로) */
.rnx-band.is-stale .pt-band-src time { color: #9A3412; font-weight: 800; }
.rv-calgo .rnx-next-k { color: var(--accent-ink); font-weight: 800; }
/* R2-05: 큰 진 + 글 있음 — 「오늘」 카드 아래 권역 바로 가기 한 줄(가로 밀기 · 44px) */
.rv-zjump.is-top { display: flex; gap: 6px; align-items: center; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.rv-zjump.is-top::-webkit-scrollbar { display: none; }
.rv-zjump.is-top a { flex: none; min-height: var(--tap-min); padding: 0 14px; border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--accent-line); white-space: nowrap; }
.rv-zjump-k { flex: none; display: inline-flex; align-items: center; gap: 5px; padding-right: 2px; color: var(--ink-2); font-size: var(--fs-label); font-weight: 750; white-space: nowrap; }
.rv-zjump-k .rv-ico { width: 18px; height: 18px; color: var(--accent-ink); }
@media (min-width: 1000px) { .rv-zjump.is-top { display: flex; margin: 0; padding: 0; } }
/* R2-03: 권역별 다가오는 행사 — 빈 권역 · 시·군 칩 */
.rv-acc-none { padding: 4px 0 8px; color: var(--ink-2); font-size: var(--fs-label); }
.rv-acc-hubs { padding: 4px 0 12px; }
/* R2-03: 이번 달 날짜순 목록 — 휴대폰은 앞 8줄 + 주 단위 접기(라벨 안 체크박스 · :has 없으면 모두 펼침) · 600 이상은 접지 않음 */
.rv-wkf-l { display: none; }
.rv-wkf-t { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (max-width: 599.98px) {
  .rv-wkf { border-top: 1px solid var(--line); }
  .rv-wkf-l { position: relative; display: flex; align-items: center; gap: 6px; min-height: 52px; color: var(--ink-2); font-size: var(--fs-label); font-weight: 700; cursor: pointer; }
  .rv-wkf-l b { color: var(--ink); }
  .rv-wkf-l::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 4px auto; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .rv-wkf-l:has(.rv-wkf-t:checked)::after { margin-bottom: -2px; transform: rotate(-135deg); }
  .rv-wkf-l:has(.rv-wkf-t:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
  .rv-wkf:has(> .rv-wkf-l .rv-wkf-t:not(:checked)) > .pt-evs { display: none; }
}
/* R2-10: 행사 쪽 주말 · 신청 둘 다 0건 — 한 카드 두 줄 */
.rv-zero2 { display: grid; gap: 10px; }
.rv-zero2 > section { display: grid; gap: 2px; }
.rv-zero2 h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: var(--fs-body); font-weight: 800; }
.rv-zero2 h2 small { color: var(--muted); font-size: var(--fs-caption); font-weight: 650; }
.rv-zero2 p { color: var(--ink-2); font-size: var(--fs-label); line-height: 1.5; }
.rv-zero2 .rv-zero2-go { display: flex; flex-wrap: wrap; gap: 0 16px; }
.rv-zero2-go a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rv-zero2 .rv-wk, .rv-zero2 .rv-ap { scroll-margin-top: calc(var(--bar) + 12px); }
/* R2-14: 넓은 화면 — 빠른 칸 3등분 · 홈 첫 묶음 2열(가로 꼴 첫 글 아래 2장이 3열 격자의 1/3 을 비우던 것) · 600~999 도 첫 글 가로 꼴 */
@media (min-width: 1000px) {
  .rv-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rv-quick.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-quick.is-1 { grid-template-columns: minmax(0, 1fr); }
  body.rn.is-home.has-tabs .rn-feed-list:not(.is-rest):has(> .rn-post.is-lead) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 999.98px) {
  body.rn.has-tabs .rn-feed-list:not(.is-rest) > .rn-post.is-lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "img body"; gap: 0 20px; align-items: start; }
  body.rn.has-tabs .rn-feed-list:not(.is-rest) > .rn-post.is-lead .rn-post-img { aspect-ratio: 16 / 10; }
}
/* R2-15: 작은 칸 — 머리 「분야」 아이콘 단추 44 · 지역 목록 근거 「출처」 링크 높이 · 옛 단계 배지 12px */
.rn-cats > summary { min-width: var(--tap-min); justify-content: center; }
.rnx-basis a { padding: 16px 2px; margin: -16px 0; }
body.rn.has-tabs .pt-step-done, body.rn.has-tabs .pt-step-open, body.rn.has-tabs .pt-step-today { font-size: 12px; }
/* R2-05: 키 낮은 휴대폰 창(주소창 보이는 ≤720)은 권역 바로 가기 줄을 숨긴다(둘째 줄과 같은 꼴 — 아래 탭 「지역」이 같은 길 · DOM · 링크 그대로) */
@media (max-width: 599.98px) and (max-height: 720px) { .rv-zjump.is-top { display: none; } }
