/* 오늘의 남가주 — 나이트 모드 (밤 9시~아침 6시, 방문자 현지 시간). 아래 변수 블록은 수기, 그 뒤는 gen_night_css.py 생성. */
html[data-theme="night"] { color-scheme: dark; }
html[data-theme="night"] {
  /* style.css 디자인 시스템 */
  --primary: #e6edf7; --primary-light: #c9d6e8;
  --accent: #7fa8e0; --accent-hover: #a3c1ec;
  --background: #0f1a2b; --surface: #16243a; --surface-hover: #1d2d47;
  --text-main: #e6edf7; --text-secondary: #a9b8cc; --text-light: #8c9db4;
  --border: #2a3b57; --border-hover: #364a6a;
  --neutral-100: #1b2a42; --neutral-200: #2a3b57;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.4);
  --shadow-md: 0 4px 10px -1px rgba(0,0,0,.45);
  --shadow-lg: 0 10px 20px -3px rgba(0,0,0,.5);
  --shadow-hover: 0 20px 28px -5px rgba(0,0,0,.55);
  /* benefit.html */
  --bg-cream: #0f1a2b; --neutral-50: #16243a; --neutral-400: #8c9db4;
  --neutral-600: #a9b8cc; --neutral-800: #d5deeb; --white: #16243a;
  --accent-dark: #a3c1ec; --accent-light: rgba(127,168,224,.14);
  /* citizenshiptest.html */
  --bg: #0f1a2b; --surface2: #1b2a42; --text: #e6edf7; --text2: #a9b8cc; --text3: #8c9db4;
  --border2: #364a6a;
  --green-bg: #12342a; --green-border: #1f5a45; --red-bg: #3a1c20; --red-border: #6b2e35;
  --orange-bg: #3a2a18; --blue-bg: #172b4d; --yellow-bg: #3a3217;
}
html[data-theme="night"] body { background: var(--background); color: var(--text-main); }
html[data-theme="night"] img:not(.logo-icon) { filter: brightness(.88) contrast(1.02); }
html[data-theme="night"] .logo-icon { background: #f4efe6; border-radius: 8px; padding: 2px; }

/* 테마 토글 버튼 (theme.js가 헤더 안에 삽입, 떠다니지 않음) */
#tng-theme-toggle {
  flex: 0 0 auto; margin-left: 8px; height: 36px; padding: 0 12px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font: 600 12px/1 -apple-system, "Pretendard Variable", "Noto Sans KR", sans-serif;
  color: #1E3A5F; background: #fff; border: 1px solid #DDD0B8;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
#tng-theme-toggle + .search-container { margin-left: 8px !important; }
#tng-theme-toggle.tng-theme-corner { position: absolute; top: 12px; right: 14px; margin: 0; }
#tng-theme-toggle:focus-visible { outline: 2px solid #E76F51; outline-offset: 2px; }
html[data-theme="night"] #tng-theme-toggle { color: #e6edf7; background: #16243a; border-color: #364a6a; }
.detail-site-header .detail-back-link { margin-left: auto; }
@media (max-width: 760px) { .headline-bar #tng-theme-toggle { margin-left: auto; } }

/* ===== generated by gen_night_css.py ===== */
/* ---- style.css ---- */
html[data-theme="night"] .headline-bar .logo {
  color: #e6edf7 !important;
}
html[data-theme="night"] .book-btn--gg {
  color: #4ade80 !important;
}
html[data-theme="night"] .navbar {
  background: rgba(22,36,58,0.8) !important;
}
html[data-theme="night"] .navbar.scrolled {
  background: rgba(22,36,58,0.95) !important;
}
html[data-theme="night"] .news-detail-page {
  background: #1b2a42 !important;
}
html[data-theme="night"] .detail-site-header {
  background: #16243a !important;
}
html[data-theme="night"] .news-article {
  background: #16243a !important;
}
html[data-theme="night"] .article-key-summary {
  background: #1d2d47 !important;
  border: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .article-more-info p {
  color: #cbd5e1 !important;
}
html[data-theme="night"] .article-source-box {
  background: #1b2a42 !important;
}
html[data-theme="night"] .related-news-card:hover {
  border-color: #364a6a !important;
}
html[data-theme="night"] .detail-close {
  background: rgba(22,36,58,0.8) !important;
}
html[data-theme="night"] .detail-close:hover {
  background: #16243a !important;
}
html[data-theme="night"] .skeleton-image {
  background: linear-gradient(90deg, #1d2d47 25%, #2a3b57 50%, #1d2d47 75%) !important;
}
html[data-theme="night"] .site-footer a {
  color: #d9c6b0 !important;
}
html[data-theme="night"] .article-source-box a.source-link-card {
  border: 1px solid var(--neutral-200, #2a3b57) !important;
  background: var(--surface, #16243a) !important;
}
html[data-theme="night"] .article-source-box a.source-link-card:hover {
  background: var(--neutral-100, #16243a) !important;
}
html[data-theme="night"] .source-link-card__thumb {
  background: var(--neutral-100, #16243a) !important;
}
html[data-theme="night"] .card-thumb {
  background: var(--neutral-100, #16243a) !important;
}
/* ---- home.css ---- */
html[data-theme="night"] .skip-link {
  background: #16243a !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .editorial-home .headline-bar {
  background: #0f1a2b !important;
}
html[data-theme="night"] .editorial-home .logo {
  color: #e6edf7 !important;
}
html[data-theme="night"] .editorial-home .header-menu a:hover {
  background: #1d2d47 !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .editorial-home .content-hub-eyebrow {
  color: #f28b6c !important;
}
html[data-theme="night"] .editorial-home .content-hub > p:not(.content-hub-eyebrow) {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .content-tabs {
  border-bottom: 1px solid #364a6a !important;
}
html[data-theme="night"] .editorial-home .content-tabs a {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .content-tabs a.active {
  color: #e6edf7 !important;
}
html[data-theme="night"] .feed-heading > span {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .card {
  border: 1px solid #2a3b57 !important;
  background: #16243a !important;
}
html[data-theme="night"] .editorial-home .card-image-container {
  background: #1d2d47 !important;
}
html[data-theme="night"] .editorial-home .card-image-container::before {
  color: #8c9db4 !important;
}
html[data-theme="night"] .editorial-home .badge {
  color: #f28b6c !important;
}
html[data-theme="night"] .editorial-home .card-desc {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .site-footer {
  border-top: 1px solid #364a6a !important;
}
html[data-theme="night"] .footer-brand {
  color: #e6edf7 !important;
}
html[data-theme="night"] .footer-brand span {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .site-footer a {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .badge {
  background: #1d2d47 !important;
}
html[data-theme="night"] .editorial-home .card-body:has(.card-thumb:not([hidden])) > .card-thumb {
  background: #2f5385 !important;
}
html[data-theme="night"] .editorial-home .card-body:has(.card-thumb:not([hidden])) > .badge {
  background: #0f1a2b !important;
  color: #f28b6c !important;
}
/* ---- podcast.css ---- */
html[data-theme="night"] #podcast {
  color: #e6edf7 !important;
}
html[data-theme="night"] #podcast-toggle {
  color: #e6edf7 !important;
}
html[data-theme="night"] #podcast-toggle[aria-expanded="true"] {
  background: #1d2d47 !important;
}
html[data-theme="night"] #podcast-panel {
  background: #16243a !important;
  border: 1px solid #2a3b57 !important;
}
html[data-theme="night"] #podcast-heading {
  color: #e6edf7 !important;
}
html[data-theme="night"] #podcast .podcast-platforms a {
  color: #a9b8cc !important;
}
html[data-theme="night"] #podcast .podcast-platforms a:hover {
  color: #e6edf7 !important;
}
html[data-theme="night"] #podcast-meta {
  color: #a9b8cc !important;
}
html[data-theme="night"] #podcast-play {
  background: #2f5385 !important;
}
html[data-theme="night"] #podcast-play:not(:disabled):hover {
  background: #3a64a0 !important;
}
html[data-theme="night"] #podcast-audio::-webkit-media-controls-panel {
  background: #0f1a2b !important;
}
html[data-theme="night"] #podcast-status {
  color: #a9b8cc !important;
}
html[data-theme="night"] #podcast-history {
  border-top: 1px solid #2a3b57 !important;
}
html[data-theme="night"] #podcast-history summary {
  color: #a9b8cc !important;
}
html[data-theme="night"] #podcast-history summary::before {
  color: #e6edf7 !important;
}
html[data-theme="night"] #podcast .podcast-archive-btn {
  color: #e6edf7 !important;
}
html[data-theme="night"] #podcast .podcast-archive-btn:hover {
  background: #0f1a2b !important;
}
html[data-theme="night"] #podcast .podcast-archive-btn.active {
  background: #1d2d47 !important;
  border-color: #364a6a !important;
}
html[data-theme="night"] #podcast .podcast-archive-info {
  color: #a9b8cc !important;
}
html[data-theme="night"] #podcast :focus-visible {
  outline: 2px solid #4a6d9f !important;
}
html[data-theme="night"] #podcast-play[data-pending="true"] {
  background: #1d2d47 !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] #podcast-availability {
  color: #a9b8cc !important;
}
/* ---- events.css ---- */
html[data-theme="night"] .events-status {
  color: #a9b8cc !important;
}
html[data-theme="night"] .events-day-head h3 {
  color: #e6edf7 !important;
}
html[data-theme="night"] .events-day-head span {
  color: #a9b8cc !important;
}
html[data-theme="night"] .events-day.is-today .events-day-head h3 {
  color: #6cc0ae !important;
}
html[data-theme="night"] .event-row {
  border-bottom: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .event-time {
  color: #6cc0ae !important;
}
html[data-theme="night"] .event-time.is-muted {
  color: #8c9db4 !important;
}
html[data-theme="night"] .event-title {
  color: #e6edf7 !important;
}
html[data-theme="night"] .event-title a:hover {
  color: #6cc0ae !important;
}
html[data-theme="night"] .event-orig {
  color: #8c9db4 !important;
}
html[data-theme="night"] .event-sub {
  color: #a9b8cc !important;
}
html[data-theme="night"] .event-place {
  color: #a9b8cc !important;
}
html[data-theme="night"] .event-region {
  border: 1px solid #364a6a !important;
  color: #6cc0ae !important;
}
html[data-theme="night"] .event-actions a {
  color: #6cc0ae !important;
}
html[data-theme="night"] .events-note {
  color: #a9b8cc !important;
}
html[data-theme="night"] .events-tab {
  border: 1px solid #364a6a !important;
  color: #a9b8cc !important;
}
html[data-theme="night"] .events-tab:hover {
  color: #6cc0ae !important;
}
html[data-theme="night"] .events-hint {
  color: #8c9db4 !important;
}
html[data-theme="night"] .scale-bars i {
  background: #2a3b57 !important;
}
html[data-theme="night"] .scale-1 i.on {
  background: #2a3b57 !important;
}
html[data-theme="night"] .event-row.scale-row-1 .event-title {
  color: #bccbe0 !important;
}
html[data-theme="night"] .zip-input {
  border: 1px solid #364a6a !important;
  background: #16243a !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .loc-chip {
  border: 1px solid #364a6a !important;
  color: #bccbe0 !important;
}
html[data-theme="night"] .loc-chip:hover {
  color: #6cc0ae !important;
}
html[data-theme="night"] .loc-status {
  color: #f28b6c !important;
}
html[data-theme="night"] .legend-chip.active {
  background: #1b2a42 !important;
  color: #e6edf7 !important;
}
/* ---- detail.css ---- */
html[data-theme="night"] body.news-detail-page {
  background-color: #0f1a2b !important;
}
html[data-theme="night"] .news-detail-page .detail-site-header {
  background: #0f1a2b !important;
}
html[data-theme="night"] .news-detail-page .news-article {
  background: #16243a !important;
}
html[data-theme="night"] .news-detail-page .article-key-summary {
  background: #1d2d47 !important;
  border: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .news-detail-page .article-section-label {
  color: #f28b6c !important;
}
html[data-theme="night"] .news-detail-page .article-source-box {
  background: #1d2d47 !important;
}
html[data-theme="night"] .news-detail-page .article-source-box a,
html[data-theme="night"] .news-detail-page .news-article .article-source-box a {
  color: #ffffff !important;
}
html[data-theme="night"] .news-detail-page .related-news-card {
  background: #16243a !important;
}
html[data-theme="night"] .news-detail-page .site-footer {
  background: #0f1a2b !important;
}
html[data-theme="night"] .news-detail-page .news-article .article-source-box a.source-link-card {
  background: #16243a !important;
  color: var(--text, #e6edf7) !important;
}
html[data-theme="night"] .news-detail-page .article-source-box a.source-link-card:hover {
  background: #1b2a42 !important;
}
html[data-theme="night"] .news-detail-page .source-link-card__site {
  color: #a9b8cc !important;
}
html[data-theme="night"] .news-detail-page .source-link-card__title {
  color: #e6edf7 !important;
}
html[data-theme="night"] .news-detail-page .news-article-kicker,
html[data-theme="night"] .news-detail-page .related-news-category {
  color: #f28b6c !important;
}
/* ---- election.css ---- */
html[data-theme="night"] .election-disclaimer {
  border: 1px solid #364a6a !important;
  border-left: 4px solid #4a6d9f !important;
  background: #1b2a42 !important;
  color: #c9d6e8 !important;
}
html[data-theme="night"] .election-disclaimer strong {
  color: #e6edf7 !important;
}
html[data-theme="night"] .election-meta {
  color: #a9b8cc !important;
}
html[data-theme="night"] .race {
  border-bottom: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .race-title {
  color: #e6edf7 !important;
}
html[data-theme="night"] .race-title small {
  color: #8c9db4 !important;
}
html[data-theme="night"] .race-count {
  color: #e6edf7 !important;
}
html[data-theme="night"] .race-names {
  color: #a9b8cc !important;
}
html[data-theme="night"] .cand {
  border: 1px solid #2a3b57 !important;
  background: #16243a !important;
}
html[data-theme="night"] .cand h3 {
  color: #e6edf7 !important;
}
html[data-theme="night"] .cand-tags {
  color: #a9b8cc !important;
}
html[data-theme="night"] .cand-party {
  border: 1px solid #364a6a !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .cand h4 {
  color: #e6edf7 !important;
}
html[data-theme="night"] .cand ul {
  color: #e6edf7 !important;
}
html[data-theme="night"] .cand-pending {
  background: #1b2a42 !important;
  color: #a9b8cc !important;
}
html[data-theme="night"] .cand-note {
  color: #8c9db4 !important;
}
html[data-theme="night"] .cand-links a {
  border: 1px solid #4a6d9f !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .cand-links a.primary {
  background: #2f5385 !important;
}
html[data-theme="night"] .cand-links a:hover {
  background: #3a64a0 !important;
}
html[data-theme="night"] .election-note {
  color: #a9b8cc !important;
}
html[data-theme="night"] .election-status {
  color: #a9b8cc !important;
}
html[data-theme="night"] .cmp {
  border: 1px solid #2a3b57 !important;
  background: #16243a !important;
}
html[data-theme="night"] .cmp-row > div {
  border-top: 1px solid #24344f !important;
  border-left: 1px solid #24344f !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .cmp-row > div:first-child {
  background: #1b2a42 !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .cmp-head > div {
  background: #2f5385 !important;
}
html[data-theme="night"] .cmp-na {
  color: #8c9db4 !important;
}
html[data-theme="night"] .cmp-h {
  color: #e6edf7 !important;
}
html[data-theme="night"] .cand-en {
  color: #8c9db4 !important;
}
html[data-theme="night"] .election-end {
  border-top: 2px solid #4a6d9f !important;
}
html[data-theme="night"] .election-end h2 {
  color: #e6edf7 !important;
}
html[data-theme="night"] .election-sources {
  color: #c9d6e8 !important;
}
html[data-theme="night"] .election-sources a {
  color: #e6edf7 !important;
}
html[data-theme="night"] .election-legal {
  color: #c9d6e8 !important;
}
html[data-theme="night"] .ai-badge {
  background: #3a3217 !important;
  border: 1px solid #6b5a22 !important;
  color: #e8c766 !important;
}
html[data-theme="night"] .st-ko {
  color: #e6edf7 !important;
}
html[data-theme="night"] .st-en {
  color: #8c9db4 !important;
}
html[data-theme="night"] .st-hold {
  color: #e8c766 !important;
}
html[data-theme="night"] .election-updated {
  color: #e6edf7 !important;
}
html[data-theme="night"] .election-tabs button {
  border: 1px solid #4a6d9f !important;
  background: #16243a !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .election-tabs button[aria-selected="true"] {
  background: #2f5385 !important;
}
html[data-theme="night"] .election-sec {
  color: #e6edf7 !important;
}
html[data-theme="night"] .election-sec-sub {
  color: #a9b8cc !important;
}
html[data-theme="night"] .local-controls input {
  border: 1px solid #364a6a !important;
}
html[data-theme="night"] .local-chips button {
  border: 1px solid #364a6a !important;
  background: #16243a !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .local-chips button.on {
  background: #2f5385 !important;
  border-color: #4a6d9f !important;
}
html[data-theme="night"] .city-head {
  border-bottom: 2px solid #4a6d9f !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .city-head small {
  color: #8c9db4 !important;
}
html[data-theme="night"] .prop {
  border-bottom: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .prop .num {
  background: #2f5385 !important;
}
html[data-theme="night"] .prop .ptitle {
  color: #e6edf7 !important;
}
html[data-theme="night"] .prop .kind {
  color: #8c9db4 !important;
}
html[data-theme="night"] .prop .yes {
  background: #1b2a42 !important;
  border: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .prop .no {
  background: #16243a !important;
  border: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .prop .args > div {
  background: #0f1a2b !important;
  border: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .prop .args h4 {
  color: #e6edf7 !important;
}
html[data-theme="night"] .prop-more {
  color: #e6edf7 !important;
}
html[data-theme="night"] .prop .org,
html[data-theme="night"] .prop .src {
  color: #a9b8cc !important;
}
html[data-theme="night"] .prop .src a {
  color: #e6edf7 !important;
}
html[data-theme="night"] .district-link {
  color: #e6edf7 !important;
}
html[data-theme="night"] .sc-scroll {
  border: 1px solid #2a3b57 !important;
  background: #16243a !important;
}
html[data-theme="night"] .sc-row > div {
  border-top: 1px solid #24344f !important;
  border-left: 1px solid #24344f !important;
}
html[data-theme="night"] .sc-topic {
  background: #1b2a42 !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .sc-head > div {
  background: #2f5385 !important;
}
html[data-theme="night"] .sc-head > .sc-topic {
  background: #2f5385 !important;
}
html[data-theme="night"] .sc-na {
  color: #8c9db4 !important;
}
html[data-theme="night"] .st-dupnote {
  color: #e8c766 !important;
}
html[data-theme="night"] .st-note {
  color: #e8c766 !important;
}
html[data-theme="night"] .st-major {
  color: #e77a74 !important;
}
html[data-theme="night"] .stmt-full > summary {
  color: #e6edf7 !important;
}
html[data-theme="night"] .off-badge {
  background: #1b2a42 !important;
  color: #86d5aa !important;
}
html[data-theme="night"] .pname:hover,
html[data-theme="night"] .pname:focus {
  color: #e6edf7 !important;
}
html[data-theme="night"] .pop {
  background: #16243a !important;
}
html[data-theme="night"] .pop-x {
  background: #2f5385 !important;
}
html[data-theme="night"] .pop-race {
  color: #a9b8cc !important;
}
html[data-theme="night"] .oinfo {
  color: #e6edf7 !important;
}
html[data-theme="night"] .vote-info {
  background: #16243a !important;
  border: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .vote-info > summary {
  color: #e6edf7 !important;
}
html[data-theme="night"] .vote-info > summary small {
  color: #a9b8cc !important;
}
html[data-theme="night"] .vdates li {
  border-top: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .vdates li.next {
  background: #16243a !important;
}
html[data-theme="night"] .vt {
  background: #1b2a42 !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .vt-next,
html[data-theme="night"] .vt-now {
  background: #2f5385 !important;
}
html[data-theme="night"] .vt-past {
  background: #1b2a42 !important;
}
html[data-theme="night"] .vdates p,
html[data-theme="night"] .vsteps p {
  color: #e6edf7 !important;
}
html[data-theme="night"] .sn {
  background: #2f5385 !important;
}
html[data-theme="night"] .prop {
  border: 1px solid #2a3b57 !important;
  background: #16243a !important;
}
html[data-theme="night"] .prop:hover {
  border-color: #4a6d9f !important;
}
html[data-theme="night"] .prop[open] {
  border-color: #4a6d9f !important;
}
html[data-theme="night"] .prop-cta {
  color: #e6edf7 !important;
}
html[data-theme="night"] .prop-cta .chev {
  background: #1b2a42 !important;
}
html[data-theme="night"] .prop-cta .chev::after {
  border-right: 2.5px solid #4a6d9f !important;
  border-bottom: 2.5px solid #4a6d9f !important;
}
html[data-theme="night"] .prop-hint {
  background: #16243a !important;
  border-left: 4px solid #4a6d9f !important;
}
@media (max-width: 560px) {
html[data-theme="night"] .prop-cta {
  background: #1b2a42 !important;
}
}
/* ---- benefit-editorial.css ---- */
html[data-theme="night"] .editorial-home .feed-heading .last-updated {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .search-input {
  border: 1px solid #364a6a !important;
  background-color: #16243a !important;
}
html[data-theme="night"] .editorial-home .filter-btn {
  border: 1px solid #364a6a !important;
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .filter-btn:hover {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .card,
html[data-theme="night"] .editorial-home .card-hero {
  border: 1px solid #2a3b57 !important;
  background: #16243a !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .editorial-home .badge {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .badge-cat {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .badge-level {
  border: 1px solid #364a6a !important;
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .badge-new {
  background: #1d2d47 !important;
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .badge-deadline {
  color: #e3c578 !important;
}
html[data-theme="night"] .editorial-home .card-title,
html[data-theme="night"] .editorial-home .hero-title {
  color: #e6edf7 !important;
}
html[data-theme="night"] .editorial-home .card-benefit-label,
html[data-theme="night"] .editorial-home .hero-benefit-label {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .card-benefit,
html[data-theme="night"] .editorial-home .hero-benefit {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .card-desc {
  color: #a9b8cc !important;
}
html[data-theme="night"] .editorial-home .card-eligibility {
  border: 1px solid #2a3b57 !important;
  background: #0f1a2b !important;
}
html[data-theme="night"] .editorial-home .card-eligibility-title {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .card-eligibility-item {
  color: #c9d6e8 !important;
}
html[data-theme="night"] .editorial-home .card-eligibility-item::before {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .card-footer {
  border-top: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .editorial-home .card-updated {
  color: #8c9db4 !important;
}
html[data-theme="night"] .editorial-home .card-cta {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .card-hero {
  background: #1d2d47 !important;
  border-color: #364a6a !important;
}
html[data-theme="night"] .editorial-home .hero-cta {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .program-detail-card {
  border: 1px solid #2a3b57 !important;
  background: #16243a !important;
}
html[data-theme="night"] .editorial-home .program-detail-back {
  color: #6cc0ae !important;
}
html[data-theme="night"] .editorial-home .program-key-summary {
  border-color: #364a6a !important;
  background: #1d2d47 !important;
}
html[data-theme="night"] .editorial-home .program-key-summary .modal-benefit-label {
  color: #6cc0ae !important;
}
/* ---- benefit-chat.css ---- */
html[data-theme="night"] .bc-panel {
  background: #16243a !important;
  border: 1px solid #364a6a !important;
}
html[data-theme="night"] .bc-note {
  color: #e7ba74 !important;
  border-bottom: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .bc-log {
  background: #0f1a2b !important;
}
html[data-theme="night"] .bc-msg.ai {
  background: #16243a !important;
  border: 1px solid #2a3b57 !important;
}
html[data-theme="night"] .bc-msg a {
  color: #8ad1bc !important;
}
html[data-theme="night"] .bc-form {
  border-top: 1px solid #2a3b57 !important;
  background: #16243a !important;
}
html[data-theme="night"] .bc-input {
  border: 1px solid #364a6a !important;
}
/* ---- benefit.html ---- */
html[data-theme="night"] .hero-badge {
  background: rgba(22,36,58,0.22) !important;
}
html[data-theme="night"] .badge-new {
  color: #e7a074 !important;
}
html[data-theme="night"] .badge-deadline {
  background: #16243a !important;
  color: #e77474 !important;
}
html[data-theme="night"] .card-eligibility {
  background: rgba(22,36,58,0.7) !important;
}
html[data-theme="night"] .modal-badges .badge {
  background: rgba(22,36,58,0.22) !important;
}
html[data-theme="night"] .modal-deadline-note {
  background: #16243a !important;
  color: #e77474 !important;
}
html[data-theme="night"] .modal-checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='#16243a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E") !important;
}
html[data-theme="night"] .term-tooltip-active {
  background: #1b2a42 !important;
}
html[data-theme="night"] .term-popup {
  background: #16243a !important;
  border: 1px solid #2a3b57 !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] .term-popup-body {
  color: #e6edf7 !important;
}
html[data-theme="night"] .term-popup-close:hover {
  background: #1b2a42 !important;
}
html[data-theme="night"] .disclaimer {
  background: #16243a !important;
  border: 1px solid #2a3b57 !important;
  color: #e7a074 !important;
}
html[data-theme="night"] .program-key-summary {
  border: 1px solid #2a3b57 !important;
  background: #16243a !important;
}
html[data-theme="night"] .program-key-summary .modal-benefit-label {
  color: #e6edf7 !important;
}
/* ---- citizenshiptest.html ---- */
html[data-theme="night"] .hdr {
  background: rgba(22,36,58,.92) !important;
}
html[data-theme="night"] .hero .method-tag {
  background: linear-gradient(135deg,#16243a,#16243a) !important;
}
html[data-theme="night"] .smode.active {
  background: linear-gradient(135deg,#16243a,#16243a) !important;
}
html[data-theme="night"] .front .fc-badge {
  background: rgba(22,36,58,.12) !important;
}
html[data-theme="night"] .conf-btn.hard {
  border-color: #2a3b57 !important;
}
/* ---- privacy.html ---- */
html[data-theme="night"] body {
  background: #16243a !important;
  color: #e6edf7 !important;
}
html[data-theme="night"] h1,
html[data-theme="night"] h2 {
  color: #e6edf7 !important;
}
html[data-theme="night"] a {
  color: #cfaa8c !important;
}

/* ===== 수기 보정 (생성 규칙보다 뒤에 와서 우선) ===== */
/* body/.editorial-home/.news-detail-page가 자체 정의한 변수를 덮어씀 */
html[data-theme="night"] body {
  --primary: #e6edf7; --accent: #7fa8e0; --accent-hover: #a3c1ec;
  --background: #0f1a2b; --text-main: #e6edf7; --text-secondary: #a9b8cc; --border: #2a3b57;
}
html[data-theme="night"]:has(link[href*="benefit-editorial"]) body {
  --accent: #6cc0ae; --accent-dark: #9be0d0; --bg-cream: #0f1a2b;
  --neutral-50: #1d2d47; --neutral-100: #2a3b57; --neutral-200: #364a6a;
  --neutral-400: #8c9db4; --neutral-600: #a9b8cc; --neutral-800: #c9d6e8;
  --shadow-lg: 0 10px 24px rgba(0,0,0,.4); --shadow-xl: 0 10px 24px rgba(0,0,0,.4);
}
html[data-theme="night"] body { background: #0f1a2b !important; color: #e6edf7; }
html[data-theme="night"] .headline-bar { background: #0f1a2b !important; border-bottom-color: #2a3b57 !important; }
html[data-theme="night"] .headline-bar .nav-date { background: transparent !important; color: #a9b8cc !important; }
html[data-theme="night"] #tngnav-btn .tngnav-bars span { background: #e6edf7 !important; }
html[data-theme="night"] #tngnav-btn:hover { background: #1d2d47 !important; }
