/* ================================================================
   Minimal CSS — only what Tailwind utility classes can't express.
   Everything else lives in Tailwind classes in the templates.
   ================================================================ */

/* Fixed nav offset */
body { padding-top: 3.5rem; } /* matches h-14 (56px) */

/* Prose styles for Markdown-rendered content
   Use consistent grey scale: gray-500 (#6b7280) for muted,
   gray-700 (#374151) for body, navy (#071e4a) for headings.
   Links: navy underlined, hover cpr-blue. */
.prose h1 { font-size: 1.875rem; font-weight: 600; color: #071e4a; margin: 2rem 0 0.6rem; line-height: 1.25; }
.prose h2 { font-size: 1.375rem; font-weight: 600; color: #071e4a; margin: 1.75rem 0 0.5rem; line-height: 1.25; }
.prose h3 { font-size: 1.125rem; font-weight: 600; color: #071e4a; margin: 1.5rem 0 0.4rem; line-height: 1.25; }
.prose p  { margin: 0 0 1.1rem; line-height: 1.7; color: #374151; }
.prose a  { color: #071e4a; text-underline-offset: 2px; }
.prose a:hover { color: #005cb2; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.1rem; color: #374151; }
.prose li { margin-bottom: 0.35rem; line-height: 1.6; }
.prose blockquote {
  border-left: 3px solid #d1d5db;
  margin: 1.5rem 0;
  padding: 0.4rem 0 0.4rem 1.1rem;
  color: #4b5563;
  font-style: italic;
}
.prose hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }
.prose code {
  font-size: 0.875em;
  background: #f3f4f6;
  color: #374151;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.prose pre {
  background: #111827;
  color: #e5e7eb;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }

/* Full-screen iframe for experiment pages */
.experiment-frame {
  position: fixed;
  top: 3.5rem; left: 0; right: 0; bottom: 0;
  border: none;
  width: 100%;
  height: calc(100vh - 3.5rem);
  display: block;
}

/* CSS-only mobile nav toggle */
#nav-toggle { display: none; }
@media (max-width: 639px) {
  #nav-toggle:checked ~ .nav-links { display: flex; }
}
