/* HailDataHub front-end skin. Front-end only (not wp-admin). Does not hide navigation or content. */
html {
  background-color: #0e141b;
}
body {
  background-color: #0e141b !important;
  color: #e8eef4 !important;
}
body .wp-site-blocks,
body .wp-block-group,
body .is-layout-constrained,
body .is-layout-flow {
  color: inherit;
}
body header.wp-block-template-part,
body footer.wp-block-template-part,
body .wp-block-template-part,
body .site-header,
body .wp-block-navigation {
  background-color: #121a22;
  color: #e8eef4;
}
body a:where(:not(.wp-element-button):not(.hdh-cta):not(.hdh-ad)) {
  color: #3dde8a;
}
body .wp-block-site-title,
body .wp-block-site-title a,
body .wp-block-post-title,
body .wp-block-heading,
body h1, body h2, body h3, body h4 {
  color: #e8eef4;
}
body .wp-block-navigation a {
  color: #e8eef4;
}
body .wp-block-navigation .wp-block-navigation-item__label {
  color: inherit;
}

/* Suspended signup: slash + banner (do not rely on shortcode <style>, WP strips it) */
.hdh-suspend-banner {
  color: #3dde8a !important;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 18px;
  text-align: center;
}
.hdh-slash-wrap {
  position: relative;
}
.hdh-slash-wrap .hdh-slash {
  position: absolute;
  left: -6%;
  top: 48%;
  width: 112%;
  height: 12px;
  background: #ef5350;
  transform: rotate(-26deg);
  transform-origin: center center;
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 0 0 2px #0e141b;
}
.hdh-alerts-form.hdh-alerts-suspended form,
.hdh-alerts-form.hdh-alerts-suspended input,
.hdh-alerts-form.hdh-alerts-suspended button {
  pointer-events: none !important;
}
.hdh-alerts-form.hdh-alerts-suspended form {
  opacity: 0.7;
}
.hdh-alerts-form.hdh-alerts-suspended button {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.hdh-pay { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 16px; }
.hdh-pay-btn { display:inline-block; background:#3dde8a; color:#0e141b; font-weight:700; text-decoration:none; padding:10px 14px; border-radius:4px; }
.hdh-pay-btn.hdh-pay-annual { background:#e8eef4; }
.hdh-pay-monthly { display:flex; flex-wrap:wrap; gap:10px; flex-basis:100%; }
.hdh-pay-monthly .hdh-pay-btn { background:#3dde8a; color:#0e141b; }
.hdh-pay-monthly-note { color:#9aa8b6; font-size:0.92rem; }


/* Compact header lockup (logo + site title + floating pill) */
body header.wp-block-template-part .custom-logo {
  max-height: 28px !important;
  width: auto !important;
  height: auto !important;
}
body header.wp-block-template-part .wp-block-site-logo {
  line-height: 0;
}
body header.wp-block-template-part .wp-block-site-title,
body header.wp-block-template-part .wp-block-site-title a {
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}
body header.wp-block-template-part .ext-header-sticky--floating-pill > .wp-block-group {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  gap: 0.45rem;
}
body header.wp-block-template-part .wp-block-group.is-nowrap {
  gap: 0.4rem;
}


/* Hide WP author byline and comments on public reports */
body .wp-block-post-author,
body .wp-block-post-author-name,
body .wp-block-post-author-name a,
body .wp-block-post-author-biography,
body .wp-block-avatar,
body .wp-block-post-author__content,
body .wp-block-comments,
body .wp-block-comments-title,
body .wp-block-post-comments-form,
body .comment-respond,
body #respond,
body .wp-block-comment-template {
  display: none !important;
}

/* Advertise here slot on hail reports — US business-card size, HailDataHub.com only */
a.hdh-ad,
p.hdh-ad > a,
.adslot > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3.5in;
  max-width: 100%;
  min-height: 2in;
  margin: 18px auto 8px;
  padding: 16px 18px;
  border: 2px solid #3dde8a;
  border-radius: 6px;
  background: #151d27;
  text-decoration: none;
  text-align: center;
  color: #e8eef4;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 650;
}
p.hdh-ad,
.adslot {
  display: flex;
  justify-content: center;
  margin: 18px auto 8px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
}
p.hdh-ad > a,
.adslot > a {
  margin: 0 auto;
}
a.hdh-ad .hdh-ad-kicker,
a.hdh-ad .hdh-ad-sub {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #9aa8b6;
  font-weight: 650;
}
a.hdh-ad .hdh-ad-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
a.hdh-ad .hdh-ad-title {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
  color: #3dde8a;
  margin: 0 0 8px;
}
@media print {
  a.hdh-ad,
  p.hdh-ad > a,
  .adslot > a {
    background: #ffffff;
    border-color: #1a6b3c;
    color: #0e141b;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a.hdh-ad .hdh-ad-title {
    color: #0e141b;
  }
  a.hdh-ad .hdh-ad-kicker,
  a.hdh-ad .hdh-ad-sub {
    color: #4a5560;
  }
}

/* ===== HDH /live/ UX pass 2026-09-12 (Michael-approved patterns) =====
   Navy/gold hail size-on-pin, live refresh banner, today's KPI strip.
   Injected by hdh-live.js if markup hooks are absent. Mobile-first. */

.hdh-live-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #243140;
  background: #0f1a2a;
  color: #e8eef4;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.hdh-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28);
  flex: 0 0 auto;
  animation: hdh-live-pulse 1.8s ease-in-out infinite;
}
@keyframes hdh-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
#hdh-live-banner-text {
  color: #e8eef4;
}

.hdh-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.hdh-kpi-item {
  background: #0f1a2a;
  border: 1px solid #c9a227;
  border-radius: 10px;
  padding: 10px 10px 8px;
  text-align: center;
  min-width: 0;
}
.hdh-kpi-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #c9a227;
  font-variant-numeric: tabular-nums;
}
.hdh-kpi-lbl {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #9aa8b6;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* Size-on-pin: LSR magnitude inches (not radar cell size) */
.hdh-pin-icon {
  background: none !important;
  border: none !important;
}
/* Leaflet shortcode forces content-box on container *; keep pins border-box so labels stay single-line */
.hdh-live .leaflet-container .hdh-pin-icon,
.hdh-live .leaflet-container .hdh-pin,
.hdh-live .leaflet-container .hdh-pin-size,
.hdh-live .leaflet-container .hdh-pin-wrap,
.hdh-live .leaflet-container .hdh-pin-count,
.hdh-pin, .hdh-pin-wrap, .hdh-pin-count {
  box-sizing: border-box !important;
}
.hdh-pin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0f1a2a;
  border: 2px solid #c9a227;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(15, 26, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a227;
  overflow: hidden;
}
.hdh-pin-field {
  background: #12203a;
  border-color: #e0c35a;
}
.hdh-pin-size {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #c9a227;
  pointer-events: none;
  user-select: none;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
}
.hdh-pin-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #c9a227;
  color: #0f1a2a;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 1px #0f1a2a;
}
.hdh-pin-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (max-width: 520px) {
  .hdh-kpi {
    gap: 6px;
  }
  .hdh-kpi-item {
    padding: 8px 6px 6px;
  }
  .hdh-kpi-val {
    font-size: 1.15rem;
  }
  .hdh-kpi-lbl {
    font-size: 0.66rem;
  }
  .hdh-live-banner {
    font-size: 0.85rem;
    padding: 7px 10px;
  }
  .hdh-pin-size {
    font-size: 10px;
  }
}

/* ===== Mobile polish 2026-09-16 (iPhone Safari) =====
   1) Map full-bleed / kill white chrome gutters
   2) Pin labels readable (see pin rules above + JS coalesce)
   3/4) Safe-area + Meridian FAB clearance for bottom copy
*/
@media (max-width: 768px) {
  /* Break out of theme global padding / constrained content */
  .entry-content .hdh-live,
  .wp-block-post-content .hdh-live,
  .hdh-live {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    background: #0e141b !important;
  }
  .hdh-live > h1,
  .hdh-live > .hdh-disclaimer,
  .hdh-live > .hdh-meta,
  .hdh-live > .hdh-toolbar,
  .hdh-live > .hdh-radar-note,
  .hdh-live > .hdh-alerts,
  .hdh-live > .hdh-hail-hero,
  .hdh-live > .hdh-towns,
  .hdh-live > .hdh-other-h,
  .hdh-live > .hdh-lists,
  .hdh-live > .hdh-cameras,
  .hdh-live > .hdh-attr,
  .hdh-live > .hdh-nav,
  .hdh-live > #hdh-kpi,
  .hdh-live > #hdh-live-banner,
  .hdh-live > .hdh-live-banner,
  .hdh-live > .hdh-kpi {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hdh-live .hdh-map-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    background: #0e141b !important;
    overflow: hidden;
  }
  .hdh-live #hdh-map {
    width: 100% !important;
    min-height: 420px;
    background: #0e141b !important;
  }
  /* Kill white flash behind leaflet tiles / chrome */
  .hdh-live .leaflet-container {
    background: #0e141b !important;
  }

  /* CA / AU / EU custom live-map roots (same FAB + safe-area needs) */
  .hdh-ca-live,
  .hdh-au-live,
  .hdh-eu-live {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    background: #0b1c2c !important;
  }
  .hdh-ca-live > h1,
  .hdh-ca-live > .hdh-disclaimer,
  .hdh-ca-live > .hdh-meta,
  .hdh-ca-live > .hdh-toolbar,
  .hdh-ca-live > .hdh-sat-row,
  .hdh-ca-live > .hdh-list,
  .hdh-ca-live > .hdh-attr,
  .hdh-ca-live > .hdh-nav,
  .hdh-au-live > h1,
  .hdh-au-live > .hdh-disclaimer,
  .hdh-au-live > .hdh-meta,
  .hdh-au-live > .hdh-toolbar,
  .hdh-au-live > .hdh-sat-row,
  .hdh-au-live > .hdh-list,
  .hdh-au-live > .hdh-attr,
  .hdh-au-live > .hdh-nav,
  .hdh-eu-live > h1,
  .hdh-eu-live > .hdh-disclaimer,
  .hdh-eu-live > .hdh-meta,
  .hdh-eu-live > .hdh-toolbar,
  .hdh-eu-live > .hdh-sat-row,
  .hdh-eu-live > .hdh-list,
  .hdh-eu-live > .hdh-attr,
  .hdh-eu-live > .hdh-nav {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hdh-ca-live #hdh-ca-map,
  .hdh-au-live #hdh-au-map,
  .hdh-eu-live #hdh-eu-map {
    width: 100% !important;
    border-radius: 0 !important;
    min-height: 420px;
  }
  .hdh-hub-embed {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }
  .hdh-hub-embed iframe {
    width: 100% !important;
    min-height: 480px;
  }
}

/* Soft embed mode if ?hdh_embed=1 (body.hdh-embed set by page JS or below) */
body.hdh-embed .hdh-live,
body.hdh-embed .hdh-ca-live,
body.hdh-embed .hdh-au-live,
body.hdh-embed .hdh-eu-live {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
}


html.hdh-embed body,
body.hdh-embed {
  background: #0e141b !important;
}
