/* ============================================
   BRCA Resource Guide — Shared Styles
   Botanical / Organic / Editorial Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;1,6..12,400;1,6..12,500&display=swap');

/* --- CSS Variables --- */
:root {
  --green-deep: #1E3A2B;
  --green-primary: #2D5A3D;
  --green-mid: #4A7C59;
  --green-soft: #6B9E7A;
  --green-light: #A8C9AE;
  --green-pale: #D4E6D3;
  --green-whisper: #EAF2E8;
  --green-tint: #F4F8F3;

  --cream: #FDFCF8;
  --cream-warm: #F7F5EE;
  --gold: #B89B5E;
  --gold-light: #D4BC82;

  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #6E6E6E;
  --text-on-dark: #F0EDE6;
  --text-on-dark-muted: #B8C4B3;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(30, 58, 43, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 58, 43, 0.08);
  --shadow-lg: 0 8px 30px rgba(30, 58, 43, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --max-width: 900px;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-primary);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23D4E6D3' opacity='0.3'/%3E%3Ccircle cx='20' cy='80' r='0.7' fill='%23A8C9AE' opacity='0.2'/%3E%3Ccircle cx='80' cy='20' r='0.5' fill='%23D4BC82' opacity='0.15'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--green-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-mid); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-deep);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-top: 2.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--green-primary); }
h4 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }

p { margin-bottom: 1.1rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-primary); font-weight: 600; }

/* --- Decorative Leaf Divider --- */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2.5rem 0;
  color: var(--green-light);
  font-size: 1.1rem;
  position: relative;
}
.leaf-divider::before,
.leaf-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-pale), transparent);
}

/* Inline botanical vine separator */
.vine-separator {
  display: block;
  margin: 2rem auto;
  text-align: center;
  opacity: 0.25;
  height: 30px;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-deep);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(30, 58, 43, 0.18);
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo span {
  color: var(--green-light);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(168, 201, 174, 0.15);
  color: var(--text-on-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-primary) 50%, var(--green-mid) 100%);
  color: var(--text-on-dark);
  padding: 4.5rem 24px 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(168, 201, 174, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 155, 94, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--text-on-dark);
  font-size: 3rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.page-hero .subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-on-dark-muted);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Botanical accent for hero */
.hero-botanical {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* --- Botanical Corner Leaves --- */
.botanical-corners {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.botanical-corners svg {
  position: absolute;
  opacity: 0.12;
}

.botanical-tl { top: 0; left: 0; }
.botanical-tr { top: 0; right: 0; transform: scaleX(-1); }
.botanical-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.botanical-br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* --- Botanical Edge Decoration (top/bottom of content) --- */
.botanical-edge {
  display: block;
  margin: 0 auto;
  opacity: 0.18;
  max-width: 700px;
}

.botanical-edge-footer {
  opacity: 0.12;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* --- Page Body Leaf Accents --- */
/* --- Main Content Area --- */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 24px 4rem;
  position: relative;
  z-index: 1;
}

/* --- Section Card --- */
.section-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-pale);
  transition: box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.section-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M80 95 Q60 75 65 50 Q68 35 55 28 Q40 20 35 35 Q32 48 45 52 Q55 55 65 50' stroke='%23A8C9AE' stroke-width='1' fill='%23D4E6D3' opacity='0.3'/%3E%3Cpath d='M65 50 Q70 30 85 20 Q95 15 98 28 Q100 40 88 42 Q78 43 70 35' stroke='%23A8C9AE' stroke-width='0.8' fill='%23EAF2E8' opacity='0.3'/%3E%3Ccircle cx='90' cy='80' r='12' fill='%23D4E6D3' opacity='0.15'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}
.section-card:hover {
  box-shadow: var(--shadow-md);
}

/* --- Key Fact Callout --- */
.callout {
  background: var(--green-tint);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.97rem;
}
.callout p { color: var(--text-secondary); }
.callout strong { color: var(--green-deep); }

.callout-gold {
  background: #FBF8F0;
  border-left-color: var(--gold);
}
.callout-gold strong { color: #8B7234; }

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-pale);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
}

thead {
  background: var(--green-deep);
  color: var(--text-on-dark);
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--green-whisper);
  color: var(--text-secondary);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--green-tint); }
tbody tr:hover { background: var(--green-whisper); }

/* --- Stat Grid --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: white;
  border: 1px solid var(--green-pale);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.4;
}

/* --- Link Cards (for home page) --- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.link-card {
  background: white;
  border: 1px solid var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.link-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.link-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--green-deep);
}

.link-card p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  flex: 1;
}

.link-card .card-arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Accordion / Expandable Sections --- */
details {
  background: white;
  border: 1px solid var(--green-pale);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details:hover { box-shadow: var(--shadow-sm); }
details[open] { box-shadow: var(--shadow-md); border-color: var(--green-light); }

summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--green-mid);
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] summary::after {
  content: '−';
}

details .detail-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Resource List --- */
.resource-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--green-whisper);
}
.resource-item:last-child { border-bottom: none; }

.resource-icon {
  width: 44px;
  height: 44px;
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.resource-info h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--green-deep);
}

.resource-info p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-tertiary);
}

.resource-info a {
  font-weight: 600;
  font-size: 0.88rem;
}

/* --- Process Steps --- */
.step-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.step-item {
  counter-increment: steps;
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--green-whisper);
}
.step-item:last-child { border-bottom: none; }

.step-item::before {
  content: counter(steps);
  min-width: 40px;
  height: 40px;
  background: var(--green-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-body);
}

.step-content p {
  font-size: 0.93rem;
  margin: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--green-deep);
  color: var(--text-on-dark-muted);
  padding: 3rem 24px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-light), var(--gold-light), var(--green-light), transparent);
  opacity: 0.5;
}

.site-footer a {
  color: var(--green-light);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-on-dark); }

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(168, 201, 174, 0.3);
  margin: 1.25rem auto;
}

.disclaimer {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-on-dark-muted);
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--green-deep);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .nav-inner { position: relative; }

  .page-hero { padding: 3rem 20px 2.5rem; }
  .page-hero h1 { font-size: 2.2rem; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .content-wrap { padding: 2rem 18px 3rem; }

  .section-card { padding: 1.5rem 1.25rem; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .link-cards { grid-template-columns: 1fr; }

  table { font-size: 0.85rem; }
  thead th, tbody td { padding: 9px 12px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.85rem; }
  body { font-size: 16px; }
}

/* --- Horizontal Bar Charts --- */
.bar-chart {
  margin: 1.5rem 0;
}

.bar-group {
  margin-bottom: 1.5rem;
}

.bar-group-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bar-label {
  min-width: 130px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 28px;
  background: var(--green-whisper);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  transition: width 1s ease-out;
  min-width: 45px;
}

.bar-fill.brca1 { background: linear-gradient(90deg, var(--green-primary), var(--green-mid)); }
.bar-fill.brca2 { background: linear-gradient(90deg, #3D7A6E, #5BA394); }
.bar-fill.general { background: linear-gradient(90deg, #B8B8B8, #CFCFCF); color: var(--text-secondary); }
.bar-fill.men-brca1 { background: linear-gradient(90deg, #4A6741, #6B8E62); }
.bar-fill.men-brca2 { background: linear-gradient(90deg, #2E5A6B, #4A8A9E); }

.bar-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 1rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.bar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* --- Donut Chart --- */
.donut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.donut-item {
  text-align: center;
  width: 140px;
}

.donut-item svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.donut-item circle {
  fill: none;
  stroke-width: 10;
}

.donut-bg { stroke: var(--green-whisper); }
.donut-fill {
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s ease-out;
}

.donut-label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-top: 6px;
}

.donut-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.35;
  margin-top: 4px;
}

/* --- Visual Flow / Process --- */
.flow-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0;
  position: relative;
}

.flow-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1rem;
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}

.flow-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(45, 90, 61, 0.25);
}

.flow-dot.highlight {
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(184, 155, 94, 0.35);
}

.flow-line {
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: var(--green-pale);
}

.flow-content {
  padding-top: 10px;
  flex: 1;
}

.flow-content h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--green-deep);
}

.flow-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* --- Comparison Cards --- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.compare-card {
  background: white;
  border: 1px solid var(--green-pale);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.compare-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.compare-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.compare-card h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-deep);
}

.compare-card p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* --- Icon Feature Row --- */
.icon-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.icon-feature {
  text-align: center;
  padding: 1.25rem 0.75rem;
}

.icon-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
}

.icon-feature h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--green-deep);
}

.icon-feature p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.45;
}

/* --- Pathway / Decision Cards --- */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.pathway-card {
  background: white;
  border: 2px solid var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.pathway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.pathway-card.green::before { background: var(--green-primary); }
.pathway-card.gold::before { background: var(--gold); }
.pathway-card.teal::before { background: #3D7A6E; }

.pathway-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-deep);
  margin: 0 0 0.5rem;
}

.pathway-card p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin: 0 0 0.5rem;
}

.pathway-card .pathway-cost {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .bar-label { min-width: 90px; font-size: 0.75rem; }
  .bar-fill { font-size: 0.7rem; padding-right: 6px; }
  .bar-track { height: 24px; }
  .flow-dot { width: 40px; height: 40px; font-size: 1rem; }
  .donut-row { gap: 1rem; }
  .donut-item { width: 110px; }
  .donut-item svg { width: 100px; height: 100px; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-wrap > * {
  animation: fadeInUp 0.5s ease-out both;
}
.content-wrap > *:nth-child(1) { animation-delay: 0.05s; }
.content-wrap > *:nth-child(2) { animation-delay: 0.1s; }
.content-wrap > *:nth-child(3) { animation-delay: 0.15s; }
.content-wrap > *:nth-child(4) { animation-delay: 0.2s; }
.content-wrap > *:nth-child(5) { animation-delay: 0.25s; }
.content-wrap > *:nth-child(6) { animation-delay: 0.3s; }
.content-wrap > *:nth-child(7) { animation-delay: 0.35s; }
.content-wrap > *:nth-child(8) { animation-delay: 0.4s; }
