/* ============================================
   Dayton Community Information District
   Interactive Report — Stylesheet
   ============================================ */

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

html {
  font-size: 20px;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #383838;
  background-color: #ffffff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Reading Progress Bar --- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: #E65025;
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* --- Side Navigation --- */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  padding: 2rem 1.25rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 100;
}

.side-nav-brand {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8e8e8;
}

.side-nav-brand img {
  width: 40px;
  height: auto;
  margin-bottom: 0.35rem;
}

.side-nav-brand-text {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.45rem;
  color: #999;
  line-height: 1.4;
}

.side-nav-inner {
  max-height: 65vh;
  overflow-y: auto;
}

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

.side-nav li {
  margin: 0;
}

.side-nav a {
  display: block;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  color: #999;
  text-decoration: none;
  padding: 0.2rem 0 0.2rem 0.75rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.35;
}

.side-nav a:hover {
  color: #58595B;
}

.side-nav a.active {
  color: #E65025;
  border-left-color: #00A1A5;
  font-weight: 600;
}

.side-nav .nav-group-label {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00A1A5;
  margin-top: 0.6rem;
  padding-bottom: 0.1rem;
  padding-left: 0.75rem;
}

.side-nav li:first-child.nav-group-label,
.side-nav li:nth-child(2).nav-group-label {
  margin-top: 0.4rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00A1A5;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.nav-toggle.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-toggle:hover {
  background: #008a8e;
}

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 1.5rem;
  z-index: 150;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.mobile-nav.open {
  display: block;
}

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

.mobile-nav .nav-group-label {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00A1A5;
  padding: 0.6rem 0 0.15rem;
}

.mobile-nav a {
  display: block;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: #58595B;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a.active {
  color: #E65025;
  font-weight: 600;
}

/* --- Main Content Area --- */
.report-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-left: calc(220px + ((100vw - 220px - 680px) / 2));
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  padding-left: 220px;
  position: relative;
}

.hero-inner {
  max-width: 600px;
  animation: heroFadeIn 1.2s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  color: #383838;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title .hero-dot {
  color: #E65025;
}

.hero-rule {
  width: 60px;
  height: 3px;
  background: #E65025;
  border: none;
  margin: 0 auto 1.5rem;
  animation: ruleGrow 0.8s ease 0.6s both;
}

@keyframes ruleGrow {
  from { width: 0; }
  to { width: 60px; }
}

.hero-subtitle {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: #999;
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: calc(220px + ((100% - 220px) / 2));
  transform: translateX(-50%);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: pulse-down 2s infinite;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

/* --- Dedication --- */
.dedication {
  text-align: center;
  padding: 2rem 1rem;
  margin: 0 0 2rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: #58595B;
}

.dedication a {
  color: #58595B;
}

.dedication a:hover {
  color: #E65025;
}

/* --- Preface / Author Note --- */
.preface {
  background-color: #faf9f7;
  border-left: 3px solid #00A1A5;
  padding: 2rem 2rem;
  margin: 3rem 0 4rem;
  border-radius: 0 4px 4px 0;
  color: #444;
  line-height: 1.8;
}

.preface p {
  margin-bottom: 1rem;
}

.preface p:last-child {
  margin-bottom: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #383838;
  line-height: 1.2;
}

/* Chapter titles */
.chapter-heading {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 6rem;
  margin-bottom: 0.5rem;
  padding-top: 2rem;
  letter-spacing: -0.01em;
}

.chapter-rule {
  width: 60px;
  height: 3px;
  background-color: #E65025;
  border: none;
  margin-bottom: 3rem;
}

/* Section headings */
.section-heading {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Subsection headings */
.subsection-heading {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Layer headings (used in Section III for the 5 layers) */
.layer-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.layer-heading-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

/* Items within a layer */
.layer-item-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

a {
  color: #E65025;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #c43d18;
}

ul, ol {
  margin: 0 0 1.25rem 1.5rem;
  line-height: 1.8;
}

li {
  margin-bottom: 0.35rem;
}

/* --- Pull Quotes --- */
.pull-quote {
  font-size: 1.35rem;
  font-style: italic;
  color: #333;
  border-left: 4px solid #E65025;
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem -1rem 2.5rem 0;
  line-height: 1.5;
  max-width: 720px;
}

/* --- Stat Callouts --- */
.stat-callout {
  text-align: center;
  padding: 2rem 1rem;
  margin: 2.5rem 0;
}

.stat-number {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #E65025;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  border-top: 2px solid #00A1A5;
  margin: 4rem 0;
  opacity: 0.4;
}

/* --- IUCN Comparison Treatment --- */
.iucn-treatment {
  margin: 2.5rem 0;
  padding: 2rem;
  background: #faf9f7;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
}

.iucn-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.iucn-stat {
  text-align: center;
  padding: 1rem 0;
}

.iucn-stat-number {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #E65025;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.iucn-stat-label {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #58595B;
  line-height: 1.5;
}

.iucn-stat-label a {
  color: #58595B;
}

.iucn-scale {
  padding: 0.5rem 0;
}

.iucn-scale-label {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 0.75rem;
}

.iucn-bar {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  height: 32px;
  margin-bottom: 0.5rem;
  position: relative;
}

.iucn-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.3rem;
}

.iucn-bar-segment--lc { background: #006400; flex: 1; }
.iucn-bar-segment--nt { background: #3d8b37; flex: 1; }
.iucn-bar-segment--vu { background: #c4a000; flex: 1; }
.iucn-bar-segment--en { background: #cc6600; flex: 1; }
.iucn-bar-segment--cr { background: #cc0000; flex: 1; }
.iucn-bar-segment--ew { background: #54116b; flex: 0.5; }
.iucn-bar-segment--ex { background: #1a1a1a; flex: 0.5; }

.iucn-marker {
  position: relative;
  margin-top: 0.25rem;
}

.iucn-marker-line {
  position: absolute;
  left: 68%;
  top: -42px;
  width: 2px;
  height: 42px;
  background: #1a1a1a;
}

.iucn-marker-dot {
  position: absolute;
  left: 68%;
  top: -46px;
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
  transform: translateX(-4px);
}

.iucn-marker-label {
  position: absolute;
  left: 68%;
  top: 4px;
  transform: translateX(-50%);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: #E65025;
  white-space: nowrap;
}

.iucn-thresholds {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e0e0;
}

.iucn-threshold {
  text-align: center;
}

.iucn-threshold-value {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #383838;
}

.iucn-threshold-name {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .iucn-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .iucn-stat-number {
    font-size: 2.5rem;
  }
}

/* --- Tier Comparison Cards --- */
.tier-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.tier-card {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem;
}

.tier-card--primary {
  border-color: #E65025;
}

.tier-card h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777;
  margin-bottom: 0.25rem;
}

.tier-card .tier-amount {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #383838;
  margin-bottom: 0.75rem;
}

.tier-card--primary .tier-amount {
  color: #E65025;
}

.tier-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.tier-card ul {
  font-size: 0.85rem;
  margin-left: 1.25rem;
}

/* --- Collapsible / Expandable Sections --- */
.collapsible {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.collapsible summary {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  cursor: pointer;
  color: #383838;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.15s;
}

.collapsible summary:hover {
  background-color: #faf9f7;
}

.collapsible summary::-webkit-details-marker {
  display: none;
}

.collapsible summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #E65025;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.collapsible[open] summary::after {
  content: '\2212';
}

.collapsible-body {
  padding: 0 1.25rem 1.25rem;
  color: #333;
  line-height: 1.75;
}

.collapsible-body p {
  margin-bottom: 1rem;
}

.collapsible-body p:last-child {
  margin-bottom: 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 1rem 0;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e0e0e0;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #E65025;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #E65025;
}

.timeline-date {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #E65025;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-text {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

/* --- Acts of Journalism Wheel --- */
.acts-wheel {
  margin: 2.5rem 0;
  padding: 2rem;
  background: #faf9f7;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
}

.acts-wheel-title {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #383838;
  text-align: center;
  margin-bottom: 1.5rem;
}

.acts-ring {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto 1.5rem;
}

.acts-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 120px;
}

.acts-ring-center-label {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #58595B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.act-node {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid transparent;
}

.act-node:hover,
.act-node.active {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  filter: brightness(1.1);
}

.act-node.active {
  border-color: #383838;
}

.act-node-label {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.25rem;
}

/* J+D Lab original 8 */
.act-node--original { background: #3a6b8c; }
/* Dayton additions */
.act-node--dayton { background: #00A1A5; }

/* Position each node around the circle using trigonometry.
   9 nodes, 40deg apart, starting at top, going clockwise.
   R = 145px (ring radius), node offset = -45px (half of 90px node) */
.act-node:nth-child(1)  { top: calc(50% - 145px - 45px); left: calc(50% + 0px - 45px); }
.act-node:nth-child(2)  { top: calc(50% - 111.1px - 45px); left: calc(50% + 93.2px - 45px); }
.act-node:nth-child(3)  { top: calc(50% - 25.2px - 45px); left: calc(50% + 142.8px - 45px); }
.act-node:nth-child(4)  { top: calc(50% + 72.5px - 45px); left: calc(50% + 125.6px - 45px); }
.act-node:nth-child(5)  { top: calc(50% + 136.3px - 45px); left: calc(50% + 49.6px - 45px); }
.act-node:nth-child(6)  { top: calc(50% + 136.3px - 45px); left: calc(50% - 49.6px - 45px); }
.act-node:nth-child(7)  { top: calc(50% + 72.5px - 45px); left: calc(50% - 125.6px - 45px); }
.act-node:nth-child(8)  { top: calc(50% - 25.2px - 45px); left: calc(50% - 142.8px - 45px); }
.act-node:nth-child(9)  { top: calc(50% - 111.1px - 45px); left: calc(50% - 93.2px - 45px); }

.acts-description {
  text-align: center;
  min-height: 80px;
  padding: 0 1rem;
}

.acts-description-title {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.35rem;
}

.acts-description-text {
  font-size: 0.85rem;
  color: #58595B;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.acts-description-source {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  color: #999;
  margin-top: 0.25rem;
}

.acts-description-source.dayton {
  color: #00A1A5;
  font-weight: 600;
}

.acts-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  color: #777;
}

.acts-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.acts-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.acts-legend-dot--original { background: #3a6b8c; }
.acts-legend-dot--dayton { background: #00A1A5; }

@media (max-width: 768px) {
  .acts-ring {
    width: 320px;
    height: 320px;
  }

  .act-node {
    width: 72px;
    height: 72px;
  }

  /* R=115, offset=36, 9 nodes */
  .act-node:nth-child(1)  { top: calc(50% - 115px - 36px); left: calc(50% + 0px - 36px); }
  .act-node:nth-child(2)  { top: calc(50% - 88.1px - 36px); left: calc(50% + 73.9px - 36px); }
  .act-node:nth-child(3)  { top: calc(50% - 20px - 36px); left: calc(50% + 113.3px - 36px); }
  .act-node:nth-child(4)  { top: calc(50% + 57.5px - 36px); left: calc(50% + 99.6px - 36px); }
  .act-node:nth-child(5)  { top: calc(50% + 108.1px - 36px); left: calc(50% + 39.3px - 36px); }
  .act-node:nth-child(6)  { top: calc(50% + 108.1px - 36px); left: calc(50% - 39.3px - 36px); }
  .act-node:nth-child(7)  { top: calc(50% + 57.5px - 36px); left: calc(50% - 99.6px - 36px); }
  .act-node:nth-child(8)  { top: calc(50% - 20px - 36px); left: calc(50% - 113.3px - 36px); }
  .act-node:nth-child(9)  { top: calc(50% - 88.1px - 36px); left: calc(50% - 73.9px - 36px); }

  .act-node-label {
    font-size: 0.5rem;
  }

  .acts-ring-center {
    width: 80px;
  }

  .acts-ring-center-label {
    font-size: 0.5rem;
  }
}

@media (max-width: 400px) {
  .acts-ring {
    width: 280px;
    height: 280px;
  }

  .act-node {
    width: 60px;
    height: 60px;
  }

  /* R=100, offset=30, 9 nodes */
  .act-node:nth-child(1)  { top: calc(50% - 100px - 30px); left: calc(50% + 0px - 30px); }
  .act-node:nth-child(2)  { top: calc(50% - 76.6px - 30px); left: calc(50% + 64.3px - 30px); }
  .act-node:nth-child(3)  { top: calc(50% - 17.4px - 30px); left: calc(50% + 98.5px - 30px); }
  .act-node:nth-child(4)  { top: calc(50% + 50px - 30px); left: calc(50% + 86.6px - 30px); }
  .act-node:nth-child(5)  { top: calc(50% + 94px - 30px); left: calc(50% + 34.2px - 30px); }
  .act-node:nth-child(6)  { top: calc(50% + 94px - 30px); left: calc(50% - 34.2px - 30px); }
  .act-node:nth-child(7)  { top: calc(50% + 50px - 30px); left: calc(50% - 86.6px - 30px); }
  .act-node:nth-child(8)  { top: calc(50% - 17.4px - 30px); left: calc(50% - 98.5px - 30px); }
  .act-node:nth-child(9)  { top: calc(50% - 76.6px - 30px); left: calc(50% - 64.3px - 30px); }

  .act-node-label {
    font-size: 0.45rem;
  }
}

/* --- Tier Badges (inline) --- */
.tier-badge {
  display: inline-block;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  vertical-align: baseline;
  white-space: nowrap;
}

.tier-badge--2 {
  background: #e0f5f5;
  color: #00A1A5;
}

.tier-badge--1 {
  background: #fef0e8;
  color: #E65025;
}

/* Tier intro cards (Tiered Funding section) */
.tier-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.tier-intro-card {
  border-radius: 6px;
  padding: 1.25rem;
  position: relative;
}

.tier-intro-card--2 {
  background: #e0f5f5;
  border: 2px solid #00A1A5;
}

.tier-intro-card--1 {
  background: #fef0e8;
  border: 2px solid #E65025;
}

.tier-intro-label {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.15rem;
}

.tier-intro-card--2 .tier-intro-label { color: #00A1A5; }
.tier-intro-card--1 .tier-intro-label { color: #E65025; }

.tier-intro-name {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #383838;
  margin-bottom: 0.35rem;
}

.tier-intro-desc {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  color: #58595B;
  line-height: 1.5;
}

.tier-intro-funding {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #383838;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .tier-intro {
    grid-template-columns: 1fr;
  }
}

/* --- Neighborhood Digest Mockup --- */
.digest-mockup {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #fff;
  max-width: 420px;
  margin: 0 auto;
}

.digest-header {
  background: #383838;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.digest-header-name {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  margin-bottom: 0.15rem;
}

.digest-header-hood {
  font-size: 1rem;
  font-weight: 700;
}

.digest-header-date {
  font-size: 0.55rem;
  color: #999;
  margin-top: 0.25rem;
}

.digest-section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.digest-section:last-child {
  border-bottom: none;
}

.digest-section-label {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00A1A5;
  margin-bottom: 0.35rem;
}

.digest-item {
  font-size: 0.65rem;
  color: #383838;
  line-height: 1.5;
  padding: 0.25rem 0;
}

.digest-item + .digest-item {
  border-top: 1px solid #f5f5f5;
}

.digest-item-meta {
  font-size: 0.5rem;
  color: #999;
}

.digest-item-highlight {
  color: #E65025;
  font-weight: 600;
}

/* --- SMS Alert Mockup --- */
.sms-mockup {
  max-width: 300px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 2rem 1rem 1.25rem;
  position: relative;
}

.sms-mockup-notch {
  width: 100px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 1rem;
}

.sms-mockup-header {
  text-align: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.sms-bubble {
  background: #e8e8e8;
  border-radius: 16px 16px 16px 4px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  color: #1a1a1a;
  line-height: 1.5;
}

.sms-bubble a {
  color: #0066cc;
  text-decoration: none;
}

.sms-bubble-time {
  font-size: 0.5rem;
  color: #999;
  margin-top: 0.2rem;
}

.sms-bubble-sender {
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.sms-optout {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.45rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid #333;
}

/* --- Governance Org Chart --- */
.gov-chart {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #faf9f7;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  text-align: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.gov-chart-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gov-chart-node {
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #383838;
  line-height: 1.3;
  border: 1px solid #e0e0e0;
  background: #fff;
  min-width: 100px;
}

.gov-chart-node--voters {
  background: #e8eff5;
  border-color: #b8d4ec;
  color: #3a6b8c;
}

.gov-chart-node--board {
  background: #e0f5f5;
  border-color: #00A1A5;
  color: #00837a;
  font-size: 0.7rem;
}

.gov-chart-node--editor {
  background: #fef0e8;
  border-color: #E65025;
  color: #c43d18;
  font-size: 0.7rem;
}

.gov-chart-node--editorial {
  background: #fff;
  border: 2px dashed #E65025;
  color: #E65025;
  font-size: 0.55rem;
}

.gov-chart-node small {
  display: block;
  font-weight: 400;
  font-size: 0.5rem;
  color: #999;
  margin-top: 0.15rem;
}

.gov-chart-arrow {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.gov-chart-firewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c62828;
}

.gov-chart-firewall-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c62828, #c62828 4px, transparent 4px, transparent 8px);
  max-width: 120px;
}

@media (max-width: 768px) {
  .gov-chart-row {
    flex-wrap: wrap;
  }

  .gov-chart-node {
    min-width: 80px;
    font-size: 0.55rem;
  }
}

/* --- Engagement Phase Diagram --- */
.engagement-phases {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #faf9f7;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.engagement-phase {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.engagement-phase:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.engagement-phase:first-child {
  padding-top: 0;
}

.engagement-phase-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.engagement-phase:nth-child(1) .engagement-phase-marker { background: #00A1A5; }
.engagement-phase:nth-child(2) .engagement-phase-marker { background: #0090a0; }
.engagement-phase:nth-child(3) .engagement-phase-marker { background: #007f8a; }
.engagement-phase:nth-child(4) .engagement-phase-marker { background: #006e75; }
.engagement-phase:nth-child(5) .engagement-phase-marker { background: #E65025; }

.engagement-phase-body {
  flex: 1;
}

.engagement-phase-title {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #383838;
}

.engagement-phase-time {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  color: #999;
  margin-bottom: 0.2rem;
}

.engagement-phase-desc {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  color: #58595B;
  line-height: 1.5;
}

/* --- Layer Overview Map --- */
.layer-map {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.layer-map-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: #383838;
  transition: background 0.15s;
  cursor: pointer;
}

.layer-map-item:last-child {
  border-bottom: none;
}

.layer-map-item:hover {
  background: #faf9f7;
}

.layer-map-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}

.layer-map-icon--foundation { background: #E65025; }
.layer-map-icon--infrastructure { background: #00A1A5; }
.layer-map-icon--commons { background: #3a6b8c; }
.layer-map-icon--distribution { background: #7a5c8c; }
.layer-map-icon--capacity { background: #5c8c3a; }

.layer-map-body {
  flex: 1;
}

.layer-map-name {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #383838;
}

.layer-map-desc {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  color: #999;
}

.layer-map-arrow {
  font-size: 0.75rem;
  color: #ccc;
  flex-shrink: 0;
}

/* --- Influence Cards --- */
.influence-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #00A1A5;
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.influence-card-name {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.3rem;
}

.influence-card-name a {
  color: #383838;
  text-decoration: none;
}

.influence-card-name a:hover {
  color: #E65025;
}

.influence-card-text {
  font-size: 0.8rem;
  color: #58595B;
  line-height: 1.65;
}

.influence-card-text a {
  color: #E65025;
}

.influence-card-text p {
  margin-bottom: 0.6rem;
}

.influence-card-text p:last-child {
  margin-bottom: 0;
}

.influence-card .demo-embed {
  margin: 0.75rem 0 0;
  border: none;
  background: none;
}

.influence-card .demo-embed iframe {
  border-radius: 4px;
}

.influence-card-logo {
  width: 60px;
  height: auto;
  float: right;
  margin: 0 0 0.5rem 0.75rem;
}

.influence-card-link {
  display: inline-block;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: #E65025;
  margin-top: 0.5rem;
}

/* --- AI Policy Tier Cards --- */
.ai-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}

.ai-tier-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  border-top: 3px solid #e0e0e0;
  position: relative;
}

.ai-tier-card--1 { border-top-color: #d0e0f0; }
.ai-tier-card--2 { border-top-color: #00A1A5; }
.ai-tier-card--3 { border-top-color: #E65025; }
.ai-tier-card--4 { border-top-color: #383838; }

.ai-tier-level {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.15rem;
}

.ai-tier-name {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.35rem;
}

.ai-tier-examples {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  color: #58595B;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.ai-tier-disclosure {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  color: #999;
  font-style: italic;
}

/* AI Prohibitions */
.ai-prohibitions {
  margin: 2rem 0;
}

.ai-prohibition {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #c62828;
  border-radius: 0 4px 4px 0;
}

.ai-prohibition-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ai-prohibition-text {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  color: #383838;
  line-height: 1.5;
}

.ai-prohibition-text strong {
  color: #c62828;
}

@media (max-width: 768px) {
  .ai-tiers {
    grid-template-columns: 1fr;
  }
}

/* --- Hub-and-Spoke / Community Voice Visual --- */
.hub-spoke {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #faf9f7;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.hub-spoke-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.hub-spoke-diagram {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 1.5rem;
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #E65025;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(230, 80, 37, 0.25);
}

.spoke {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #00A1A5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.45rem;
  font-weight: 600;
  color: #383838;
  line-height: 1.2;
  z-index: 2;
}

/* Lines from hub to spokes */
.spoke-line {
  position: absolute;
  background: #d0d0d0;
  z-index: 1;
}

/* Position 6 spokes around the hub */
.spoke:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); }
.spoke:nth-child(3) { top: 15%; right: 5%; }
.spoke:nth-child(4) { bottom: 15%; right: 5%; }
.spoke:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); }
.spoke:nth-child(6) { bottom: 15%; left: 5%; }
.spoke:nth-child(7) { top: 15%; left: 5%; }

.hub-spoke-label {
  text-align: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.voice-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.voice-track {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  border-top: 3px solid #00A1A5;
}

.voice-track-number {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #e0e0e0;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.voice-track-title {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.35rem;
}

.voice-track-text {
  font-size: 0.6rem;
  color: #58595B;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .voice-tracks {
    grid-template-columns: 1fr;
  }

  .hub-spoke-diagram {
    width: 250px;
    height: 250px;
  }

  .hub-center {
    width: 80px;
    height: 80px;
    font-size: 0.5rem;
  }

  .spoke {
    width: 58px;
    height: 58px;
    font-size: 0.4rem;
  }
}

/* --- Election Archive Demo --- */
.election-demo {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.election-neighborhoods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.election-hood {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.election-hood-header {
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #383838;
  border-bottom: 1px solid #e0e0e0;
  background: #faf9f7;
}

.election-hood-header span {
  display: block;
  font-size: 0.5rem;
  font-weight: 400;
  color: #999;
  margin-top: 0.1rem;
}

.election-item {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.election-item:last-child {
  border-bottom: none;
}

.election-item-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin-bottom: 0.3rem;
}

.election-bar-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.election-bar-name {
  font-size: 0.6rem;
  color: #383838;
  width: 100px;
  flex-shrink: 0;
  text-align: right;
}

.election-bar-track {
  flex: 1;
  height: 18px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.election-bar-fill {
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.election-bar-fill--for { background: #00A1A5; }
.election-bar-fill--against { background: #d4d4d4; }
.election-bar-fill--a { background: #E65025; }
.election-bar-fill--b { background: #3a6b8c; }

.election-bar-pct {
  font-size: 0.55rem;
  color: #58595B;
  font-weight: 600;
  width: 38px;
  flex-shrink: 0;
}

.election-turnout {
  padding: 0.4rem 0.75rem;
  font-size: 0.5rem;
  color: #999;
  background: #faf9f7;
}

.election-source {
  font-size: 0.55rem;
  color: #999;
  margin-top: 0.5rem;
}

.election-source a {
  color: #00A1A5;
}

@media (max-width: 768px) {
  .election-neighborhoods {
    grid-template-columns: 1fr;
  }
}

/* --- Milestone Registry Demo --- */
.milestone-demo {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.milestone-contrast {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.milestone-before,
.milestone-after {
  border-radius: 4px;
  overflow: hidden;
}

.milestone-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.6rem;
  text-align: center;
}

.milestone-before .milestone-label {
  background: #e8e8e8;
  color: #999;
}

.milestone-after .milestone-label {
  background: #58595B;
  color: #fff;
}

.milestone-before-body {
  background: #f0f0f0;
  padding: 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.milestone-before-body img {
  width: 100%;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
}

.milestone-before-note {
  font-size: 0.55rem;
  color: #999;
  line-height: 1.4;
  margin-top: 0.35rem;
}

.milestone-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.25rem;
}

.milestone-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.15rem;
}

.milestone-card-dates {
  font-size: 0.7rem;
  color: #58595B;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.milestone-card-location {
  font-size: 0.6rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.milestone-card-text {
  font-size: 0.7rem;
  color: #58595B;
  line-height: 1.65;
  font-family: Georgia, 'Times New Roman', serif;
}

.milestone-card-text p {
  margin-bottom: 0.6rem;
}

.milestone-card-text p:last-child {
  margin-bottom: 0;
}

.milestone-card-survivors {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.65rem;
  color: #58595B;
  line-height: 1.6;
}

.milestone-card-survivors strong {
  color: #383838;
}

.milestone-card-meta {
  margin-top: 0.6rem;
  font-size: 0.5rem;
  color: #bbb;
}

.milestone-card-photo {
  width: 120px;
  height: auto;
  border-radius: 4px;
  float: right;
  margin: 0 0 0.75rem 1rem;
}

.milestone-card-badge {
  display: inline-block;
  font-size: 0.45rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #e8eff5;
  color: #3a6b8c;
}

@media (max-width: 768px) {
  .milestone-card-photo {
    width: 90px;
  }
}

/* --- Pattern Detection Demo --- */
.pattern-demo {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.pattern-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #E65025;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.6rem;
}

.pattern-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fef0e8;
  color: #E65025;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pattern-alert-body {
  flex: 1;
  font-size: 0.7rem;
  color: #383838;
  line-height: 1.5;
}

.pattern-alert-title {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.pattern-alert-meta {
  font-size: 0.55rem;
  color: #999;
  margin-top: 0.25rem;
}

.pattern-alert-tag {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-right: 0.25rem;
}

.pattern-alert-tag--high { background: #fef0e8; color: #E65025; }
.pattern-alert-tag--medium { background: #fff8e1; color: #b8860b; }
.pattern-alert-tag--data { background: #e0f5f5; color: #00A1A5; }

.pattern-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.pattern-summary-stat {
  text-align: center;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.pattern-summary-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #E65025;
}

.pattern-summary-label {
  font-size: 0.5rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pattern-source {
  font-size: 0.55rem;
  color: #999;
  border-top: 1px solid #e0e0e0;
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

.pattern-source a {
  color: #00A1A5;
}

@media (max-width: 768px) {
  .pattern-summary {
    grid-template-columns: 1fr;
  }
}

/* --- Conversational Budget Demo --- */
.chat-demo {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin: 2rem 0;
  position: relative;
}

.chat-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #383838;
  color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.chat-demo-title {
  font-size: 0.75rem;
  font-weight: 600;
}

.chat-demo-subtitle {
  font-size: 0.55rem;
  color: #bbb;
}

.chat-demo-badge {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #00A1A5;
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.chat-messages {
  padding: 1rem;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.chat-message {
  display: flex;
  gap: 0.6rem;
  max-width: 90%;
  animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-avatar--ai {
  background: #e0f5f5;
  color: #00A1A5;
}

.chat-avatar--user {
  background: #fef0e8;
  color: #E65025;
}

.chat-bubble {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  line-height: 1.6;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  color: #383838;
}

.chat-message--ai .chat-bubble {
  background: #f5f5f3;
  border-top-left-radius: 4px;
}

.chat-message--user .chat-bubble {
  background: #E65025;
  color: #fff;
  border-top-right-radius: 4px;
}

.chat-citation {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  color: #00A1A5;
  background: #e0f5f5;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-left: 0.15rem;
  cursor: default;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0.85rem;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  animation: typingPulse 1.2s infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.2); }
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e0e0e0;
  background: #faf9f7;
}

.chat-input {
  flex: 1;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #d0d0d0;
  border-radius: 20px;
  background: #fff;
  color: #383838;
  outline: none;
}

.chat-input:focus {
  border-color: #E65025;
}

.chat-input::placeholder {
  color: #bbb;
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E65025;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chat-send:hover {
  background: #c43d18;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}

.chat-suggestion {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #d0d0d0;
  border-radius: 16px;
  background: #fff;
  color: #58595B;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.chat-suggestion:hover {
  border-color: #E65025;
  color: #E65025;
}

.chat-demo-caption {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  color: #999;
  font-style: italic;
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid #e8e8e8;
  background: #f5f5f3;
}

@media (max-width: 768px) {
  .chat-message {
    max-width: 95%;
  }

  .chat-suggestions {
    gap: 0.3rem;
  }

  .chat-suggestion {
    font-size: 0.55rem;
  }
}

/* --- Tool Demo Prototypes --- */
.tool-demo {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin: 2rem 0;
  background: #faf9f7;
  position: relative;
}

.tool-demo-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: #00A1A5;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  z-index: 2;
}

.tool-demo-body {
  padding: 1.5rem;
}

.tool-demo-caption {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  color: #999;
  font-style: italic;
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid #e8e8e8;
  background: #f5f5f3;
}

/* Civic Calendar embed */
.tool-demo iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* --- Civic Map Mockup --- */
.map-mockup {
  min-height: 320px;
}

.map-embed {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.map-data-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
  border-radius: 4px;
  overflow: hidden;
}

.map-cell {
  background: #e8eff5;
  position: relative;
  min-height: 60px;
  transition: background 0.2s;
  cursor: pointer;
}

.map-cell:hover {
  background: #d0e0f0;
}

.map-cell.active {
  background: #b8d4ec;
}

.map-cell-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.45rem;
  color: #58595B;
  font-weight: 600;
}

.map-cell .map-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.map-dot--transfer { background: #E65025; }
.map-dot--permit { background: #00A1A5; }
.map-dot--violation { background: #c4a000; }

.map-data-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.6rem;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  color: #58595B;
  line-height: 1.5;
}

.map-data-item-type {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.map-data-item-type--transfer { color: #E65025; }
.map-data-item-type--permit { color: #00A1A5; }
.map-data-item-type--violation { color: #c4a000; }

.map-data-item-address {
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.15rem;
}

.map-hood-header {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-hood-header span {
  font-size: 0.55rem;
  font-weight: 400;
  color: #999;
}

.map-sidebar {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
}

.map-sidebar h5 {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #58595B;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #e0e0e0;
}

.map-legend {
  margin-bottom: 1rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  color: #58595B;
}

.map-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-detail {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.6rem;
  font-size: 0.6rem;
  color: #58595B;
  line-height: 1.5;
}

.map-detail-title {
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.25rem;
}

/* --- Policy Evaluator Mockup --- */
.policy-mockup {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.policy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.policy-title {
  font-size: 1rem;
  font-weight: 700;
  color: #383838;
  line-height: 1.3;
}

.policy-status {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  background: #fff3e0;
  color: #e65100;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.policy-field {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem;
}

.policy-field-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.policy-field-value {
  font-size: 0.7rem;
  color: #383838;
  line-height: 1.5;
}

.policy-field--full {
  grid-column: 1 / -1;
}

.policy-fiscal {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem;
}

.policy-fiscal-item {
  text-align: center;
  flex: 1;
}

.policy-fiscal-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: #E65025;
}

.policy-fiscal-label {
  font-size: 0.5rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Accountability Tracker Mockup --- */
.tracker-mockup {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.tracker-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.tracker-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d0e0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #3a6b8c;
  flex-shrink: 0;
}

.tracker-name {
  font-size: 1rem;
  font-weight: 700;
  color: #383838;
}

.tracker-role {
  font-size: 0.65rem;
  color: #58595B;
}

.tracker-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tracker-stat {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.6rem 0.4rem;
}

.tracker-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #383838;
}

.tracker-stat-label {
  font-size: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
}

.tracker-votes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.65rem;
}

.tracker-votes th {
  text-align: left;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.tracker-votes td {
  padding: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  color: #383838;
}

.tracker-vote-yes {
  color: #2e7d32;
  font-weight: 600;
}

.tracker-vote-no {
  color: #c62828;
  font-weight: 600;
}

.tracker-topic {
  display: inline-block;
  font-size: 0.5rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #f0f0f0;
  color: #58595B;
}

/* --- Community Pipeline Mockup --- */
.pipeline-mockup {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.pipeline-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.pipeline-step {
  flex: 1;
  text-align: center;
  padding: 1rem 0.75rem;
  position: relative;
}

.pipeline-step::after {
  content: '\2192';
  position: absolute;
  right: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #00A1A5;
  z-index: 1;
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pipeline-icon--input { background: #e8eff5; color: #3a6b8c; }
.pipeline-icon--process { background: #e0f5f5; color: #00A1A5; }
.pipeline-icon--output { background: #fef0e8; color: #E65025; }

.pipeline-step-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.25rem;
}

.pipeline-step-desc {
  font-size: 0.55rem;
  color: #58595B;
  line-height: 1.4;
}

.pipeline-example {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.6rem;
  color: #58595B;
  line-height: 1.6;
}

.pipeline-example-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00A1A5;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .map-data-panel {
    grid-template-columns: 1fr;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-fiscal {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tracker-stats {
    flex-wrap: wrap;
  }

  .tracker-stat {
    min-width: calc(50% - 0.5rem);
  }

  .pipeline-flow {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pipeline-step::after {
    content: '\2193';
    position: static;
    display: block;
    transform: none;
    margin-top: 0.5rem;
  }

  .pipeline-step:last-child::after {
    display: none;
  }
}

/* --- Report Figures --- */
.report-figure {
  margin: 2.5rem -1rem;
  max-width: 720px;
}

.report-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.report-figure figcaption {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  color: #777;
  line-height: 1.5;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

@media (max-width: 768px) {
  .report-figure {
    margin-left: 0;
    margin-right: 0;
  }
}

/* --- Demo Embed --- */
.demo-embed {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin: 2rem 0;
  background: #faf9f7;
}

.demo-embed-header {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777;
  padding: 0.75rem 1rem;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.demo-embed iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #E65025;
}

.back-to-top:active {
  background: #c43d18;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
.report-footer {
  border-top: 1px solid #e0e0e0;
  padding: 3rem 0 4rem;
  margin-top: 6rem;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  color: #999;
  line-height: 1.8;
}

.report-footer a {
  color: #999;
}

.report-footer a:hover {
  color: #E65025;
}

/* --- Print --- */
@media print {
  .side-nav,
  .progress-bar,
  .back-to-top,
  .nav-toggle,
  .mobile-nav,
  .scroll-indicator,
  .demo-embed {
    display: none !important;
  }

  .report-content {
    margin-left: auto;
    max-width: 100%;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    font-size: 11pt;
  }
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .side-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .report-content {
    margin-left: auto;
    max-width: 720px;
  }

  .hero {
    width: 100%;
    margin-left: 0;
    padding-left: 2rem;
  }

  .scroll-indicator {
    left: 50%;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  html {
    font-size: 18px;
  }

  .report-content {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .chapter-heading {
    font-size: 1.6rem;
    margin-top: 4rem;
  }

  .section-heading {
    font-size: 1.3rem;
  }

  .pull-quote {
    font-size: 1.15rem;
    margin-right: 0;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .tier-comparison {
    grid-template-columns: 1fr;
  }

  .demo-embed iframe {
    height: 450px;
  }

  .preface {
    padding: 1.25rem 1.5rem;
    margin-left: 0;
  }
}
