/* ==========================================================================
   WILL THE MARKET CRASH? - Neobrutalist Design System
   A bold, premium dashboard PWA with warm golden-yellow palette,
   halftone dot textures, thick borders, and hard offset shadows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Background colors */
  --bg-primary: #F5B731;
  --bg-dots: #E8A820;
  --bg-secondary: #F0A81E;

  /* Card and surface colors */
  --card-bg: #FFFDF5;
  --card-border: #1A1A1A;
  --shadow-color: #1A1A1A;

  /* Text colors */
  --text-primary: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #8A8A8A;
  --text-on-dark: #FFFDF5;

  /* Status colors */
  --status-healthy: #2ECC71;
  --status-healthy-bg: #EAFAF1;
  --status-caution: #F5B731;
  --status-caution-bg: #FEF9E7;
  --status-danger: #E74C3C;
  --status-danger-bg: #FDEDEC;
  --status-unavailable: #95A5A6;
  --status-unavailable-bg: #EAECEE;

  /* Accent colors */
  --accent-blue: #3498DB;
  --accent-blue-light: #EBF5FB;

  /* Button colors */
  --btn-primary: #F5B731;
  --btn-dark: #1A1A1A;

  /* Borders */
  --border-width: 2.5px;
  --border-style: solid;
  --border: var(--border-width) var(--border-style) var(--card-border);

  /* Radius */
  --radius-card: 12px;
  --radius-pill: 999px;
  --radius-sm: 8px;

  /* Shadows - hard offset, zero blur */
  --shadow-sm: 2px 2px 0px var(--shadow-color);
  --shadow-md: 4px 4px 0px var(--shadow-color);
  --shadow-lg: 6px 6px 0px var(--shadow-color);
  --shadow-pressed: 1px 1px 0px var(--shadow-color);

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
}


/* --------------------------------------------------------------------------
   Reset and Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;

  /* Halftone dot pattern background */
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle, var(--bg-dots) 1px, transparent 1px);
  background-size: 20px 20px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Visually hidden utility for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   Page Layout (.dashboard)
   -------------------------------------------------------------------------- */
.dashboard {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

@media (min-width: 768px) {
  .dashboard {
    padding: var(--space-xl) var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .dashboard {
    padding: var(--space-2xl) var(--space-xl);
  }
}


/* --------------------------------------------------------------------------
   Header (.header)
   -------------------------------------------------------------------------- */
.header {
  background-color: var(--btn-dark);
  color: var(--text-on-dark);
  border-bottom: 4px solid var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.header__subtitle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--bg-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__updated {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 640px) {
  .header__title {
    font-size: 1.5rem;
  }

  .header__subtitle {
    font-size: 0.75rem;
  }

  .header__updated {
    display: block;
  }
}

@media (min-width: 1024px) {
  .header__title {
    font-size: 1.75rem;
    letter-spacing: 3px;
  }
}


/* --------------------------------------------------------------------------
   Icon Buttons (.icon-btn)
   -------------------------------------------------------------------------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: var(--border);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.icon-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.icon-btn:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-pressed);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}


/* --------------------------------------------------------------------------
   Refresh Button (.refresh-btn)
   -------------------------------------------------------------------------- */
.refresh-btn {
  composes: icon-btn;
}

.refresh-btn.is-loading svg {
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* --------------------------------------------------------------------------
   Verdict Card (.verdict-card)
   -------------------------------------------------------------------------- */
.verdict-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: center;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  border-left-width: 6px;
}

.verdict-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

/* Status-specific border colors */
.verdict-card--healthy {
  border-left-color: var(--status-healthy);
}

.verdict-card--caution {
  border-left-color: var(--status-caution);
}

.verdict-card--danger {
  border-left-color: var(--status-danger);
}

.verdict-card--unavailable {
  border-left-color: var(--status-unavailable);
}

.verdict-card__icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.verdict-card__icon svg {
  width: 56px;
  height: 56px;
}

.verdict-card__label {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.verdict-card__description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .verdict-card {
    padding: var(--space-2xl) var(--space-xl);
  }

  .verdict-card__label {
    font-size: 1.75rem;
  }

  .verdict-card__icon svg {
    width: 64px;
    height: 64px;
  }
}


/* --------------------------------------------------------------------------
   Radar Summary Cards (.radar-summary)
   -------------------------------------------------------------------------- */
.radar-summaries {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .radar-summaries {
    grid-template-columns: repeat(3, 1fr);
  }
}

.radar-summary {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.radar-summary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.radar-summary:active {
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-pressed);
}

.radar-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.radar-summary__name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.radar-summary__icon svg {
  width: 28px;
  height: 28px;
}

.radar-summary__score {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.radar-summary__meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}


/* --------------------------------------------------------------------------
   Radar Section (.radar-section)
   -------------------------------------------------------------------------- */
.radar-section {
  margin-bottom: var(--space-2xl);
  scroll-margin-top: calc(var(--header-height) + var(--space-lg));
}

.radar-section__header {
  margin-bottom: var(--space-lg);
}

.radar-section__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.radar-section__title-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--btn-dark);
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.radar-section__description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .radar-section__title {
    font-size: 1.5rem;
  }
}


/* --------------------------------------------------------------------------
   Indicator Grid
   -------------------------------------------------------------------------- */
.indicator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .indicator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .indicator-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .indicator-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Special layout: when a radar has only 1 indicator, let it take full width */
.indicator-grid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
}


/* --------------------------------------------------------------------------
   Indicator Card (.indicator-card)
   -------------------------------------------------------------------------- */
.indicator-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.indicator-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

/* Card header with name and status */
.indicator-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.indicator-card__name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

/* Large value display */
.indicator-card__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}

.indicator-card__unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: var(--space-xs);
}

/* Short description */
.indicator-card__description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Explanation (judgment engine output) */
.indicator-card__explanation {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: var(--space-sm) var(--space-md);
  background: #F9F7F0;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--bg-primary);
}

/* Source and timestamp footer */
.indicator-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid #EDE8D5;
}

.indicator-card__timestamp {
  font-size: 0.7rem;
  color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   Sparkline Container (.sparkline)
   -------------------------------------------------------------------------- */
.sparkline {
  width: 100%;
  height: 40px;
  overflow: visible;
}

.sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* --------------------------------------------------------------------------
   Threshold Bar (.threshold-bar)
   -------------------------------------------------------------------------- */
.threshold-bar {
  width: 100%;
  max-width: 240px;
  height: 14px;
  position: relative;
}

.threshold-bar svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}


/* --------------------------------------------------------------------------
   Status Badge (.status-badge)
   -------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.status-badge--healthy {
  background: var(--status-healthy);
  color: white;
}

.status-badge--caution {
  background: var(--status-caution);
  color: var(--text-primary);
}

.status-badge--danger {
  background: var(--status-danger);
  color: white;
}

.status-badge--unavailable {
  background: var(--status-unavailable);
  color: white;
}


/* --------------------------------------------------------------------------
   Source Badge (.source-badge)
   -------------------------------------------------------------------------- */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
  border: 1px solid transparent;
}

.source-badge:hover {
  background: var(--accent-blue);
  color: white;
}

.source-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Expandable Section (.expandable)
   -------------------------------------------------------------------------- */
.expandable {
  border-top: 1px solid #EDE8D5;
}

.expandable__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-sm) 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: color var(--transition-fast);
}

.expandable__trigger:hover {
  color: var(--text-primary);
}

.expandable__trigger-icon {
  display: inline-flex;
  transition: transform var(--transition-normal);
}

.expandable__trigger-icon svg {
  width: 16px;
  height: 16px;
}

.expandable.is-open .expandable__trigger-icon {
  transform: rotate(180deg);
}

.expandable__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.expandable.is-open .expandable__content {
  max-height: 600px;
}

.expandable__body {
  padding: 0 0 var(--space-md) 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   Loading Skeleton (.skeleton)
   -------------------------------------------------------------------------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #EDE8D5;
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 253, 245, 0.6) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skeleton-line {
  height: 14px;
  border-radius: var(--radius-sm);
}

.skeleton-line--title {
  width: 60%;
  height: 18px;
}

.skeleton-line--value {
  width: 40%;
  height: 32px;
}

.skeleton-line--short {
  width: 45%;
}

.skeleton-line--medium {
  width: 75%;
}

.skeleton-line--full {
  width: 100%;
}

.skeleton-line--chart {
  width: 100%;
  height: 40px;
}

/* Skeleton verdict card */
.skeleton-verdict {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.skeleton-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

/* Skeleton summary row */
.skeleton-summaries {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .skeleton-summaries {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* --------------------------------------------------------------------------
   Error State (.error-state)
   -------------------------------------------------------------------------- */
.error-state {
  background: var(--card-bg);
  border: var(--border);
  border-left-width: 6px;
  border-left-color: var(--status-danger);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  max-width: 560px;
  margin: var(--space-2xl) auto;
}

.error-state__icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.error-state__icon svg {
  width: 48px;
  height: 48px;
}

.error-state__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.error-state__message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.error-state__retry {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--btn-dark);
  color: var(--text-on-dark);
  border: var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.error-state__retry:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.error-state__retry:active {
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-pressed);
}

.error-state__retry svg {
  width: 16px;
  height: 16px;
}


/* --------------------------------------------------------------------------
   Methodology Section (.methodology)
   -------------------------------------------------------------------------- */
.methodology {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.methodology__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.methodology__title svg {
  width: 24px;
  height: 24px;
}

.methodology__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .methodology__content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.methodology__radar {
  padding: var(--space-md);
  border: 1.5px solid #EDE8D5;
  border-radius: var(--radius-sm);
}

.methodology__radar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--btn-dark);
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.methodology__radar-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.methodology__radar-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.methodology__attribution {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid #EDE8D5;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   Footer (.footer)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--btn-dark);
  color: var(--text-on-dark);
  border-top: 4px solid var(--bg-primary);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-2xl);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto var(--space-md);
  padding: var(--space-md);
  border: 1px solid #333;
  border-radius: var(--radius-sm);
}

.footer__disclaimer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--status-caution);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  margin-bottom: var(--space-xs);
}

.footer__sources {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.footer__sources a {
  color: var(--bg-primary);
}

.footer__sources a:hover {
  color: var(--text-on-dark);
}

.footer__credit {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__credit a {
  color: var(--bg-primary);
}


/* --------------------------------------------------------------------------
   Utility: Status-specific text colors
   -------------------------------------------------------------------------- */
.text-healthy { color: var(--status-healthy); }
.text-caution { color: var(--status-caution); }
.text-danger { color: var(--status-danger); }
.text-unavailable { color: var(--status-unavailable); }
