﻿/* ===================================================
   HULHUMALÉ ENVIRONMENTAL DASHBOARD — styles.css
   Clean civic dashboard: dark text on light background
=================================================== */

/* ── Custom Properties ── */
:root {
  --c-bg:       #f0f4f8;
  --c-surface:  #ffffff;
  --c-border:   #e2e8f0;
  --c-text:     #1e293b;
  --c-text-2:   #475569;
  --c-text-3:   #94a3b8;
  --c-accent:   #0ea5e9;
  --c-accent-d: #0284c7;
  --c-ocean:    #0c4a6e;
  --c-success:  #16a34a;
  --c-warn:     #d97706;
  --c-danger:   #dc2626;

  /* AQI colours */
  --aqi-good:        #16a34a;
  --aqi-moderate:    #ca8a04;
  --aqi-sensitive:   #ea580c;
  --aqi-unhealthy:   #dc2626;
  --aqi-very:        #7c3aed;
  --aqi-hazardous:   #7e0023;

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --shadow:     0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md:  0 2px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08);

  --section-gap: 2.5rem;
  --card-gap:    1rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
h1 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; }
h2 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; }

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.site-header {
  background: #16a34a;
  color: #fff;
  padding: 1.15rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-title {
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.3;
}
.site-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  margin-top: 2px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.last-updated-wrap {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
#last-updated { color: rgba(255,255,255,0.85); }

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s;
}
.btn-refresh:hover { background: rgba(255,255,255,0.25); }

.nav-link {
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.nav-link:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.header-home, .header-home:hover { color: inherit; text-decoration: none; }

/* ── About the Dashboard (public prose) ── */
.about-prose { max-width: 820px; color: var(--c-text-2); line-height: 1.65; font-size: 0.95rem; }
.about-prose .about-lead { font-size: 1.1rem; color: var(--c-text); line-height: 1.55; margin-bottom: 1.25rem; }
.about-prose h3 { color: var(--c-text); font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 0.6rem; letter-spacing: -0.01em; }
.about-prose p { margin: 0 0 0.85rem; }
.about-prose ul { margin: 0 0 0.85rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; }
.about-prose li { padding-left: 0.15rem; }
.about-prose strong { color: var(--c-text); font-weight: 600; }
.about-prose .about-sig { margin-top: 1.75rem; font-size: 0.85rem; color: var(--c-text-3); }
.btn-refresh.loading #refresh-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Summary Strip ── */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0 -1.5rem;
}
@media (max-width: 900px) { .summary-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .summary-strip { grid-template-columns: repeat(2, 1fr); } }

.summary-card {
  padding: 0.9rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  transition: background 0.2s;
  position: relative;
}
.summary-card:hover { background: rgba(255,255,255,0.07); }

.sc-icon { width: 28px; height: 28px; margin: 0 auto 0.35rem; color: rgba(255,255,255,0.7); }
.sc-icon svg { width: 100%; height: 100%; }
.sc-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.sc-value-sm { font-size: 1.05rem; padding-top: 0.3rem; }
.sc-unit { font-size: 0.7rem; color: rgba(255,255,255,0.55); margin-top: 2px; min-height: 14px; }
.sc-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 3px; }
.sc-pill { margin-top: 6px; min-height: 18px; display: flex; justify-content: center; }

/* ══════════════════════════════════
   PILLS / STATUS BADGES
══════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-live        { background: #dcfce7; color: #15803d; }
.pill-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
/* Larger, bolder section-header pills to match the Stitch look */
.section-header .pill { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
.pill-forecast    { background: #dbeafe; color: #1d4ed8; }
.pill-live-derived{ background: #fef9c3; color: #854d0e; }
.pill-placeholder { background: #f1f5f9; color: #64748b; }
.pill-not-live    { background: #fee2e2; color: #991b1b; }
.pill-warn        { background: #ffedd5; color: #9a3412; }

/* ══════════════════════════════════
   MAIN CONTENT
══════════════════════════════════ */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Sections ── */
.section {
  margin-bottom: var(--section-gap);
}
/* Each section is its own card (the briefing already is one). The section-level
   pill states the data status once, so inner tiles don't repeat it. */
.section:not(#section-briefing) {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
/* Flatten inner cards/tiles so they read as tiles inside the section card,
   not cards stacked on cards. */
.section:not(#section-briefing) .card,
.section:not(#section-briefing) .today-card,
.section:not(#section-briefing) .forecast-card,
.section:not(#section-briefing) .marine-card,
.section:not(#section-briefing) .pollutant-card {
  box-shadow: none;
  background: var(--c-bg);
}
.section:not(#section-briefing) .card:hover { box-shadow: none; }
/* Keep the "Today" accent tile from being flattened to a plain grey tile. */
.section:not(#section-briefing) .forecast-card.is-today {
  background: #f0f9ff;
  box-shadow: 0 2px 10px rgba(14,165,233,0.18);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-source {
  margin-left: auto;
  white-space: nowrap;
}
.section-title {
  color: var(--c-text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
/* Sub-section divider inside a merged section card (e.g. Station Air Quality) */
.subsection-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}
.subsection-title {
  color: var(--c-text);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Cards ── */
.card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  padding: 1.1rem 1.25rem;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.standard-note {
  font-size: 0.7rem;
  color: var(--c-text-3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Chart containers ── */
.chart-el { width: 100%; }
.chart-row { display: flex; gap: var(--card-gap); margin-bottom: var(--card-gap); flex-wrap: wrap; }
.chart-row.two-col .card { flex: 1 1 360px; min-width: 0; }
.chart-row.one-col .card { flex: 1 1 100%; }
.chart-card { min-width: 0; }

/* ══════════════════════════════════
   AIR QUALITY SECTION
══════════════════════════════════ */
.aqi-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}

.aqi-gauge-card { text-align: left; overflow: visible; }

/* ── Overall AQI: linear band scale (ported from AqiLinearScale.jsx) ── */
.aqi-scale-host { width: 100%; }
.aqi-scale { display: flex; flex-direction: column; gap: 1.25rem; }
.aqi-scale-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.aqi-scale-readout { display: flex; align-items: baseline; gap: 0.85rem; }
.aqi-scale-value {
  font: 800 3.75rem/0.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.aqi-scale-meta { display: flex; flex-direction: column; gap: 2px; }
.aqi-scale-cat { font-size: 1rem; font-weight: 600; color: var(--c-text); }
.aqi-scale-sub {
  font: 600 0.66rem ui-monospace, Menlo, monospace;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-3);
}
.aqi-scale-note {
  font-size: 0.8rem; color: var(--c-text-2); line-height: 1.45;
  max-width: 26ch; text-align: right;
}
.aqi-scale-bar { position: relative; padding-top: 1.6rem; }
.aqi-scale-marker {
  position: absolute; top: 0;
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}
.aqi-scale-marker span { display: block; width: 2px; height: 1.4rem; }
.aqi-scale-bands { display: flex; gap: 3px; height: 18px; }
.aqi-seg { border-radius: 3px; transition: opacity 0.4s ease; }
.aqi-scale-ticks { display: flex; gap: 3px; margin-top: 0.5rem; }
.aqi-tick {
  font: 500 0.62rem ui-monospace, Menlo, monospace;
  letter-spacing: 0.04em; color: var(--c-text-3);
  overflow: hidden; white-space: nowrap;
}
@media (max-width: 780px) { .aqi-scale-note { text-align: left; max-width: none; } }

.pollutant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}
.pollutant-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pollutant-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.pollutant-icon { width: 22px; height: 22px; color: var(--c-accent); flex-shrink: 0; }
.pollutant-icon svg { width: 100%; height: 100%; }
.pollutant-info-btn {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text-3);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
  line-height: 1;
}
.pollutant-info-btn:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.pollutant-symbol { font-size: 0.75rem; font-weight: 800; color: var(--c-text); letter-spacing: 0.02em; }
.pollutant-fullname { font-size: 0.65rem; color: var(--c-text-3); line-height: 1.3; margin-top: 1px; margin-bottom: 0.4rem; }
.pollutant-value { font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--c-text); }
.pollutant-unit { font-size: 0.65rem; color: var(--c-text-3); }
.pollutant-aqi { font-size: 0.72rem; font-weight: 600; margin-top: 4px; }

/* ── Pollutant Info Modal ── */
.p-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.p-modal-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.p-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text-2);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.p-modal-close:hover { background: #fee2e2; color: #991b1b; border-color: #fecdd3; }
.p-modal-symbol {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-accent);
  background: #e0f2fe;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.p-modal-desc {
  font-size: 0.85rem;
  color: var(--c-text-2);
  line-height: 1.65;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 1rem;
}
.p-modal-section { margin-bottom: 0.85rem; }
.p-modal-section-head {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-3);
  margin-bottom: 0.35rem;
}
.p-modal-text {
  font-size: 0.82rem;
  color: var(--c-text-2);
  line-height: 1.6;
}

/* ══════════════════════════════════
   WEATHER SECTION
══════════════════════════════════ */
.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}
.today-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.today-card .tc-icon { width: 28px; height: 28px; color: var(--c-accent); }
.today-card .tc-icon svg { width: 100%; height: 100%; }
.today-card .tc-name { font-size: 0.7rem; font-weight: 600; color: var(--c-text-2); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.25rem; }
.today-card .tc-value { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.today-card .tc-unit { font-size: 0.72rem; color: var(--c-text-3); }
.today-card .tc-sub { font-size: 0.75rem; color: var(--c-text-2); }
.today-card .tc-pill { margin-top: auto; padding-top: 0.5rem; }

.forecast-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-bottom: var(--card-gap);
}
.forecast-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.75rem 0.9rem;
  text-align: center;
  min-width: 0;
}
/* Today gets an accent so it stands out from the rest of the week */
.forecast-card.is-today {
  border: 2px solid var(--c-accent);
  background: #f0f9ff;
  box-shadow: 0 2px 10px rgba(14,165,233,0.18);
}
.forecast-card.is-today .fc-day { color: var(--c-accent-d); }
.forecast-card .fc-day { font-size: 0.72rem; font-weight: 700; color: var(--c-text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.forecast-card .fc-icon { width: 24px; height: 24px; color: var(--c-accent); margin: 0.4rem auto; }
.forecast-card .fc-icon svg { width: 100%; height: 100%; }
.forecast-card .fc-temp { font-size: 1.05rem; font-weight: 700; }
.forecast-card .fc-range { font-size: 0.68rem; color: var(--c-text-3); }
.forecast-card .fc-sub { font-size: 0.65rem; color: var(--c-text-3); margin-top: 2px; }
.forecast-card .fc-pill { margin-top: 0.4rem; display: flex; justify-content: center; }

/* Rain probability — visual bar + badge */
.forecast-card .fc-rain { margin-top: 0.45rem; }
.fc-rain-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.fc-rain-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #3b82f6;
}
.fc-rain-val {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
}
.fc-rain-val .material-symbols-outlined { font-size: 14px; font-variation-settings: 'FILL' 1; }
.fc-rain-low  .fc-rain-bar span { background: #93c5fd; }
.fc-rain-low  .fc-rain-val { color: #64748b; }
.fc-rain-med  .fc-rain-bar span { background: #3b82f6; }
.fc-rain-med  .fc-rain-val { color: #2563eb; }
.fc-rain-high .fc-rain-bar span { background: #1d4ed8; }
.fc-rain-high .fc-rain-val { color: #1d4ed8; }

/* ══════════════════════════════════
   TIDE & MARINE SECTION
══════════════════════════════════ */
.marine-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}
.marine-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.marine-card .mc-icon { width: 26px; height: 26px; color: #0284c7; margin-bottom: 0.5rem; }
.marine-card .mc-icon svg { width: 100%; height: 100%; }
.marine-card .mc-name { font-size: 0.68rem; font-weight: 600; color: var(--c-text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.marine-card .mc-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.2rem; }
.marine-card .mc-unit { font-size: 0.68rem; color: var(--c-text-3); }
.marine-card .mc-sub { font-size: 0.72rem; color: var(--c-text-2); margin-top: 0.3rem; }
.marine-card .mc-pill { margin-top: 0.5rem; }

.tide-note {
  font-size: 0.75rem;
  color: var(--c-text-2);
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: var(--card-gap);
}

/* ══════════════════════════════════
   CORAL BLEACHING WATCH
══════════════════════════════════ */
/* Two-column coral layout: larger NOAA image left, info boxes + fallback right */
.coral-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--card-gap);
  align-items: start;
  margin-bottom: var(--card-gap);
}
.coral-side { display: flex; flex-direction: column; gap: var(--card-gap); }
.coral-side .coral-layout { margin-bottom: 0; }
@media (max-width: 760px) {
  .coral-grid { grid-template-columns: 1fr; }
}

.coral-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}
.coral-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}
.coral-card .cc-icon { width: 28px; height: 28px; margin-bottom: 0.5rem; }
.coral-card .cc-icon svg { width: 100%; height: 100%; }
.coral-card .cc-name { font-size: 0.68rem; font-weight: 600; color: var(--c-text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.coral-card .cc-value { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-top: 0.2rem; }
.coral-card .cc-unit { font-size: 0.68rem; color: var(--c-text-3); }
.coral-card .cc-sub { font-size: 0.72rem; color: var(--c-text-2); margin-top: 0.35rem; }
.coral-card .cc-pill { margin-top: 0.5rem; }

.coral-fallback-card { text-align: left; }
.fallback-note { font-size: 0.82rem; color: var(--c-text-2); margin-bottom: 0.75rem; line-height: 1.55; }
.btn-external {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: var(--c-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-external:hover { background: var(--c-accent-d); text-decoration: none; }

/* Alert level colour highlights */
.alert-no-stress    { border-left: 4px solid #16a34a; }
.alert-watch        { border-left: 4px solid #ca8a04; }
.alert-warning      { border-left: 4px solid #ea580c; }
.alert-level-1      { border-left: 4px solid #dc2626; }
.alert-level-2      { border-left: 4px solid #7c3aed; }
.alert-high         { border-left: 4px solid #7e0023; }

/* ══════════════════════════════════
   MAPS & HEATMAPS
══════════════════════════════════ */
.map-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
  align-items: start;
}
@media (max-width: 640px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-controls { display: flex; flex-wrap: wrap; gap: 0.4rem; }
}

.map-controls {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.map-controls-heading {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}
.map-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--c-text);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.map-toggle input[type="radio"] { accent-color: var(--c-accent); }
.map-toggle-disabled { opacity: 0.55; cursor: not-allowed; }

.map-legend {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.72rem;
  color: var(--c-text-2);
  min-height: 60px;
}
.map-legend-title { font-weight: 600; margin-bottom: 0.4rem; }
.legend-bar {
  height: 10px;
  border-radius: 4px;
  margin: 0.3rem 0;
}
.legend-labels { display: flex; justify-content: space-between; font-size: 0.65rem; }

.map-container {
  height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) { .map-container { height: 340px; } }

.tree-cover-card { margin-top: var(--card-gap); }
.tree-cover-card p { font-size: 0.82rem; color: var(--c-text-2); line-height: 1.6; }

/* Maps & Heatmaps disabled — map + tree-cover card greyed under one overlay */
.maps-disabled-wrap { position: relative; }
.maps-disabled-wrap > .map-layout,
.maps-disabled-wrap > .tree-cover-card {
  filter: grayscale(1);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
}
.coming-soon-badge {
  text-align: center;
  max-width: 360px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
}
.coming-soon-title { font-size: 1.05rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.4rem; }
.coming-soon-sub { font-size: 0.82rem; color: var(--c-text-2); line-height: 1.55; margin: 0; }

/* NOAA Coral Reef Watch live image */
.coral-noaa-card { margin-bottom: var(--card-gap); }
.coral-noaa-imglink { display: block; }
.coral-noaa-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}
.coral-noaa-card.img-failed { display: none; }

/* ── Station Air Quality (AQICN) ── */
.aqicn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--card-gap);
  align-items: start;
}
@media (max-width: 760px) { .aqicn-layout { grid-template-columns: 1fr; } }
.aqicn-sources { display: flex; flex-direction: column; gap: var(--card-gap); }

/* National IQAir embedded map */
.iqair-map-card { margin-top: var(--card-gap); }
.iqair-map {
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: var(--radius-sm);
  display: block;
}
@media (max-width: 600px) { .iqair-map { height: 340px; } }

.aqicn-value { font-size: 3rem; font-weight: 800; line-height: 1.05; }
.aqicn-value .aqicn-unit { font-size: 0.85rem; font-weight: 600; color: var(--c-text-3); margin-left: 0.4rem; }
.aqicn-cat { font-size: 1rem; font-weight: 700; margin-top: 0.1rem; }
.aqicn-station { font-size: 0.85rem; color: var(--c-text-2); margin-top: 0.5rem; }
.aqicn-pollutants {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 0.9rem; margin-top: 0.9rem;
  font-size: 0.78rem; color: var(--c-text-2);
}
.aqicn-pollutants b { color: var(--c-text); font-weight: 700; }
.aqicn-meta { font-size: 0.72rem; color: var(--c-text-3); margin-top: 0.9rem; line-height: 1.5; }
.aqicn-current .btn-external { margin-top: 0.9rem; }

.aqicn-range { display: inline-flex; gap: 0.25rem; margin-left: auto; }
.range-btn {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.range-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.range-btn.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.aqicn-history-card .card-label { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ov-download { margin-left: auto; }

/* Period overview table (compact) */
.aqicn-overview { margin-top: 0.75rem; }
.ov-table {
  width: 100%;
  border-collapse: collapse;
  line-height: 1;
  font-size: 12px;
}
.ov-table th, .ov-table td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-top: 1px solid var(--c-border);
  vertical-align: middle;
}
.ov-table th {
  color: var(--c-text-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
  white-space: nowrap;
  width: 1%;
}
.ov-table td { color: var(--c-text); font-weight: 600; }
.ov-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.6rem;
  font-size: 11px;
  color: var(--c-text-2);
}
.ov-cat { display: inline-flex; align-items: center; gap: 0.35rem; }
.ov-cat i { width: 9px; height: 9px; border-radius: 2px; background: var(--c-border); display: inline-block; }
.ov-cat b { color: var(--c-text); }

/* ══════════════════════════════════
   DATA STATUS TABLE
══════════════════════════════════ */
.status-table {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}
.status-row {
  flex: 1 1 220px;   /* rows grow to fill the width — no empty cells on the last row */
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.status-row .sr-name { font-size: 0.82rem; font-weight: 600; color: var(--c-text); }
.status-row .sr-detail { font-size: 0.7rem; color: var(--c-text-3); margin-top: 2px; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  background: #16a34a;
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  flex-shrink: 0;
}
.footer-org {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.footer-division {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.footer-statement {
  font-size: 0.82rem;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sources-details { margin-bottom: 1rem; }
.sources-summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0.35rem 0;
  list-style: none;
  user-select: none;
}
.sources-summary::-webkit-details-marker { display: none; }
.sources-summary::before { content: '▶ '; font-size: 0.65rem; }
details[open] .sources-summary::before { content: '▼ '; }
.sources-list {
  margin-top: 0.75rem;
  padding-left: 1rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sources-list li { font-size: 0.78rem; line-height: 1.5; }
.sources-list a { color: #dcfce7; text-decoration: underline; }
.sources-list a:hover { color: #fff; }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 0.5rem;
}

/* ══════════════════════════════════
   LOADING / ERROR STATES
══════════════════════════════════ */
.loading-placeholder {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  height: 1em;
}
@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

.error-card {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: #9f1239;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.no-data-text {
  font-size: 0.82rem;
  color: var(--c-text-3);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — three breakpoints
   780px  tablet portrait
   600px  phone landscape / large phone
   400px  small phone
══════════════════════════════════════════════════════ */

/* ── Tablet portrait (≤ 780px) ─────────────────────── */
@media (max-width: 780px) {
  :root { --section-gap: 1.75rem; --card-gap: 0.75rem; }

  /* ── Header ── */
  .site-header     { padding: 0.9rem 1rem; }
  .site-subtitle   { font-size: 0.72rem; }
  .summary-strip   { grid-template-columns: repeat(3, 1fr); margin: 0 -1rem; }

  /* ── Main ── */
  .main-content { padding: 1.25rem 1rem; }

  /* ── AQI ── */
  .aqi-main-layout { grid-template-columns: 1fr; }
  .pollutant-grid  { grid-template-columns: repeat(3, 1fr); }

  /* ── Weather ── */
  .today-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  /* ── Charts ── */
  .chart-row.two-col            { flex-direction: column; }
  .chart-row.two-col .card      { flex: none; width: 100%; }

  /* ── Marine / Coral ── */
  .marine-card-grid { grid-template-columns: repeat(3, 1fr); }
  .coral-layout     { grid-template-columns: repeat(2, 1fr); }

  /* ── Map ── */
  .map-layout       { grid-template-columns: 1fr; }
  .map-container    { height: 360px; }
  /* layer controls become a horizontal pill row */
  .map-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.85rem;
  }
  .map-controls-heading {
    width: 100%;
    margin-bottom: 0.2rem;
    padding-bottom: 0.35rem;
  }
  .map-toggle {
    flex: 0 0 auto;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.76rem;
  }
  .map-toggle:has(input:checked) {
    background: #dbeafe;
    border-color: var(--c-accent);
    color: var(--c-accent-d);
    font-weight: 600;
  }
  .map-legend { display: none; }

  /* ── Status ── */
  .status-table { grid-template-columns: repeat(2, 1fr); }
}

/* ── Phone (≤ 600px) ────────────────────────────────── */
@media (max-width: 600px) {
  /* ── Header: compact, not sticky – keep refresh accessible ── */
  .site-header     { padding: 0.65rem 0.9rem; }
  .header-logo     { height: 30px; }
  .site-subtitle   { display: none; }          /* reclaim vertical space */
  .last-updated-wrap { display: none; }        /* too narrow to fit */

  /* ── Summary strip: 3-col, slim cards ── */
  .summary-strip  {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 -0.9rem;
  }
  .summary-card   { padding: 0.5rem 0.3rem; }
  .sc-icon        { width: 18px; height: 18px; margin-bottom: 0.15rem; }
  .sc-value       { font-size: 1.2rem; }
  .sc-unit        { font-size: 0.58rem; min-height: 11px; }
  .sc-label       { font-size: 0.58rem; margin-top: 2px; }
  .sc-pill        { display: none; }           /* pills too small to read */

  /* ── Main ── */
  .main-content   { padding: 1rem 0.9rem; }
  .card           { padding: 0.8rem 0.85rem; }

  /* ── AQI ── */
  .pollutant-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Weather ── */
  .today-grid               { grid-template-columns: repeat(2, 1fr); }
  .today-card .tc-value     { font-size: 1.6rem; }
  .today-card               { padding: 0.9rem 0.85rem; }

  /* ── Marine ── */
  .marine-card-grid         { grid-template-columns: repeat(2, 1fr); }
  .marine-card .mc-value    { font-size: 1.4rem; }

  /* ── Coral ── */
  .coral-layout             { grid-template-columns: repeat(2, 1fr); }

  /* ── Map ── */
  .map-container            { height: 300px; }
  .map-toggle               { font-size: 0.72rem; padding: 0.22rem 0.6rem; }

  /* ── Status ── */
  .status-table             { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .site-footer              { padding: 1.5rem 1rem; }
  .footer-brand             { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .footer-logo              { height: 28px; }

  /* ── Info modal ── */
  .p-modal-card             { padding: 1.25rem 1.1rem 1rem; border-radius: var(--radius); }
  .p-modal-title            { font-size: 1rem; }
}

/* ── Small phone (≤ 400px) ───────────────────────────── */
@media (max-width: 400px) {
  .site-header      { padding: 0.55rem 0.75rem; }
  .header-logo      { height: 26px; }
  .site-title       { font-size: 0.88rem; }
  .btn-refresh      { padding: 0.3rem 0.65rem; font-size: 0.74rem; }
  .header-controls  { gap: 0.4rem; }

  /* ── Summary strip: stay 3-col but tighter ── */
  .summary-strip    { margin: 0 -0.75rem; }
  .summary-card     { padding: 0.45rem 0.2rem; }
  .sc-value         { font-size: 1.05rem; }
  .sc-icon          { width: 16px; height: 16px; }
  .sc-value-sm      { font-size: 0.9rem; }

  /* ── Main ── */
  .main-content     { padding: 0.75rem; }
  .card             { padding: 0.75rem; }

  /* ── Weather ── */
  .today-card .tc-value   { font-size: 1.4rem; }
  .today-card             { padding: 0.75rem 0.65rem; }

  /* ── Marine ── */
  .marine-card .mc-value  { font-size: 1.25rem; }

  /* ── Map ── */
  .map-container          { height: 260px; }

  /* ── Briefing ── */
  .briefing-card          { padding: 1.4rem 1.25rem 1.5rem; }
  .briefing-headline      { font-size: 27px; }
  .briefing-sub           { font-size: 14px; }
}

/* ════════════════════════════════════════
   DAILY BRIEFING — day-outlook cards
════════════════════════════════════════ */
#section-briefing { margin-bottom: var(--section-gap); }

.briefing-card {
  --ink: #152238; --muted: #5b7286; --faint: #8ba0b0;
  --oc-green: #2ec27e; --oc-orange: #f5813e; --oc-blue: #3b82f6; --oc-teal: #14b8c4; --oc-violet: #7c6cf0;
  --oc-cardborder: rgba(21,34,56,.07);
  --oc-mono: 'IBM Plex Mono', ui-monospace, monospace;
  font-family: Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(115deg, #fdf6ec 0%, #f4f7f2 42%, #e3f2ea 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.briefing-head { display: flex; flex-direction: column; gap: 6px; }
.briefing-headline { margin: 0; font-size: 38px; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.briefing-sub { margin: 0; font-size: 16px; color: var(--muted); }

/* Six briefing cards, so every column count here divides 6 exactly (6 / 3 / 2 / 1)
   and no row is ever left part-empty. Below 1360px six across squeezes the cards
   under ~170px, which wraps the text badly, so it drops to three. */
.briefing-card .cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: stretch; }
.briefing-card .cards--wide { grid-template-columns: 1fr 1fr; }
@media (max-width: 1360px) { .briefing-card .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .briefing-card .cards { grid-template-columns: repeat(2, 1fr); } .briefing-card .cards--wide { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .briefing-card .cards { grid-template-columns: 1fr; } }

.ocard {
  position: relative; background: #fff; border: 1px solid var(--oc-cardborder);
  border-left: 4px solid var(--accent, var(--oc-green)); border-radius: 12px;
  padding: 16px 16px 18px; box-shadow: 0 2px 10px rgba(21,34,56,.05);
  display: flex; flex-direction: column; gap: 10px;
}
.ocard--wide { padding: 18px 20px 20px; gap: 12px; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ocard h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.ocard--wide h3 { font-size: 17px; }
.ocard p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ocard--wide p { font-size: 13.5px; }
.card__viz { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }

.badge { font-family: var(--oc-mono); font-size: 10px; letter-spacing: .08em; font-weight: 500; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.badge--good  { color: #1c7a52; background: #dff3e8; }
.badge--warn  { color: #9a5a11; background: #fdeccc; }
.badge--info  { color: #2b5fa8; background: #dfeafc; }
.badge--lunar { color: #4b3fc0; background: #e7e4fd; }

.scale-labels { display: flex; justify-content: space-between; font-family: var(--oc-mono); font-size: 9px; color: var(--faint); letter-spacing: .06em; }
.scale-labels em { font-style: normal; color: #c2551f; font-weight: 500; }

.aqi { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg,#2ec27e 0%,#e6c13f 35%,#f5813e 62%,#e2564d 100%); }
.aqi__dot { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--oc-green); transform: translateX(-50%); }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.bars--rain { gap: 4px; }
.bars > i { flex: 1; display: block; border-radius: 2px 2px 0 0; min-height: 3px; }
.bars--rain > i { border-radius: 3px 3px 0 0; }

.swell { display: flex; align-items: flex-end; gap: 5px; }
.swell__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.swell__slot { width: 100%; height: 26px; display: flex; align-items: flex-end; }
.swell__slot > i { width: 100%; border-radius: 3px; background: var(--oc-teal); display: block; }
.swell__col span { font-family: var(--oc-mono); font-size: 9px; color: var(--faint); }
.meta { font-family: var(--oc-mono); font-size: 9px; color: var(--faint); letter-spacing: .06em; }

.sun-panel { margin-top: 4px; padding: 14px 6px 0; border-radius: 10px; background: linear-gradient(180deg,#fff6e9 0%,#fffdf9 100%); }
.sun-panel svg { width: 100%; height: 132px; display: block; overflow: visible; }
.readout { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 2px 4px 12px; }
.readout div { display: flex; flex-direction: column; gap: 2px; }
.readout div:nth-child(2) { align-items: center; }
.readout div:last-child { align-items: flex-end; }
.readout small { font-family: var(--oc-mono); font-size: 9px; letter-spacing: .08em; color: #a08b74; }
.readout b { font-size: 15px; font-weight: 600; }
.readout .hot { color: #c2551f; }

.moon-panel { margin-top: 4px; display: flex; gap: 18px; align-items: stretch; padding: 16px; border-radius: 10px; background: linear-gradient(160deg,#1b2440 0%,#2a2f57 100%); }
.moon-panel svg { width: 100%; height: 96px; display: block; overflow: visible; }
.moon-panel__side { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
.moon-panel__main { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.moon-caption { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.moon-caption b { font-size: 13px; font-weight: 600; color: #efeada; text-transform: capitalize; }
.moon-caption span { font-family: var(--oc-mono); font-size: 10px; letter-spacing: .06em; color: #9aa2c8; }
.moon-panel .readout small { color: #9aa2c8; }
.moon-panel .readout b { color: #efeada; }

.moon { position: relative; border-radius: 50%; overflow: hidden; background: #141b33; }
.moon--lg { width: 92px; height: 92px; box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 0 34px rgba(226,222,255,.18); }
.moon__half { position: absolute; top: 0; bottom: 0; width: 50%; background: #efeada; }
.moon__term { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 50%; }
.moon__crater { position: absolute; border-radius: 50%; background: rgba(120,112,96,.14); }

.phase-strip { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 2px; }
.phase-strip__item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.phase-strip .moon { width: 22px; height: 22px; }
.phase-strip .moon__half { background: #d9d3c2; }
.phase-strip__item span { font-family: var(--oc-mono); font-size: 8.5px; letter-spacing: .05em; color: var(--faint); }
