/* Quarto bridge overrides for the Scholarly Folio visual system. */

:root {
  --r-background-color: var(--gp-paper);
  --r-main-color: var(--gp-ink);
  --r-heading-color: var(--gp-ink);
  --r-link-color: var(--gp-accent);
  --r-link-color-hover: var(--gp-ink);
  --r-controls-color: var(--gp-ink);
  --r-selection-background-color: rgba(168, 75, 55, 0.18);
}

.reveal .slide-menu-button,
.reveal .slide-menu-wrapper,
.reveal .quarto-navigation-tool {
  display: none !important;
}

.reveal .controls {
  color: var(--gp-ink) !important;
}

.reveal .controls button {
  color: var(--gp-ink) !important;
  opacity: 0.62;
}

.reveal .controls button.enabled {
  opacity: 0.9;
}

.reveal .controls .controls-arrow {
  border-color: currentColor !important;
}

.reveal .slides section.gp-title > h1.gp-title-heading,
.reveal .slides section[data-layout="title"] > h1,
.reveal .slides section.gp-title > h1 {
  display: none !important;
}

.reveal .slides section.gp-title .gp-code {
  max-width: 30ch;
}

.reveal .slides section.gp-slide:not(.gp-title):not(.gp-divider):not(.gp-claim):not(.gp-quote-slide) > h1 {
  margin-bottom: 0;
}

.reveal .slides section.gp-slide ul.gp-list,
.reveal .slides section.gp-slide ol.gp-list {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.reveal .slides section.gp-slide ul.gp-list > li,
.reveal .slides section.gp-slide ol.gp-list > li {
  list-style: none !important;
}

.reveal .slides section.gp-slide ul.gp-list > li::marker,
.reveal .slides section.gp-slide ol.gp-list > li::marker {
  content: "";
}

.reveal .slides section.gp-slide a,
.reveal .slides section.gp-slide a:visited {
  color: var(--gp-accent);
  text-decoration: underline;
  text-decoration-color: rgba(168, 75, 55, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.reveal .slides section.gp-slide a:hover,
.reveal .slides section.gp-slide a:focus-visible {
  color: var(--gp-ink);
  text-decoration-color: var(--gp-ink);
}

.reveal .slides section.gp-slide > :not(.gp-cites) .citation {
  display: none !important;
}

.reveal .slides section.gp-slide > .gp-cites .citation,
.reveal .slides section.gp-slide > .gp-cites a {
  color: var(--gp-ink);
  text-decoration: none;
}

.reveal .slides section.gp-slide > .gp-cites .citation a {
  color: inherit;
}

.reveal .slides section.gp-slide > .gp-cites p {
  display: inline;
  margin: 0;
}

.reveal .slides section.gp-slide .fragment.fade-up,
.reveal .slides section.gp-slide .fragment.fade-in {
  transition-duration: 260ms;
}

.reveal .slides section.gp-slide .gp-modal-trigger,
.reveal .slides section.gp-slide .gp-modal-trigger:visited {
  color: var(--gp-accent) !important;
  text-decoration: none !important;
}

.reveal .slides section.gp-slide .gp-modal-trigger:hover,
.reveal .slides section.gp-slide .gp-modal-trigger:focus-visible {
  color: var(--gp-ink) !important;
  text-decoration: none !important;
}

.reveal .multimodal {
  --mm-overlaycolor: rgba(23, 21, 18, 0.52);
  --mm-borderwidth: 1px;
  --mm-bordercolor: var(--gp-rule-strong);
  --mm-outerradius: 0;
  --mm-shadow: 0 28px 70px rgba(23, 21, 18, 0.24);
  --mm-modal-background: var(--gp-paper-soft);
}

.reveal .multimodal .mm-max .mm-dialog {
  border: 1px solid var(--gp-rule-strong) !important;
  border-radius: 0 !important;
  background: var(--gp-paper-soft) !important;
  box-shadow: 0 28px 70px rgba(23, 21, 18, 0.24) !important;
}

.reveal .multimodal .mm-max .mm-dialog::before {
  content: none !important;
  display: none !important;
}

.reveal .multimodal .mm-max .mm-body {
  border-radius: 0 !important;
  background: var(--gp-paper-soft) !important;
}

.reveal .multimodal[data-modal-type="image"] {
  --mm-modal-background: var(--gp-paper);
}

.reveal .multimodal[data-modal-type="image"] .mm-max .mm-dialog,
.reveal .multimodal[data-modal-type="image"] .mm-max .mm-body {
  background: var(--gp-paper) !important;
}

.reveal .multimodal[data-modal-type="image"] img.mm-body {
  mix-blend-mode: multiply;
}

.reveal .slides section.gp-table-slide .gp-chart img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.reveal .slides section.gp-results-forest > h1 {
  max-width: 24ch;
  font-size: 36px;
  line-height: 0.96;
  margin-bottom: 0;
}

.reveal .slides section.gp-results-forest > h1 + .gp-chart {
  margin-top: 12px;
}

.reveal .slides section.gp-results-forest .gp-chart--forest {
  width: 1360px !important;
  max-width: 100% !important;
  height: 656px !important;
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gp-paper);
}

.reveal .slides section.gp-results-forest .gp-chart--forest > p {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal .slides section.gp-results-forest .gp-chart--forest img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: darken;
}

.reveal .slides section.gp-results-forest .gp-chart--forest + .gp-table-note {
  width: min(1700px, 100%);
  margin: 6px auto 0;
  padding-top: 6px;
  font-size: 12px;
  line-height: 1.1;
}

.reveal .slides section.gp-results-forest .gp-chart--forest + .gp-table-note p {
  max-width: 1500px;
  font-size: 25px;
  line-height: 1.2;
  margin: 0;
}

.reveal .slides section.gp-results-forest .gp-chart--forest + .gp-table-note .MathJax,
.reveal .slides section.gp-results-forest .gp-chart--forest + .gp-table-note .mjx-chtml {
  font-size: 0.9em !important;
}

.reveal .slides section.gp-zollman-recap .gp-list {
  max-width: 850px;
}

.reveal .slides section.gp-zollman-recap .gp-list > li {
  font-size: 38px;
  line-height: 1.15;
}

.reveal .slides section.gp-zollman-recap .gp-list .gp-list {
  max-width: 100%;
}

.reveal .slides section.gp-zollman-recap .gp-list .gp-list > li {
  font-size: 34px;
  line-height: 1.14;
}

.reveal .slides section.gp-zollman-recap .gp-zollman-figure {
  position: absolute !important;
  top: 206px;
  right: 16px;
  z-index: 1;
  width: 650px;
  height: 720px;
  pointer-events: none;
}

.reveal .slides section.gp-zollman-recap .gp-zollman-figure img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: transparent;
}

.reveal .slides section.gp-slide.gp-cites-multiline > .gp-cites {
  bottom: calc(var(--gp-pad-y) + 56px);
}

.reveal .slides section.gp-real-world-networks .gp-list {
  max-width: 1320px;
}

.reveal .slides section.gp-real-world-networks .gp-list .gp-list {
  max-width: 100%;
  margin-top: 18px;
}

.reveal .slides section.gp-real-world-networks .gp-list .gp-list > li {
  font-size: 36px;
  line-height: 1.16;
}

.reveal .slides section.gp-real-world-networks .gp-network-count {
  white-space: nowrap;
}

.reveal .slides section.gp-quote-slide blockquote p {
  max-width: 30ch;
}

.reveal .slides .gp-gorey-stack {
  width: min(100%, 720px);
  height: 700px;
  margin: 0 auto;
  place-items: center;
  transform: translateY(-24px);
}

.reveal .slides .gp-gorey-stack > p {
  display: contents;
}

.reveal .slides .gp-gorey-stack img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  background: transparent;
}

.reveal .slides section.gp-target-intervention .columns {
  align-items: center;
}

.reveal .slides section.gp-target-intervention .gp-goal-list {
  display: grid;
  gap: 22px;
  max-width: 100%;
  margin-top: 0;
}

.reveal .slides section.gp-target-intervention .gp-goal-list > li {
  min-height: 1.35em;
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
}

.reveal .slides section.gp-target-intervention .gp-intervention-list {
  display: grid;
  gap: 14px;
  max-width: calc(100% - 38px);
  margin: 22px 0 0 38px !important;
}

.reveal .slides section.gp-target-intervention .gp-intervention-list > li {
  min-height: 1.25em;
  margin: 0;
  padding-left: 24px;
  font-size: 30px;
  line-height: 1.1;
}

.reveal .slides section.gp-target-intervention .gp-intervention-term {
  font-weight: 650;
}

.reveal .slides section.gp-target-intervention .gp-state-stack {
  display: inline-grid;
  min-width: 9ch;
  margin-left: 0.35em;
  vertical-align: 0.12em;
}

.reveal .slides section.gp-target-intervention .gp-state-stack > .gp-intervention-state {
  grid-area: 1 / 1;
  color: var(--gp-accent);
  font-family: var(--gp-label);
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.reveal .multimodal .mm-close {
  top: -1px;
  right: -1px;
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 0 !important;
  border-left: 1px solid var(--gp-rule-strong) !important;
  border-bottom: 1px solid var(--gp-rule-strong) !important;
  border-radius: 0 !important;
  background: var(--gp-paper-soft) !important;
  box-shadow: none !important;
  transform: none !important;
}

.reveal .multimodal .mm-close svg {
  display: none !important;
}

.reveal .multimodal .mm-close::before,
.reveal .multimodal .mm-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1px;
  background: var(--gp-ink);
  transform-origin: center;
  pointer-events: none;
}

.reveal .multimodal .mm-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.reveal .multimodal .mm-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.reveal .multimodal .mm-close:hover,
.reveal .multimodal .mm-close:focus-visible {
  background: var(--gp-sand) !important;
}

.reveal .multimodal .mm-close:focus-visible {
  outline: 2px solid var(--gp-accent);
  outline-offset: 2px;
}

.reveal .multimodal .mm-close:focus:not(:focus-visible) {
  outline: none;
}

.reveal .slides section.gp-half .gp-two-col,
.reveal .slides section.gp-half .columns {
  max-width: var(--gp-content-w);
}

.reveal .slides section.gp-half .gp-list {
  max-width: 100%;
  margin-top: 48px;
}

.reveal .slides section.gp-half > h1 + .gp-accent-bar + .columns,
.reveal .slides section.gp-half > h1 + .columns,
.reveal .slides section.gp-table-slide > h1 + .gp-accent-bar + table,
.reveal .slides section.gp-table-slide > h1 + table,
.reveal .slides section.gp-table-slide > h1 + .gp-accent-bar + .gp-chart,
.reveal .slides section.gp-table-slide > h1 + .gp-chart,
.reveal .slides section.gp-exhibit > h1 + .gp-accent-bar + .gp-figure,
.reveal .slides section.gp-exhibit > h1 + .gp-figure {
  margin-top: 72px;
}

.reveal .slides section.gp-half .gp-figure {
  align-self: start;
}

.reveal .slides section.gp-exhibit .gp-frame,
.reveal .slides section.gp-half .gp-frame {
  overflow: hidden;
}

.reveal .slides section.gp-slide > .gp-embed-fallback {
  margin-top: 10px;
  color: var(--gp-muted);
  font-family: var(--gp-label);
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.reveal .slides section.gp-slide > .gp-embed-fallback p {
  margin: 0;
}

.reveal .slides section.gp-half .gp-figure--qr .gp-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: transparent;
  line-height: 0;
}

.reveal .slides section.gp-half .gp-figure--qr .gp-frame-embed {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  border: 0;
  aspect-ratio: 1 / 1;
  background: transparent;
}

.reveal .slides section.gp-references > h1 {
  font-size: 54px;
  line-height: 1;
}

.reveal .slides section.gp-references .csl-bib-body {
  max-width: 1480px;
  margin-top: 76px;
  margin-left: 0;
  columns: 2 !important;
  column-count: 2 !important;
  column-gap: 56px;
  column-fill: balance;
  text-indent: 0;
}

.reveal .slides section.gp-references .csl-bib-body.hanging-indent {
  margin-left: 0;
  text-indent: 0;
}

.reveal .slides section.gp-references .csl-entry {
  clear: none;
  break-inside: avoid-column;
  page-break-inside: avoid;
  margin: 0 0 12px;
  color: var(--gp-ink2);
  font-family: var(--gp-serif);
  font-size: 21px;
  line-height: 1.32;
  text-indent: 0;
}

.reveal .slides section.gp-references .csl-entry a {
  color: var(--gp-accent);
}

.reveal table:not(.gp-table):not(.gp-comparison) {
  width: 100%;
  max-width: 1400px;
  border-collapse: collapse;
  font-family: var(--gp-serif);
  font-size: 23px;
}

.reveal table:not(.gp-table):not(.gp-comparison) th,
.reveal table:not(.gp-table):not(.gp-comparison) td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gp-rule);
}

.reveal table:not(.gp-table):not(.gp-comparison) th {
  color: var(--gp-accent);
  font-family: var(--gp-label);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-align: left;
  text-transform: uppercase;
}

@media (max-width: 1320px) {
  .reveal .slides section.gp-references .csl-bib-body {
    columns: 1 !important;
    column-count: 1 !important;
  }
}
