/* =========================================================================
   WordPatch — Weather section + live widgets + mega-menu
   Palette: parliament navy #1a1a2e · crimson #b76e79 · warm paper #faf8f5
   ========================================================================= */
:root, html body {
  --wpxw-navy: #1a1a2e;
  --wpxw-navy-deep: #12121f;
  --wpxw-crimson: #b76e79;
  --wpxw-sky: #8b4553;
  --wpxw-sky-soft: #f5ecee;
  --wpxw-paper: #faf8f5;
  --wpxw-paper-2: #f2efe8;
  --wpxw-ink: #1a1a2e;
  --wpxw-grey: #6b5f62;
  --wpxw-line: #e8ddd8;
  --wpxw-amber: #e8932a;
  --wpxw-radius: 14px;
  --wpxw-shadow: 0 1px 2px rgba(21,41,63,.05), 0 8px 24px rgba(21,41,63,.07);
}

/* ---------- shared widget shell ---------- */
.wpxw {
  margin: 18px 0 26px;
  font-family: inherit;
}
.wpxw-loading {
  padding: 28px 20px;
  text-align: center;
  color: var(--wpxw-grey);
  background: var(--wpxw-sky-soft);
  border: 1px solid var(--wpxw-line);
  border-radius: var(--wpxw-radius);
  font-size: 15px;
}
.wpxw-credit {
  margin: 10px 2px 0;
  font-size: 12.5px;
  color: var(--wpxw-grey);
}
.wpxw-credit a { color: var(--wpxw-sky); text-decoration: none; }
.wpxw-credit a:hover { text-decoration: underline; }

/* ---------- "now" hero ---------- */
.wpxw-now {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--wpxw-navy) 0%, var(--wpxw-sky) 100%);
  border-radius: var(--wpxw-radius) var(--wpxw-radius) 0 0;
  box-shadow: var(--wpxw-shadow);
}
.wpxw-now-main { display: flex; align-items: center; gap: 12px; }
.wpxw-now-icon { font-size: 58px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.wpxw-now-temp { font-size: 56px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.wpxw-now-temp .wpxw-unit { font-size: 24px; font-weight: 600; vertical-align: super; opacity: .8; }
.wpxw-now-meta { display: flex; flex-direction: column; gap: 3px; }
.wpxw-now-desc { font-size: 20px; font-weight: 700; }
.wpxw-now-place { font-size: 15px; opacity: .92; }
.wpxw-now-sub { font-size: 13.5px; opacity: .85; margin-top: 4px; }

/* ---------- daily strip ---------- */
.wpxw-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--wpxw-line);
  border: 1px solid var(--wpxw-line);
  border-top: 0;
  border-radius: 0 0 var(--wpxw-radius) var(--wpxw-radius);
  overflow: hidden;
}
.wpxw-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  background: #fff;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
  appearance: none;
  -webkit-appearance: none;
  color: var(--wpxw-ink);
  border-radius: 0;
  box-shadow: none;
}
/* md-bridge / GP themes style all buttons — isolate the 7-day strip on light cards */
.wpxw .wpxw-days button.wpxw-day,
.wpxw-days button.wpxw-day {
  background: #fff !important;
  color: var(--wpxw-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px 6px !important;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.wpxw-day:hover, .wpxw-day:focus-visible { background: var(--wpxw-sky-soft) !important; outline: none; }
.wpxw-day.is-sel { background: var(--wpxw-sky-soft) !important; box-shadow: inset 0 -3px 0 var(--wpxw-crimson) !important; }
.wpxw-day.is-today .wpxw-day-name { color: var(--wpxw-crimson); font-weight: 800; }
.wpxw-day-name { font-size: 12.5px; font-weight: 700; color: var(--wpxw-navy); text-transform: uppercase; letter-spacing: .3px; }
.wpxw-day-icon { font-size: 28px; line-height: 1; }
.wpxw-day-hi { font-size: 16px; font-weight: 800; color: var(--wpxw-ink); }
.wpxw-day-lo { font-size: 13px; color: var(--wpxw-grey); }
.wpxw-day-pp { font-size: 11.5px; color: var(--wpxw-sky); font-weight: 600; }

/* ---------- hourly track ---------- */
.wpxw-hourly { margin-top: 14px; }
.wpxw-hourly-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 4px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.wpxw-hr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 62px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--wpxw-line);
  border-radius: 11px;
  scroll-snap-align: start;
}
.wpxw-hr-t { font-size: 12px; color: var(--wpxw-grey); font-weight: 600; }
.wpxw-hr-i { font-size: 22px; line-height: 1; }
.wpxw-hr-deg { font-size: 15px; font-weight: 800; color: var(--wpxw-ink); }
.wpxw-hr-pp { font-size: 11px; color: var(--wpxw-sky); }

/* ---------- extra row: UV + sunrise/sunset ---------- */
.wpxw-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 11px 26px;
  background: var(--wpxw-sky-soft);
  border-left: 1px solid var(--wpxw-line);
  border-right: 1px solid var(--wpxw-line);
  font-size: 13.5px;
  color: var(--wpxw-ink);
}
.wpxw-extra .wpxw-x b { color: var(--wpxw-navy); font-weight: 700; }

/* ---------- pollen / sea / snow band cards ---------- */
.wpxw-band {
  display: inline-block;
  margin: 2px 0;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.wpxw-band.wpxw-lo { background: #2e9e5b; }
.wpxw-band.wpxw-mo { background: #e8932a; }
.wpxw-band.wpxw-hi { background: #e0571f; }
.wpxw-band.wpxw-vh { background: var(--wpxw-crimson); }
.wpxw-pollen.lo { border-top: 3px solid #2e9e5b; }
.wpxw-pollen.mo { border-top: 3px solid #e8932a; }
.wpxw-pollen.hi { border-top: 3px solid #e0571f; }
.wpxw-pollen.vh { border-top: 3px solid var(--wpxw-crimson); }
.wpxw-sea .wpxw-card-temp { color: var(--wpxw-sky); }
.wpxw-snow { border-top: 3px solid var(--wpxw-sky); }

/* ---------- multi / compare grid ---------- */
.wpxw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.wpxw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 12px 14px;
  background: #fff;
  border: 1px solid var(--wpxw-line);
  border-radius: var(--wpxw-radius);
  box-shadow: var(--wpxw-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wpxw-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21,41,63,.12); }
.wpxw-card.is-top { border-color: var(--wpxw-crimson); box-shadow: 0 0 0 2px rgba(196,30,58,.12), var(--wpxw-shadow); }
.wpxw-card.is-cold { border-color: var(--wpxw-sky); }
.wpxw-rank {
  position: absolute; top: 8px; left: 10px;
  font-size: 13px; font-weight: 800; color: var(--wpxw-grey);
}
.wpxw-card.is-top .wpxw-rank { color: var(--wpxw-crimson); }
.wpxw-card-icon { font-size: 34px; line-height: 1; }
.wpxw-card-name { font-size: 14.5px; font-weight: 700; color: var(--wpxw-navy); text-align: center; }
.wpxw-card-temp { font-size: 26px; font-weight: 800; color: var(--wpxw-ink); letter-spacing: -.5px; }
.wpxw-card-hl { font-size: 12px; color: var(--wpxw-grey); }
.wpxw-card-desc { font-size: 12px; color: var(--wpxw-sky); font-weight: 600; }

/* ---------- compare lead (warmest/coldest) ---------- */
.wpxw-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.wpxw-lead-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  border-radius: var(--wpxw-radius);
  color: #fff;
}
.wpxw-lead-item.is-warm { background: linear-gradient(135deg, var(--wpxw-crimson) 0%, var(--wpxw-amber) 100%); }
.wpxw-lead-item.is-coldest { background: linear-gradient(135deg, var(--wpxw-navy) 0%, var(--wpxw-sky) 100%); }
.wpxw-lead-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; opacity: .9; font-weight: 700; }
.wpxw-lead-place { font-size: 22px; font-weight: 800; }
.wpxw-lead-temp { font-size: 30px; font-weight: 800; letter-spacing: -1px; }

/* ---------- radar ---------- */
.wpxw-radar-embed {
  position: relative;
  border-radius: var(--wpxw-radius);
  overflow: hidden;
  border: 1px solid var(--wpxw-line);
  box-shadow: var(--wpxw-shadow);
  aspect-ratio: 16 / 10;
}
.wpxw-radar-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================================
   Weather PAGE layout (body.page-template / .wpxwx-page)
   ========================================================================= */
.wpxwx-bc {
  font-size: 13px;
  color: var(--wpxw-grey);
  margin: 0 0 14px;
}
.wpxwx-bc a { color: var(--wpxw-navy); text-decoration: none; }
.wpxwx-bc a:hover { text-decoration: underline; }
.wpxwx-bc span { color: var(--wpxw-crimson); }

.wpxwx-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--wpxw-ink);
  font-weight: 500;
  border-left: 4px solid var(--wpxw-crimson);
  padding: 2px 0 2px 18px;
  margin: 0 0 8px;
}

.wpxwx-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  color: var(--wpxw-navy);
  margin: 34px 0 12px;
  position: relative;
  padding-left: 16px;
}
.wpxwx-page h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 5px; border-radius: 3px; background: var(--wpxw-crimson);
}
.wpxwx-page h3 { font-size: 20px; color: var(--wpxw-navy); margin: 24px 0 8px; }
.wpxwx-page p { font-size: 16.5px; line-height: 1.72; color: #2a3441; margin: 0 0 16px; }
.wpxwx-page ul, .wpxwx-page ol { font-size: 16.5px; line-height: 1.7; color: #2a3441; padding-left: 22px; }
.wpxwx-page li { margin-bottom: 7px; }
.wpxwx-page a { color: var(--wpxw-sky); }

/* key facts callout */
.wpxwx-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0 26px;
}
.wpxwx-fact {
  padding: 16px 18px;
  background: var(--wpxw-paper);
  border: 1px solid var(--wpxw-line);
  border-top: 3px solid var(--wpxw-navy);
  border-radius: 11px;
}
.wpxwx-fact b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--wpxw-grey); margin-bottom: 4px; }
.wpxwx-fact span { font-size: 18px; font-weight: 700; color: var(--wpxw-ink); }

/* FAQ */
.wpxwx-faq { margin: 22px 0; }
.wpxwx-faq details {
  border: 1px solid var(--wpxw-line);
  border-radius: 11px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.wpxwx-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 50px 15px 18px;
  font-weight: 700;
  font-size: 16px;
  color: var(--wpxw-navy);
  position: relative;
}
.wpxwx-faq summary::-webkit-details-marker { display: none; }
.wpxwx-faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; line-height: 24px; text-align: center;
  border-radius: 50%; background: var(--wpxw-sky-soft); color: var(--wpxw-navy); font-size: 20px; font-weight: 600;
}
.wpxwx-faq details[open] summary::after { content: "−"; background: var(--wpxw-crimson); color: #fff; }
.wpxwx-faq details > div { padding: 0 18px 16px; }
.wpxwx-faq details p { margin: 0; font-size: 15.5px; }

/* related links */
.wpxwx-related {
  margin: 30px 0 10px;
  padding: 22px 24px;
  background: var(--wpxw-paper-2);
  border-radius: var(--wpxw-radius);
}
.wpxwx-related h2 { margin-top: 0; }
.wpxwx-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.wpxwx-related-grid a {
  display: block;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--wpxw-line);
  border-radius: 9px;
  text-decoration: none;
  color: var(--wpxw-navy);
  font-weight: 600;
  font-size: 14.5px;
  transition: border-color .15s ease, color .15s ease;
}
.wpxwx-related-grid a:hover { border-color: var(--wpxw-crimson); color: var(--wpxw-crimson); }

.wpxwx-updated {
  font-size: 13px;
  color: #475569;
  background: var(--wpxw-paper);
  border-left: 3px solid var(--wpxw-sky);
  padding: 9px 14px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 18px;
}

/* sources block (v2 short-answer pages) */
.wpxwx-sources {
  margin: 24px 0 8px;
  padding: 16px 20px;
  background: var(--wpxw-sky-soft);
  border: 1px solid var(--wpxw-line);
  border-radius: 11px;
}
.wpxwx-sources h2 {
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--wpxw-navy);
  margin: 0 0 10px !important;
  padding-left: 0 !important;
}
.wpxwx-sources h2::before { display: none; }
.wpxwx-sources ul { margin: 0; padding-left: 18px; }
.wpxwx-sources li { margin-bottom: 5px; font-size: 14.5px; }
.wpxwx-sources a { color: var(--wpxw-navy); font-weight: 600; }

/* v2 short-answer pages run tighter — answer fast, less vertical space */
body.page-template .wpxwx-page.wpxwx-short h2 { margin: 22px 0 8px; font-size: 23px; }
body.page-template .wpxwx-page.wpxwx-short p { margin: 0 0 12px; }

/* byline / EEAT */
.wpxwx-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--wpxw-grey);
  margin: 4px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wpxw-line);
}
.wpxwx-byline a { color: var(--wpxw-navy); text-decoration: none; font-weight: 600; }
.wpxwx-byline a:hover { text-decoration: underline; }
.wpxwx-rev { color: #1a7f4b; font-weight: 600; }
.wpxwx-rev::before { content: "✓ "; }

/* =========================================================================
   Weather HUB (/weather/)
   ========================================================================= */
.wpxwx-hub-hero {
  padding: 30px 30px 26px;
  background: linear-gradient(135deg, var(--wpxw-navy-deep) 0%, var(--wpxw-sky) 130%);
  color: #fff;
  border-radius: 18px;
  margin-bottom: 24px;
}
.wpxwx-hub-hero h1 { color: #fff; font-size: 34px; margin: 0 0 8px; }
.wpxwx-hub-hero p { color: rgba(255,255,255,.92); font-size: 17px; max-width: 760px; margin: 0; }
.wpxwx-hub-sec { margin: 30px 0; }
.wpxwx-hub-sec > h2 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--wpxw-navy); margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--wpxw-line);
}
.wpxwx-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.wpxwx-hub-grid a {
  display: block; padding: 12px 14px; background: #fff;
  border: 1px solid var(--wpxw-line); border-left: 3px solid var(--wpxw-crimson);
  border-radius: 9px; text-decoration: none; color: var(--wpxw-navy);
  font-weight: 600; font-size: 14.5px; transition: transform .15s ease, box-shadow .15s ease;
}
.wpxwx-hub-grid a:hover { transform: translateY(-2px); box-shadow: var(--wpxw-shadow); }

/* ---- hub search ---- */
.wpxwx-hub-search-wrap { margin: 26px 0 18px; }
.wpxwx-hub-search-label {
  display: block; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--wpxw-grey); margin-bottom: 8px;
}
.wpxwx-hub-search {
  width: 100%; box-sizing: border-box;
  padding: 14px 18px; font-size: 16.5px; font-family: inherit;
  color: var(--wpxw-ink); background: #fff;
  border: 2px solid var(--wpxw-navy); border-radius: 12px;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.wpxwx-hub-search:focus { border-color: var(--wpxw-crimson); box-shadow: 0 0 0 3px rgba(196,30,58,.12); }
.wpxwx-hub-search::placeholder { color: #97a3b0; }
.wpxwx-hub-noresults { margin: 12px 2px 0; font-size: 15px; color: var(--wpxw-grey); }

/* ---- hub featured pillar row ---- */
.wpxwx-hub-featured {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px; margin: 8px 0 22px;
}
.wpxwx-hub-pillar {
  padding: 14px 16px; background: var(--wpxw-paper);
  border: 1px solid var(--wpxw-line); border-top: 3px solid var(--wpxw-navy);
  border-radius: 11px;
}
.wpxwx-hub-pillar-h { display: block; font-weight: 800; font-size: 15.5px; color: var(--wpxw-navy); text-decoration: none; margin-bottom: 8px; }
.wpxwx-hub-pillar-h:hover { color: var(--wpxw-crimson); }
.wpxwx-hub-pillar-links a { display: block; padding: 3px 0; font-size: 13.5px; color: var(--wpxw-ink); text-decoration: none; }
.wpxwx-hub-pillar-links a:hover { color: var(--wpxw-crimson); }

/* =========================================================================
   HUB INDEX ARCHETYPES r1-r6 — same data, different /weather/ layout.
   Pick per version (manifest.nav hubRecipe) so 50+ hubs look distinct.
   ========================================================================= */
/* r1 — classic grid (default) */
.wpxwx-hub-r1 .wpxwx-hub-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* r2 — dense 2-column list per section */
.wpxwx-hub-r2 .wpxwx-hub-index { columns: 2 320px; column-gap: 28px; }
.wpxwx-hub-r2 .wpxwx-hub-sec { break-inside: avoid; margin: 0 0 22px; }
.wpxwx-hub-r2 .wpxwx-hub-grid { display: block; }
.wpxwx-hub-r2 .wpxwx-hub-grid a { border-left: 0; border: 0; border-bottom: 1px solid var(--wpxw-line); border-radius: 0; padding: 9px 4px; }
.wpxwx-hub-r2 .wpxwx-hub-grid a:hover { transform: none; background: var(--wpxw-sky-soft); }

/* r3 — wide cards with hover lift, hide featured row (search-led hub) */
.wpxwx-hub-r3 .wpxwx-hub-featured { display: none; }
.wpxwx-hub-r3 .wpxwx-hub-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.wpxwx-hub-r3 .wpxwx-hub-grid a { background: var(--wpxw-paper); border-left-width: 4px; }

/* r4 — compact chips */
.wpxwx-hub-r4 .wpxwx-hub-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.wpxwx-hub-r4 .wpxwx-hub-grid a { border-left: 0; border-radius: 20px; padding: 7px 14px; font-size: 13.5px; }
.wpxwx-hub-r4 .wpxwx-hub-grid a:hover { transform: none; background: var(--wpxw-navy); color: #fff; }

/* r5 — sectioned with accent left bar, search pinned prominent */
.wpxwx-hub-r5 .wpxwx-hub-search { border-radius: 30px; }
.wpxwx-hub-r5 .wpxwx-hub-sec > h2 { color: var(--wpxw-crimson); border-bottom-color: var(--wpxw-crimson); }
.wpxwx-hub-r5 .wpxwx-hub-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* r6 — magazine: featured row big, index in 3 tight columns */
.wpxwx-hub-r6 .wpxwx-hub-featured { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wpxwx-hub-r6 .wpxwx-hub-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wpxwx-hub-r6 .wpxwx-hub-grid a { font-size: 13.5px; padding: 9px 12px; }

@media (max-width: 600px) {
  .wpxwx-hub-r2 .wpxwx-hub-index { columns: 1; }
  .wpxwx-hub-r6 .wpxwx-hub-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   Towns A-Z index
   ========================================================================= */
.wpxwx-az-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 12px 0; margin: 8px 0 18px;
  background: #fff; border-bottom: 1px solid var(--wpxw-line);
}
.wpxwx-az-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--wpxw-paper); color: var(--wpxw-navy);
  font-weight: 800; font-size: 13.5px; text-decoration: none;
}
.wpxwx-az-nav a:hover { background: var(--wpxw-crimson); color: #fff; }
.wpxwx-az-sec { margin: 22px 0; }
.wpxwx-az-sec > h2 {
  font-size: 22px; color: var(--wpxw-crimson); margin: 0 0 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--wpxw-line);
}
.wpxwx-az-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px;
}
.wpxwx-az-grid a {
  display: block; padding: 8px 12px; background: #fff;
  border: 1px solid var(--wpxw-line); border-radius: 8px;
  text-decoration: none; color: var(--wpxw-navy); font-size: 14px; font-weight: 600;
}
.wpxwx-az-grid a:hover { border-color: var(--wpxw-crimson); color: var(--wpxw-crimson); }

/* =========================================================================
   MEGA-MENU (desktop) — injected into the primary nav "Weather" item
   ========================================================================= */
.main-navigation .nrx-wx-mega {
  position: absolute;
  left: 0; right: auto; top: 100%;
  width: min(92vw, 620px);
  z-index: 200;
  background: #fff;
  border: 1px solid var(--wpxw-line);
  border-top: 3px solid var(--wpxw-crimson);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(21,41,63,.12);
  padding: 12px 14px 10px;
  /* archetype classes set display (grid/block); reveal via visibility so r1/r4
     grid layouts are never overridden by a display:block open rule */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}
.main-navigation li.nrx-wx-parent { position: relative; }
/* GP nav is uppercase — reset inside weather dropdown */
.nrx-wx-mega,
.nrx-wx-mega a,
.nrx-wx-mega button,
.nrx-wx-mobile,
.nrx-wx-mobile a,
.nrx-wx-mobile button {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.main-navigation li.nrx-wx-parent.nrx-wx-open .nrx-wx-mega,
.main-navigation li.nrx-wx-parent:focus-within .nrx-wx-mega {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
/* ---- two-tier base: pillar rail + flyout ---- */
.nrx-wx-mega { display: none; }
.nrx-wx-rail { display: flex; flex-direction: column; gap: 1px; }
.nrx-wx-pillar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px; border-radius: 6px; text-decoration: none;
  color: var(--wpxw-ink); font-weight: 600; font-size: 13px; line-height: 1.35;
  transition: background .12s ease, color .12s ease;
}
.nrx-wx-pillar:hover, .nrx-wx-pillar.is-active { background: var(--wpxw-sky-soft); color: var(--wpxw-crimson); }
.nrx-wx-pillar-c { display: none; }
.nrx-wx-flyout { display: none; }
.nrx-wx-flyout.is-active { display: block; }
.nrx-wx-flyout-head {
  display: inline-block; font-weight: 800; font-size: 16px; color: var(--wpxw-navy);
  text-decoration: none; margin: 0 0 10px;
}
.nrx-wx-flyout-head:hover { color: var(--wpxw-crimson); }
.nrx-wx-flyout-links { display: grid; grid-template-columns: 1fr; gap: 0; }
.nrx-wx-flyout-links a {
  display: block; padding: 6px 10px; font-size: 13.5px; font-weight: 400;
  color: var(--wpxw-ink); text-decoration: none; border-radius: 6px;
}
.nrx-wx-flyout-links a:hover { color: var(--wpxw-crimson); background: var(--wpxw-sky-soft); }
.nrx-wx-all {
  display: block; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--wpxw-line);
  font-weight: 600; font-size: 13px;
  color: var(--wpxw-crimson); text-decoration: none;
}
.nrx-wx-all:hover { text-decoration: underline; }

/* =========================================================================
   NAV ARCHETYPES r1-r6 — same pillar/flyout data, structurally different layout
   so 50+ sites never share a menu. Pick one per version (manifest.nav).
   ========================================================================= */

/* r1 — RAIL + FLYOUT: compact left rail + single-column flyout */
.nrx-wx-r1 {
  display: grid;
  grid-template-columns: minmax(0, 188px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 14px;
  align-items: start;
}
.nrx-wx-r1 .nrx-wx-rail { grid-row: 1; }
.nrx-wx-r1 .nrx-wx-flyouts { grid-row: 1; align-self: start; }
.nrx-wx-r1 .nrx-wx-flyout-head { display: none; }
.nrx-wx-r1 .nrx-wx-all { grid-column: 1 / -1; grid-row: 2; }

/* r2 — MEGA COLUMNS: every pillar is a column with all 5 children listed (no JS) */
.nrx-wx-r2 { display: block; }
.nrx-wx-r2 .nrx-wx-rail { display: none; }
.nrx-wx-r2 .nrx-wx-flyouts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 22px; }
.nrx-wx-r2 .nrx-wx-flyout { display: block !important; }
.nrx-wx-r2 .nrx-wx-flyout-head { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--wpxw-line); padding-bottom: 6px; width: 100%; }
.nrx-wx-r2 .nrx-wx-flyout-links { grid-template-columns: 1fr; }

/* r3 — TOP TABS: pillars as a horizontal row, flyout in 3 columns below */
.nrx-wx-r3 { display: block; }
.nrx-wx-r3 .nrx-wx-rail { flex-direction: row; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--wpxw-line); padding-bottom: 12px; margin-bottom: 16px; }
.nrx-wx-r3 .nrx-wx-pillar { border-radius: 20px; padding: 7px 14px; }
.nrx-wx-r3 .nrx-wx-pillar-c { display: none; }
.nrx-wx-r3 .nrx-wx-pillar.is-active { background: var(--wpxw-navy); color: #fff; }
.nrx-wx-r3 .nrx-wx-flyout-links { grid-template-columns: repeat(3, 1fr); }

/* r4 — SPLIT FEATURE: rail + flyout where the head is a big feature block */
.nrx-wx-r4 { display: grid; grid-template-columns: 300px 1fr; gap: 26px; }
.nrx-wx-r4 .nrx-wx-pillar { border-left: 3px solid transparent; border-radius: 0; }
.nrx-wx-r4 .nrx-wx-pillar.is-active { border-left-color: var(--wpxw-crimson); background: var(--wpxw-paper); }
.nrx-wx-r4 .nrx-wx-flyout-head { display: block; background: var(--wpxw-sky-soft); padding: 14px 18px; border-radius: 11px; margin-bottom: 14px; }
.nrx-wx-r4 .nrx-wx-all { grid-column: 1 / -1; }

/* r5 — STACKED ACCORDION: compact pillar list, active children wrap inline */
.nrx-wx-r5 { display: block; max-width: 760px; }
.nrx-wx-r5 .nrx-wx-rail { gap: 0; }
.nrx-wx-r5 .nrx-wx-pillar { border-bottom: 1px solid var(--wpxw-line); border-radius: 0; }
.nrx-wx-r5 .nrx-wx-flyouts { margin-top: 14px; }
.nrx-wx-r5 .nrx-wx-flyout-links { grid-template-columns: repeat(3, 1fr); }

/* r6 — GRID CARDS: pillars as cards, each card shows its children (no JS) */
.nrx-wx-r6 { display: block; }
.nrx-wx-r6 .nrx-wx-rail { display: none; }
.nrx-wx-r6 .nrx-wx-flyouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.nrx-wx-r6 .nrx-wx-flyout { display: block !important; padding: 14px 16px; background: var(--wpxw-paper); border: 1px solid var(--wpxw-line); border-top: 3px solid var(--wpxw-crimson); border-radius: 11px; }
.nrx-wx-r6 .nrx-wx-flyout-head { font-size: 15px; }
.nrx-wx-r6 .nrx-wx-flyout-links { grid-template-columns: 1fr; }

/* =========================================================================
   MEGA-MENU (mobile accordion) ≤ 768px
   ========================================================================= */
.nrx-wx-mobile { display: none; }

@media (max-width: 768px) {
  .main-navigation .nrx-wx-mega { display: none !important; }
  .nrx-wx-mobile { display: none; padding: 0; }
  .nrx-wx-parent.nrx-wx-open-m .nrx-wx-mobile { display: block; }
  .main-navigation.toggled .nrx-wx-parent.focus .nrx-wx-mobile { display: block; }
  .nrx-wx-parent.nrx-wx-open-m > a { font-weight: 700; }
  .nrx-wx-macc { border-bottom: 1px solid rgba(0,0,0,.08); }
  .nrx-wx-macc-btn {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    gap: 10px; padding: 11px 16px; margin: 0; border: 0; background: transparent;
    font: inherit; font-weight: 600; font-size: 14px; color: inherit; text-align: left;
    cursor: pointer;
  }
  .nrx-wx-macc-ico {
    flex: 0 0 auto; width: 18px; height: 18px; line-height: 18px; text-align: center;
    font-size: 16px; font-weight: 400; opacity: .65;
  }
  .nrx-wx-macc-ico::after { content: '+'; }
  .nrx-wx-macc.is-open .nrx-wx-macc-ico::after { content: '\2212'; }
  .nrx-wx-macc-body { display: none; padding: 0 16px 10px; }
  .nrx-wx-macc.is-open .nrx-wx-macc-body { display: block; }
  .nrx-wx-macc-body a {
    display: block; padding: 8px 0 8px 10px;
    font-size: 14px; font-weight: 400; text-decoration: none; color: inherit;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nrx-wx-macc-body a:last-child { border-bottom: 0; }
  .nrx-wx-macc-hub { font-weight: 600 !important; color: var(--wpxw-crimson) !important; }
  .nrx-wx-mall {
    display: block; padding: 12px 16px; font-weight: 600; font-size: 13px;
    text-decoration: none; color: var(--wpxw-crimson);
  }
  /* GP slide-out / dark mobile nav */
  .slideout-navigation .nrx-wx-macc,
  .main-navigation.toggled .nrx-wx-macc { border-bottom-color: rgba(255,255,255,.12); }
  .slideout-navigation .nrx-wx-macc-body a,
  .main-navigation.toggled .nrx-wx-macc-body a { border-bottom-color: rgba(255,255,255,.1); }
  .slideout-navigation .nrx-wx-macc-hub,
  .main-navigation.toggled .nrx-wx-macc-hub { color: #fff !important; opacity: .95; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 600px) {
  .wpxw-now { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .wpxw-now-temp { font-size: 46px; }
  .wpxw-now-icon { font-size: 46px; }
  .wpxw-days { grid-template-columns: repeat(4, 1fr); }
  .wpxw-days .wpxw-day:nth-child(n+8) { display: none; }
  .wpxw-lead { grid-template-columns: 1fr; }
  .wpxwx-hub-hero h1 { font-size: 26px; }
  .wpxwx-page h2 { font-size: 22px; }
  .wpxwx-lede { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .wpxw-card, .wpxwx-hub-grid a, .nrx-wx-tab { transition: none; }
}

/* =========================================================================
   GLOBAL READABILITY FIX — high-contrast forecast text (applies to every page)
   Day strip = LIGHT cards + DARK text always. JS renders <button.wpxw-day>; site
   themes (md-bridge etc.) paint all buttons brand-blue — reset background first,
   then darken labels. Never dark text on a dark button background.
   ========================================================================= */
.wpxw .wpxw-days button.wpxw-day,
.wpxw-days button.wpxw-day {
  background: #fff !important;
  color: var(--wpxw-ink) !important;
}
.wpxw-days .wpxw-day-lo   { color: #2a3441 !important; font-weight: 600 !important; font-size: 14px !important; }
.wpxw-days .wpxw-day-hi   { color: #0f1722 !important; font-weight: 800 !important; }
.wpxw-days .wpxw-day-pp   { color: #0a5aa0 !important; font-weight: 700 !important; font-size: 12.5px !important; }
.wpxw-days .wpxw-day-name { color: #12121f !important; font-weight: 700 !important; }
.wpxw-days .wpxw-day.is-today .wpxw-day-name { color: var(--wpxw-crimson) !important; font-weight: 800 !important; }
.wpxw-days .wpxw-day:hover,
.wpxw-days .wpxw-day:focus-visible,
.wpxw-days .wpxw-day.is-sel { background: var(--wpxw-sky-soft) !important; }
.wpxw-hr-t     { color: #2a3441 !important; font-weight: 700 !important; }
.wpxw-hr-deg   { color: #0f1722 !important; }
.wpxw-hr-pp    { color: #0a5aa0 !important; font-weight: 700 !important; }
.wpxw-card-hl, .wpxw-card-desc { color: #2a3441 !important; }
.wpxw-extra    { color: #12121f !important; background: var(--wpxw-sky-soft) !important; }
.wpxw-extra .wpxw-x b { color: #0a2d4f !important; }
/* slightly larger touch/read targets on the day strip */
.wpxw-days .wpxw-day { padding: 15px 6px !important; }
.wpxw-days .wpxw-day-icon { font-size: 30px !important; }


/* WordPatch palette override (per-site identity) */
:root, html body {
  --wpxw-navy: #1b5e3f;
  --wpxw-navy-deep: #133f2b;
  --wpxw-crimson: #c2701c;
  --wpxw-sky: #8b4553;
  --wpxw-sky-soft: #e8f1ea;
  --wpxw-paper: #f6f4ec;
  --wpxw-paper-2: #efeadd;
  --wpxw-ink: #1a2620;
  --wpxw-grey: #5d6b62;
  --wpxw-line: #e0dccd;
  --wpxw-amber: #d99a2b;
}
