:root {
  --gold: #f1b300;
  --black: #191919;
  --ink: #191919;
  --muted: #555;
  --white: #ffffff;
}

body.slides-page {
  background: #ffffff;
}

.slides-home {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
}

.slides-home a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  border: 1px solid rgba(25, 25, 25, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.slides-home a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.reveal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
}

.reveal .slides {
  text-align: left;
}

.reveal h1,
.reveal h2 {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.reveal h1 {
  font-size: 2.8rem;
  line-height: 1.02;
}

.reveal h2 {
  font-size: 2.2rem;
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

.reveal p,
.reveal li {
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--muted);
}

.reveal ul,
.reveal ol {
  display: block;
  margin-left: 1.2rem;
}

.reveal .slides section {
  padding-top: 0.4rem;
}

.reveal li + li {
  margin-top: 0.5rem;
}

.slide-kicker {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.slide-lede {
  max-width: 36rem;
}

.slide-callout {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-left: 6px solid var(--gold);
  background: rgba(241, 179, 0, 0.1);
  color: var(--ink);
  font-weight: 700;
}

.section-heading-with-logo {
  display: block;
}

.section-heading-with-logo h2 {
  margin-bottom: 0;
  max-width: calc(100% - 8.5rem);
}

.logo-corner-slide {
  position: relative;
}

.section-logo {
  position: absolute;
  top: 0.2rem;
  right: 0;
  width: 7rem;
  max-width: 22%;
  height: auto;
  object-fit: contain;
}

.section-logo-vandalizer {
  width: 9.8rem;
  max-width: 30%;
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.slide-grid.tight {
  gap: 0.8rem;
}

.slide-grid.single {
  grid-template-columns: 1fr;
}

.slide-card {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(25, 25, 25, 0.04);
  border: 1px solid rgba(25, 25, 25, 0.1);
}

.slide-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.12;
  color: var(--ink);
}

.slide-card p,
.slide-card li {
  font-size: 1rem;
  line-height: 1.42;
}

.slide-card ul,
.slide-card ol {
  margin-top: 0.6rem;
}

.slide-card.dark {
  background: #f3f4f6;
  border-color: rgba(25, 25, 25, 0.14);
}

.slide-card.dark h3,
.slide-card.dark p,
.slide-card.dark li {
  color: var(--ink);
}

.slide-card.accent {
  background: rgba(241, 179, 0, 0.14);
  border-color: rgba(241, 179, 0, 0.3);
}

.slide-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7300;
  font-weight: 800;
}

.slide-quote {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1.55rem;
  line-height: 1.28;
  color: var(--ink);
  font-weight: 750;
}

.slide-quote strong {
  color: #9a7300;
}

.slide-micro {
  margin-top: 0.8rem;
  font-size: 0.98rem !important;
}

.slide-note {
  margin-top: 0.75rem;
  font-size: 0.95rem !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.slide-rule {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(25, 25, 25, 0.05);
  border: 1px solid rgba(25, 25, 25, 0.1);
}

.slide-rule strong {
  color: var(--ink);
}

.slide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(241, 179, 0, 0.12);
  color: #9a7300;
  font-size: 0.92rem;
  font-weight: 700;
}

.title-slide h1,
.title-slide p {
  color: var(--ink);
}

.title-slide {
  position: relative;
  overflow: hidden;
  padding: 2rem !important;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(241, 179, 0, 0.33), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(25, 25, 25, 0.08), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border: 1px solid rgba(25, 25, 25, 0.08);
  box-shadow: 0 28px 55px rgba(25, 25, 25, 0.11);
}

.title-slide::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 1px solid rgba(25, 25, 25, 0.12);
}

.title-slide .slide-kicker {
  margin-bottom: 1.3rem;
}

.title-slide h1 {
  max-width: 52rem;
  line-height: 1.06;
}

.title-slide .slide-lede {
  margin-top: 1.4rem;
  font-size: 1.2rem;
  color: rgba(25, 25, 25, 0.86);
  font-weight: 600;
}

.focus-title-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.focus-title-slide h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.preview-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
  position: relative;
}

.preview-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(25, 25, 25, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(25, 25, 25, 0.04));
  min-height: 10.7rem;
}

.preview-step::after {
  content: "→";
  position: absolute;
  right: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b68700;
  font-weight: 800;
  font-size: 1rem;
}

.preview-step:last-child::after {
  content: none;
}

.preview-icon {
  margin: 0;
  font-size: 1.45rem !important;
}

.preview-part-number {
  margin: 0.4rem 0 0;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7300 !important;
  font-weight: 800;
}

.preview-part-title {
  margin: 0.32rem 0 0.25rem;
  font-size: 1rem;
  line-height: 1.2;
}

.preview-time {
  margin-top: auto !important;
  padding-top: 0.55rem;
  font-size: 0.9rem;
  color: #676767;
}

.preview-step p {
  margin: 0;
}

.slide-kicker-dark,
.slide-dark {
  color: var(--black) !important;
}

.reveal .progress {
  color: var(--gold);
}

.reveal .controls {
  color: var(--gold);
}

@media (max-width: 720px) {
  .slides-home {
    top: 0.5rem;
    left: 0.5rem;
  }

  .slides-home a {
    min-height: 2.2rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

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

  .section-heading-with-logo {
    display: block;
  }

  .section-heading-with-logo h2 {
    max-width: calc(100% - 6rem);
  }

  .section-logo {
    top: 0.1rem;
    width: 5.2rem;
    max-width: 30%;
  }
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.process-flow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.85rem;
}

.process-flow.compact {
  margin-top: 0.9rem;
}

.flow-node {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.06);
  border: 1px solid rgba(25, 25, 25, 0.14);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.flow-arrow {
  color: #9a7300;
  font-size: 1rem;
  font-weight: 800;
}

.shift-header {
  margin: 0.55rem 0 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
}

.shift-header-band {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
}

.shift-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.2;
}

.shift-header h3 span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: rgba(25, 25, 25, 0.8);
}

.shift-chip {
  margin: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff !important;
  background: rgba(25, 25, 25, 0.78);
  white-space: nowrap;
}

.shift-heading-group {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.shift-subheading {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: rgba(25, 25, 25, 0.8) !important;
}

.shift-header-proactive {
  background: linear-gradient(90deg, rgba(241, 179, 0, 0.24), rgba(241, 179, 0, 0.07));
  border-color: rgba(241, 179, 0, 0.35);
}

.shift-header-reactive {
  background: linear-gradient(90deg, rgba(25, 25, 25, 0.1), rgba(25, 25, 25, 0.03));
  border-color: rgba(25, 25, 25, 0.2);
}

.shift-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.shift-card {
  position: relative;
  min-height: 10rem;
  padding-top: 1.6rem;
}

.shift-card-icon {
  position: absolute;
  top: -0.5rem;
  right: -0.35rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 25, 25, 0.84);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 16px rgba(25, 25, 25, 0.24);
}

.community-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.community-card {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.community-card h3,
.community-card p {
  text-align: center;
}

.community-card-icon-image {
  margin-top: auto;
  width: 12.0rem;
  height: auto;
  object-fit: contain;
}

.community-card-icon {
  margin-top: auto;
  font-size: 3.2rem;
  line-height: 1;
}

.slide-band {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(241, 179, 0, 0.12);
  border: 1px solid rgba(241, 179, 0, 0.34);
}

.slide-band-subtitle {
  margin: 0 0 0.8rem;
  font-weight: 700;
  color: var(--ink) !important;
}

.slide-band-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.slide-band-list li {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.slide-band-list li + li {
  margin-top: 0.5rem;
}

.before-after-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
}

.before-after-card {
  min-height: 8.5rem;
}

.before-after-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(25, 25, 25, 0.75) !important;
}

.before-after-arrow {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #9a7300 !important;
}

.true-principle-card {
  margin-top: 0.9rem;
  border-color: rgba(241, 179, 0, 0.45) !important;
  background: rgba(241, 179, 0, 0.12) !important;
}

@media (max-width: 720px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .community-card-grid {
    grid-template-columns: 1fr;
  }

  .shift-header-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .shift-card-grid {
    grid-template-columns: 1fr;
  }

  .before-after-flow {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .before-after-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .preview-flow {
    grid-template-columns: 1fr;
  }

  .preview-step::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -0.8rem;
    transform: translateX(50%);
  }
}
