@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#102f46;--ink:#173447;--muted:#667985;--teal:#2b8f88;--mint:#dff1ec;--line:#dce5e8;--paper:#f7faf9;--gold:#f3bf58}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:'DM Sans',sans-serif}.site-header{height:76px;border-bottom:1px solid #edf1f2;background:#fff}.header-inner,.footer-inner{max-width:1200px;height:100%;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy)}.brand-logo{width:48px;height:52px;flex:0 0 48px;object-fit:contain;display:block}.brand-text{display:block}.brand strong{display:block;font:800 17px Manrope,sans-serif;letter-spacing:.04em}.brand small{display:block;color:#72838b;font-size:11px;margin-top:2px}.site-header nav{display:flex;gap:30px}.site-header nav a{font-size:13px;color:#526873;text-decoration:none}.site-header nav a.active{color:var(--teal);font-weight:700}.hero{background:linear-gradient(110deg,#102f46 0%,#16445a 72%,#1b5961 100%);min-height:310px;color:#fff;position:relative;overflow:hidden}.hero-inner{max-width:1200px;margin:auto;padding:54px 28px 50px;position:relative;z-index:2}.eyebrow{font-size:10px;letter-spacing:.17em;font-weight:700;color:#a6d8d1}.eyebrow.dark{color:#36877f}.hero h1{font:800 clamp(36px,5vw,54px)/1.07 Manrope,sans-serif;letter-spacing:-.045em;margin:17px 0 13px}.hero h1 em{font-style:normal;color:#8fd4c9}.hero p{max-width:570px;color:#d5e4e9;font-size:15px;line-height:1.7;margin:0}.hero-note{margin-top:25px;font-size:12px;color:#c2d7df;display:flex;align-items:center;gap:9px}.note-dot,.status-dot{width:7px;height:7px;border-radius:50%;background:#7bd1b9;display:inline-block}.hero-art{position:absolute;right:8%;top:12px;width:360px;height:280px;opacity:.8}.sun{position:absolute;width:116px;height:116px;border-radius:50%;background:#e9bd64;right:76px;top:35px;box-shadow:0 0 0 22px #e9bd641a,0 0 0 45px #e9bd6410}.cloud{position:absolute;background:#eaf3f2;border-radius:60px;height:44px;width:155px;filter:drop-shadow(0 12px 14px #061c2b33)}.cloud:before,.cloud:after{content:"";position:absolute;background:inherit;border-radius:50%}.cloud:before{width:62px;height:62px;left:28px;top:-28px}.cloud:after{width:75px;height:75px;right:22px;top:-40px}.cloud-a{right:0;top:155px}.cloud-b{right:150px;top:210px;transform:scale(.65);opacity:.8}
.finder{max-width:1200px;margin:0 auto;padding:48px 28px 42px}.finder-heading{display:flex;justify-content:space-between;align-items:end;gap:20px}.finder h2{font:800 29px Manrope,sans-serif;letter-spacing:-.035em;margin:9px 0 7px}.finder-heading p{margin:0;color:var(--muted);font-size:13px}.reset-button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 14px;color:#3c5a67;font:600 12px 'DM Sans';cursor:pointer;white-space:nowrap}.reset-button:hover{border-color:var(--teal);color:var(--teal)}.filter-row{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end;margin:26px 0 18px}.field{display:flex;flex-direction:column;gap:8px}.field span{font-size:11px;font-weight:700;color:#47616e}.field select{height:45px;border:1px solid #d6e0e3;border-radius:8px;background:#fff;padding:0 13px;color:#274454;font:500 13px 'DM Sans';outline:none}.field select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #2b8f8818}.field select:disabled{background:#f3f6f6;color:#9aa8ad}.selection-status{height:45px;display:flex;align-items:center;gap:8px;padding:0 13px;background:#f2f8f6;border-radius:8px;color:#53716d;font-size:11px;white-space:nowrap}.map-shell{border:1px solid #dce6e8;border-radius:13px;overflow:hidden;box-shadow:0 12px 32px #163b4b0d}.map-toolbar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#fff;border-bottom:1px solid #e8eeee}.breadcrumbs{font-size:12px;color:#71838b;display:flex;gap:8px;align-items:center}.breadcrumbs button{border:0;background:none;padding:0;color:#4e7774;font:600 12px 'DM Sans';cursor:pointer}.crumb-current{font-weight:700;color:#1b3d4d}.map-hint{display:flex;align-items:center;gap:7px;font-size:10px;color:#71838b}.legend{width:9px;height:9px;border-radius:2px;display:inline-block;margin-left:8px}.district-legend{background:#9fc9c0}.epa-legend{background:#d8a64e}#map{height:min(67vh,650px);min-height:430px;background:#eaf0ed}.map-footer{display:flex;justify-content:space-between;gap:12px;padding:11px 15px;background:#fff;border-top:1px solid #e8eeee;color:#667b84;font-size:10px}.map-attribution{color:#9aa8ad}.forecast-placeholder{margin-top:18px;padding:18px 20px;border:1px dashed #cddcdd;border-radius:11px;display:flex;align-items:center;gap:15px;background:#fbfdfc}.forecast-icon{width:42px;height:42px;border-radius:12px;background:#eaf4f1;display:grid;place-items:center;color:#398d83;font-size:23px}.forecast-placeholder strong{font:700 13px Manrope}.forecast-placeholder p{font-size:11px;color:#71818a;margin:5px 0 0;line-height:1.5}.help-strip{max-width:1144px;margin:0 auto 48px;background:#f1f7f5;border-radius:11px;padding:18px 22px;display:flex;gap:15px;align-items:center}.help-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#d8ebe5;color:#397e74;font-weight:700}.help-strip strong{font:700 12px Manrope}.help-strip p{margin:4px 0 0;color:#687e83;font-size:11px}.site-header+main+footer{margin-top:0}footer{background:#102f46;color:#fff}.footer-inner{min-height:82px;gap:20px}.footer-inner strong{font:700 11px Manrope}.footer-inner span{font-size:10px;color:#b8cbd3}
.maplibregl-ctrl-group{border-radius:8px!important;overflow:hidden;box-shadow:0 2px 12px #102f4620!important}.maplibregl-ctrl-attrib{font-size:9px!important}.maplibregl-canvas{outline:none}
@media(max-width:700px){.header-inner,.footer-inner{padding:0 17px}.site-header nav{gap:15px}.site-header nav a{font-size:11px}.hero-inner{padding:42px 20px}.hero-art{right:-150px;opacity:.35}.finder{padding:34px 16px}.finder-heading{align-items:start}.finder h2{font-size:24px}.finder-heading p{max-width:440px;line-height:1.5}.reset-button{padding:9px}.reset-button span{display:none}.filter-row{grid-template-columns:1fr 1fr}.selection-status{grid-column:1/-1;height:34px}.map-toolbar{padding:0 10px}.map-hint{font-size:9px}.map-footer{flex-direction:column}.map-attribution{line-height:1.4}#map{height:62vh;min-height:390px}.help-strip{margin:0 16px 32px}.footer-inner{padding-top:17px;padding-bottom:17px;align-items:flex-start;flex-direction:column;justify-content:center;gap:7px}}


/* Two-pane map and forecast bulletin workspace */
.workspace-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.85fr);gap:18px;align-items:stretch;margin-top:2px}
.map-pane{min-width:0}
.map-pane #map{height:610px;min-height:500px}
.forecast-pane{min-width:0;border:1px solid #dce6e8;border-radius:13px;background:#fff;box-shadow:0 12px 32px #163b4b0d;display:flex;flex-direction:column;overflow:hidden;min-height:660px}
.forecast-pane-header{padding:21px 20px 17px;border-bottom:1px solid #e8eeee;background:linear-gradient(145deg,#fbfdfc,#f3f8f6)}
.forecast-pane-header h3{font:800 21px Manrope,sans-serif;letter-spacing:-.03em;margin:8px 0 5px;color:#173447}
.forecast-pane-header p{margin:0;color:#71818a;font-size:11px;line-height:1.5}
.forecast-pane-body{padding:15px;flex:1;min-height:0}
.forecast-empty{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 18px;color:#526b76}
.forecast-empty .forecast-icon{margin-bottom:14px;width:54px;height:54px;font-size:27px}
.forecast-empty strong{font:700 13px Manrope,sans-serif;color:#254454}
.forecast-empty p{font-size:11px;line-height:1.65;color:#7b8b91;max-width:260px;margin:8px 0 0}
.forecast-loading,.forecast-message{padding:18px 14px;border-radius:9px;background:#f5f9f7;color:#59716f;font-size:12px;line-height:1.6}
.forecast-message.error{background:#fff6f3;color:#9b4c3d}
.forecast-count{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#71858a;margin:0 0 11px}
.forecast-card{border:1px solid #e1e9e9;border-radius:10px;padding:13px;margin-bottom:10px;display:flex;gap:11px;align-items:center;background:#fff;transition:border-color .15s,box-shadow .15s}
.forecast-card:hover{border-color:#9bc9be;box-shadow:0 5px 16px #173f4b0b}
.pdf-icon{width:39px;height:43px;flex:0 0 39px;border-radius:7px;background:#fff0ed;color:#bd5143;display:flex;align-items:center;justify-content:center;font:800 10px Manrope,sans-serif;border:1px solid #f5d9d4}
.forecast-card-info{min-width:0;flex:1}
.forecast-card-info strong{display:block;font:700 11px Manrope,sans-serif;color:#254454;overflow-wrap:anywhere;line-height:1.4}
.forecast-card-info span{display:block;font-size:10px;color:#829197;margin-top:4px}
.download-link{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;text-decoration:none;border-radius:7px;padding:8px 9px;background:#eaf5f1;color:#287b70;font:700 10px 'DM Sans',sans-serif}
.download-link:hover{background:#d9eee7;color:#145c53}
.forecast-pane-footer{border-top:1px solid #e8eeee;padding:12px 16px;display:flex;align-items:center;gap:8px;color:#829197;font-size:10px;background:#fbfdfc}
.folder-indicator{width:8px;height:8px;border-radius:50%;background:#70b59e;display:inline-block}
@media(max-width:900px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.forecast-pane{min-height:350px}.map-pane #map{height:58vh;min-height:420px}.forecast-empty{min-height:230px}}
@media(max-width:700px){.workspace-grid{gap:13px}.map-pane #map{height:55vh;min-height:370px}.forecast-pane-header{padding:18px 16px}.forecast-pane-body{padding:12px}.forecast-card{padding:11px}.download-link{padding:8px}}

/* Government of Malawi identity in the site header */
.brand-logo{image-rendering:auto}
@media(max-width:700px){.brand{gap:9px}.brand-logo{width:42px;height:46px;flex-basis:42px}.brand strong{font-size:16px}.brand small{font-size:10px}}
/* Compact dashboard hero: keep map and forecast workspace prominent */
.hero{
  min-height:0;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(7,35,53,.91) 0%,rgba(9,43,60,.76) 52%,rgba(9,43,60,.38) 100%),
    url("assets/weather-hero.webp") center 46%/cover no-repeat;
}
.hero-inner{max-width:1200px;padding:24px 28px 25px}
.hero h1{
  font:800 clamp(27px,3vw,38px)/1.12 Manrope,sans-serif;
  letter-spacing:-.04em;
  margin:0 0 17px;
  white-space:normal;
}
.hero h1 em{font-style:normal;color:#9be0d3}
.hero-filter-row{
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(190px,1fr) auto auto;
  gap:12px;
  align-items:end;
  margin:0;
  max-width:1120px;
}
.hero-filter-row .field span{color:#f1f7f7;font-size:11px}
.hero-filter-row .field select{
  height:43px;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(255,255,255,.97);
  color:#274454;
}
.hero-filter-row .selection-status{
  height:43px;
  background:rgba(239,249,245,.96);
  color:#315f59;
}
.hero-filter-row .reset-button{
  height:43px;
  border-color:rgba(255,255,255,.65);
  background:rgba(255,255,255,.14);
  color:#fff;
}
.hero-filter-row .reset-button:hover{background:rgba(255,255,255,.25);color:#fff}
.finder{max-width:1200px;padding:22px 28px 38px}
.workspace-grid{margin-top:0}
@media(max-width:900px){
  .hero-filter-row{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .hero-inner{padding:22px 18px}
  .hero h1{font-size:27px;margin-bottom:15px}
  .hero-filter-row{grid-template-columns:1fr;gap:10px}
  .hero-filter-row .selection-status{height:36px}
  .hero-filter-row .reset-button{width:100%}
  .finder{padding:16px 16px 28px}
}
