/* MDOT Documentation Site — Styles */
:root {
  --navy: #003366;
  --navy-light: #004080;
  --bg: #ffffff;
  --sidebar-bg: #f5f5f5;
  --card-bg: #f5f5f5;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-light: #888888;
  --sidebar-width: 220px;
  --content-max: 860px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Layout */
.site-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .site-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.sidebar-header .site-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.sidebar nav { padding: 12px 0; }

.sidebar nav a {
  display: block;
  padding: 7px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.sidebar nav a:hover {
  background: #eaeaea;
  text-decoration: none;
}

.sidebar nav a.active {
  color: var(--navy);
  font-weight: 600;
  background: #e8eef5;
  border-left-color: var(--navy);
}

.sidebar nav a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

/* Main content */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 32px 40px;
}

.content-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 10px;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}

p { margin-bottom: 12px; }

ul, ol {
  margin-bottom: 12px;
  padding-left: 20px;
}

li { margin-bottom: 6px; }

li strong { color: var(--navy); }

/* Screenshots */
figure {
  margin: 20px 0;
}

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

figcaption {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
  font-style: italic;
}

/* Home page cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 12px rgba(0,51,102,0.1);
}

.card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 6px;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.card a {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Access badge */
.access-note {
  background: #e8eef5;
  border-left: 3px solid var(--navy);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-top: 16px;
  border-radius: 0 4px 4px 0;
}

/* 404 page */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page h1 { font-size: 4rem; margin-bottom: 12px; }
.error-page p { font-size: 1.1rem; color: var(--text-secondary); }

/* Mobile */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 16px rgba(0,0,0,0.15); }
  .main-content { margin-left: 0; padding: 60px 20px 32px; }
}
