[x-cloak] { display: none !important; }

:root {
  --color-primary: #2563eb;
  --color-primary-dark: color-mix(in srgb, #2563eb 75%, black);
  --color-primary-light: color-mix(in srgb, #2563eb 85%, white);
  --color-secondary: #64748b;
  --color-secondary-dark: color-mix(in srgb, #64748b 75%, black);
  --color-secondary-light: color-mix(in srgb, #64748b 85%, white);
  --color-accent: #f59e0b;
  --color-accent-dark: color-mix(in srgb, #f59e0b 75%, black);
  --color-accent-light: color-mix(in srgb, #f59e0b 85%, white);
  --font-heading: 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --border-radius: 0.5rem;
  --nav-bg: var(--color-primary);
  --color-bg: #fafaf9;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
}

/* Override Tailwind preflight (font-size: inherit) - use higher specificity */
body h1, body h2, body h3, body h4, body h5, body h6,
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

body h1, .prose h1 { font-size: 2.25rem; margin-bottom: 0.5em; }
@media (max-width: 767px) {
  body h1, .prose h1 { font-size: 1.5rem; }
}
body h2, .prose h2 { font-size: 1.875rem; margin-bottom: 0.5em; margin-top: 1.5em; }
body h3, .prose h3 { font-size: 1.5rem; margin-bottom: 0.5em; margin-top: 1.25em; }
body h4, .prose h4 { font-size: 1.25rem; margin-bottom: 0.4em; margin-top: 1em; }
body h5, .prose h5 { font-size: 1.125rem; margin-bottom: 0.4em; margin-top: 0.75em; }
body h6, .prose h6 { font-size: 1rem; margin-bottom: 0.25em; margin-top: 0.5em; }

body h1:first-child, body h2:first-child, body h3:first-child,
body h4:first-child, body h5:first-child, body h6:first-child,
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child,
.prose h4:first-child, .prose h5:first-child, .prose h6:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--color-primary);
}

.prose a:hover {
  color: var(--color-accent);
}

/* Markdown content blocks: restore readable paragraph spacing */
.block-markdown p {
  margin: 0 0 0.9rem 0;
}

.block-markdown p:last-child {
  margin-bottom: 0;
}

/* FAQ style: add extra separation between answer and next question */
.block-markdown p + p {
  margin-top: 0.35rem;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
