/* ==========================
   Site Shell
========================== */

.site-shell {
  width: min(100% - 2rem, 1100px);

  min-height: 100vh;

  margin: 0 auto;
  padding: var(--space-xxs) 0;
}

/* ==========================
   Layout Containers
========================== */

.layout-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==========================
   Layout Sections
========================== */

.card-layout {
  margin-top: 0;
}

.section-heading {
  margin-bottom: var(--space-3xl);
}

.section-heading h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.tools-page .section-heading .eyebrow {
  margin-bottom: var(--space-xxs);
}

.tools-page .section-heading h2 {
  margin-top: 0;
}

/* ==========================
   Hero
========================== */

.hero {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  margin-top: var(--space-sm);
  max-width: 720px;
}

.hero p {
  max-width: 650px;

  color: var(--color-muted);

  font-size: 1.1rem;
  line-height: 1.6;
}

.hero .eyebrow {
  margin-bottom: var(--space-sm);
}

/* ==========================
   Grid Systems
========================== */

.grid,
.status-grid,
.metrics-grid,
.card-grid {
  display: grid;
  gap: var(--space-lg);
}

/* ==========================
   Ecosystem Card Grid
========================== */

.card-grid--compact {
  gap: var(--space-grid);
}

/* ==========================
   Footer
========================== */

.footer-note {
  margin-top: var(--space-xl);

  color: var(--color-muted);

  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================
   Compact Cards
========================== */

@media (min-width: 600px) {
  .card-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================
   Tablet
========================== */

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

  .site-shell {
    padding: var(--space-xxs) var(--space-lg);
  }

  .grid,
  .status-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    gap: var(--space-xl);
  }
}

/* ==========================
   Desktop
========================== */

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
