.reveal .slides section.slide.level2 > h2 {
  font-size: 1.42em;
}

.reveal .slides section {
  --solar-blue: #3d8dff;
  --solar-navy: #1c4982;
  --solar-green: #2e7d5b;
  --solar-gold: #f2b84b;
  --solar-red: #a63d40;
  --solar-ink: #111111;
  --solar-muted: #56616b;
  --solar-panel: #f3f5f6;
}

.reveal .lead {
  font-size: 1.08em;
  color: var(--solar-muted);
}

.reveal .center {
  text-align: center;
}

.reveal .compact,
.reveal .compact table {
  font-size: 0.82em;
}

.reveal .xcompact,
.reveal .xcompact table {
  font-size: 0.68em;
}

.reveal .tight li {
  margin-bottom: 0.18em;
}

.reveal .accent-blue {
  color: var(--solar-blue);
  font-weight: 700;
}

.reveal .accent-green {
  color: var(--solar-green);
  font-weight: 700;
}

.reveal .accent-red {
  color: var(--solar-red);
  font-weight: 700;
}

.reveal .big-equation {
  margin: 0.6em auto;
  padding: 0.65em 0.9em;
  max-width: 88%;
  border: 1px solid #c4c9cf;
  border-radius: 12px;
  background: var(--solar-panel);
  text-align: center;
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.35;
}

.reveal .solar-callout {
  margin: 0.55em auto 0;
  padding: 0.45em 0.7em;
  border-left: 7px solid var(--solar-gold);
  background: #fff5dd;
  font-size: 0.88em;
  font-weight: 650;
}

.reveal .solar-callout > p {
  margin: 0;
}

.reveal .solar-callout.blue {
  border-left-color: var(--solar-blue);
  background: #e9f4fd;
}

.reveal .solar-callout.green {
  border-left-color: var(--solar-green);
  background: #e8f4ee;
}

.reveal .solar-callout.red {
  border-left-color: var(--solar-red);
  background: #f8edee;
  color: var(--solar-red);
}

html[data-clean-theme="dark"] .reveal .solar-callout {
  border-left-color: #f2b84b;
  background: rgba(242, 184, 75, 0.18);
  color: #f3f6fb;
}

html[data-clean-theme="dark"] .reveal .solar-callout.blue {
  border-left-color: #6ba7ff;
  background: rgba(61, 141, 255, 0.18);
}

html[data-clean-theme="dark"] .reveal .solar-callout.green {
  border-left-color: #69c397;
  background: rgba(85, 169, 132, 0.2);
}

html[data-clean-theme="dark"] .reveal .solar-callout.red {
  border-left-color: #ff8f92;
  background: rgba(219, 94, 97, 0.18);
  color: #ffd3d4;
}

.reveal .roof-choice {
  min-height: 9.2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.7em 1em;
  border: 1px solid #c4c9cf;
  border-radius: 12px;
  background: var(--solar-panel);
  text-align: center;
}

.reveal .roof-heading {
  margin: 0 0 0.55em;
  color: var(--solar-ink);
  font-size: 1.18em;
}

.reveal .ladder {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35em;
  align-items: start;
  margin-top: 1.3em;
  font-size: 0.66em;
}

.reveal .ladder-step {
  position: relative;
  text-align: center;
  padding: 0.6em 0.25em;
}

.reveal .ladder-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.43em;
  top: 0.7em;
  color: var(--solar-blue);
  font-size: 1.45em;
  font-weight: 700;
}

.reveal .ladder-step strong {
  display: block;
  min-height: 2.7em;
  color: var(--solar-ink);
}

.reveal .ladder-step span {
  display: block;
  margin-top: 0.55em;
  color: var(--solar-muted);
}

.reveal .benchmark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0.9em 0 0.7em;
}

.reveal .benchmark-cell {
  min-height: 7.4em;
  padding: 0.35em 0.7em;
  border-left: 2px solid #c4c9cf;
  text-align: left;
}

.reveal .benchmark-cell.technical { border-top: 5px solid var(--solar-blue); }

.reveal .benchmark-cell.private { border-top: 5px solid var(--solar-gold); }
.reveal .benchmark-cell.social { border-top: 5px solid var(--solar-red); }
.reveal .benchmark-cell.observed { border-top: 5px solid var(--solar-green); }

.reveal .benchmark-kicker {
  display: block;
  margin-bottom: 0.55em;
  color: var(--solar-blue);
  font-size: 0.56em;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.reveal .benchmark-cell.private .benchmark-kicker { color: #9a6a0d; }
.reveal .benchmark-cell.social .benchmark-kicker { color: var(--solar-red); }
.reveal .benchmark-cell.observed .benchmark-kicker { color: var(--solar-green); }

.reveal .benchmark-cell > strong {
  display: block;
  min-height: 3.4em;
  font-size: 0.8em;
  line-height: 1.18;
}

.reveal .benchmark-cell p {
  min-height: 3em;
  margin: 0.35em 0 0.45em;
  color: var(--solar-muted);
  font-size: 0.62em;
  line-height: 1.25;
}

.reveal .benchmark-cell small {
  color: var(--solar-ink);
  font-size: 0.55em;
  font-weight: 750;
}

.reveal .gap-definitions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55em;
  padding-top: 0.6em;
  border-top: 2px solid #c4c9cf;
  text-align: center;
  font-size: 0.64em;
}

.reveal .gap-definitions strong,
.reveal .gap-definitions span {
  display: block;
}

.reveal .gap-definitions span {
  margin-top: 0.2em;
  color: var(--solar-muted);
}

.reveal .diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65em 1em;
  margin-top: 0.75em;
}

.reveal .diagnosis-item {
  min-height: 6.1em;
  padding: 0.35em 0.7em 0.4em;
  border-left: 7px solid var(--solar-blue);
  background: linear-gradient(90deg, #e9f4fd 0%, rgba(233, 244, 253, 0) 82%);
  text-align: left;
}

.reveal .diagnosis-item.rational {
  border-left-color: var(--solar-gold);
  background: linear-gradient(90deg, #fff5dd 0%, rgba(255, 245, 221, 0) 82%);
}

.reveal .diagnosis-item.market {
  border-left-color: var(--solar-red);
  background: linear-gradient(90deg, #f8edee 0%, rgba(248, 237, 238, 0) 82%);
}

.reveal .diagnosis-item.behavior {
  border-left-color: var(--solar-green);
  background: linear-gradient(90deg, #e8f4ee 0%, rgba(232, 244, 238, 0) 82%);
}

.reveal .diagnosis-item > span {
  display: block;
  margin-bottom: 0.22em;
  color: var(--solar-blue);
  font-size: 0.56em;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.reveal .diagnosis-item.rational > span { color: #9a6a0d; }
.reveal .diagnosis-item.market > span { color: var(--solar-red); }
.reveal .diagnosis-item.behavior > span { color: var(--solar-green); }

.reveal .diagnosis-item > strong {
  display: block;
  font-size: 0.76em;
  line-height: 1.2;
}

.reveal .diagnosis-item p {
  margin: 0.25em 0 0.2em;
  font-size: 0.63em;
  line-height: 1.25;
}

.reveal .diagnosis-item small {
  display: block;
  color: var(--solar-muted);
  font-size: 0.52em;
  line-height: 1.25;
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item {
  background: linear-gradient(90deg, rgba(61, 141, 255, 0.22) 0%, rgba(61, 141, 255, 0.03) 82%);
  color: #f3f6fb;
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item.rational {
  background: linear-gradient(90deg, rgba(242, 184, 75, 0.22) 0%, rgba(242, 184, 75, 0.03) 82%);
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item.market {
  background: linear-gradient(90deg, rgba(219, 94, 97, 0.22) 0%, rgba(219, 94, 97, 0.03) 82%);
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item.behavior {
  background: linear-gradient(90deg, rgba(85, 169, 132, 0.24) 0%, rgba(85, 169, 132, 0.03) 82%);
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item > span {
  color: #8fc0ff;
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item.rational > span {
  color: #ffd174;
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item.market > span {
  color: #ff9a9c;
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item.behavior > span {
  color: #83d5ad;
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item > strong,
html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item p {
  color: #f3f6fb;
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .diagnosis-item small {
  color: #c2ccda;
}

html[data-clean-theme="dark"] .reveal .gap-diagnosis-slide .solar-callout {
  border-left-color: #f2b84b;
  background: rgba(242, 184, 75, 0.18);
  color: #f3f6fb;
}

.reveal .funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42em;
  margin-top: 0.65em;
}

.reveal .funnel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 0.42em 0.9em;
  border: 1px solid #c4c9cf;
  border-radius: 9px;
  background: var(--solar-panel);
  color: var(--solar-ink);
  font-size: 0.84em;
}

.reveal .funnel-row strong {
  font-size: 1.35em;
}

.reveal .funnel-row:nth-child(2) {
  width: 82%;
  background: #e9f4fd;
}

.reveal .funnel-row:nth-child(3) {
  width: 60%;
  background: #e8f4ee;
}

.reveal .funnel-row:nth-child(4) {
  width: 43%;
  background: #fff5dd;
}

.reveal .funnel-row:first-child {
  width: 100%;
}

.reveal .match-line {
  position: relative;
  height: 8.4em;
  margin: 1.3em 8% 0.2em;
}

.reveal .match-line::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 2.6em;
  height: 4px;
  background: #b8bcc4;
}

html[data-clean-theme="dark"] .reveal .match-line::before {
  background: #8290a3;
}

.reveal .match-point {
  position: absolute;
  top: 1.95em;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  transform: translateX(-50%);
}

.reveal .match-point.input { left: 8%; background: var(--solar-blue); }
.reveal .match-point.valid { left: 42%; background: var(--solar-green); }
.reveal .match-point.invalid { left: 91%; background: var(--solar-red); }

.reveal .match-label {
  position: absolute;
  top: 5.35em;
  width: 11em;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.72em;
  font-weight: 700;
}

.reveal .match-label.input { left: 8%; color: var(--solar-blue); }
.reveal .match-label.valid { left: 42%; color: var(--solar-green); }
.reveal .match-label.invalid { left: 91%; color: var(--solar-red); }

html[data-clean-theme="dark"] .reveal .match-label.input { color: #8fc0ff; }
html[data-clean-theme="dark"] .reveal .match-label.valid { color: #83d5ad; }
html[data-clean-theme="dark"] .reveal .match-label.invalid { color: #ff9a9c; }

.reveal .match-distance {
  position: absolute;
  top: 0.45em;
  transform: translateX(-50%);
  font-size: 0.72em;
  font-weight: 700;
}

.reveal .match-distance.valid { left: 25%; color: var(--solar-green); }
.reveal .match-distance.invalid { left: 66%; color: var(--solar-red); }

html[data-clean-theme="dark"] .reveal .match-distance.valid { color: #83d5ad; }
html[data-clean-theme="dark"] .reveal .match-distance.invalid { color: #ff9a9c; }

.reveal .metro-legend {
  display: flex;
  justify-content: flex-end;
  gap: 1.25em;
  margin: -0.2em 3.5em 0.2em 0;
  font-size: 0.52em;
  font-weight: 700;
}

.reveal .metro-legend .found { color: var(--solar-blue); }
.reveal .metro-legend .valid { color: var(--solar-green); }

.reveal .metro-chart {
  font-size: 0.48em;
  line-height: 1;
}

.reveal .metro-row {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 0.65em;
  align-items: center;
  margin-bottom: 0.34em;
}

.reveal .metro-name {
  text-align: right;
}

.reveal .metro-row.emphasis .metro-name {
  font-weight: 700;
}

.reveal .metro-bars {
  display: grid;
  gap: 0.18em;
}

.reveal .metro-bar {
  position: relative;
  min-width: 1.4em;
  height: 0.56em;
}

.reveal .metro-bar.found { background: var(--solar-blue); }
.reveal .metro-bar.valid { background: var(--solar-green); }

.reveal .metro-bar span {
  position: absolute;
  left: calc(100% + 0.45em);
  top: -0.05em;
  white-space: nowrap;
  color: inherit;
  font-weight: 700;
}

.reveal .tail-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  margin: 1.6em 8% 0.7em;
  text-align: center;
}

.reveal .tail-summary strong {
  display: block;
  font-size: 2em;
}

.reveal .tail-summary .median { color: var(--solar-green); }
.reveal .tail-summary .mean { color: var(--solar-blue); }
.reveal .tail-summary .max { color: var(--solar-red); }

.reveal .tail-track {
  position: relative;
  height: 2.4em;
  margin: 0 9%;
  border-top: 4px solid var(--solar-ink);
}

.reveal .tail-track span {
  position: absolute;
  top: -0.65em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
}

.reveal .tail-track .median { left: 32%; background: var(--solar-green); }
.reveal .tail-track .mean { left: 40%; background: var(--solar-blue); }
.reveal .tail-track .max { left: 83%; background: var(--solar-red); }

.reveal .tail-axis-labels {
  display: flex;
  justify-content: space-between;
  margin: -1.4em 8% 0;
  color: var(--solar-muted);
  font-size: 0.55em;
}

.reveal .audit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75em;
  margin-top: 0.8em;
}

.reveal .audit-card {
  min-height: 8.4em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.65em;
  border: 1px solid #c4c9cf;
  border-radius: 12px;
  text-align: center;
}

.reveal .audit-card:nth-child(1) { background: #e9f4fd; }
.reveal .audit-card:nth-child(2) { background: #f8edee; }
.reveal .audit-card:nth-child(3) { background: #fff5dd; }

.reveal .audit-card strong {
  display: block;
  margin: 0.35em 0;
  font-size: 1.9em;
}

.reveal .project-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45em;
  margin-top: 1em;
  text-align: center;
  font-size: 0.68em;
}

.reveal .project-step {
  position: relative;
}

.reveal .project-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.45em;
  top: 0.2em;
  color: var(--solar-gold);
  font-size: 1.5em;
}

.reveal .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  margin: 0 auto 0.65em;
  border-radius: 50%;
  background: var(--solar-ink);
  color: #ffffff;
  font-size: 1.2em;
  font-weight: 700;
}

.reveal .project-step:last-child .step-number {
  background: var(--solar-green);
}

.reveal .project-step b {
  display: block;
  margin-bottom: 0.4em;
  color: var(--solar-blue);
}

.reveal .dark-slide,
.reveal .dark-slide h2,
.reveal .dark-slide h3,
.reveal .dark-slide p,
.reveal .dark-slide li {
  color: #ffffff;
}

.reveal .dark-slide .exit-thesis {
  margin-top: 1.1em;
  color: #55a984;
  font-weight: 700;
  text-align: center;
}

.reveal .evidence-table table,
.reveal .grain-table table {
  font-size: 0.62em;
}

.reveal .literature-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 2fr;
  gap: 0.8em;
  align-items: start;
  padding: 0.45em 0;
  border-bottom: 1px solid #c4c9cf;
  font-size: 0.62em;
}

.reveal .literature-row:last-child {
  border-bottom: 0;
}

.reveal .literature-row a {
  font-weight: 700;
}

.reveal .source-mini {
  margin-top: 0.7em;
  color: var(--solar-muted);
  font-size: 0.48em;
  text-align: right;
}

.reveal .ny-potential-map-slide .columns {
  align-items: center;
  gap: 0.8em;
}

.reveal .ny-potential-map-slide .column {
  min-width: 0;
}

.reveal .ny-map-frame {
  overflow: hidden;
  padding: 0.18em;
  border: 1px solid #c4c9cf;
  border-radius: 12px;
  background: #f8fafc;
}

.reveal .ny-map-frame p {
  margin: 0;
}

.reveal .ny-map-frame img {
  display: block;
  width: 100%;
  max-height: 10.2em;
  margin: 0;
  object-fit: contain;
}

.reveal .map-compare {
  display: grid;
  gap: 0.65em;
}

.reveal .map-compare-card {
  padding: 0.7em 0.78em;
  border: 1px solid #c4c9cf;
  border-top: 6px solid var(--solar-blue);
  border-radius: 10px;
  background: #f3f5f6;
  color: var(--solar-ink);
  text-align: left;
}

.reveal .map-compare-card.project {
  border-top-color: var(--solar-gold);
}

.reveal .map-compare-card span {
  display: block;
  margin-bottom: 0.25em;
  color: var(--solar-muted);
  font-size: 0.47em;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.reveal .map-compare-card strong {
  display: block;
  margin-bottom: 0.18em;
  font-size: 0.9em;
}

.reveal .map-compare-card p {
  margin: 0;
  font-size: 0.55em;
  line-height: 1.35;
}

.reveal .ny-potential-map-slide .source-mini {
  margin: 0.25em 0 0;
}

.reveal .ny-potential-map-slide .solar-callout {
  margin-top: 0.35em;
  font-size: 0.72em;
}

html[data-clean-theme="dark"] .reveal .ny-map-frame {
  border-color: rgba(255, 255, 255, 0.28);
  background: #f8fafc;
}

html[data-clean-theme="dark"] .reveal .map-compare-card {
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: #6ba7ff;
  background: rgba(255, 255, 255, 0.08);
  color: #f3f6fb;
}

html[data-clean-theme="dark"] .reveal .map-compare-card.project {
  border-top-color: #f2b84b;
}

html[data-clean-theme="dark"] .reveal .map-compare-card span,
html[data-clean-theme="dark"] .reveal .ny-potential-map-slide .source-mini {
  color: #c2ccda;
}

.reveal .metro-code-slide ol {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  margin-left: 1.15em;
}

.reveal .metro-code-slide ol code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.reveal .metro-code-slide .data-location-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1.35fr;
  gap: 0.8em;
  align-items: center;
  margin-top: 0.45em;
  padding-top: 0.45em;
  border-top: 1px solid #c4c9cf;
  color: var(--solar-muted);
  font-size: 0.47em;
  line-height: 1.3;
}

.reveal .metro-code-slide .data-location-strip > strong {
  color: var(--solar-blue);
  font-size: 1.05em;
}

.reveal .metro-code-slide .data-location-strip span {
  display: block;
  color: var(--solar-ink);
  font-weight: 800;
  letter-spacing: 0.025em;
}

.reveal .metro-code-slide .data-location-strip code {
  white-space: normal;
  overflow-wrap: anywhere;
}

html[data-clean-theme="dark"] .reveal .metro-code-slide .data-location-strip {
  border-top-color: rgba(255, 255, 255, 0.24);
  color: #c2ccda;
}

html[data-clean-theme="dark"] .reveal .metro-code-slide .data-location-strip span {
  color: #f3f6fb;
}

.reveal .grain-slide div.sourceCode,
.reveal .metro-code-slide div.sourceCode {
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .reveal .ladder,
  .reveal .audit-cards,
  .reveal .project-steps {
    gap: 0.2em;
  }
}
