/*
 * Styling for the prerendered education articles (public/education/*.html).
 * Standalone by design: these pages must render fully without the React bundle,
 * so they carry no dependency on the app's CSS. Palette matches public/legal/legal.css.
 */
:root {
  --ink: #10221d;
  --muted: #66736f;
  --paper: #f7f9f7;
  --line: #dfe7e2;
  --green: #19724f;
  --green-dark: #0f5139;
  --panel: #ffffff;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.edu-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Header */
.edu-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.edu-header .brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.edu-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

/* Research-use banner */
.ruo-banner {
  margin: 20px 0 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Article */
.edu-main {
  max-width: 46rem; /* ~75 characters — long-form reading measure */
  margin: 0 auto;
}

.breadcrumb {
  margin: 20px 0 28px;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a {
  font-weight: 600;
}

.breadcrumb span {
  margin: 0 4px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--muted);
}

.byline {
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.takeaways {
  margin: 0 0 36px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.takeaways h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.takeaways li {
  margin-bottom: 8px;
}

.article-body h2,
.faq h2,
.sources h2,
.related h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 12px;
}

/* FAQ */
.faq {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.faq-item {
  margin-bottom: 24px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* Sources */
.sources {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.sources ol {
  margin: 0;
  padding-left: 20px;
}

.sources li {
  margin-bottom: 16px;
}

.source-publisher,
.source-relevance {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.source-publisher {
  font-weight: 600;
}

/* Related */
.related {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.related li span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.edu-footer {
  max-width: 46rem;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.edu-footer .compliance {
  margin: 0 0 16px;
}

.edu-footer .footer-links {
  margin: 0 0 8px;
}

.edu-footer .copyright {
  margin: 0;
}

@media (max-width: 640px) {
  .edu-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .takeaways {
    padding: 16px 18px;
  }
}
