/* ============================================================================
   Hawaii Right Now — homepage two-strip dashboard
   Scoped to .hg-dash-* — modern CSS, mobile-first, no Foundation grid.
   Font sizes in px (site base is html { font-size: 62.5% } so 1rem = 10px).
   ============================================================================ */

.hg-dash {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 18px 8px;
  box-sizing: border-box;
}
.hg-dash * { box-sizing: border-box; }

.hg-dash-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 14px;
  padding: 0 4px;
}
.hg-dash-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1D9771;
  margin: 0;
}
.hg-dash-tagline {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-style: italic;
}

/* ============================================================================
   Strip 1 — Per-island live conditions
   ============================================================================ */

.hg-dash-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 4px 4px 14px;
  margin: 0 -4px;
}

.hg-dash-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  border-top: 4px solid var(--hg-dash-color, #999);
  text-decoration: none;
  color: #1f2937;
  padding: 14px 16px 12px;
  min-height: 152px;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hg-dash-card:hover,
.hg-dash-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #1f2937;
}
.hg-dash-card:focus-visible { outline: 2px solid var(--hg-dash-color, #1D9771); outline-offset: 2px; }

.hg-dash-card[data-island="oahu"]       { --hg-dash-color: #F27A24; }
.hg-dash-card[data-island="maui"]       { --hg-dash-color: #1866B4; }
.hg-dash-card[data-island="big-island"] { --hg-dash-color: #c3232f; }
.hg-dash-card[data-island="kauai"]      { --hg-dash-color: #1D9771; }

.hg-dash-card-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--hg-dash-color);
  line-height: 1.2;
  letter-spacing: 0.2px;
}
.hg-dash-card-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 10px;
}

.hg-dash-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.35;
}
.hg-dash-row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9ca3af;
  flex: 0 0 auto;
  min-width: 52px;
}
.hg-dash-row-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}
.hg-dash-row-value.is-loading {
  display: inline-block;
  width: 80px;
  height: 12px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: hg-dash-skel 1.4s ease-in-out infinite;
}
@keyframes hg-dash-skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hg-dash-temp {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.hg-dash-alert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.hg-dash-alert[data-level="red"]    { background: #fee2e2; color: #991b1b; }
.hg-dash-alert[data-level="green"]  { background: #d1fae5; color: #065f46; }
.hg-dash-alert[data-level="orange"] { background: #ffedd5; color: #9a3412; }

.hg-dash-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hg-dash-color);
  letter-spacing: 0.2px;
}
.hg-dash-cta::after {
  content: " \2192";
  font-weight: 700;
}

/* ============================================================================
   Strip 2 — Coverage stats
   ============================================================================ */

.hg-dash-stats-header {
  margin: 22px 4px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.hg-dash-stats-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0;
}
.hg-dash-stats-sub {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
  font-style: italic;
}

.hg-dash-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 18px;
}
.hg-dash-stat {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 14px 12px;
}
.hg-dash-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
  letter-spacing: -0.5px;
  display: block;
}
.hg-dash-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-top: 4px;
  display: block;
  line-height: 1.25;
}
.hg-dash-stat-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  display: block;
  line-height: 1.35;
}

/* ============================================================================
   Per-island variant — propagates parent island's brand color to all 3 zone
   cards, and turns coverage stat tiles into clickable links to category hubs.
   Wrapper carries data-island-scope; child cards are .hg-dash-card-zone.
   ============================================================================ */

.hg-dash-island[data-island-scope="oahu"]       { --hg-dash-color: #F27A24; }
.hg-dash-island[data-island-scope="maui"]       { --hg-dash-color: #1866B4; }
.hg-dash-island[data-island-scope="big-island"] { --hg-dash-color: #c3232f; }
.hg-dash-island[data-island-scope="kauai"]      { --hg-dash-color: #1D9771; }

.hg-dash-island .hg-dash-card-name { color: var(--hg-dash-color); }
.hg-dash-island .hg-dash-eyebrow   { color: var(--hg-dash-color); }

/* Card-level data-island value matches the wrapper, so the homepage variant's
   per-card brand-color rules also apply here. The override above just guarantees
   the wrapper has the variable set even if a card forgets data-island. */

.hg-dash-stat-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, transform 0.12s ease;
  cursor: pointer;
}
.hg-dash-stat-link:hover,
.hg-dash-stat-link:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.hg-dash-stat-link:focus-visible {
  outline: 2px solid var(--hg-dash-color, #1D9771);
  outline-offset: 2px;
}
.hg-dash-island .hg-dash-stat-link:hover .hg-dash-stat-num {
  color: var(--hg-dash-color);
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (min-width: 560px) {
  .hg-dash-strip { grid-template-columns: repeat(2, 1fr); }
  .hg-dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hg-dash-stats { grid-template-columns: repeat(3, 1fr); }
  .hg-dash-stat-num { font-size: 32px; }
}

@media (min-width: 900px) {
  .hg-dash { padding: 32px 24px 16px; }
  .hg-dash-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 4px 4px 6px;
  }
  .hg-dash-card { min-height: 168px; }
  .hg-dash-stats { grid-template-columns: repeat(6, 1fr); }
  .hg-dash-stat-num { font-size: 34px; }
}

/* ============================================================================
   Print: hide
   ============================================================================ */

@media print {
  .hg-dash { display: none !important; }
}
