
/*-- scss:rules --*/
.reveal .slides section.quarto-title-block .subtitle {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.reveal .slides section.quarto-title-block .title-slide-bottom-block {
  margin-top: 0 !important;
}
img.no-dark, .no-dark img, .no-dark {
  filter: none !important;
  background: none !important;
  color-scheme: light !important;
}

.reveal .slide-background {
  background-color: #ffffff !important; /* True white */
}

#title-slide .subtitle,
div.reveal div.slides section.quarto-title-block .subtitle {
  margin-bottom: 0.75rem !important; /* default is much larger */
}

#title-slide .subtitle .title-slide-bottom-block {
  display: inline-block;
  position: relative;
  top: 0;
}

#title-slide .subtitle .title-slide-scan-text {
  display: inline-block;
  font-size: 0.5em;
  margin-top: -0.6em;
}

.reveal .slides section:not(.quarto-title-block) h1 {
  font-size: var(--r-heading2-size) !important;
}
/* Keep non-title centered slides full-height so aside footnotes can sit at true bottom */
.reveal .slides section.slide.center:not(.quarto-title-block) {
  height: 100% !important;
}

/* Force footnotes to bottom on those slides */
.reveal .slide:not(.scrollable) > aside,
.reveal .slide:not(.scrollable) > div.aside {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 12px !important; /* default theme is 20px */
}

/* Remove list spacing inside footnotes */
.reveal .slide > aside .aside-footnotes,
.reveal .slide > aside .aside-footnotes li,
.reveal .slide > aside .aside-footnotes li p {
  margin: 0 !important;
  padding: 0 !important;
}
/* Tighten gap between bottom footnotes and footer */
.reveal .slide aside .aside-footnotes li p {
  margin-block: 0 !important;
  margin-inline: 0 !important;
}
.reveal .slides section.level1 > h1 {
  margin-top: 0 !important;
}

.reveal .pillar-icon {
  height: 7em !important;
  width: auto;
  display: block;
  margin: 0 auto;
}

.reveal .pillar-row .column {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reveal .pillar-row .column > div {
  width: 100%;
}

.bigger-text {
  font-size: 1.5em !important;
}

.small-text {
  font-size: 0.6em !important;
}
.tiny-text {
  font-size: 0.4em !important;
}
.tiniest-text {
  font-size: 0.3em !important;
}
.reveal .subtitle {
  font-size: 2em !important;
  font-style: italic !important;

}

.centered {
  text-align: center !important;
}

.highlight-blue {
  background-color: rgb(0, 120, 220) !important;
  color: #fff !important;
  transition: background 0.5s;
}

/*-- scss:rules --*/

.reveal .fragment.highlight-green.visible {
  color: #1e7d07 !important;
}

.reveal .fragment.highlight-current-green.current-fragment {
  color: #1e7d07 !important;
}

  /* Stays normal weight, then goes bold when stepped through */
  .fragment.bold-text {
    font-weight: normal;
  }
  .fragment.bold-text.visible {
    font-weight: bold;
  }

  /* "Current" variant: bold only while active, reverts on next step */
  .fragment.bold-current-text {
    font-weight: normal;
  }
  .fragment.bold-current-text.current-fragment {
    font-weight: bold;
  }

  /* Bottom-of-slide footnotes */
.reveal .slide aside,
.reveal .slide div.aside {
  font-size: 0.55em !important;
  line-height: 1.2 !important;
}

/* Optional: hover footnote popups */
.tippy-box .tippy-content {
  font-size: 0.75rem !important;
}

.reveal .footer,
.reveal .footer-default {
  font-size: 0.60em !important;
}

/* Publication box system: edit colors/sizing in one place */
:root {
  --pub-box-radius: 8px;
  --pub-box-padding: 0.35em 0.5em;
  --pub-box-gap: 0.1em;
  --pub-box-border-width: 2px;
  --pub-section-gap: 0.3em;

  --pub-neutral-bg: #fafafa;
  --pub-neutral-border: #d9d9d9;

  --pub-p1-bg: #eef6ff;
  --pub-p1-border: #9fc4ee;

  --pub-p2-bg: #eef9f0;
  --pub-p2-border: #9fcea8;

  --pub-p3-bg: #fff4ea;
  --pub-p3-border: #e9c6a5;

  --slide-card-border: #d9d9d9;
  --slide-card-bg: #fafafa;
  --slide-card-bg-muted: #f7f7f7;

  /* People slide tint: tweak this filter to change the red color globally */
  --people-slide-red-filter: sepia(1) saturate(6) hue-rotate(-10deg) brightness(0.95) drop-shadow(1px 2px 3px rgba(0,0,0,0.22));
}

.reveal .slide-card {
  border: 2px solid var(--slide-card-border);
  border-radius: 10px;
  border-width: 2px;
  padding: 0.7em;
  min-height: 3em;
  background: var(--slide-card-bg);
}

.reveal .slide-card--muted {
  border-radius: 8px;
  padding: 0.7em 0.9em;
  border-width: 2px;
  min-height: auto;
  background: var(--slide-card-bg-muted);
}

.reveal .slide-card--stack-md {
  margin-top: 0.6em;
}

.reveal .slide-card__row {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.reveal .slide-card__row--tight {
  gap: 0.3em;
}

.reveal .card-row {
  border: 1px solid var(--slide-card-border);
  border-radius: 8px;
  background: var(--slide-card-bg);
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.15em 0.45em 0.15em 0.35em;
  border-width: 2px;
}

.reveal .card-row--top {
  align-items: flex-start;
}

.reveal .card-row--stack {
  margin-top: 0.3em;
}

.reveal .card-row p {
  margin: 0;
  line-height: 1.2;
}

.reveal .card-row p:first-child {
  flex-shrink: 0;
}

.reveal .pub-list {
  display: flex;
  flex-direction: column;
  gap: var(--pub-box-gap);
  margin-top: 0.35em;
}

.reveal .pub-list > p {
  margin: var(--pub-section-gap) 0 !important;
  line-height: 1.05;
}

.reveal .pub-list > p:first-child {
  margin-top: 0 !important;
}

.reveal .pub-list > p:last-child {
  margin-bottom: 0 !important;
}

.reveal .pub-box {
  --pub-box-bg: var(--pub-neutral-bg);
  --pub-box-border: var(--pub-neutral-border);
  border: var(--pub-box-border-width) solid var(--pub-box-border);
  border-radius: var(--pub-box-radius);
  padding: var(--pub-box-padding);
  background: var(--pub-box-bg);
}

.reveal .pub-box p {
  margin: 0;
}

.reveal .pub-list--pillar1 .pub-box {
  --pub-box-bg: var(--pub-p1-bg);
  --pub-box-border: var(--pub-p1-border);
}

.reveal .pub-list--pillar2 .pub-box {
  --pub-box-bg: var(--pub-p2-bg);
  --pub-box-border: var(--pub-p2-border);
}

.reveal .pub-list--pillar3 .pub-box {
  --pub-box-bg: var(--pub-p3-bg);
  --pub-box-border: var(--pub-p3-border);
}

.reveal .pub-box--neutral {
  --pub-box-bg: var(--pub-neutral-bg);
  --pub-box-border: var(--pub-neutral-border);
}

.reveal .pub-box--pillar1 {
  --pub-box-bg: var(--pub-p1-bg);
  --pub-box-border: var(--pub-p1-border);
}

.reveal .pub-box--pillar2 {
  --pub-box-bg: var(--pub-p2-bg);
  --pub-box-border: var(--pub-p2-border);
}

.reveal .pub-box--pillar3 {
  --pub-box-bg: var(--pub-p3-bg);
  --pub-box-border: var(--pub-p3-border);
}

.reveal .pub-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15em;
  margin: 0.15em 0 0.25em;
}

.reveal .pub-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 0.2em;
  border: 2px solid var(--pub-neutral-border);
  border-radius: var(--pub-box-radius);
  padding: 0.1em 0.18em;
  font-size: 1em;
  line-height: 1.05;
  min-width: 0;
}

.reveal .pub-legend__swatch {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid transparent;
  margin-top: 0.05em;
}

.reveal .pub-legend__label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.reveal .pub-legend__item--pillar1 {
  background: var(--pub-p1-bg);
  border-color: var(--pub-p1-border);
}

.reveal .pub-legend__item--pillar2 {
  background: var(--pub-p2-bg);
  border-color: var(--pub-p2-border);
}

.reveal .pub-legend__item--pillar3 {
  background: var(--pub-p3-bg);
  border-color: var(--pub-p3-border);
}

.reveal .discussion-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2%;
  align-items: stretch;
}

.reveal .discussion-pillars > .column {
  width: auto !important;
  margin: 0 !important;
  display: block;
}

.reveal .discussion-pillars > .column > .pub-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media screen and (max-width: 800px) {
  .reveal .footer,
  .reveal .footer-default {
    font-size: 0.40em !important;
  }
}

/* MEDS logo label styling: center, match logo color and height */
.meds-logo {
  height: 3em;
  width: auto;
  vertical-align: middle;
}

.meds-label {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.45em;
  font-weight: 700;
  color: #1B303D; /* match MEDS logo color from figures/meds/meds_logo.svg */
  font-size: 2em; /* tuned to visually match the logo height */
  line-height: 3em; /* align text vertically with the logo */
}

/* Red-tinted overlay variant of the people slide */
.people-slide--red-overlay img {
  filter: var(--people-slide-red-filter) !important;
}

/* Footnotes & reference links: use neutral grey instead of default blue */
/* Targets aside footnotes, in-slide superscript links, and the references list */
.reveal aside ol.aside-footnotes li a,
.reveal aside .aside-footnotes a,
.reveal .slide > aside .aside-footnotes li a,
.reveal .footnote-ref,
.reveal sup a,
.reveal a[href^="#fn"],
.reveal #refs a,
.reveal .references a,
.reveal .citation,
.reveal .citation a {
  color: #6b6b6b !important;
  text-decoration-color: rgba(107,107,107,0.6) !important;
}

/* Targeted bold footnote without affecting other footnotes */
.reveal .my-work,
.reveal .my-work a {
  font-weight: 700 !important;
}

/* Slightly dim the hover color so links don't go bright blue */
.reveal aside ol.aside-footnotes li a:hover,
.reveal .references a:hover,
.reveal #refs a:hover,
.reveal sup a:hover {
  color: #525252 !important;
}

/* Ensure small footnote link markers remain readable */
.reveal .slide aside,
.reveal .slide div.aside {
  color: #6b6b6b !important;
}