/* Kybernaut-branded reveal.js styles for Checkout Summit talk
 * Palette and typography from kybernaut-style-guide.md
 */

:root {
  /* Backgrounds */
  --background-color: #FFFFFF;
  --section-divider-bg: #F2FEF1;   /* mint white */
  --bg-mint: #F2FEF1;
  --bg-gray: #F9FAFB;

  /* Typography — Kybernaut system stack, no web-font load */
  --heading-font: -apple-system, BlinkMacSystemFont, "Avenir Next", avenir, "Segoe UI", "Helvetica Neue", helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Avenir Next", avenir, "Segoe UI", "Helvetica Neue", helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  --base-font-size: 32px;
  --text-size: 18pt;
  --h1-size: 48pt;
  --h2-size: 34pt;
  --h3-size: 22pt;
  --footnote-size: 12pt;

  /* Brand colors */
  --primary-color: #0252AB;       /* Kybernaut Blue */
  --secondary-color: #212B77;     /* Dark Navy */
  --text-color: #000000;
  --text-color-secondary: #353535;
  --muted-color:rgb(91, 90, 90);
  --line-color: #212B77;
  --link-color: #3858E9;

  /* Layout */
  --slide-padding: 72px;
  --slide-padding-top: 56px;
  --content-gap: 28px;

  /* Sharp corners per brand (images, cards). Pill radius reserved for buttons/callouts. */
  --box-radius: 0px;
  --pill-radius: 32px;
}

.reveal {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
}

.reveal strong,
.reveal b { font-weight: 700; }

.reveal-viewport { background-color: var(--background-color); }

.reveal-viewport.is-section-divider .slide-background.present {
  background-color: var(--section-divider-bg) !important;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: var(--heading-font);
  text-transform: none;
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.reveal h1 { font-size: var(--h1-size); }
.reveal h2 { font-size: var(--h2-size); margin-bottom: 0; }
.reveal h3 { font-size: var(--h3-size); }

.reveal p,
.reveal li,
.reveal td,
.reveal th,
.reveal blockquote {
  font-size: var(--text-size);
  color: var(--text-color-secondary);
  line-height: 1.55;
}

.reveal a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.reveal a:hover { filter: brightness(0.85); }

/* Lists — tight round markers in brand blue */
.reveal ul {
  list-style: none;
  padding-left: 0;
  margin: 14px 0;
}
.reveal ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.reveal ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}
.reveal ul ul li::before {
  background: var(--muted-color);
  width: 6px; height: 6px;
  top: 0.65em;
}

.reveal ol {
  padding-left: 24px;
  margin: 14px 0;
}
.reveal ol li {
  padding-left: 6px;
  margin-bottom: 10px;
}
.reveal ol li::marker {
  color: var(--primary-color);
  font-weight: 700;
}

.reveal blockquote p { font-size: inherit; }

/* Slide layout */
.reveal .slides section {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: var(--slide-padding-top) var(--slide-padding) var(--slide-padding) var(--slide-padding) !important;
  box-sizing: border-box;
  text-align: left;
}
.reveal .slides section.stack { padding: 0 !important; }

.reveal .slides section > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--content-gap);
  text-align: left;
  min-height: 0;
}

.reveal .slides section > .footnote {
  position: absolute;
  bottom: 18px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  font-size: var(--footnote-size);
  color: var(--muted-color);
}

/* Section dividers */
.reveal .slides section.section-divider {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  padding: 80px !important;
}
.reveal .slides section.section-divider h1 {
  font-size: 56pt;
  text-align: center;
}
.reveal .slides section.section-divider h2 {
  font-size: 44pt;
  text-align: center;
}
.reveal .slides section.section-divider p {
  font-size: 22pt;
  color: var(--text-color-secondary);
  max-width: 900px;
}

/* Text utilities */
.text-lg  { font-size: 20pt !important; }
.text-xl  { font-size: 24pt !important; }
.text-2xl { font-size: 28pt !important; }
.text-3xl { font-size: 34pt !important; }
.text-4xl { font-size: 42pt !important; }
.text-muted { color: var(--muted-color) !important; }
.text-secondary { color: var(--text-color-secondary) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-navy { color: var(--secondary-color) !important; }
.text-white { color: #FFFFFF !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.12em; font-size: 14pt !important; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13pt;
  color: var(--primary-color);
  font-weight: 500;
  opacity: 0.75;
  margin-bottom: 6px;
}

/* Blockquotes */
.reveal blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 22px;
  margin: 18px 0;
  font-style: normal;
  background: none;
  box-shadow: none;
  width: 100%;
  max-width: none;
  font-size: 26pt;
  color: var(--text-color);
  line-height: 1.35;
}
.reveal blockquote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 16pt;
  color: var(--muted-color);
}

/* Code */
.reveal pre, .reveal code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.reveal pre {
  width: 100%;
  box-shadow: none;
  background: #F9FAFB;
  border-left: 4px solid var(--primary-color);
  padding: 18px 22px;
  font-size: 15pt;
  line-height: 1.45;
  color: #000000;
}
.reveal p code, .reveal li code {
  background: #F9FAFB;
  padding: 2px 8px;
  font-size: 0.92em;
  color: var(--secondary-color);
  border-radius: 0;
}

/* Section backgrounds (apply via data-background-color) */
.bg-mint  { background: var(--bg-mint) !important; }
.bg-gray  { background: var(--bg-gray) !important; }
.bg-white { background: #FFFFFF !important; }

/* Iceberg gradient — signature brand gradient from style guide */
.iceberg-gradient {
  background: linear-gradient(to left bottom, #212B77, #0067A0, #389DB1, #9CCEC4, #F2FEF1) !important;
}
.iceberg-gradient h1,
.iceberg-gradient h2,
.iceberg-gradient p,
.iceberg-gradient li {
  color: #FFFFFF;
}
.iceberg-gradient .eyebrow { color: #9CCEC4; }

/* Layer eyebrow (band-label) */
.layer-label {
  display: inline-block;
  align-self: flex-start;   /* prevent flex column stretch */
  font-size: 13pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 16px;
  border-radius: var(--pill-radius);
  background: var(--primary-color);
  color: #FFFFFF;
  margin-bottom: 16px;
}
.layer-label.above { background: var(--bg-gray); color: var(--text-color); border: 1px solid var(--muted-color); }
.layer-label.below { background: var(--primary-color); color: #FFFFFF; }
.layer-label.deep  { background: var(--secondary-color); color: #FFFFFF; }

/* Iceberg SVG hero layout helper */
.iceberg-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  height: 100%;
}
.iceberg-hero .iceberg-text h1 { font-size: 60pt; line-height: 1.05; margin: 0 0 18px; }
.iceberg-hero .iceberg-text p { font-size: 22pt; color: #F2FEF1; }

/* Iceberg overview slide (slide 2) — SVG + labeled layers */
.iceberg-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  flex: 1;
}
.iceberg-viz svg { width: 100%; height: auto; max-height: 520px; }

/* Iceberg overview slide: wide SVG with iceberg + connector lines + labels */
.iceberg-full {
  display: flex;
  align-items: center;
  justify-content: center;
}
.iceberg-hero {
  width: 100%;
  height: auto;
  max-height: 580px;
  display: block;
}

/* Logo-mess layout — deliberately cluttered */
.logo-mess {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 10px;
}
.logo-mess .logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  font-size: 15pt;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  min-height: 56px;
  transform: rotate(var(--r, 0deg));
}
.logo-mess .logo-chip.primary { background: var(--primary-color); color: #FFFFFF; border-color: var(--primary-color); }
.logo-mess .logo-chip.navy { background: var(--secondary-color); color: #FFFFFF; border-color: var(--secondary-color); }
.logo-mess .logo-chip.mint { background: var(--bg-mint); }

/* Tools slide — logo cloud (deliberately crowded mess) */
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 28px 42px;
  padding: 0 40px;
  height: 100%;
  min-height: 460px;
}
.logo-cloud img {
  height: calc(88px * var(--s, 1));
  width: auto;
  transform: rotate(var(--r, 0deg));
  filter: brightness(0);
  opacity: 0.88;
}
.logo-cloud .logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: #FFFFFF;
  border: 2px solid #212B77;
  font-size: 20pt;
  font-weight: 700;
  color: #000;
  transform: rotate(var(--r, 0deg));
  border-radius: 4px;
}
.logo-cloud .logo-chip.primary { background: var(--primary-color); color: #FFFFFF; border-color: var(--primary-color); }
.logo-cloud .logo-chip.navy { background: var(--secondary-color); color: #FFFFFF; border-color: var(--secondary-color); }
.logo-cloud .logo-chip.mint { background: var(--bg-mint); border-color: #9CCEC4; }

.tools-kicker {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 22pt;
  font-weight: 700;
  color: #000;
  margin: 0;
}

/* Competencies slide — single bold list */
.competency-single {
  margin: 10px 0 0;
  padding-left: 26px;
}
.competency-single li {
  font-size: 28pt;
  font-weight: 400;
  color: #000;
  line-height: 1.55;
}
.reveal p.data-lead {
  margin: 14px 0 0;
  font-size: 32pt;
  font-weight: 300;
  color: #000;
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.reveal p.data-lead span {
  font-weight: 800;
  color: var(--primary-color);
}

/* Mini navigation iceberg (top-right of deep-dive slides) */
.nav-iceberg {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 5;
}
.nav-iceberg svg { width: 100%; height: auto; }
.nav-iceberg .nav-label {
  margin: 0;
  font-size: 13pt;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.5px;
}
/* Dim the inactive pieces for each layer */
.nav-iceberg[data-active="tools"] .nav-upper,
.nav-iceberg[data-active="tools"] .nav-lower { opacity: 0.22; }
.nav-iceberg[data-active="competencies"] .nav-tip,
.nav-iceberg[data-active="competencies"] .nav-lower { opacity: 0.22; }
.nav-iceberg[data-active="data"] .nav-tip,
.nav-iceberg[data-active="data"] .nav-upper { opacity: 0.22; }

/* Framework grouped lists (slide 14) — poster style */
.framework-grouped {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 56px;
}
.fg-col { display: flex; flex-direction: column; gap: 14px; }
.fg-group { }
.fg-head {
  font-size: 10pt;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #6b7280;
  margin: 0 0 4px;
  padding-bottom: 0;
  border-bottom: none;
}
.fg-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.fg-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0;
  line-height: 1.35;
  font-size: 13pt;
  font-weight: 300;
  color: var(--text-color-secondary);
}
.fg-list li::before { content: none; }
.fg-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(2, 82, 171, 0.35);
}
.fg-list a:hover { color: var(--primary-color); }

/* Framework card grid */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.framework-card {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  padding: 14px 16px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.08);
}
.framework-card .fc-title {
  font-weight: 700;
  font-size: 14pt;
  color: var(--primary-color);
  margin-bottom: 4px;
}
.framework-card .fc-sub {
  font-size: 11pt;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Resource link pill (arrow →) */
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: transparent;
  border: 2px solid var(--text-color);
  border-radius: var(--pill-radius);
  color: var(--text-color);
  font-size: 15pt;
  font-weight: 600;
  margin: 4px 8px 4px 0;
}
.resource-link.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
}
.resource-link::after { content: " \2192"; }

/* Stat / callout box */
.callout {
  background: #FFFFFF;
  border-left: 6px solid var(--primary-color);
  padding: 18px 22px;
  margin: 12px 0;
}
.callout.navy { border-left-color: var(--secondary-color); }
.callout.mint { background: var(--bg-mint); }

/* Big number */
.big-number {
  font-size: 64pt;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

/* Profile chip (bio line) */
.bio-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.bio-line .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 22pt;
  flex-shrink: 0;
  overflow: hidden;
}
.bio-line .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.12);
}

/* Title slide QR */
.title-qr {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.title-qr img {
  width: 150px;
  height: 150px;
  display: block;
  background: #F2FEF1;
  padding: 4px;
}

/* Step chip (numbered flow) */
.step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18pt;
  flex-shrink: 0;
}
.step-body p { margin: 0; }
.step-body .step-title { font-weight: 700; color: var(--text-color); font-size: 18pt; margin-bottom: 4px; }

/* Two-column layout used often */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.cols-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

/* Slide accent — subtle top bar in brand blue on content slides */
/*
.reveal .slides section.brand-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--primary-color);
}
*/

/* Divider accent variants */
.reveal .slides section.divider-mint {
  background: var(--bg-mint);
}
.reveal .slides section.divider-gray {
  background: var(--bg-gray);
}

/* Progress bar color */
.reveal .progress {
  color: var(--primary-color);
}

/* Footer mini-brand */
.slide-footer {
  position: absolute;
  bottom: 22px;
  right: var(--slide-padding);
  font-size: 12pt;
  color: var(--muted-color);
  letter-spacing: 0.05em;
}

.hidden {
  display: none;
}

/* Speaker-notes button (shown only with ?speaker in URL) */
#notes-btn {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  font-family: var(--body-font);
  font-size: 13pt;
  font-weight: 600;
  color: #555;
  background: #EEEEEE;
  border: 1px solid #D0D0D0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0.85;
}

#notes-btn:hover,
#notes-btn:active {
  opacity: 1;
  background: #E4E4E4;
}