/*
 * Statistik Penduduk · Statistik Anggaran · Statistik Desa · Transparansi Anggaran
 * Gaya dasbor: kartu KPI angka besar, grafik bersih, bilah progres berlabel, legenda baris + pil nilai.
 * Dimuat SETELAH site-desa.css. Hanya memakai token var(--d-*).
 */

/* ------------------------------------------------------------ 0. Netralkan aturan lama
   main.css memaksa warna teks terang (!important) pada p/span/li/td… di mode gelap.
   Reset ini (spesifisitas sama, dimuat belakangan) mengembalikan pewarisan; kelas di bawah menang karena urutan. */
html body.dark-mode :where(.st-root) :where(h1, h2, h3, h4, h5, h6, p, span, li, dt, dd, small, strong, label, th, td):where(:not([class^="d-"]):not([class*=" d-"])) {
  color: inherit !important;
}
html body.st-body { background: var(--d-bg) !important; overflow-x: clip; }
html body .st-root { display: block; width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; color: var(--d-ink); }
html body .st-root *, html body .st-root *::before, html body .st-root *::after { box-sizing: border-box; }

/* warna kepala halaman (dilindungi dari aturan gelap main.css) */
html body .d-pagehead__desc { color: var(--d-on-deep-muted) !important; }
html body .d-crumbs [aria-current] { color: #fff !important; }
html body .st-root .d-pagehead__meta .d-chip, html body .st-root .d-pagehead__meta .d-chip * { color: var(--d-on-deep) !important; }
html body .d-pagehead__meta .d-chip i { opacity: 0.7; }
html body .st-root .d-eyebrow { color: var(--d-brand) !important; }
html body .st-root .d-h2, html body .st-root .d-h3 { color: var(--d-ink) !important; }
html body .st-root .d-lead { color: var(--d-muted) !important; }
html body .st-root .d-chip { color: var(--d-muted) !important; }
html body .st-root .d-chip--brand { color: var(--d-brand) !important; }
html body .st-root .d-chip--ok { color: var(--d-ok) !important; }
html body .st-root .d-chip--warn { color: var(--d-warn) !important; }
html body .st-root .d-table th { color: var(--d-subtle) !important; }
html body .st-root .d-table td { color: var(--d-ink) !important; }
html body .st-root .d-btn--light { color: var(--d-deep) !important; }

.st-pagehead__stat { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.st-pagehead__stat > div:first-child { min-width: 0; }

/* ------------------------------------------------------------ 1. Bilah alat (filter) */
.st-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 10px 10px 10px 22px; margin-bottom: clamp(20px, 2.6vw, 28px);
  background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--d-radius-l);
}
.st-toolbar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; }
.st-toolbar__title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 700; color: var(--d-ink) !important; }
.st-toolbar__title i { color: var(--d-brand); }
.st-field { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
html body .st-field > label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-subtle) !important; white-space: nowrap; }
.st-select { position: relative; display: inline-flex; min-width: 0; }
html body .st-select select {
  -webkit-appearance: none; appearance: none; height: 42px; min-width: 120px; max-width: 100%; margin: 0;
  padding: 0 42px 0 16px; border: 1px solid var(--d-line-strong) !important; border-radius: 999px !important;
  background: var(--d-surface) !important; color: var(--d-ink) !important; box-shadow: none !important;
  font-size: 14px; font-weight: 600; cursor: pointer; text-overflow: ellipsis;
  transition: border-color 160ms, box-shadow 160ms;
}
html body .st-select select:hover { border-color: var(--d-brand) !important; }
html body .st-select select:focus { outline: 0; border-color: var(--d-brand) !important; box-shadow: 0 0 0 4px var(--d-tint) !important; }
html body .st-select select option { background: var(--d-surface); color: var(--d-ink); }
.st-select > i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--d-subtle); pointer-events: none; }
.st-toolbar__aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* tab pill sebagai tautan */
html body .st-root a.d-tab { display: inline-flex; align-items: center; text-decoration: none !important; color: var(--d-muted) !important; }
html body .st-root a.d-tab:hover { color: var(--d-ink) !important; }
html body .st-root a.d-tab.active { color: #fff !important; }
html body.dark-mode .st-root a.d-tab.active { color: var(--d-on-brand) !important; }
.st-tabs-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-tabs-scroll::-webkit-scrollbar { display: none; }
.st-tabs-scroll .d-tabs { flex-wrap: nowrap; }

/* ------------------------------------------------------------ 2. Kartu KPI */
.st-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-bottom: clamp(20px, 2.6vw, 28px); }
.st-kpi {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: clamp(20px, 2vw, 26px); background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--d-radius-l);
}
.st-kpi__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html body .st-kpi__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: 14px; font-weight: 600; color: var(--d-muted) !important; letter-spacing: -0.005em; }
.st-kpi__icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--d-tint); color: var(--d-brand); font-size: 15px; }
html body .st-kpi__value {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: auto 0 0;
  font-size: clamp(34px, 3.3vw, 50px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--d-ink) !important;
  font-variant-numeric: tabular-nums;
}
html body .st-kpi__value small, html body .st-kpi__unit { font-size: 0.36em; font-weight: 600; letter-spacing: -0.01em; color: var(--d-subtle) !important; }
html body .st-kpi__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 13px; color: var(--d-muted) !important; }
html body .st-kpi__foot span { color: var(--d-muted) !important; }
.st-kpi .st-progress { margin-top: 2px; }

.st-delta {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--d-tint); font-size: 12px; font-weight: 700; white-space: nowrap;
}
html body .st-delta, html body .st-delta * { color: var(--d-brand) !important; }
html body .st-delta--ok { background: var(--d-ok-tint); }
html body .st-delta--ok, html body .st-delta--ok * { color: var(--d-ok) !important; }
html body .st-delta--warn { background: var(--d-warn-tint); }
html body .st-delta--warn, html body .st-delta--warn * { color: var(--d-warn) !important; }

/* KPI unggulan: band biru tua */
.st-kpi--feature { background: var(--d-deep); border-color: transparent; }
.st-kpi--feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 120% at 100% 0%, rgba(31, 91, 216, 0.6), transparent 60%);
}
html body .st-kpi--feature .st-kpi__label { color: var(--d-on-deep-muted) !important; }
html body .st-kpi--feature .st-kpi__value { color: #fff !important; }
html body .st-kpi--feature .st-kpi__value small, html body .st-kpi--feature .st-kpi__unit { color: var(--d-accent) !important; }
html body .st-kpi--feature .st-kpi__foot, html body .st-kpi--feature .st-kpi__foot span { color: var(--d-on-deep-muted) !important; }
.st-kpi--feature .st-kpi__icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
html body .st-kpi--feature .st-delta { background: rgba(169, 205, 255, 0.16); }
html body .st-kpi--feature .st-delta, html body .st-kpi--feature .st-delta * { color: var(--d-accent) !important; }
.st-kpi--feature .st-progress__track { background: rgba(255, 255, 255, 0.12); }
.st-kpi--feature .st-progress__fill { background: var(--d-accent); }

/* ------------------------------------------------------------ 3. Bilah progres */
.st-progress { display: grid; gap: 8px; }
.st-progress__track { position: relative; height: 8px; border-radius: 999px; background: var(--d-surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--d-line); }
.st-progress__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--d-brand); transition: width 900ms var(--d-ease); }
.st-progress--lg .st-progress__track { height: 12px; }
.st-progress__fill--soft { background: var(--d-accent); }
html body .st-progress__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--d-muted) !important; }
html body .st-progress__meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit !important; }
html body .st-progress__meta strong { color: var(--d-ink) !important; font-weight: 700; }
html body .st-kpi--feature .st-progress__meta strong { color: #fff !important; }

/* daftar peringkat (label · nilai · bilah) */
.st-rank { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.st-rank li { display: grid; gap: 8px; }
.st-rank__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
html body .st-rank__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--d-ink) !important; }
html body .st-rank__val { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--d-ink) !important; font-variant-numeric: tabular-nums; }
html body .st-rank__val em { margin-left: 6px; font-style: normal; font-weight: 600; color: var(--d-subtle) !important; }

/* ------------------------------------------------------------ 4. Grid & kartu panel */
.st-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.st-grid + .st-grid, .st-grid + .st-section, .st-section + .st-section, .st-kpis + .st-section { margin-top: clamp(12px, 1.6vw, 20px); }
.st-span-4 { grid-column: span 4; } .st-span-5 { grid-column: span 5; } .st-span-6 { grid-column: span 6; }
.st-span-7 { grid-column: span 7; } .st-span-8 { grid-column: span 8; } .st-span-12 { grid-column: 1 / -1; }

.st-card {
  position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0;
  padding: clamp(20px, 2.2vw, 28px); background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--d-radius-l);
}
.st-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.st-card__head > div:first-child { min-width: 0; }
html body .st-card__title { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--d-ink) !important; }
html body .st-card__sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--d-muted) !important; }
.st-card__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.st-card__body { display: grid; gap: 20px; min-width: 0; }

.st-chart { position: relative; width: 100%; height: var(--st-h, 280px); min-width: 0; }
.st-chart canvas { display: block; max-width: 100%; }
.st-card__body--fill { flex: 1 1 auto; display: flex; flex-direction: column; }
.st-chart--fill { flex: 1 1 auto; height: auto; min-height: var(--st-h, 280px); }

/* donat + angka tengah */
.st-donut { position: relative; width: min(100%, var(--st-d, 220px)); aspect-ratio: 1; margin-inline: auto; }
.st-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
html body .st-donut__center strong { display: block; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--d-ink) !important; }
html body .st-donut__center.is-long strong { font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.03em; }
html body .st-donut__center span { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--d-subtle) !important; }
.st-card__body { container-type: inline-size; }
.st-donut-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 20px; }
@container (min-width: 500px) {
  .st-donut-layout { grid-template-columns: minmax(160px, 210px) minmax(0, 1fr); gap: 28px; }
}

/* legenda baris */
.st-legend { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.st-legend li { margin: 0; }
html body .st-legend__row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 10px; margin: 0;
  border: 0; border-radius: var(--d-radius-s); background: transparent; color: var(--d-ink) !important; text-align: left; cursor: pointer;
  font: inherit; transition: background-color 160ms, opacity 160ms;
}
html body .st-legend__row:hover { background: var(--d-surface-2); }
html body .st-legend__row.is-off { opacity: 0.4; }
html body .st-legend__row.is-off .st-legend__label { text-decoration: line-through; }
.st-legend__dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; }
html body .st-legend__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--d-ink) !important; }
html body .st-legend__val {
  flex-shrink: 0; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--d-surface-2); border: 1px solid var(--d-line); font-size: 12.5px; font-weight: 700; color: var(--d-ink) !important; font-variant-numeric: tabular-nums;
}
html body .st-legend__pct { flex-shrink: 0; width: 46px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--d-subtle) !important; font-variant-numeric: tabular-nums; }

/* menu ekspor */
.st-menu { position: relative; }
html body .st-menu__btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; margin: 0; border-radius: 50%;
  border: 1px solid var(--d-line); background: var(--d-surface); color: var(--d-muted) !important; cursor: pointer; font-size: 14px;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
html body .st-menu__btn:hover, html body .st-menu.is-open .st-menu__btn { background: var(--d-tint); border-color: transparent; color: var(--d-brand) !important; }
.st-menu__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 176px; padding: 6px; margin: 0; list-style: none;
  background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--d-radius-m); box-shadow: var(--d-float);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 160ms, transform 160ms var(--d-ease), visibility 160ms;
}
.st-menu.is-open .st-menu__list { opacity: 1; visibility: visible; transform: none; }
html body .st-menu__list button {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 12px; margin: 0; border: 0; border-radius: var(--d-radius-s);
  background: transparent; color: var(--d-ink) !important; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
}
html body .st-menu__list button:hover { background: var(--d-tint); color: var(--d-brand) !important; }
html body .st-menu__list button i { width: 16px; color: var(--d-subtle); }
html body .st-menu__list button span { color: inherit !important; }

/* rincian semua data */
.st-details { border-top: 1px solid var(--d-line); padding-top: 14px; }
html body .st-details > summary {
  display: inline-flex; align-items: center; gap: 10px; list-style: none; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: var(--d-ink) !important;
}
.st-details > summary::-webkit-details-marker { display: none; }
.st-details > summary .st-details__ic {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--d-line-strong);
  color: var(--d-brand); font-size: 10px; transition: transform 220ms var(--d-ease), background-color 160ms;
}
.st-details[open] > summary .st-details__ic { transform: rotate(180deg); background: var(--d-tint); border-color: transparent; }
.st-details__body { margin-top: 16px; max-height: 420px; overflow-y: auto; padding-right: 6px; }

/* ------------------------------------------------------------ 5. Bagian & kartu item (transparansi) */
.st-section { margin-top: clamp(40px, 5vw, 64px); }
.st-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(18px, 2.4vw, 26px); }
.st-section__head .d-h2 { font-size: clamp(26px, 3vw, 38px); }
html body .st-section__head .d-lead { margin-top: 10px; }
.st-section__stats { display: flex; flex-wrap: wrap; gap: 8px; }

.st-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.st-item { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--d-radius-l); transition: border-color 180ms; }
.st-item:hover { border-color: var(--d-line-strong); }
.st-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
html body .st-item__title { margin: 0; font-size: 15.5px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; color: var(--d-ink) !important; }
html body .st-item__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-subtle) !important; }
html body .st-item__value { display: block; margin-top: 6px; font-size: clamp(22px, 2vw, 27px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; color: var(--d-ink) !important; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html body .st-item__of { display: block; margin-top: 6px; font-size: 13px; color: var(--d-muted) !important; overflow-wrap: anywhere; }
html body .st-item__of strong { color: var(--d-ink) !important; font-weight: 700; }
.st-item .st-progress { margin-top: auto; }
.st-kv { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--d-line); }
.st-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--d-line); }
html body .st-kv dt { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--d-muted) !important; }
html body .st-kv dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--d-ink) !important; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

.st-ring {
  --p: 0; --c: var(--d-brand);
  position: relative; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--d-surface-2) 0);
  display: grid; place-items: center;
}
.st-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--d-surface); }
html body .st-ring span { position: relative; font-size: 12px; font-weight: 700; color: var(--d-ink) !important; font-variant-numeric: tabular-nums; }

/* tabel */
.st-table-card { padding: 0; gap: 0; overflow: hidden; }
.st-table-card > .st-card__head { padding: clamp(20px, 2.2vw, 28px); padding-bottom: 18px; }
html body .st-table-card .d-table-wrap { border: 0; border-top: 1px solid var(--d-line); border-radius: 0; }
html body .st-table-card .d-table { min-width: 720px; }
html body .st-table-card .d-table td:nth-child(2) { min-width: 220px; }
html body .st-table-card .d-table td.st-num, html body .st-table-card .d-table th.st-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body .st-cell-cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
html body .st-cell-cat .st-legend__dot { width: 8px; height: 8px; }
.st-cell-progress { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.st-cell-progress .st-progress__track { flex: 1; height: 6px; }
html body .st-cell-progress b { width: 40px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--d-ink) !important; font-variant-numeric: tabular-nums; }
html body .st-table-card .d-empty { margin: 20px; }

/* tautan silang ke halaman lain */
.st-crosslinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(40px, 5vw, 64px); }
.st-cross {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--d-line); border-radius: var(--d-radius-l); background: var(--d-surface); text-decoration: none !important;
  transition: border-color 180ms, background-color 180ms;
}
.st-cross:hover { border-color: var(--d-brand); }
html body .st-cross__eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-brand) !important; }
html body .st-cross__title { display: block; margin-top: 8px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.025em; color: var(--d-ink) !important; }
html body .st-cross__desc { display: block; margin-top: 6px; font-size: 14px; color: var(--d-muted) !important; }
.st-cross .d-link__ic { flex-shrink: 0; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--d-line-strong); color: var(--d-brand); transition: background-color 180ms, color 180ms, transform 240ms var(--d-ease), border-color 180ms; }
.st-cross:hover .d-link__ic { background: var(--d-brand); border-color: var(--d-brand); color: var(--d-on-brand); transform: rotate(-45deg); }

html body .st-note { margin: 18px 0 0; font-size: 13px; color: var(--d-subtle) !important; }
html body .st-note i { margin-right: 6px; }

/* ------------------------------------------------------------ 6. Responsif */
@media (max-width: 1100px) {
  .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .st-span-4, .st-span-5, .st-span-6, .st-span-7, .st-span-8 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .st-toolbar { padding: 14px; border-radius: var(--d-radius-m); }
  .st-toolbar__filters, .st-field { width: 100%; }
  .st-field { justify-content: space-between; }
  .st-field .st-select { flex: 1; max-width: 70%; }
  html body .st-field .st-select select { width: 100%; }
  .st-toolbar__aside { width: 100%; }
  .st-tabs-scroll { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .st-crosslinks { grid-template-columns: 1fr; }

}
@media (max-width: 520px) {
  .st-kpis { grid-template-columns: 1fr 1fr; }
  .st-kpi { padding: 18px; gap: 12px; }
  .st-kpi--feature, .st-kpi--wide { grid-column: 1 / -1; }
  .st-kpi__icon { width: 34px; height: 34px; font-size: 13px; }
  .st-kpi:not(.st-kpi--feature):not(.st-kpi--wide) .st-kpi__icon { display: none; }
  html body .st-kpi__label { font-size: 13px; }
  html body .st-kpi__value { font-size: 30px; }
  .st-kpi--feature .st-kpi__value { font-size: 40px; }
  .st-items { grid-template-columns: 1fr; }
  html body .st-legend__pct { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-progress__fill, .st-menu__list, .st-details__ic { transition: none !important; }
}
