/* --------------------------------------------------
   Base
-------------------------------------------------- */

html.sic-presentation-html,
html.sic-presentation-html body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f3f0eb;
}

body.sic-presentation-mode {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.sic-present-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
}

/* --------------------------------------------------
   Deck and slides
-------------------------------------------------- */

body.sic-presentation-mode .sic-deck {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f3f0eb;
}

body.sic-presentation-mode .sic-slide {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 2500ms cubic-bezier(0.4, 0, 1, 1);
}

body.sic-presentation-mode .sic-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
/* --------------------------------------------------
   16:9 slide canvas
-------------------------------------------------- */

.sic-slide-frame {
  position: relative;

  width: 100vw;
  height: 56.25vw;

  max-width: 177.777778vh;
  max-height: 100vh;

  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  overflow: hidden;

  background: #fff;
  color: #111;

  --sic-edge: clamp(1.75rem, 4.8vmin, 5.5rem);
  --sic-edge-tight: clamp(1.25rem, 3.6vmin, 4.5rem);
  --sic-gap: clamp(1rem, 3vmin, 4rem);

  padding: var(--sic-edge);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------
   Content layout
-------------------------------------------------- */

.sic-slide-content {
  width: 100%;
  height: 100%;
}

/* Ordinary text/title slides keep a readable central width */
.sic-slide-layout-standard .sic-slide-content,
.sic-slide-title .sic-slide-content {
  max-width: 2350px;
  height: auto;
}

/* --------------------------------------------------
   Typography
-------------------------------------------------- */

.sic-slide-content h1,
.sic-poem-content h1 {
  margin: 0 0 clamp(1rem, 2.5vmin, 2rem);
  font-size: clamp(2.35rem, 5.2vmin, 7rem);
  line-height: 0.95;
  font-weight: 650;
  letter-spacing: -0.05rem;
}

.sic-slide-content h2,
.sic-poem-content h2 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.5rem, 2vw, 3rem);
  line-height: 1;
  font-weight: 400;
    letter-spacing: 0.15em;
    color: #777777;
}

.sic-slide-content h3,
.sic-poem-content h3 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.sic-slide-content blockquote,
.sic-poem-content blockquote {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 5.2rem);
  line-height: 1.15;
  font-weight: 400;
}

.sic-slide-content blockquote p,
.sic-poem-content blockquote p {
  font-size: inherit;
  line-height: inherit;
}

/* Base paragraph/list text */
.sic-slide-content p,
.sic-slide-content li,
.sic-poem-content p,
.sic-poem-content li,
.sic-slide-layout-poem .columns p,
.sic-slide-layout-poem .columns li {
  line-height: 1.5;
}

/* --------------------------------------------------
   Text size classes
   These affect paragraph/list text only, not headings.
-------------------------------------------------- */

.sic-text-small .sic-slide-content p,
.sic-text-small .sic-slide-content li,
.sic-text-small .sic-poem-content p,
.sic-text-small .sic-poem-content li,
.sic-slide-layout-poem.sic-text-small .columns p,
.sic-slide-layout-poem.sic-text-small .columns li {
  font-size: clamp(0.65rem, 0.82vw, 1.15rem);
  line-height: 1.8;
}

.sic-text-medium .sic-slide-content p,
.sic-text-medium .sic-slide-content li,
.sic-text-medium .sic-poem-content p,
.sic-text-medium .sic-poem-content li,
.sic-slide-layout-poem.sic-text-medium .columns p,
.sic-slide-layout-poem.sic-text-medium .columns li {
  font-size: clamp(0.75rem, 1.0vw, 1.45rem);
  line-height: 1.8;
}

.sic-text-large .sic-slide-content p,
.sic-text-large .sic-slide-content li,
.sic-text-large .sic-poem-content p,
.sic-text-large .sic-poem-content li,
.sic-slide-layout-poem.sic-text-large .columns p,
.sic-slide-layout-poem.sic-text-large .columns li {
  font-size: clamp(0.9rem, 1.18vw, 1.7rem);
  line-height: 1.8;
}

.sic-text-xl .sic-slide-content p,
.sic-text-xl .sic-slide-content li,
.sic-text-xl .sic-poem-content p,
.sic-text-xl .sic-poem-content li,
.sic-slide-layout-poem.sic-text-xl .columns p,
.sic-slide-layout-poem.sic-text-xl .columns li {
  font-size: clamp(1.05rem, 1.4vw, 2.05rem);
  line-height: 1.8;
}

/* --------------------------------------------------
   Sic logo
-------------------------------------------------- */

.sic-slide-logo {
  position: absolute;
  right: 2.25rem;
  bottom: 2.25rem;
  width: clamp(3.5rem, 5vw, 5.5rem);
  height: auto;
  z-index: 5;
  opacity: 0.9;
}

.sic-slide-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.sic-slide.no-logo .sic-slide-logo {
  display: none;
}

/* --------------------------------------------------
   Progress counter
-------------------------------------------------- */

.sic-slide-progress {
  position: fixed;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 20;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.35);
  font-family: system-ui, sans-serif;
}

/* --------------------------------------------------
   Full-screen image slides
-------------------------------------------------- */

.sic-slide-image-frame {
  padding: 0;
  background: #000;
}

.sic-slide-full-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sic-slide-layout-image-full .sic-slide-logo {
  display: none;
}

.sic-slide-layout-image-contain .sic-slide-image-frame {
  padding: 0;
  background: #fff;
}

.sic-slide-layout-image-contain .sic-slide-full-image {
  object-fit: contain;
}

/* --------------------------------------------------
   Poem slides
-------------------------------------------------- */

.sic-slide-poem-frame {
  background: #fff;
  color: #111;
  padding: 4.5rem 5rem;
  align-items: stretch;
  justify-content: stretch;
}

.sic-poem-slide,
.sic-poem-content {
  width: 100%;
  height: 100%;
}

.sic-poem-content {
  padding-bottom: clamp(6rem, 8vh, 10rem);
  box-sizing: border-box;
}

/* Shortcode Core columns */
.sic-slide-layout-poem .columns {
  column-gap: 4rem;
}

/* Keep poem line breaks */
.sic-slide-layout-poem p,
.sic-poem-content p,
.sic-slide-layout-poem .columns p {
  white-space: pre-line;
  margin: 0 0 1.2em;
}

/* Multi-page poem slides */
.sic-poem-page .sic-poem-content p {
  white-space: pre-line;
  margin: 0;
}

/* --------------------------------------------------
   Audio
-------------------------------------------------- */

.sic-slide-audio {
  display: none;
}

.sic-audio-indicator {
  position: absolute;
  right: 2.25rem;
  top: 2.25rem;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1000ms ease;
}

.sic-audio-disc {
  display: block;
  width: clamp(1.4rem, 1.8vw, 2.1rem);
  height: clamp(1.4rem, 1.8vw, 2.1rem);
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-top-color: rgba(0, 0, 0, 0.8);
  animation: sic-audio-spin 1.4s linear infinite;
}

.sic-slide.is-audio-playing .sic-audio-indicator {
  opacity: 0.45;
}

@keyframes sic-audio-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------
   Video slides
-------------------------------------------------- */

.sic-slide-video-frame {
  padding: 0;
  background: #000;
}

.sic-slide-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.sic-slide-layout-video .sic-slide-logo {
  display: none;
}

.sic-video-indicator {
  position: absolute;
  right: 2.25rem;
  top: 2.25rem;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1000ms ease;
}

.sic-video-disc {
  display: block;
  width: clamp(1.4rem, 1.8vw, 2.1rem);
  height: clamp(1.4rem, 1.8vw, 2.1rem);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: sic-video-spin 1.4s linear infinite;
}

.sic-slide.is-video-playing .sic-video-indicator {
  opacity: 0.55;
}

@keyframes sic-video-spin {
  to {
    transform: rotate(360deg);
  }
}
/* --------------------------------------------------
   Question drawer
-------------------------------------------------- */

.sic-question-prompt {
  position: fixed;
  left: 1rem;
  bottom: 0.75rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0.55;
  transition: opacity 250ms ease;
}

.sic-question-prompt:hover {
  opacity: 1;
}

.sic-question-toggle {
  border: 0;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.sic-question-prompt-text {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(0.75rem, 1.1vw, 1.3rem);
  line-height: 1;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.sic-question-drawer-inner h6 {
    font-size: 1rem;
    font-weight: 400;
    margin:0;
}
.sic-question-drawer-inner h4 {
  font-size:1.5rem;
    margin: 0 0 1rem 0;
}


.sic-question-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 35;
  width: min(42rem, 42vw);
  height: 100vh;
  background: rgb(221 221 221 / 80%);
  color: #111;
  transform: translateX(105%);
  transition: transform 350ms ease;
  pointer-events: none;
}

.sic-question-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.sic-question-drawer-inner {
  height: 100%;
  box-sizing: border-box;
  padding: 2rem;
  overflow-y: auto;
}

.sic-question-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sic-question-drawer-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.sic-question-close {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.sic-question-status {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  opacity: 0.6;
}

.sic-question-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sic-question-item {
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #f3f0eb;
}

.sic-question-name {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.55;
}

.sic-question-text {
  font-size: clamp(1rem, 1.3vw, 1.45rem);
  line-height: 1.32;
}

/* On narrower screens, let the drawer cover most of the slide */
@media (max-width: 900px) {
  .sic-question-drawer {
    width: min(100vw, 34rem);
  }
}
/* --------------------------------------------------
   Multi-page poem slides
-------------------------------------------------- */

.sic-poem-page {
  position: absolute;
  inset: 4.5rem 5rem;

  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;

  display: flex;
  align-items: center;
  justify-content: stretch;

  overflow: hidden;
}

.sic-poem-page.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sic-poem-page .sic-poem-content {
  width: 100%;
  height: auto;
  max-height: 100%;
  box-sizing: border-box;
  padding-bottom: clamp(6rem, 8vh, 10rem);
}

/* Match ordinary Markdown poem paragraph spacing */
.sic-poem-page .sic-poem-content p {
  white-space: normal;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0;
  margin-inline-end: 0;
}
/* --------------------------------------------------
   Dark presentation theme
-------------------------------------------------- */

body.sic-presentation-dark,
body.sic-presentation-dark .sic-deck {
  background: #050505;
}

body.sic-presentation-dark .sic-slide-frame,
body.sic-presentation-dark .sic-slide-poem-frame {
  background: #050505;
  color: #f5f5f5;
}

body.sic-presentation-dark .sic-present-body,
body.sic-presentation-dark .sic-slide-content,
body.sic-presentation-dark .sic-poem-content {
  color: #f5f5f5;
}

body.sic-presentation-dark .sic-slide-content h2,
body.sic-presentation-dark .sic-poem-content h2 {
  color: #aaa;
}

body.sic-presentation-dark .sic-slide-logo {
  opacity: 0.9;
}

/* Audio indicator on dark background */
body.sic-presentation-dark .sic-audio-disc {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.9);
}

/* Progress counter */
body.sic-presentation-dark .sic-slide-progress {
  color: rgba(255, 255, 255, 0.4);
}

/* Question prompt */
body.sic-presentation-dark .sic-question-toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

body.sic-presentation-dark .sic-question-prompt-text {
  background: rgba(20, 20, 20, 0.86);
  color: rgba(255, 255, 255, 0.82);
}

/* Question drawer */
body.sic-presentation-dark .sic-question-drawer {
  background: rgba(20, 20, 20, 0.9);
  color: #f5f5f5;
}

body.sic-presentation-dark .sic-question-close {
  color: #f5f5f5;
}

body.sic-presentation-dark .sic-question-item {
  background: #111;
}

/* --------------------------------------------------
   Two-column slides
-------------------------------------------------- */

.sic-slide-two-column-frame {
  align-items: stretch;
  justify-content: stretch;
}

.sic-slide-two-column {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 8rem);
  align-items: center;
}

.sic-slide-two-column-panel {
  min-width: 0;
  opacity: 0;
  transform: translateY(0.5rem);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.sic-slide-two-column-panel.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.sic-slide-two-column-left {
  text-align: left;
  justify-self: start;
}

.sic-slide-two-column-right {
  text-align: right;
  justify-self: end;
}

.sic-slide-two-column-left > *:first-child,
.sic-slide-two-column-right > *:first-child {
  margin-top: 0;
}

.sic-slide-two-column-left > *:last-child,
.sic-slide-two-column-right > *:last-child {
  margin-bottom: 0;
}

.sic-slide-two-column-panel h1, .questions-slide h1 {
    font-size: 4em;
}
.sic-slide-two-column-panel h2, .questions-slide h2 {
    font-size: 2.5em;
}
.sic-slide-two-column-panel h3, .questions-slide h3 {
    font-size: 1.5em;
        font-weight: 400;
}
.sic-slide-two-column-panel h4, .questions-slide h4 {
    font-size: 2em;
        font-weight: 600;
        margin: 0.2rem 0 0 0;
}
.sic-slide-two-column-panel h5, .questions-slide h5 {
    font-size: 1.2em;
        font-weight: 400;
        margin: 1rem 0 0 0;
}

.sic-portrait {
  display: block;
  width: clamp(12rem, 24vw, 24rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
}

.sic-book {
  display: block;
  width: clamp(12rem, 24vw, 24rem);
  object-fit: cover;
  border-radius: 0.1rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
}


.sic-slide-two-column-left .sic-portrait {
  margin-right: auto;
}

.sic-slide-two-column-right .sic-portrait {
  margin-left: auto;
}
.sic-author-card {
  width: fit-content;
  max-width: 100%;
}

.sic-author-card .sic-portrait {
  display: block;
  width: clamp(14rem, 26vw, 26rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
}

