*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  margin: 0;
}

body.reveal-viewport {
  padding: 30px;
  background: #fff;
  background-color: #fff;
}

.reveal-viewport.has-dark-background .line,
.reveal.has-dark-background .line,
.reveal:has(section.present[data-background-color="black"]) .line {
  display: none;
}

@media (max-width: 840px) {
  body.reveal-viewport {
    padding: 15px;
  }
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  text-transform: none;
}

section[data-background-color="black"] h1,
section[data-background-color="black"] h2,
section[data-background-color="black"] h3,
section[data-background-color="black"] p {
  color: #fff;
}

section[data-background-color="black"] h3.subtitle-muted {
  color: #ccc;
  font-weight: 400;
}

.topic-entry {
  margin-top: 28px;
}

.topic-entry p {
  margin: 0;
}

input#topic {
  width: 100%;
  max-width: 520px;
  font-size: 32px;
  padding: 10px 16px;
  border: none;
  background: #fff;
  color: #000;
  text-align: center;
  font-family: inherit;
  outline: none;
}

.reveal p.entry-hint {
  font-size: 16px;
  color: #aaa;
  margin-top: 16px;
}

a.settingsTrigger {
  z-index: 1000;
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 26px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  text-decoration: none;
}

a.settingsTrigger:hover {
  color: #ff4081;
}

.mic-indicator {
  z-index: 1000;
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 10px;
  border-radius: 3px;
}

.mic-indicator.active::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 6px;
  vertical-align: middle;
}

/* Settings Modal */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.15s, opacity 0.2s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2001;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-container {
  position: relative;
  z-index: 2002;
  width: 320px;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  padding: 22px 20px;
  background: #000;
  border: 2px solid #fff;
  color: #fff;
  text-align: center;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.modal-content h1 {
  font-size: 32px;
  color: #fff;
  margin: 0 0 6px 0;
}

.modal-content label {
  font-size: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-content label.clickable {
  cursor: pointer;
}

.modal-content input.number-input {
  width: 4.2em;
  padding: 4px 6px;
  font-size: 16px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  outline: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

/* Generated Slide Layouts (sized cleanly for 1120x680 canvas inside 1280x800) */
.slide-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 20px;
}

.reveal .big-stat-number {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 128px;
  font-weight: 700;
  line-height: 1.05;
  color: #ff4081;
  margin: 0 0 18px 0;
}

.reveal .big-stat-claim {
  font-size: 34px;
  line-height: 1.3;
  color: #141414;
  max-width: 860px;
  margin: 0 auto 18px auto;
}

.reveal .slide-note {
  font-size: 18px;
  color: #666;
  margin-top: 12px;
}

section[data-background-color="black"] .slide-note {
  color: #aaa;
}

.reveal blockquote.clean-quote {
  width: 86%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 36px;
  font-size: 36px;
  line-height: 1.38;
  background: #fafafa;
  border-left: 6px solid #ff4081;
  box-shadow: none;
  color: #141414;
  text-align: left;
}

.reveal blockquote.clean-quote cite {
  display: block;
  margin-top: 18px;
  font-size: 20px;
  font-style: normal;
  color: #555;
  text-align: right;
}

.donut-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  max-width: 920px;
  margin: 16px auto 0 auto;
}

.donut-legend {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 23px;
  color: #222;
}

.donut-legend li:last-child {
  border-bottom: none;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-pct {
  margin-left: auto;
  font-weight: 700;
  color: #141414;
}

.reveal table.compare-table {
  width: 100%;
  max-width: 920px;
  margin: 16px auto 0 auto;
  font-size: 24px;
}

.reveal table.compare-table th {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 24px;
  padding: 12px 18px;
  border-bottom: 2px solid #141414;
  color: #141414;
}

.reveal table.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  line-height: 1.35;
}

.reveal ol.takeaway-list {
  max-width: 860px;
  margin: 18px auto 0 auto;
  font-size: 27px;
  line-height: 1.45;
}

.reveal ol.takeaway-list li {
  margin-bottom: 14px;
}
