/* SARA 2025 Technical Report Styles */

/* Banner styling for title block */
.quarto-title-block .quarto-title-banner {
    background: linear-gradient(135deg, #0C869B 0%, #053C45 50%, #1a5f6f 100%);
    padding-right: 30px;
}

/* Hide auto-generated "Other Formats" section */
.quarto-alternate-formats {
    display: none;
}

/* Color scheme matching the plots */
:root {
  --primary-color: #053C45;
  --secondary-color: #0C869B;
  --text-color: #4d4f4e;
  --panel-bg: #f0f0f0;
  --grid-color: #d3d3d3;
}

/* Headers */
h1, h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5em;
  margin-top: 1.5em;
}

h3 {
  color: var(--secondary-color);
  margin-top: 1.2em;
}

h4 {
  color: var(--primary-color);
  font-style: italic;
}

/* Body text */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Callout boxes */
.callout {
  margin: 1em 0;
  padding: 1em;
  border-left: 4px solid var(--secondary-color);
  background-color: var(--panel-bg);
}

.callout-note {
  border-left-color: var(--secondary-color);
}

.callout-warning {
  border-left-color: #f0ad4e;
}

.callout-important {
  border-left-color: #d9534f;
}

/* Table of contents */
.sidebar nav {
  background-color: var(--panel-bg);
  padding: 1em;
  border-radius: 5px;
}

.sidebar nav a {
  color: var(--primary-color);
  text-decoration: none;
}

.sidebar nav a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  margin: 1em 0;
}

thead {
  background-color: var(--primary-color);
  color: white;
}

tbody tr:nth-child(even) {
  background-color: var(--panel-bg);
}

/* Figure captions */
.figure-caption, figcaption {
  color: var(--text-color);
  font-style: italic;
  text-align: center;
  margin-top: 0.5em;
  font-size: 0.95em;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border: 1px solid var(--grid-color);
  padding: 5px;
  background-color: white;
}

/* Page breaks for printing */
.page-break {
  page-break-after: always;
}

section.page-break {
  page-break-before: always;
}

/* Executive summary styling */
#executive-summary {
  background-color: var(--panel-bg);
  padding: 1.5em;
  border-radius: 10px;
  margin: 2em 0;
}

/* Key findings boxes */
.key-finding {
  background-color: white;
  border: 2px solid var(--secondary-color);
  border-radius: 5px;
  padding: 1em;
  margin: 1em 0;
}

.key-finding h4 {
  margin-top: 0;
  color: var(--secondary-color);
}

/* Percentage highlights */
strong {
  color: var(--primary-color);
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Code blocks */
pre {
  background-color: var(--panel-bg);
  border: 1px solid var(--grid-color);
  border-radius: 4px;
  padding: 1em;
  overflow-x: auto;
}

code {
  background-color: var(--panel-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  .sidebar {
    display: none;
  }
}

/* Print styles */
@media print {
  body {
    font-size: 11pt;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    page-break-inside: avoid;
  }

  .sidebar {
    display: none;
  }
}
