/* Custom styles for Coastal Desert Terraforming Project */

:root {
  --md-primary-fg-color: #00897b;
  --md-accent-fg-color: #00bcd4;
}

/* Hero image styling */
img[alt*="Hero"] {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* Custom admonition colors for different sections */
.md-typeset .admonition.concept {
  border-color: #00897b;
}

.md-typeset .admonition.research {
  border-color: #0288d1;
}

.md-typeset .admonition.technical {
  border-color: #f57c00;
}

/* Table improvements */
.md-typeset table:not([class]) {
  display: table;
  border-collapse: collapse;
  margin: 1.5em 0;
  border-radius: 4px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
}

/* Calculation blocks */
.md-typeset pre.calculation {
  background-color: #f5f5f5;
  border-left: 4px solid var(--md-accent-fg-color);
  padding: 1rem;
  font-family: 'Courier New', monospace;
}

/* Status badges */
.status-complete {
  background-color: #4caf50;
  color: white;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 500;
}

.status-draft {
  background-color: #ff9800;
  color: white;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 500;
}

/* Diagram improvements */
.md-typeset pre code {
  font-size: 0.85em;
  line-height: 1.4;
}

/* Cost estimate tables */
table.cost-estimate {
  font-size: 0.9em;
}

table.cost-estimate th:last-child,
table.cost-estimate td:last-child {
  text-align: right;
  font-weight: 600;
}

/* Navigation improvements for long pages */
.md-sidebar--secondary {
  position: sticky;
  top: 3.6rem;
}

/* Print styles */
@media print {
  .md-header,
  .md-sidebar,
  .md-footer {
    display: none;
  }

  .md-content {
    max-width: 100%;
  }
}
