/* ============================================
   SafeGrounds User Guide - Main Stylesheet
   UVA Brand Colors:
   Navy:  #1f2937
   Orange: #E57200
   ============================================ */

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #222;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: #1f2937; text-decoration: none; }
a:hover { color: #E57200; text-decoration: underline; }

img { max-width: 100%; height: auto; border-radius: 4px; margin: 12px 0; }

/* --- Top Header Bar --- */
.site-header {
  background: #323447;
  color: white;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.site-header .site-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.01em;
}

.site-header img {
  height: 52px;
  width: 52px;
  border: none;
  box-shadow: none;
}

.site-header .site-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 16px;
}

/* --- Layout Wrapper --- */
.layout {
  display: flex;
  flex: 1;
}

/* --- Left Navigation --- */
.sidenav {
  width: 260px;
  background: white;
  border-right: 1px solid #ddd;
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}

.sidenav .nav-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1f2937;
  padding: 8px 20px 4px;
  margin-top: 8px;
}

.sidenav a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: #333;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidenav a:hover {
  background: #f5f5f5;
  color: #1f2937;
  text-decoration: none;
}

.sidenav a.active {
  border-left: 3px solid #E57200;
  color: #1f2937;
  font-weight: 600;
  background: #f0f4f9;
}

.sidenav .nav-parent {
  font-weight: 600;
  color: #1f2937;
  font-size: 13px;
  padding: 10px 20px 4px;
  margin-top: 4px;
}

.sidenav .nav-child {
  padding: 8px 20px 8px 32px;
  font-size: 13px;
  color: #555;
}

/* --- Main Content Area --- */
.main-content {
  flex: 1;
  padding: 36px 48px;
  max-width: 1100px;
}

/* --- Page Hero Banner --- */
.page-hero {
  background: #3d3f55;
  color: white;
  border-radius: 6px;
  padding: 32px 36px;
  margin-bottom: 32px;
}

.page-hero .hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #E57200;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  color: white;
}

.page-hero .hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

/* --- Section Headings --- */
h1 { font-size: 24px; color: #1f2937; margin-bottom: 16px; }
h2 { font-size: 20px; color: #1f2937; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #E57200; }
h3 { font-size: 16px; color: #1f2937; margin: 20px 0 8px; }
h4 { font-size: 14px; color: #333; margin: 16px 0 6px; font-weight: 600; }

/* --- Content Blocks --- */
.content-section {
  background: white;
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
}

p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 24px; margin-bottom: 12px; }
li { margin-bottom: 6px; }

/* --- Note / Callout --- */
.note {
  border-left: 4px solid #E57200;
  background: #fff8f2;
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  margin: 16px 0;
  font-style: italic;
  color: #444;
}

.note strong { color: #E57200; font-style: normal; }

/* --- TOC Cards Grid --- */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.toc-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 18px 20px;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  display: block;
}

.toc-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border-color: #E57200;
  text-decoration: none;
}

.toc-card .card-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #E57200;
  margin-bottom: 4px;
}

.toc-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.toc-card .card-sub {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.breadcrumb a { color: #323447; }
.breadcrumb a:hover { color: #E57200; }
.breadcrumb span { margin: 0 6px; }

/* --- Footer --- */
.site-footer {
  background: #323447;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 16px;
  font-size: 12px;
  margin-top: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sidenav { display: none; }
  .main-content { padding: 20px; }
}
/* --- Figure / Image with Caption --- */
figure {
  margin: 20px 0;
  display: inline-block;
  width: 100%;
}

figure img {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
  max-width: 100%;
}

figcaption {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  font-style: italic;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}