:root {
    --disease-blue: #1769aa;
    --disease-blue-dark: #0b3f75;
    --disease-ink: #16324a;
    --disease-muted: #64748b;
    --disease-line: #dce7ef;
    --disease-surface: #f4f8fb;
    --disease-male: #1686c7;
    --disease-female: #e65087;
}

.disease-public-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 66px;
    color: white;
    background:
        radial-gradient(circle at 88% 10%, rgba(34, 211, 238, .25), transparent 28%),
        linear-gradient(112deg, #082f5b 0%, #0c5791 54%, #087d9c 100%);
}

.disease-public-hero::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -250px;
    width: 540px;
    height: 540px;
    border: 70px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
}

.disease-public-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .15) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 78%);
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.disease-source-card {
    display: flex;
    align-items: center;
    gap: 15px;
    width: min(100%, 355px);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 18px 45px rgba(4, 35, 67, .18);
    backdrop-filter: blur(10px);
}

.disease-source-card__icon {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: #a5f3fc;
    background: rgba(255, 255, 255, .12);
}

.disease-source-card__icon svg { width: 21px; height: 21px; }
.disease-source-card div { min-width: 0; }
.disease-source-card div > span { display: block; color: #bae6fd; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.disease-source-card strong { display: block; margin-top: 3px; color: white; font-size: 14px; line-height: 1.45; }
.disease-source-card small { display: block; margin-top: 4px; overflow: hidden; color: #bfdbfe; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.disease-public-main { min-height: 500px; padding-bottom: 72px; background: var(--disease-surface); }

.disease-period-filter {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 190px 150px auto;
    gap: 18px;
    align-items: end;
    margin-top: -27px;
    padding: 20px 22px;
    border: 1px solid var(--disease-line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 16px 38px rgba(32, 76, 109, .12);
}

.disease-period-filter__heading { display: flex; align-items: center; gap: 13px; min-height: 43px; }
.disease-period-filter__heading > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--disease-blue); background: #e9f4fc; }
.disease-period-filter__heading svg { width: 19px; height: 19px; }
.disease-period-filter__heading strong { display: block; color: var(--disease-ink); font-size: 13px; }
.disease-period-filter__heading small { display: block; margin-top: 3px; color: var(--disease-muted); font-size: 10px; }
.disease-period-filter label > span { display: block; margin-bottom: 7px; color: #546b7d; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.disease-period-filter select { width: 100%; height: 43px; padding: 0 34px 0 12px; border: 1px solid #d6e2ea; border-radius: 10px; outline: 0; color: var(--disease-ink); background: white; font-size: 12px; }
.disease-period-filter select:focus { border-color: var(--disease-blue); box-shadow: 0 0 0 3px rgba(23, 105, 170, .1); }
.disease-period-filter button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 43px; padding: 0 20px; border-radius: 10px; color: white; background: var(--disease-blue); box-shadow: 0 8px 18px rgba(23, 105, 170, .2); font-size: 11px; font-weight: 800; transition: background .2s ease, transform .2s ease; }
.disease-period-filter button:hover { background: var(--disease-blue-dark); transform: translateY(-1px); }
.disease-period-filter button svg { width: 15px; height: 15px; }

.disease-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 30px 0; }
.disease-summary-card { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 20px; border: 1px solid var(--disease-line); border-radius: 15px; background: white; box-shadow: 0 7px 22px rgba(35, 75, 104, .055); }
.disease-summary-card__icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 13px; }
.disease-summary-card__icon svg { width: 20px; height: 20px; }
.disease-summary-card.is-cases .disease-summary-card__icon { color: #087f78; background: #e5f7f3; }
.disease-summary-card.is-male .disease-summary-card__icon { color: var(--disease-male); background: #e7f4fc; }
.disease-summary-card.is-female .disease-summary-card__icon { color: var(--disease-female); background: #fceaf1; }
.disease-summary-card.is-visits .disease-summary-card__icon { color: #c27712; background: #fff3d8; }
.disease-summary-card div { min-width: 0; }
.disease-summary-card div > span { display: block; color: var(--disease-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.disease-summary-card strong { display: block; margin: 3px 0 2px; color: var(--disease-ink); font-size: 25px; font-weight: 850; line-height: 1.1; }
.disease-summary-card small { display: block; overflow: hidden; color: #91a0ac; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.disease-gender-notice { display: flex; align-items: flex-start; gap: 13px; margin: -10px 0 30px; padding: 15px 17px; border: 1px solid #f0d7a9; border-radius: 13px; color: #6f4a12; background: #fff9ed; }
.disease-gender-notice > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #a5660b; background: #ffedc5; }
.disease-gender-notice svg { width: 16px; height: 16px; }
.disease-gender-notice strong { display: block; font-size: 11px; }
.disease-gender-notice p { margin-top: 3px; color: #89652d; font-size: 10px; line-height: 1.6; }

.disease-chart-card, .disease-table-card { overflow: hidden; border: 1px solid var(--disease-line); border-radius: 18px; background: white; box-shadow: 0 8px 28px rgba(32, 73, 103, .06); }
.disease-monthly-card + .disease-chart-card { margin-top: 26px; }
.disease-table-card { margin-top: 26px; }
.disease-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 27px 21px; border-bottom: 1px solid #e7eef3; }
.disease-section-kicker { display: block; margin-bottom: 6px; color: var(--disease-blue); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.disease-section-header h2 { color: var(--disease-ink); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.disease-section-header p { margin-top: 5px; color: var(--disease-muted); font-size: 11px; }
.disease-period-badge, .disease-published-status { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; color: var(--disease-blue); background: #eaf4fb; font-size: 10px; font-weight: 750; }
.disease-period-badge svg { width: 14px; height: 14px; }
.disease-published-status { color: #087f5b; background: #e8f8f0; }
.disease-published-status > span { width: 7px; height: 7px; border-radius: 50%; background: #18a66f; box-shadow: 0 0 0 3px rgba(24, 166, 111, .12); }

.disease-chart-wrap { position: relative; height: 440px; padding: 22px 28px 16px; }
.disease-monthly-chart-wrap { position: relative; height: 330px; padding: 24px 28px 16px; }
.disease-chart-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 27px; border-top: 1px solid #e8eef3; color: #718392; background: #f8fafc; font-size: 10px; }
.disease-chart-footer span { display: flex; align-items: center; gap: 7px; }
.disease-chart-footer svg { width: 14px; height: 14px; color: var(--disease-blue); }

.disease-table-scroll { overflow-x: auto; }
.disease-data-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.disease-data-table th { padding: 13px 20px; color: #627687; background: #f3f7fa; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.disease-data-table th:nth-child(n+3), .disease-data-table td:nth-child(n+3) { text-align: right; }
.disease-data-table th:nth-child(6), .disease-data-table td:nth-child(6) { text-align: left; }
.disease-data-table td { padding: 16px 20px; border-bottom: 1px solid #e8eff3; color: #536b7c; font-size: 12px; vertical-align: middle; }
.disease-data-table tbody tr:hover { background: #f9fbfd; }
.disease-data-table td:nth-child(2) strong { display: block; color: var(--disease-ink); font-weight: 700; }
.disease-data-table td:nth-child(2) small { display: block; margin-top: 4px; color: #9a6b24; font-size: 9px; }
.disease-table-rank { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #d7e3e9; border-radius: 9px; color: #708493; background: #f7fafb; font-size: 11px; font-weight: 850; }
.disease-table-rank.is-top { border-color: transparent; color: white; background: linear-gradient(145deg, #1681be, #0b548c); box-shadow: 0 6px 13px rgba(22, 105, 170, .2); }
.disease-data-table .is-number { font-variant-numeric: tabular-nums; font-weight: 750; }
.disease-data-table .is-male { color: var(--disease-male); }
.disease-data-table .is-female { color: var(--disease-female); }
.disease-data-table .is-total { color: var(--disease-ink); font-size: 14px; font-weight: 850; }
.disease-data-table .is-change { min-width: 175px; }
.disease-data-table .is-change > small { display: block; margin-top: 5px; color: #8494a0; font-size: 9px; }
.disease-trend { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.disease-trend svg { width: 13px; height: 13px; }
.disease-trend.is-up { color: #b42318; background: #fff0ed; }
.disease-trend.is-down { color: #087f5b; background: #e8f8f0; }
.disease-trend.is-stable { color: #526b7d; background: #edf2f5; }
.disease-trend.is-new { color: #9a5b08; background: #fff4d6; }
.disease-trend.is-unavailable { color: #708493; background: #f0f4f6; }
.disease-table-comparison-note { color: #64798a !important; font-size: 9px !important; font-weight: 700 !important; white-space: nowrap; }
.disease-data-table tfoot th, .disease-data-table tfoot td { padding: 16px 20px; border: 0; color: var(--disease-ink); background: #edf5fa; font-weight: 850; }
.disease-data-table tfoot .is-number { text-align: right; }
.disease-data-table tfoot .disease-table-comparison-note { text-align: left; }
.disease-table-footer { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 17px 24px; border-top: 1px solid #e1eaf0; color: #64798a; background: #f8fafc; font-size: 10px; }
.disease-table-footer > div { display: flex; align-items: center; gap: 8px; }
.disease-table-footer svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--disease-blue); }
.disease-table-footer .is-note { width: 100%; padding-top: 12px; border-top: 1px dashed #d5e0e7; line-height: 1.7; }

.disease-empty-state { max-width: 680px; margin: 48px auto 0; padding: 55px 25px; border: 1px solid var(--disease-line); border-radius: 18px; text-align: center; background: white; }
.disease-empty-state > span { display: grid; width: 58px; height: 58px; margin: 0 auto 20px; place-items: center; border-radius: 16px; color: var(--disease-blue); background: #e8f3fb; }
.disease-empty-state > span svg { width: 26px; height: 26px; }
.disease-empty-state > p { color: var(--disease-blue); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.disease-empty-state h2 { margin-top: 7px; color: var(--disease-ink); font-size: 21px; font-weight: 800; }
.disease-empty-state small { display: block; max-width: 470px; margin: 12px auto 0; color: var(--disease-muted); font-size: 11px; line-height: 1.8; }
.disease-empty-state a { display: inline-flex; align-items: center; gap: 8px; margin-top: 23px; padding: 11px 16px; border-radius: 10px; color: white; background: var(--disease-blue); font-size: 11px; font-weight: 750; }
.disease-empty-state a svg { width: 14px; height: 14px; }

@media (max-width: 980px) {
    .disease-period-filter { grid-template-columns: 1fr 160px 140px; }
    .disease-period-filter__heading { grid-column: 1 / -1; }
    .disease-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .disease-public-hero { padding: 28px 0 52px; }
    .disease-source-card { width: 100%; }
    .disease-period-filter { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: -22px; padding: 17px; }
    .disease-period-filter__heading { grid-column: 1 / -1; }
    .disease-period-filter button { grid-column: 1 / -1; }
    .disease-summary-grid { gap: 11px; margin: 22px 0; }
    .disease-summary-card { align-items: flex-start; gap: 10px; padding: 16px 13px; }
    .disease-summary-card__icon { width: 35px; height: 35px; }
    .disease-summary-card__icon svg { width: 17px; height: 17px; }
    .disease-summary-card strong { font-size: 21px; }
    .disease-summary-card small { white-space: normal; line-height: 1.5; }
    .disease-gender-notice { margin-top: -7px; margin-bottom: 22px; }
    .disease-section-header { flex-direction: column; padding: 21px 18px 17px; }
    .disease-section-header h2 { font-size: 18px; }
    .disease-chart-wrap { height: 390px; padding: 17px 10px 12px; }
    .disease-monthly-chart-wrap { height: 300px; padding: 18px 10px 12px; }
    .disease-chart-footer, .disease-table-footer { padding: 14px 17px; }
}

@media (max-width: 420px) {
    .disease-period-filter { grid-template-columns: 1fr; }
    .disease-period-filter__heading, .disease-period-filter button { grid-column: auto; }
    .disease-summary-card__icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .disease-public-main * { transition: none !important; }
}

@media print {
    .disease-period-filter { display: none; }
    .disease-public-hero { padding: 20px 0; color: var(--disease-ink); background: white; }
    .disease-chart-card, .disease-table-card, .disease-summary-card { break-inside: avoid; box-shadow: none; }
}
