/* 24Help.org Production Stylesheet — v6.2 brand-aligned */
/* Brand variables: navy #0B3D91, gold #F5A623, cream #FFF9F0, text #314255 */

/* === BASE === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #314255;
  background: #FFF9F0;
  margin: 0;
  padding: 0;
}
.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
}
.breadcrumb { font-size: 14px; color: #5E6C7C; margin-bottom: 16px; }
.breadcrumb a { color: #0B3D91; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.eyebrow {
  display: inline-block;
  background: #e8f0fb;
  color: #0B3D91;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
h1 { font-size: 34px; line-height: 1.2; color: #072B6A; margin: 0 0 12px 0; }
.hero-lede { font-size: 19px; color: #314255; margin-bottom: 20px; }
.credential { font-size: 14px; color: #5E6C7C; border-bottom: 1px solid #E7DFD3; padding-bottom: 16px; margin-bottom: 24px; }
.updated { font-size: 13px; color: #5E6C7C; }

/* === SHORT ANSWER === */
.short-answer {
  background: #fff;
  border-left: 4px solid #0B3D91;
  padding: 18px 20px;
  margin: 24px 0;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.short-answer h2 { font-size: 22px; margin: 0 0 12px 0; color: #0B3D91; }

/* === CHAPTER CARD === */
.chapter-card {
  background: #FFF6E5;
  border: 1px solid #F5A623;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}
.chapter-setup { font-size: 15px; color: #5E6C7C; margin: 0 0 8px 0; }
.chapter-card h3 { margin: 0 0 10px 0; font-size: 18px; color: #072B6A; }
.chapter-body { margin: 0 0 12px 0; font-size: 16px; }
.chapter-cta { margin: 0; font-size: 15px; }
.chapter-cta a { color: #0B3D91; font-weight: 600; }

/* === ACTION PLAN === */
.action-plan { margin: 32px 0; }
.action-plan h2 { font-size: 28px; color: #072B6A; margin-bottom: 8px; }
.action-lede { font-size: 17px; color: #314255; margin-bottom: 20px; }
.action-step {
  background: #fff;
  border: 1px solid #E7DFD3;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.action-step.warn { border-left: 4px solid #b85c00; background: #fffaf2; }
.action-step h3 { font-size: 17px; margin: 0 0 8px 0; color: #0B3D91; }
.action-step .meta { font-size: 13px; color: #5E6C7C; margin-bottom: 10px; }
.action-step .meta span { margin-right: 12px; }
.action-step p { margin: 8px 0; }
.action-step a.step-link {
  display: inline-block;
  margin-top: 8px;
  color: #0B3D91;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px dashed #0B3D91;
}

/* === STAT GRID === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.stat-grid h2 { grid-column: 1 / -1; font-size: 22px; margin: 0 0 4px 0; color: #072B6A; }
.stat-card {
  background: #fff;
  border: 1px solid #E7DFD3;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat-value { display: block; font-size: 28px; font-weight: 700; color: #0B3D91; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: #5E6C7C; line-height: 1.3; }

/* === SITUATIONS === */
.situations { margin: 32px 0; }
.situations h2 { font-size: 26px; color: #072B6A; margin-bottom: 8px; }
.situations-intro { font-size: 16px; color: #314255; margin-bottom: 18px; }
.situation-card {
  background: #fff;
  border: 1px solid #E7DFD3;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.situation-card summary {
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  background: #fafafa;
}
.situation-card summary::-webkit-details-marker { display: none; }
.situation-card summary::after { content: "\25BE"; float: right; color: #5E6C7C; }
.situation-card[open] summary::after { content: "\25B4"; }
.situation-card .summary-title { font-weight: 600; color: #072B6A; display: block; font-size: 16px; }
.situation-card .summary-subtitle { font-size: 14px; color: #5E6C7C; display: block; margin-top: 4px; }
.situation-card .answer { padding: 4px 20px 18px 20px; }
.situation-card .answer p { margin: 12px 0; }

/* === CALLOUTS === */
.callout { margin: 14px 0; padding: 12px 16px; border-radius: 6px; font-size: 15px; }
.callout-insider { background: #f0f7ed; border-left: 4px solid #5a8a4a; }
.callout-warn { background: #fff3cd; border-left: 4px solid #b85c00; }
.callout-flashlight { background: #FFF6E5; border-left: 4px solid #F5A623; }
.callout-label { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; color: #5E6C7C; }

/* === CROSS-PROGRAM === */
.cross-program { margin: 32px 0; }
.cross-program h2 { font-size: 22px; color: #072B6A; margin-bottom: 8px; }
.cross-program-intro { font-size: 16px; color: #314255; margin-bottom: 16px; }
.cross-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cross-card {
  background: #fff;
  border: 1px solid #E7DFD3;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
}
.cross-card h4 { margin: 0 0 6px 0; font-size: 15px; color: #0B3D91; }

/* === FAQ === */
.faq { margin: 32px 0; }
.faq h2 { font-size: 26px; color: #072B6A; margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid #E7DFD3; padding: 14px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #072B6A;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: #5E6C7C; font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .answer { padding-top: 10px; font-size: 15px; line-height: 1.55; }
.faq-item .answer p { margin: 10px 0; }

/* === SOURCES === */
.sources {
  background: #f5ede0;
  border-left: 3px solid #072B6A;
  padding: 18px 22px;
  margin: 32px 0;
  border-radius: 4px;
}
.sources h2 { font-size: 18px; margin: 0 0 8px 0; color: #072B6A; }
.sources-intro { font-size: 14px; color: #5E6C7C; margin: 0 0 14px 0; }
.sources-list { font-size: 13px; line-height: 1.5; margin: 0; padding-left: 20px; }
.sources-list li { margin-bottom: 8px; }
.sources-list a { color: #0B3D91; word-break: break-all; }
.source-date { color: #5E6C7C; }

/* === BYSTANDER === */
.bystander {
  background: #e8f0fb;
  border-radius: 8px;
  padding: 20px;
  margin: 28px 0;
  border-left: 4px solid #0B3D91;
}
.bystander h3 { margin: 0 0 8px 0; font-size: 18px; color: #072B6A; }
.bystander p { margin: 0 0 12px 0; }
.bystander a.button {
  display: inline-block;
  padding: 10px 18px;
  background: #0B3D91;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
}

/* === EMAIL CAPTURE === */
.email-capture {
  background: #0B3D91;
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  margin: 28px 0;
  text-align: center;
}
.email-capture h2 { color: #fff; margin: 0 0 10px 0; font-size: 22px; }
.email-capture p { margin: 8px 0 16px 0; font-size: 16px; }
.email-capture form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.email-capture input { padding: 12px 16px; border: none; border-radius: 6px; font-size: 16px; width: 280px; max-width: 100%; }
.email-capture button {
  padding: 12px 22px;
  background: #F5A623;
  color: #072B6A;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.email-note { font-size: 13px; opacity: 0.85; margin-top: 12px; }

/* === FOOTER === */
footer { background: #051d47; color: #d8e0e8; padding: 32px 20px; margin-top: 40px; text-align: center; }
.signoff { font-size: 16px; color: #fff; margin-bottom: 12px; }
.tagline { font-size: 18px; font-style: italic; color: #FFB940; margin-bottom: 24px; }
.footer-disclaimer {
  font-size: 12px;
  color: #c8d2dc;
  border-top: 1px solid #0B3D91;
  padding-top: 16px;
  margin-top: 16px;
  text-align: left;
  line-height: 1.5;
}

/* === UTILITY === */
.threshold-substitution { color: #0B3D91; font-weight: 600; }
.statute-formula { background: #FFF6E5; padding: 1px 4px; border-radius: 3px; }
.dedup-note {
  background: #e8f0fb;
  color: #0B3D91;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 6px;
  margin: 16px 0;
  border-left: 3px solid #0B3D91;
}

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0B3D91;
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid #F5A623;
  outline-offset: 2px;
}

/* === PRINT === */
@media print {
  .email-capture, .bystander, footer, .skip-link { display: none; }
  .action-step { page-break-inside: avoid; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 12px; }
  body { background: #fff; }
  .container { max-width: 100%; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .container { padding: 16px; }
  h1 { font-size: 28px; }
  .stat-grid, .cross-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  h1 { font-size: 24px; }
  .stat-value { font-size: 24px; }
}
