/* ============================================================================
   SDPD 1 — site styles
   Baseline layout tweaks on top of the Cosmo Bootstrap theme.
   Component-specific styles live in their own files (schedule.css, etc.).
   ============================================================================ */

:root {
  --sdpd-blue:   #2780e3;
  --sdpd-purple: #6f42c1;
  --sdpd-orange: #fd7e14;
  --sdpd-amber:  #e0a800;
  --sdpd-red:    #c0392b;
  --sdpd-green:  #2c8c4f;
  --sdpd-grey:   #6c757d;
}

/* Tighter line-height for body prose, more breathing room around headings */
body { line-height: 1.55; }
h1, h2, h3 { line-height: 1.25; }
h2 { margin-top: 2rem; }
h3 { margin-top: 1.5rem; }

/* Code blocks — readable on both light and dark theme */
pre code { font-size: 0.9em; }

/* Callouts inherit Quarto's defaults; small visual tweaks below */
.callout { margin: 1.25em 0; }
.callout-title { font-weight: 600; }

/* "Hero" intro card on the home page */
.sdpd-hero {
  padding: 2rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid var(--sdpd-blue);
  margin-bottom: 2rem;
}
.sdpd-hero h1 { margin-top: 0; }
.sdpd-hero .lead {
  font-size: 1.15rem;
  color: #495057;
  margin-bottom: 0;
}

/* Footer */
.nav-footer { font-size: 0.9em; color: #6c757d; }

/* Lab-page step checkboxes — populated by progress.js */
.sdpd-step {
  border-left: 3px solid var(--sdpd-grey);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  margin: 1rem 0;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.2s, border-color 0.2s;
}
.sdpd-step.is-done {
  border-left-color: var(--sdpd-green);
  background: #f0f9f3;
}
.sdpd-step-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.sdpd-step input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

/* Lab-page reveal-on-click hint */
details.sdpd-hint {
  margin: 0.75rem 0;
  padding: 0.5rem 0.75rem;
  background: #fff3cd;
  border-left: 3px solid var(--sdpd-amber);
  border-radius: 0 4px 4px 0;
}
details.sdpd-hint summary {
  cursor: pointer;
  font-weight: 500;
  color: #856404;
}
details.sdpd-hint summary::marker { content: "▸ "; }
details.sdpd-hint[open] summary::marker { content: "▾ "; }

/* Lab-page "Expected output" box */
.sdpd-output {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.9em;
  margin: 0.75rem 0;
  white-space: pre-wrap;
}
.sdpd-output::before {
  content: "Output";
  display: block;
  font-size: 0.7em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

/* Lab header card */
.sdpd-lab-header {
  padding: 1.25rem 1.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: 4px solid var(--sdpd-orange);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.sdpd-lab-header .meta {
  font-size: 0.9em;
  color: #6c757d;
  margin: 0.4rem 0;
}
.sdpd-lab-header .rung {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  color: white;
}
.sdpd-lab-header .rung-1 { background: var(--sdpd-green); }
.sdpd-lab-header .rung-2 { background: var(--sdpd-blue); }
.sdpd-lab-header .rung-3 { background: var(--sdpd-purple); }
.sdpd-lab-header .rung-4 { background: var(--sdpd-red); }
