@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&display=swap");

:root {
  --night: #071426;
  --night-soft: #123254;
  --blue: #174a70;
  --blue-bright: #62a8ff;
  --paper: #f5f4ef;
  --paper-raised: #fffefa;
  --text: #263338;
  --muted: #5f6d72;
  --rule: #ced9dc;
  --code-rule: #d9e1e3;
  --added: #e2f2e9;
  --added-text: #246b46;
  --removed: #f7e7e5;
  --removed-text: #94463f;
}

#quarto-draft-alert,
.reveal .slide-menu-button,
.reveal .reveal-menu-button {
  display: none !important;
}

.reveal,
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal p,
.reveal li {
  font-family: "IBM Plex Sans", sans-serif;
}

.reveal code,
.reveal pre {
  font-family: "IBM Plex Mono", monospace;
}

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

.reveal .slides {
  position: absolute !important;
  z-index: 1;
  width: 1600px;
  height: 900px;
  text-align: left;
}

.reveal .slides > section {
  box-sizing: border-box;
  height: 100%;
  margin-left: 0 !important;
  text-align: left;
}

.reveal .progress {
  z-index: 20;
  height: 6px;
  background: rgb(23 74 112 / 12%);
  color: var(--blue);
}

.reveal .progress span {
  background: var(--blue);
}

/* Default content slide ------------------------------------------------ */
.reveal .slides > section:not(.quarto-title-block):not(.section-slide) {
  padding: 154px 96px 72px;
  background: var(--paper);
  color: var(--text);
}

.reveal .slides > section:not(.quarto-title-block):not(.section-slide) h2 {
  position: absolute;
  top: 0;
  right: 96px;
  left: 96px;
  display: flex;
  width: auto;
  height: 108px;
  margin: 0;
  align-items: center;
  border-bottom: 2px solid rgb(23 74 112 / 55%);
  color: var(--blue);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: -.032em;
  line-height: 1.05;
}

.reveal .slides > section:not(.quarto-title-block):not(.section-slide) h3 {
  margin: 4px 0 28px;
  color: var(--blue);
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.16;
}

.reveal .slides > section:not(.quarto-title-block):not(.section-slide) p,
.reveal .slides > section:not(.quarto-title-block):not(.section-slide) li {
  color: var(--muted);
  font-size: 29px;
  font-weight: 300;
  line-height: 1.42;
}

.reveal .slides > section:not(.quarto-title-block):not(.section-slide) strong {
  color: var(--text);
  font-weight: 600;
}

.reveal .slides > section:not(.quarto-title-block):not(.section-slide) a,
.reveal .slides > section:not(.quarto-title-block):not(.section-slide) code {
  color: var(--blue);
}

.reveal .slides > section:not(.quarto-title-block):not(.section-slide) ul,
.reveal .slides > section:not(.quarto-title-block):not(.section-slide) ol {
  width: 86%;
  margin-top: 34px;
}

.reveal .slides > section:not(.quarto-title-block):not(.section-slide) li {
  margin-bottom: 20px;
}

.reveal .slides > section:not(.quarto-title-block):not(.section-slide) li::marker {
  color: var(--blue);
  font-weight: 600;
}

/* Section slide -------------------------------------------------------- */
.reveal .slides > section.section-slide {
  display: flex !important;
  padding: 0 120px;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  color: var(--text);
}

body:has(.section-slide.present),
body:has(.section-slide.present) .reveal {
  background: var(--paper);
}

.reveal .slides > section.section-slide h2 {
  position: relative;
  width: 82%;
  margin: 0;
  padding-left: 34px;
  color: var(--blue);
  font-size: 112px;
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: .98;
}

.reveal .slides > section.section-slide h2::before {
  position: absolute;
  top: .08em;
  bottom: .06em;
  left: 0;
  width: 7px;
  border-radius: 4px;
  background: var(--blue-bright);
  content: "";
}

.reveal .slides > section.section-slide > p {
  max-width: 980px;
  margin: 34px 0 0 34px;
  color: var(--muted);
  font-size: 31px;
  font-weight: 300;
  line-height: 1.42;
}

/* Cover ---------------------------------------------------------------- */
.workshop-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 44%, rgb(98 168 255 / 22%), transparent 31%),
    linear-gradient(135deg, var(--night) 0%, var(--night-soft) 58%, var(--blue) 100%);
  opacity: 0;
  transition: opacity 280ms ease, visibility 280ms ease;
  visibility: hidden;
}

.workshop-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(5 14 27 / 94%) 0 42%, transparent 72%);
  content: "";
  pointer-events: none;
}

.workshop-cover.is-visible {
  opacity: 1;
  visibility: visible;
}

.browser-frame {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 58px;
  width: 790px;
  height: 716px;
  overflow: hidden;
  border: 1px solid rgb(169 185 210 / 26%);
  border-radius: 22px;
  background: rgb(7 20 38 / 84%);
  box-shadow: 0 36px 100px rgb(0 0 0 / 38%);
  transform: translateY(-50%);
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid rgb(169 185 210 / 24%);
  color: rgb(169 185 210 / 70%);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
}

.browser-address {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shiny-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  height: calc(100% - 52px);
}

.shiny-sidebar {
  display: flex;
  padding: 28px 22px;
  border-right: 1px solid rgb(169 185 210 / 24%);
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  background: rgb(9 29 51 / 86%);
  color: #a9b9d2;
  font-size: 12px;
}

.shiny-wordmark {
  margin-bottom: 10px;
  color: #f2f6ff;
  font-size: 22px;
  font-weight: 300;
}

.fake-chat {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgb(169 185 210 / 24%);
}

.fake-chat span {
  width: 90%;
  height: 44px;
  border-radius: 8px 8px 8px 2px;
  background: rgb(169 185 210 / 16%);
}

.fake-chat span:nth-child(even) {
  width: 76%;
  margin-left: auto;
  border-radius: 8px 8px 2px;
  background: rgb(98 168 255 / 28%);
}

.fake-chat span:nth-child(3) {
  width: 72%;
}

.fake-chat span:nth-child(5) {
  width: 82%;
}

.shiny-main {
  position: relative;
  min-width: 0;
  padding: 30px;
}

.visual-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #a9b9d2;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.visual-header strong {
  color: var(--blue-bright);
  font-size: 15px;
  font-weight: 500;
}

#workshop-canvas {
  width: 100%;
  height: 510px;
  margin-top: 20px;
}

.tool-call {
  position: absolute;
  right: 30px;
  bottom: 28px;
  padding: 10px 13px;
  border: 1px solid rgb(98 168 255 / 28%);
  border-radius: 8px;
  background: rgb(7 20 38 / 72%);
  color: var(--blue-bright);
  font-size: 11px;
}

.tool-call code {
  color: inherit;
}

.reveal .quarto-title-block {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 92px 84px 92px 92px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
}

.reveal .quarto-title-block.present {
  display: flex !important;
}

.reveal .quarto-title-block .quarto-title-authors {
  order: -1;
  width: 43%;
  margin: 0 0 18px;
}

.reveal .quarto-title-block .quarto-title-author {
  padding: 0;
}

.reveal .quarto-title-block .quarto-title-author-name {
  color: var(--blue-bright);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.reveal .quarto-title-block .title {
  width: 47%;
  margin: 0;
  color: #f2f6ff;
  font-size: 94px;
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .94;
}

.reveal .quarto-title-block .subtitle {
  width: 42%;
  margin: 24px 0 0;
  color: #a9b9d2;
  font-size: 31px;
  font-weight: 300;
  line-height: 1.28;
}

.reveal .quarto-title-block .date {
  width: 42%;
  margin: 24px 0 0;
  color: rgb(169 185 210 / 72%);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .04em;
}

/* Content components --------------------------------------------------- */
.reveal .columns {
  gap: 58px;
  margin-top: 16px;
}

.reveal .columns > .column {
  box-sizing: border-box;
  padding: 0;
}

.reveal .columns > .column + .column {
  padding-left: 58px;
  border-left: 1px solid var(--rule);
}

.pattern-label {
  margin: 0 0 24px !important;
  color: var(--blue) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reveal pre,
.reveal div.sourceCode {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.reveal pre.sourceCode {
  box-sizing: border-box;
  padding: 0;
  border: 1px solid var(--code-rule);
  border-radius: 14px;
  background: var(--paper-raised);
  overflow: hidden;
}

.reveal pre > code.sourceCode {
  box-sizing: border-box;
  width: 100%;
  max-height: 560px;
  padding: 26px 30px;
  background: var(--paper-raised);
  color: #314247;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.44;
  overflow: auto;
}

.code-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: 100%;
}

.code-diff > article {
  overflow: hidden;
  border: 1px solid var(--code-rule);
  border-radius: 14px;
  background: var(--paper-raised);
}

.code-diff header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--code-rule);
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.code-diff pre {
  padding: 24px 0;
}

.code-diff code {
  color: #314247 !important;
  font-size: 18px;
  line-height: 1.62;
}

.code-diff code span {
  display: block;
  padding: 0 24px;
}

.code-diff .added {
  background: var(--added);
  color: var(--added-text);
}

.code-diff .removed {
  background: var(--removed);
  color: var(--removed-text);
}

.demo-slot {
  display: grid;
  min-height: 430px;
  place-content: center;
  border: 2px dashed rgb(23 74 112 / 32%);
  border-radius: 16px;
  background: rgb(255 254 250 / 54%);
  text-align: center;
}

.demo-slot p {
  margin: 0 0 14px;
  color: var(--text) !important;
  font-size: 32px !important;
}

.demo-slot code {
  color: var(--muted) !important;
  font-size: 19px;
}

.reveal [data-tippy-root] {
  max-width: min(480px, calc(100% - 96px)) !important;
}

.reveal .tippy-content,
.reveal .code-annotation-tip-content {
  white-space: normal;
  overflow-wrap: anywhere;
}

.reveal .tippy-arrow,
.reveal [data-popper-arrow] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .workshop-cover {
    transition: none;
  }
}
