/**
 * FabrixMed brand theme for iqwyk Show — aligned with fabrixmed.com
 * Fonts: Poppins · Hero gradient · HCN palette
 */
@import url(https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap);

.reveal,
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6,
.reveal p,
.reveal li {
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

section.has-light-background,
section.has-light-background h1,
section.has-light-background h2,
section.has-light-background h3,
section.has-light-background h4,
section.has-light-background h5,
section.has-light-background h6 {
  color: #083249;
}

/*********************************************
 * GLOBAL STYLES (fabrixmed.com tokens)
 *********************************************/
:root {
  --hcn-dark-blue: #083249;
  --hcn-primary: #0e5781;
  --hcn-primary-light: #138ace;
  --hcn-accent-gold: #f4aa39;
  --fm-teal: #16353C;
  --fm-gold: #E1B65C;
  --fm-blue-soft: #8ecae6;
  --fm-text: rgba(255, 255, 255, 0.92);
  --fm-text-muted: rgba(255, 255, 255, 0.72);
  --r-background-color: var(--hcn-dark-blue);
  --r-main-font: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-main-font-size: 32px;
  --r-main-color: var(--fm-text);
  --r-block-margin: 0.5em;
  --r-heading-margin: 0 0 0.38em 0;
  --r-heading-font: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-heading-color: #ffffff;
  --r-heading-line-height: 1.22;
  --r-heading-letter-spacing: 0.02em;
  --r-heading-text-transform: none;
  --r-heading-text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  --r-heading-font-weight: 600;
  --r-heading1-text-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  --r-heading1-size: 1.95em;
  --r-heading2-size: 1.28em;
  --r-heading3-size: 1.05em;
  --r-heading4-size: 0.92em;
  --r-code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --r-link-color: var(--fm-blue-soft);
  --r-link-color-dark: var(--hcn-primary);
  --r-link-color-hover: #b8e0f5;
  --r-selection-background-color: var(--hcn-primary-light);
  --r-selection-color: #fff;
  --r-overlay-element-bg-color: 8, 50, 73;
  --r-overlay-element-fg-color: 255, 255, 255;
}

.reveal-viewport {
  background-color: var(--hcn-dark-blue);
  background-image:
    linear-gradient(135deg, rgba(8, 50, 73, 0.94) 0%, rgba(14, 87, 129, 0.9) 50%, rgba(8, 50, 73, 0.94) 100%),
    url("https://cdn.fabrixmed.com/cdn/ho/4.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  font-weight: 400;
  color: var(--r-main-color);
}

.reveal ::selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal ::-moz-selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal .slides section,
.reveal .slides section > section {
  line-height: 1.48;
  font-weight: inherit;
}

/*********************************************
 * HEADERS — match fabrixmed.com hero + sections
 *********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: var(--r-heading-margin);
  color: var(--r-heading-color);
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  line-height: var(--r-heading-line-height);
  letter-spacing: var(--r-heading-letter-spacing);
  text-transform: var(--r-heading-text-transform);
  text-shadow: var(--r-heading-text-shadow);
  word-wrap: break-word;
}

.reveal h1 {
  font-size: var(--r-heading1-size);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: var(--r-heading1-text-shadow);
}

.reveal h2 {
  font-size: var(--r-heading2-size);
  font-weight: 600;
  color: var(--fm-blue-soft);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.reveal h3 {
  font-size: var(--r-heading3-size);
  font-weight: 600;
  color: var(--hcn-accent-gold);
  text-shadow: none;
}

.reveal h4 {
  font-size: var(--r-heading4-size);
  font-weight: 600;
  color: var(--fm-gold);
  text-shadow: none;
}

/*********************************************
 * BODY CONTENT
 *********************************************/
.reveal p {
  margin: var(--r-block-margin) 0;
  line-height: 1.48;
  color: var(--fm-text-muted);
  font-weight: 500;
}

.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
  margin-bottom: 0;
}

.reveal img,
.reveal video,
.reveal iframe {
  max-width: 95%;
  max-height: 95%;
}

.reveal strong,
.reveal b {
  font-weight: 600;
  color: #ffffff;
}

.reveal em {
  font-style: italic;
}

.reveal ol,
.reveal dl,
.reveal ul {
  display: block;
  text-align: left;
  margin: 0.35em 0 0.35em 1.05em;
}

.reveal ol { list-style-type: decimal; }
.reveal ul { list-style-type: disc; }

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

.reveal li {
  margin-bottom: 0.3em;
  color: var(--fm-text);
  font-weight: 400;
}

.reveal li::marker {
  color: var(--hcn-accent-gold);
}

.reveal blockquote {
  display: block;
  width: 100%;
  margin: var(--r-block-margin) 0;
  padding: 0.7em 1em;
  font-style: normal;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--hcn-accent-gold);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  color: var(--fm-text);
}

.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
  display: block;
}

.reveal pre {
  display: block;
  width: 100%;
  margin: var(--r-block-margin) 0;
  text-align: left;
  font-size: 0.48em;
  font-family: var(--r-code-font);
  line-height: 1.35;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.reveal code {
  font-family: var(--r-code-font);
}

.reveal pre code {
  display: block;
  padding: 0.75em;
  overflow: auto;
  max-height: 400px;
}

.reveal table {
  margin: 0.5em 0;
  border-collapse: collapse;
  font-size: 0.86em;
}

.reveal table th {
  font-weight: 600;
  color: #fff;
  background: rgba(8, 50, 73, 0.55);
}

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0.35em 0.65em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.reveal small {
  display: inline-block;
  font-size: 0.65em;
  color: var(--fm-text-muted);
}

/*********************************************
 * LINKS & CHROME
 *********************************************/
.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  font-weight: 500;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
}

.reveal .controls {
  color: var(--fm-blue-soft);
}

.reveal .progress {
  background: rgba(0, 0, 0, 0.28);
  color: var(--hcn-accent-gold);
}

.reveal .progress span {
  background: var(--hcn-accent-gold);
}

.reveal .slide-number {
  color: var(--fm-text-muted);
  background: rgba(8, 50, 73, 0.65);
  font-family: var(--r-main-font);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

.reveal aside.notes {
  display: none;
}

/*********************************************
 * FABRIXMED BRAND LAYER
 *********************************************/
.reveal.fabrixmed-theme .slide-background {
  background: transparent;
}

.reveal.fabrixmed-theme .slides section {
  box-sizing: border-box;
}

.reveal.fabrixmed-theme .slides section.title-slide,
.reveal.fabrixmed-theme .slides section.fabrixmed-title-slide {
  text-align: center;
  top: 0 !important;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.reveal.fabrixmed-theme .slides section.title-slide img.fm-logo,
.reveal.fabrixmed-theme .slides section.fabrixmed-title-slide img.fm-logo,
.reveal.fabrixmed-theme .slides section .fabrixmed-logo-hero {
  display: block;
  width: min(48vw, 300px);
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.reveal.fabrixmed-theme .slides section:not(.title-slide):not(.fabrixmed-title-slide)::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 52px;
  height: 52px;
  padding: 0;
  box-sizing: border-box;
  background: url("https://cdn.fabrixmed.com/cdn/fabrixmed/fm-sq-dark-trans-text.png") center / contain no-repeat;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
  opacity: 0.95;
  pointer-events: none;
}

/* Opt-in FabrixMed meeting slides: dark chapters and light content. */
.reveal.fabrixmed-theme .slides section.fm-chapter,
.reveal.fabrixmed-theme .slides section.fm-content {
  min-height: 720px;
  box-sizing: border-box;
}
.reveal.fabrixmed-theme .slides section.fm-chapter {
  background: linear-gradient(90deg, rgba(8, 50, 73, 0.98), rgba(8, 50, 73, 0.72)), url('/deck-assets/fabrixmed/what-is-fabrixmed/fabric-grid.png') center / cover no-repeat;
  color: #fff;
}
.reveal.fabrixmed-theme .slides section.fm-chapter h1,
.reveal.fabrixmed-theme .slides section.fm-chapter h2,
.reveal.fabrixmed-theme .slides section.fm-chapter h3 { color: #fff !important; text-shadow: none !important; }
.reveal.fabrixmed-theme .slides section.fm-chapter p { color: #d4e6ed; }
.reveal.fabrixmed-theme .slides section.fm-chapter a { color: #8ecae6; }
.reveal.fabrixmed-theme .slides section.fm-content {
  background: #f1f6f8;
  color: #083249;
}
.reveal.fabrixmed-theme .slides section.fm-content h1,
.reveal.fabrixmed-theme .slides section.fm-content h2,
.reveal.fabrixmed-theme .slides section.fm-content h3 { color: #083249 !important; text-shadow: none !important; }
.reveal.fabrixmed-theme .slides section.fm-content p,
.reveal.fabrixmed-theme .slides section.fm-content li { color: #385667; }
.reveal.fabrixmed-theme .slides section.fm-content strong,
.reveal.fabrixmed-theme .slides section.fm-content b { color: #083249; }
.reveal.fabrixmed-theme .slides section.fm-content a { color: #0e5781; }
.reveal.fabrixmed-theme .slides section.fm-content a:hover,
.reveal.fabrixmed-theme .slides section.fm-content a:focus-visible { color: #083249; }
.reveal.fabrixmed-theme .slides section.fm-content a:focus-visible { outline: 3px solid #c98b24; outline-offset: 4px; }
.reveal.fabrixmed-theme .slides section.fm-chapter::after { background-image: url('https://cdn.fabrixmed.com/cdn/fabrixmed/fm-sq-dark-trans-text.png') !important; }
.reveal.fabrixmed-theme .slides section.fm-content::after { background-image: url('https://cdn.fabrixmed.com/cdn/fabrixmed/fm-sq-light-trans-text.png') !important; }

/* Companion-presentation index cards can be reused by other FabrixMed decks. */
.reveal.fabrixmed-theme .slides section.fm-content .fm-deck-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 22px 0 28px;
}
.reveal.fabrixmed-theme .slides section.fm-content .fm-deck-index a {
  display: block;
  min-height: 172px;
  padding: 25px;
  border: 1px solid rgba(8, 50, 73, 0.16);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(8, 50, 73, 0.07);
  color: #083249;
  text-decoration: none;
}
.reveal.fabrixmed-theme .slides section.fm-content .fm-deck-index a:hover,
.reveal.fabrixmed-theme .slides section.fm-content .fm-deck-index a:focus-visible {
  border-color: #138ace;
  box-shadow: 0 12px 28px rgba(8, 50, 73, 0.13);
}
.reveal.fabrixmed-theme .slides section.fm-content .fm-deck-index strong {
  display: block;
  margin-bottom: 12px;
  color: #083249;
  font-size: 26px;
  line-height: 1.22;
}
.reveal.fabrixmed-theme .slides section.fm-content .fm-deck-index span {
  display: block;
  color: #385667;
  font-size: 20px;
  line-height: 1.36;
}
@media (max-width: 700px) {
  .reveal.fabrixmed-theme .slides section.fm-content .fm-deck-index { grid-template-columns: 1fr; gap: 12px; }
  .reveal.fabrixmed-theme .slides section.fm-content .fm-deck-index a { min-height: 0; padding: 18px; }
}

/* Partnership decks: horizontal sections are dark; vertical content is light. */
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) {
  background: linear-gradient(90deg, rgba(8, 50, 73, 0.98) 0%, rgba(8, 50, 73, 0.91) 48%, rgba(8, 50, 73, 0.58) 100%), url('/deck-assets/fabrixmed/what-is-fabrixmed/fabric-grid.png') center / cover no-repeat;
  color: #fff;
}
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) h2 { color: #8ecae6; }
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) p { color: rgba(255, 255, 255, 0.86); }
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) .fm-partner-card { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) .fm-partner-card strong { color: #fff; }
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) .fm-partner-card span { color: rgba(255, 255, 255, 0.76); }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide {
  background: radial-gradient(circle at 88% 10%, rgba(201, 162, 39, 0.18), transparent 28%), linear-gradient(135deg, #f5f8fa 0%, #e7f1f6 100%);
  color: #083249;
}
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide h2 { color: #138ace; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide p { color: rgba(8, 50, 73, 0.82); }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide .fm-partner-card { border-color: rgba(8, 50, 73, 0.13); background: rgba(255, 255, 255, 0.93); box-shadow: 0 12px 26px rgba(8, 50, 73, 0.08); }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide .fm-partner-card strong { color: #083249; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide .fm-partner-card span { color: rgba(8, 50, 73, 0.74); }
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) h1,
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) h2,
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) h3,
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title) .fm-partner-proof { color: #fff !important; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide h1,
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide h2,
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide h3,
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide .fm-partner-proof { color: #083249 !important; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide:has(.fm-partner-table) { justify-content: flex-start; padding: 34px 48px; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide:has(.fm-partner-table) h1 { font-size: 43px; margin-bottom: 10px; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide:has(.fm-partner-table) .fm-partner-table { margin-top: 8px; font-size: 13px; line-height: 1.1; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide:has(.fm-partner-table) .fm-partner-table th,
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide:has(.fm-partner-table) .fm-partner-table td { padding: 7px 9px; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide:has(.fm-partner-table) .fm-partner-small { font-size: 14px !important; }
.reveal.fabrixmed-theme .slides > section.fm-partner-slide:not(.fm-partner-title)::after { background-image: url("https://cdn.fabrixmed.com/cdn/fabrixmed/fm-sq-dark-trans-text.png") !important; }
.reveal.fabrixmed-theme .slides > section > section.fm-partner-slide::after { background-image: url("https://cdn.fabrixmed.com/cdn/fabrixmed/fm-sq-light-trans-text.png") !important; }
.reveal.fabrixmed-theme .slides section.fm-partner-title::after { display: none !important; }

/* Advisor and other single-level FabrixMed decks use fm-slide/fm-dark rather
 * than the older fm-partner-slide hierarchy. Keep their text colors tied to
 * the slide surface so the global dark theme cannot paint light slides white. */
.reveal.fabrixmed-theme .slides section.fm-slide {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 720px;
  min-height: 720px;
  padding: 52px 66px;
  overflow: hidden;
  color: #083249;
}
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) h1,
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) h2,
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) h3,
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) h4,
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) p,
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) li,
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) strong,
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) b { color: #083249 !important; text-shadow: none !important; }
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) h2 { color: #138ace !important; }
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) .fm-sub { color: #527080 !important; }
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) .fm-kicker { color: #765800 !important; }
.reveal.fabrixmed-theme .slides section.fm-slide:not(.fm-dark) .fm-foot { color: #527080 !important; }
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark {
  color: #fff;
  background: linear-gradient(135deg, #062638 0%, #083249 62%, #0b5877 100%);
}
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark h1,
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark h2,
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark h3,
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark h4,
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark p,
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark li,
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark strong,
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark b { color: #fff !important; text-shadow: none !important; }
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark .fm-kicker { color: #f4c95d !important; }
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark .fm-sub { color: #cce8f2 !important; }
.reveal.fabrixmed-theme .slides section.fm-slide .fm-grid,
.reveal.fabrixmed-theme .slides section.fm-slide .fm-grid-2 { flex: 0 0 auto; width: 100%; }
.reveal.fabrixmed-theme .slides section.fm-slide:has(.fm-table) { justify-content: flex-start; padding: 34px 48px; }
.reveal.fabrixmed-theme .slides section.fm-slide:has(.fm-table) h2 { font-size: 43px; margin-bottom: 10px; }
.reveal.fabrixmed-theme .slides section.fm-slide:has(.fm-table) .fm-table { margin-top: 8px !important; font-size: 15px; line-height: 1.1; }
.reveal.fabrixmed-theme .slides section.fm-slide:has(.fm-table) .fm-table th,
.reveal.fabrixmed-theme .slides section.fm-slide:has(.fm-table) .fm-table td { padding: 9px 11px; }
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark .fm-card { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); box-shadow: none; }
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark .fm-card h3 { color: #fff !important; }
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark .fm-card .fm-tag { color: #8ecae6 !important; }
.reveal.fabrixmed-theme .slides section.fm-slide.fm-dark .fm-foot { color: #a8ccd8 !important; }

/* Gold rule under slide titles (like fabrixmed.com section dividers) */
.reveal.fabrixmed-theme .slides section:not(.title-slide):not(.fabrixmed-title-slide) h1:first-child {
  padding-bottom: 0.28em;
  margin-bottom: 0.55em;
  border-bottom: 3px solid var(--hcn-accent-gold);
  display: block;
  width: 100%;
  max-width: 100%;
}

@media print {
  .backgrounds {
    background-color: var(--r-background-color);
  }
}
