/* 다크 모드 글자 대비 보정 1.1.0 (아이콘은 라이트와 같은 색 유지) — 2026-11-19 전수조사(20개 페이지) 결과
   어두운 카드(#646B76) 위 글자는 #F4F3EE만 4.5:1을 넘음(4.86).
   밝은 칩(#DEDCD2) 위 글자는 #2A2E35. */
html[data-theme=dark] body .site-footer,
html[data-theme=dark] body .site-footer :is(p,span,a,small,strong){color:#F4F3EE!important}

/* 홈 실시간 카드 보조 글자·단위, 알림 본문 */
html[data-theme=dark] body .shortcut-item :is(span,small,strong,b,p,time):not(svg *):not(.shortcut-icon),
html[data-theme=dark] body .region-alerts a p{color:#F4F3EE!important}

/* 페이지 제목의 청록 '울산' (배경 #2A2E35에서 2.83) */
html[data-theme=dark] body .brand-heading .heading-ulsan{color:#F4F3EE!important}

/* 울산 재난문자: 안전안내·위급재난 표시, 안내 상자 */
html[data-theme=dark] body .message-level,
html[data-theme=dark] body .emergency-guidance span{color:#F4F3EE!important}
html[data-theme=dark] body .message-level-danger{background:#AE4149!important;color:#F4F3EE!important;padding:1px 6px;border-radius:4px}

/* 전국 재난문자: 밝은 칩 → 어두운 글자, 위급재난 갈색 칩 → 밝은 글자, 상황 요약 제목 */
html[data-theme=dark] body .em-feed article header strong{color:#2A2E35!important}
html[data-theme=dark] body .em-feed article[data-level="위급재난"] header strong{color:#F4F3EE!important}
html[data-theme=dark] body .op-situation :is(h2,h3){color:#F4F3EE!important}

/* 응급의료: 요약 상자(첫 칸 어두움, 나머지 밝음), 병원 카드 */
html[data-theme=dark] body #med-board .ms-summary>div:first-child :is(span,strong,small){color:#F4F3EE!important}
html[data-theme=dark] body #med-board .ms-summary>div:not(:first-child) :is(span,strong,small){color:#2A2E35!important}
html[data-theme=dark] body .st-list article :is(h3,strong,span,small){color:#F4F3EE!important}

/* 댐, 날씨, 문화축제, 공공시설, 휴양림, 연결 상태 */
html[data-theme=dark] body .dam-live-badge,
html[data-theme=dark] body section h3,
html[data-theme=dark] body .sw-point-list article h3,
html[data-theme=dark] body .sw-point-list dd,
html[data-theme=dark] body .api-record .api-date,
html[data-theme=dark] body .data-chip,
html[data-theme=dark] body #response-health-title{color:#F4F3EE!important}
html[data-theme=dark] body dd a{color:#F4F3EE!important;text-decoration:underline}

/* 재측정 후 추가: 날씨 시간별 카드, 댐 상세 제목 (기존 규칙이 더 구체적이라 따로 지정) */
html[data-theme=dark] body main .sw-board article :is(h3,dd),
html[data-theme=dark] body main .dam-card .dam-detail-content section h3{color:#F4F3EE!important}

/* 재측정 2차: 목록 '다음/이전' 버튼, 연결 상태 빈 화면 아이콘 */
html[data-theme=dark] body main .compact-pager a,
html[data-theme=dark] body main .empty-icon{color:#F4F3EE!important}
