*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --border: #ddd9d0;
  --text: #1a1a18;
  --muted: #5a5a52;
  --accent: #1e3a5f;
  --accent-light: #e8f0f8;
  --border-blue: #a8c4e0;
  --radius: 6px;
  --max-w: 680px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  padding: 0 16px 64px;
}

header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 0 8px;
  border-bottom: 2px solid var(--accent);
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav {
  max-width: var(--max-w);
  margin: 16px auto 0;
  font-size: 0.9rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover { text-decoration: underline; }

main {
  max-width: var(--max-w);
  margin: 36px auto 0;
}

section {
  margin-bottom: 36px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

p {
  margin-bottom: 12px;
  color: var(--text);
}

p:last-child { margin-bottom: 0; }

.note-box {
  background: var(--accent-light);
  border: 1px solid var(--border-blue);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.note-box strong {
  color: var(--text);
}

.checkin-box {
  background: var(--accent-light);
  border: 1px solid var(--border-blue);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
}

.checkin-box h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--text);
}

.checkin-box p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.checkin-box a {
  font-weight: 600;
}

.warning-box {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-left: 4px solid #c0392b;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: #7a2620;
}

.warning-box strong {
  color: #c0392b;
}

footer {
  max-width: var(--max-w);
  margin: 48px auto 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.disclaimer {
  max-width: var(--max-w);
  margin: 16px auto 0;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.disclaimer a {
  color: var(--muted);
}

.step-list {
  list-style: none;
  counter-reset: step-counter;
  margin-top: 4px;
}

.step-list > li {
  counter-increment: step-counter;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  position: relative;
}

.step-list > li:last-child { border-bottom: none; }

.step-list > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 14px;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list > li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

/* Give plain unordered lists inside the intro some left padding
   but avoid changing styled lists like `.treatments`. */
.intro ul:not(.treatments) {
  padding-left: 1.25rem;
  margin-top: 8px;
  list-style: disc;
  list-style-position: outside;
  columns: 2;
  column-gap: 16px;
}

.intro ul:not(.treatments) li {
  break-inside: avoid;
}

.podcast-embed {
  display: block;
  width: 100%;
  height: 175px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.sub-list {
  list-style: none;
  margin-top: 8px;
}

.sub-list li {
  padding: 4px 0 4px 24px;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}

.sub-list li::before {
  content: attr(data-label);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.urgent-box {
  background: #fff3f3;
  border: 1px solid #e8a0a0;
  border-left: 4px solid #c0392b;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.975rem;
}

.urgent-box strong {
  color: #c0392b;
}

.timeline-section {
  margin-bottom: 40px;
}

.timeline-section h2 {
  margin-bottom: 4px;
}

.timeline-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.timeline {
  position: relative;
  padding-left: 44px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-entry {
  position: relative;
  margin-bottom: 28px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg, #fff);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-period {
  font-size: 1.047rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.timeline-title {
  font-weight: 700;
  font-size: 0.948rem;
  color: var(--text);
  margin-bottom: 5px;
}

.timeline-detail {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.55;
  display: list-item;
  list-style: disc;
  margin-left: 16px;
}

.bb-passage {
  margin-top: 12px;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: var(--surface, #f9f9f9);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

.bb-passage .bb-ref {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 8px;
}

.bb-passage mark {
  background: #fff3b0;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.bb-passage u {
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.sponsor-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  padding-left: 4px;
  border-left: 2px solid #ccc;
}

.sponsor-note::before {
  content: "Sponsor: ";
  font-weight: 700;
  font-style: normal;
  color: var(--accent);
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.9rem;
}

.activity-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--surface, #f9f9f9);
  border-bottom: 2px solid var(--border);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.activity-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
  line-height: 1.45;
}

.activity-table td:first-child {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  width: 130px;
}

.activity-table tbody tr:last-child td {
  border-bottom: none;
}

.recording-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recording-links li {
  margin: 0 0 6px 0;
}

.recording-links li:last-child {
  margin-bottom: 0;
}

.activity-list {
  list-style: square;
  padding-left: 20px;
  margin-top: 10px;
  margin-left: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.activity-list li {
  margin-bottom: 4px;
}

.activity-sublist {
  list-style: circle;
  padding-left: 20px;
  margin-top: 4px;
}

.activity-sublist li {
  margin-bottom: 2px;
}

.activity-list a {
  color: var(--accent);
  text-decoration: none;
}

.activity-list a:hover { text-decoration: underline; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.success-card strong {
  display: block;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.success-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.success-card ul li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.success-card ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.success-card ul li a {
  color: var(--accent);
  text-decoration: none;
}

.success-card ul li a:hover { text-decoration: underline; }

/* Organ Damage page — stage cards (replaces the timeline rail on that page only) */
.organ-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.organ-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.organ-card-period {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.organ-card-title {
  font-weight: 700;
  font-size: 0.948rem;
  color: var(--text);
  margin-top: -4px;
  margin-bottom: 8px;
}

.organ-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.organ-card ul li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.organ-card ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.organ-card ul li strong {
  color: var(--text);
}

/* Symptom chips inside an organ card: exactly two columns at every
   width. Each chip sizes to its own text and sits at the start of its
   column rather than stretching to fill it. */
.organ-note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.organ-note {
  background: var(--accent-light);
  border: 1px solid var(--border-blue);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text);
  display: block;
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.organ-note.red-flag {
  background: #fdecea;
  border-color: #f5c2c0;
  border-left-color: #c0392b;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.success-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text);
}

.toc ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 0 8px;
}

.toc li a {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  min-height: unset;
}

.toc li a:hover {
  background: var(--accent-light);
  text-decoration: none;
}

.step-verses {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verse-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--border-blue);
  padding: 10px 14px;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}

.verse-cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

.verse-cite a {
  color: var(--accent);
  text-decoration: none;
}

.verse-cite a:hover { text-decoration: underline; }

.verse-quote p { color: inherit; margin-bottom: 10px; }
.verse-quote p:last-of-type { margin-bottom: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 48px 14px 16px;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.45;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover { text-decoration: underline; }

.faq-answer {
  padding: 0 16px 16px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

.faq-answer p:first-child { margin-top: 12px; }

.faq-answer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover { text-decoration: underline; }
