:root {
  --bg: #0b1320;
  --text: #eef3ff;
  --muted: #9fb2d1;
  --brand: #67b7ff;
  --link: #90cdfd;
  --card: #0f1a2c;
  --border: #1c2a45;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 16px; }

/* Header & Footer */
.header, .footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.header .wrap, .footer .wrap {
  max-width: 1080px;
  
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }

/* Top nav (desktop defaults) */
.nav { display: flex; gap: 14px; }
.nav a { font-weight: 500; color: var(--link); margin-right: 0; }
.nav a:hover { color: var(--brand); }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--muted); }
.footer-links a:hover { color: var(--brand); }
.attrib { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* Main content */
main.container { padding: 32px 16px; }
main.container h1 { font-size: 1.8rem; margin-bottom: 12px; }
main.container h2 { margin-top: 24px; color: var(--brand); }
main.container ul { padding-left: 20px; list-style-type: disc; }

/* Images */
.wpnow-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
  background: #111827;
}
.blog-post-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Hamburger button (hidden by default; shown on mobile) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.menu-toggle > .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;          /* match header text color */
  transition: transform .2s ease, opacity .2s ease;
  line-height: 0;
}
/* animate into X when open */
.menu-toggle[aria-expanded="true"] > .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mobile (drawer) ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }

  /* Drawer from LEFT */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 70%;
    max-width: 280px;
    background: var(--card);
    padding: 60px 20px 20px;
    flex-direction: column;
    gap: 12px;
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
    z-index: 1000;
    border-right: 1px solid var(--border);
  }
  .nav.open { transform: translateX(0); }

  .nav a {
    color: var(--text);
    padding: 10px 0;
    border-radius: 6px;
    margin-right: 0;         /* override any desktop margin */
  }
  .nav a:hover { background: rgba(255,255,255,0.06); }

  /* Backdrop behind drawer */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
  }
  .nav-backdrop.show { display: block; }
}

/* Ensure desktop nav stays inline */
@media (min-width: 769px) {
  .nav { position: static; background: transparent; padding: 0; transform: none; }
}
/* Header wrapper */
.header {
  background:#0b1c2b;
  color:#fff;
  position:sticky;
  top:0;
  z-index:9999;
  box-shadow:0 2px 10px rgba(0,0,0,.12);
}
.header .wrap {
  max-width:1100px;
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px; /* ensures badge doesn’t stick too close */
  flex-wrap:wrap; /* allows wrapping on small devices */
}

/* Logo */
.logo {
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
}
.logo span {
  font-weight:700;
  font-size:18px;
  color:#fff;
}

/* Day + Date + emoji + temp badge */
.day-badge {
  background:#24384d;
  color:#ffe28a;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 12px;
  border-radius:10px;
  font-weight:700;
  font-size:1rem;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.day-badge .emo {
  font-size:1.2em;
  line-height:1;
}
.day-badge .t {
  color:#fff;
  background:#0b1c2b;
  padding:2px 8px;
  border-radius:999px;
  font-weight:700;
  font-size:0.9rem;
}

/* Navigation */
.nav {
  display:flex;
  gap:14px;
}
.nav a {
  color:#fff;
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
}
.nav a:hover {
  background:rgba(255,255,255,.08);
}

/* Hamburger (hidden on desktop) */
.menu-toggle {
  display:none;
  background:transparent;
  border:0;
  padding:10px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
}
.menu-toggle>.bar {
  display:block;
  width:24px;
  height:2px;
  background:#fff;
  line-height:0;
  transition:transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"]>.bar:nth-child(1){transform:translateY(8px) rotate(45deg)}
.menu-toggle[aria-expanded="true"]>.bar:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"]>.bar:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* Responsive tweaks */
@media(max-width:900px){
  .header .wrap {
    gap:8px;
  }
  .day-badge {
    font-size:.95rem;
    padding:5px 10px;
    gap:6px;
  }
}
@media(max-width:768px){
  .menu-toggle{display:inline-flex}
  .nav{
    position:fixed;
    top:0;left:0;bottom:0;
    width:70%;max-width:280px;
    background:#0b1c2b;
    padding:60px 20px 20px;
    flex-direction:column;
    gap:12px;
    transform:translateX(-100%);
    transition:transform .3s ease-in-out;
    z-index:1000;
    border-right:1px solid rgba(255,255,255,.08);
  }
  .nav.open{transform:translateX(0)}
  .nav a{padding:10px 0}
  .nav-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    z-index:999;
  }
  .nav-backdrop.show{display:block}

  /* Badge tweaks for mobile */
  .day-badge {
    font-size:.9rem;
    padding:4px 8px;
    gap:5px;
  }
.menu-date {
    
  font-size: 10px;
  color: #aaa;                  /* subtle grey text */
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #222; /* thin divider */
}

.nav a {
  display: block;
  margin: 12px 0;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

.nav a:hover {
  color: #f1c40f; /* hover highlight */
}

/* 1) Default: hide date on desktop so header stays clean */
.menu-date { display: none; }

/* 2) Mobile drawer: show and style it cleanly above links */
@media (max-width: 768px) {
  /* make sure the drawer is column (you already have this) */
  .nav { flex-direction: column; }

  .menu-date {
    display: block;
    font-size: 14px;
    color: #9fb2d1;                 /* subtle muted blue-grey */
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1c2a45; /* use your --border tone */
  }

  /* If wpn_header_badge outputs .day-badge, soften it in the drawer */
  .nav .day-badge {
    background: transparent;
    color: #9fb2d1;
    padding: 0;
    gap: 6px;
    box-shadow: none;
    border-radius: 0;
    font-weight: 600;
  }
  /* Optional: hide the temp pill inside the sidebar to keep it slim */
  .nav .day-badge .t { display: none; }

  /* Keep links block-level with spacing */
  .nav a {
    display: block;
    margin: 12px 0;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
  }
  .nav a:hover { color: #f1c40f; }
}

/* Header spacing */
.header .wrap {
  padding: 14px 18px;  /* moderate height */
}

/* Logo area */
.logo img {
  height: 30px;   /* medium size icon */
  width: 30px;
}

/* Logo text */
.logo span {
  font-weight: 700;
  font-size: 20px;   /* bigger than before */
  color: #ffe28a;    /* golden title */
}


  :root{
    --bg1:#0b0f1a; --bg2:#1a2233; --bg3:#2b3a55;
    --card:#111a2b; --muted:#b7c3d6; --fg:#f5f8ff; --gold:#d4af37;
    --chip:#0e1626; --chip-border:#24314a;

    /* Chart colors */
    --line-hot:#4cc9f0;
    --line-pop:#ffd166;
    --line-aqi:#06d6a0;
    --line-prs:#a78bfa;
    --bar-rain:#2196f3;
  }

  html, body { overflow-x: hidden; }
  body{
    margin:0; font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
    color:var(--fg);
    background:
      radial-gradient(60vw 40vh at -10% -10%, rgba(255,255,255,.07), transparent 60%),
      radial-gradient(50vw 40vh at 110% 10%, rgba(255,255,255,.06), transparent 60%),
      linear-gradient(180deg, var(--bg1), var(--bg2) 40%, var(--bg3));
  }

  /* Autocomplete */
  .suggestions { position:absolute; top:50px; left:0; background:var(--card); border:1px solid var(--chip-border); border-radius:8px; max-height:220px; overflow-y:auto; width:280px; z-index:1000; }
  .suggestions div { padding:8px 10px; cursor:pointer; }
  .suggestions div:hover { background:var(--chip); }

  .wrap{ max-width:1024px; margin:40px auto; padding:0 16px; }
  h1{ font-size:30px; margin:0 0 16px; color:var(--gold); letter-spacing:.5px; }
  .card{ background:var(--card); border-radius:16px; padding:20px; box-shadow:0 6px 28px rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.06); overflow:hidden; }
  form{ display:flex; gap:10px; flex-wrap:wrap; position:relative; }
  input,button{ padding:12px 14px; border-radius:10px; border:1px solid var(--chip-border); background:var(--chip); color:var(--fg); }
  input::placeholder{ color:#8ea0ba; }
  button{ background:var(--gold); color:#1a1a1a; border:none; cursor:pointer; font-weight:700; }
  .muted{ color:var(--muted); font-size:14px;}
  .grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-top:12px;}
  .kpi{ background:var(--chip); border:1px solid var(--chip-border); border-radius:12px; padding:12px; }
  .kpi .v{ font-size:22px; font-weight:800; color:#fff; }
  .badge{ display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700; color:#1a1a1a; background:var(--gold); }
  .err{ color:#ff9aa2; margin-top:12px; }
  .footer{ margin-top:18px; font-size:12px; color:#c4cfe4; }
  a{ color:#ffe28a; }

  /* ====== GRAPHS – BRIGHTER LOOK ====== */
  .charts{ display:grid; grid-template-columns: 1fr; gap:22px; margin-top:20px; }
  @media (min-width: 900px){ .charts{ grid-template-columns:1fr 1fr; } }
  .charts > div { min-width:0; }

  /* Brighter chart container with soft glow */
  .chart-panel{
    /* a brighter, cooler surface so graphs pop */
    background: linear-gradient(180deg,#2a3f66,#203252 65%,#1a2945);
    border: 1px solid rgba(255,255,255,.22);
    border-radius:16px;
    padding:14px 14px 10px;
    box-shadow:
      0 10px 26px rgba(0,0,0,.38),
      inset 0 0 30px rgba(255,255,255,.08);
  }
  .chart-panel .chart-title{
    font-weight:800;
    font-size:16px;
    color:#ffffff;
    margin:2px 6px 10px;
    letter-spacing:.35px;
    text-shadow:0 1px 0 rgba(0,0,0,.4);
  }

  /* Canvas: lighter background + inner highlight for contrast */
  canvas{
    display:block;
    width:100% !important; max-width:100%;
    height:288px !important;
    /* lightened panel with a corner highlight */
    background:
      radial-gradient(140% 100% at 0% 0%, rgba(255,255,255,.22), rgba(255,255,255,.10) 35%, rgba(26,41,69,.95) 65%),
      linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
    border:1px solid rgba(255,255,255,.28);
    border-radius:14px;
    padding:8px;
    box-shadow:
      0 12px 28px rgba(0,0,0,.32),
      inset 0 0 36px rgba(255,255,255,.12);
  }
:root{
  --gold:#d4af37;            /* make sure this exists globally */
}

/* Use a class so pages can opt-in */
.page-title{
  position:relative;
  font-weight:800;
  color:#eaf2ff;             /* or whatever you use */
  letter-spacing:.2px;
  margin:14px 0 10px;
  line-height:1.3;
}
.page-title::after{
  content:"";
  display:block;
  height:2px;
  width:72px;                /* 56px on mobile if you want */
  margin-top:6px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),rgba(255,255,255,.15));
  box-shadow:0 2px 8px rgba(212,175,55,.35);
}

/* optional: responsive tweak */
@media (max-width:520px){
  .page-title{ margin:12px 0 8px; }
  .page-title::after{ width:56px; }
}

  /* Optional: if you wrap canvases in .chart-panel, keep map neutral */
  #map{ height:320px; width:100%; background:var(--chip); border:1px solid var(--chip-border); border-radius:12px; margin-top:16px; }

  /* Titles near charts */
  .section-title{ font-weight:800; margin:6px 0; letter-spacing:.3px; color:var(--gold); }
  .section-subtitle{ font-weight:700; margin:6px 0; letter-spacing:.3px; color:#ffffff; }

  .rainbox{ display:grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap:12px; margin-top:10px; }
  .rainbox .item{ background:var(--chip); border:1px solid var(--chip-border); padding:12px; border-radius:12px; }
  .rainbox .item .big{ font-size:22px; font-weight:800; color:#fff; }

  .header-bar { display:flex; align-items:center; gap:40px; margin-bottom:20px; }
  .site-title { margin:0; font-size:32px; color:var(--gold); }
  .blog-link { font-size:24px; font-weight:bold; text-decoration:none; color:var(--gold); }
  .blog-link:hover { text-decoration:none; color:var(--gold); }

  .site-footer { background:#1e2a38; color:#ccc; text-align:center; padding:20px 10px; font-size:14px; margin-top:30px; border-top:1px solid #333; }
  .site-footer a { color:#ffcc00; text-decoration:none; margin:0 8px; }
  .site-footer a:hover { color:#ffd633; text-decoration:none; }
  .footer-links { margin-bottom:10px; }
  .footer-credits { font-size:13px; margin-bottom:10px; color:#aaa; }
  .footer-copy { font-size:13px; margin:0; }

 .weather-update-box {
  background: linear-gradient(135deg, #1e3c72, #2a5298); /* blue gradient */
  color: #fff;
  padding: 20px 24px;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  margin: 20px 0;
  border-left: 6px solid #67b7ff; /* accent border */
}

.weather-update-box h3 {
  margin: 0;
  font-weight: 500;
}

.weather-update-box strong {
  color: #ffe28a; /* highlight important keywords */
}


  .kpi .emo{ margin-right:6px; font-size:22px; vertical-align:-2px; }

  @media print { .no-print{ display:none !important; } }
  @media print { html, body { width:1280px; margin:0 auto; } }
  .no-pdf{ display:none !important; }

  .pdf-capture{ width:1280px !important; margin:0 auto !important; overflow:visible !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .pdf-capture *, .pdf-capture *::before, .pdf-capture *::after{ transform:none !important; animation:none !important; transition:none !important; }
  .pdf-disable-sticky,.pdf-capture .sticky,.pdf-capture [style*="position: sticky"]{ position:static !important; top:auto !important; }
  .avoid-break{ break-inside:avoid; page-break-inside:avoid; }
  
/* ===== Friendlier section H2s (map + chart headings) ===== */
h2{
  /* responsive size: smaller on phones, crisp on desktop */
  font-size: clamp(18px, 1.2rem + 0.6vw, 22px);
  line-height: 1.3;
  font-weight: 800;
  margin: 14px 0 10px;

  /* palette: bright but not shouty */
  color: #eaf2ff; /* aligns with var(--fg) family */
  letter-spacing: .2px;

  /* subtle accent underline that matches the theme */
  position: relative;
}
h2::after{
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  width: 72px;                         /* short, elegant */
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(255,255,255,.15));
  box-shadow: 0 2px 8px rgba(212,175,55,.35);
}

/* tighten spacing above the map + charts */
#map{ margin-top: 10px; }
/* keep mobile comfy */
@media (max-width: 520px){
  h2{ margin: 12px 0 8px; }
  h2::after{ width: 56px; }
}
  
.footer-social i {
  font-size: 28px;
  margin-bottom: 4px;
}

/* Footer links */
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.footer-links a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Footer meta info */
.footer-meta {
  font-size: 12px;
  color: #666;
}
.footer-meta a {
  color: #0073e6;
  text-decoration: none;
}
.footer-meta a:hover {
  text-decoration: underline;
}  

/* Footer wrapper */
.footer {
  padding: 20px;
  background: #f9f9f9;
  text-align: center;
  font-family: system-ui, sans-serif;
}

