@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Source+Sans+3:wght@300;400;500;600;700&family=Heebo:wght@300;400;500;600;700;800&family=Frank+Ruhl+Libre:wght@400;500;600;700&display=swap');

/* ── Gov Civic · Government Blue & Structured ── */

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --text: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --text-bright: #111827;
  --primary: #1a4480;
  --primary-hover: #1e5296;
  --primary-pale: #eff4fb;
  --success: #0d7533;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --font-body: 'Source Sans 3', 'Heebo', sans-serif;
  --font-heading: 'Source Serif 4', 'Frank Ruhl Libre', serif;
  --font-mono: 'Courier New', 'Heebo', monospace;
  --radius: 6px;
  --radius-lg: 8px;
}

[data-theme="dark"] {
  --bg: #0f0f17;
  --surface: #1a1a26;
  --border: #2a2a3c;
  --border-light: #222234;
  --text: #b0b0c8;
  --text-light: #8888a0;
  --text-lighter: #606078;
  --text-bright: #e0e0f0;
  --primary: #4da3ff;
  --primary-hover: #70b8ff;
  --primary-pale: rgba(77, 163, 255, 0.1);
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.08);
  --success-border: rgba(74, 222, 128, 0.2);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.08);
  --error-border: rgba(248, 113, 113, 0.2);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Blue top stripe */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1a4480, #2563eb, #1a4480);
  z-index: 9999;
}

[data-theme="dark"] body::before {
  background: linear-gradient(90deg, #1a3a6a, #4da3ff, #1a3a6a);
}

.jb-page {
  padding-top: calc(2rem + 6px);
}

/* Heading font */
.jb-title,
.jb-section-label,
.jb-section-body h1,
.jb-section-body h2,
.jb-section-body h3 {
  font-family: var(--font-heading);
}

/* Blue bar on section labels */
.jb-section-label {
  position: relative;
  padding-left: 1rem;
  border-bottom: 1px solid var(--border);
}

.jb-section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Details as info table (rows instead of columns) */
.jb-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--radius-lg);
}

.jb-detail {
  text-align: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
}

.jb-detail-lbl {
  order: -1;
  margin-top: 0;
  margin-inline-end: 1rem;
}

.jb-detail-val {
  text-align: end;
}
