/* South Carolina drought tool. Mobile first, matches Free Everyday Tools. */
.dg-app{background:#fff;border:1px solid #dbe3ea;border-radius:12px;padding:14px 12px 16px;max-width:820px}
.dg-status{margin:0 0 12px;font-size:15px;font-weight:700;color:#142E84;min-height:1.3em}
.dg-status.is-error{color:#8a1010}
.dg-card{margin:0 0 14px;padding:12px;background:#f9fbfc;border:1px solid #dbe3ea;border-radius:10px}
.dg-kicker{margin:0 0 6px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#4a5866}
.dg-updated{margin:0 0 8px;font-size:clamp(22px,6vw,28px);line-height:1.2;font-weight:800;color:#142E84;text-wrap:balance}
.dg-released{margin:0 0 10px;font-size:14px;color:#4a5866;line-height:1.45}
.dg-headline{margin:0;font-size:17px;line-height:1.4;font-weight:700;color:#1d2733;text-wrap:balance}
.dg-card h2,.dg-meanings h2{margin:0 0 10px;font-size:18px;color:#142E84}
.dg-rows{margin:0;display:flex;flex-direction:column;gap:8px}
.dg-row{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:8px;align-items:center}
.dg-row-l{min-width:0}
.dg-lab{display:block;font-size:14px;font-weight:700;color:#1d2733;line-height:1.3}
.dg-bar{display:block;height:10px;margin-top:5px;background:#e6edf3;border-radius:999px;overflow:hidden}
.dg-bar>i{display:block;height:100%;width:0;border-radius:999px}
.dg-pct{font-variant-numeric:tabular-nums;font-weight:800;font-size:15px;color:#142E84;text-align:right}
.dg-map-wrap{margin:0;background:#fff;border-radius:8px;overflow:hidden}
.dg-map{display:block;width:100%;height:auto;max-width:100%;background:#f4f7fa}
.dg-legend{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:6px}
.dg-legend li{display:flex;align-items:center;gap:10px;font-size:15px;color:#1d2733;min-height:32px}
.dg-swatch{flex:none;width:22px;height:22px;border-radius:4px;border:1px solid #c5d0da}
.dg-swatch.is-none{background:#fff}
.dg-swatch.is-d0{background:#ffff00}
.dg-swatch.is-d1{background:#fcd37f}
.dg-swatch.is-d2{background:#ffaa00}
.dg-swatch.is-d3{background:#e60000}
.dg-swatch.is-d4{background:#730000}
.dg-trend{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.dg-week{display:grid;grid-template-columns:64px minmax(0,1fr) 48px;gap:8px;align-items:center}
.dg-week-d{font-size:13px;font-weight:700;color:#4a5866;font-variant-numeric:tabular-nums}
.dg-stack{display:flex;height:16px;border-radius:4px;overflow:hidden;border:1px solid #c5d0da;background:#fff}
.dg-stack>i{display:block;height:100%;min-width:0}
.dg-week-p{font-size:13px;font-weight:800;color:#142E84;text-align:right;font-variant-numeric:tabular-nums}
.dg-trend-note{margin:10px 0 0;font-size:13px;color:#4a5866;line-height:1.45}
.dg-meanings{margin:0 0 8px}
.dg-meanings dl{margin:0}
.dg-meanings div{padding:10px 0;border-top:1px solid #dbe3ea}
.dg-meanings div:first-child{border-top:0;padding-top:0}
.dg-meanings dt{margin:0 0 4px;font-size:15px;font-weight:800;color:#142E84;display:flex;align-items:center;gap:8px}
.dg-meanings dd{margin:0;font-size:15px;color:#1d2733;line-height:1.45}
.dg-credit{margin:8px 0 0;font-size:14px;color:#4a5866;line-height:1.45}
.dg-credit a{color:#142E84}
@media(min-width:640px){
  .dg-app{padding:16px 16px 18px}
  .dg-card{padding:14px 16px}
  .dg-legend{grid-template-columns:1fr 1fr}
  .dg-week{grid-template-columns:72px minmax(0,1fr) 56px}
}
@media(prefers-reduced-motion:reduce){
  .dg-bar>i,.dg-stack>i{transition:none}
}

/* Small drought line on the Local Weather page */
.wx-drought{margin:16px 0 0;padding:12px 14px;background:#fff;border:1px solid #dbe3ea;border-radius:12px;font-size:15px;line-height:1.45;color:#1d2733;max-width:820px}
.wx-drought a{font-weight:800;color:#142E84}
.wx-drought-stat{display:block;margin:4px 0 0;color:#4a5866}
