/* =========================================================================
   Workshops & Webinars — page styles
   Inherits palette / type tokens from global.css.
   ========================================================================= */

/* The HTML `hidden` attribute is overridden by display: flex/grid below.
   Force it to win. */
[hidden] { display: none !important; }

/* Guard rail: any inline SVG inside the workshop pages that lacks an
   explicit size should not balloon to fill its flex parent. Specific
   sizes below override this. */
.gate svg,
.wh-hero svg,
.wh-grid svg,
.wd-hero svg,
.wd-actions svg,
.wd-meta svg,
.wd-thumbs svg { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- PASSWORD GATE ---------- */
.gate {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  z-index: 2;
}

.gate-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.gate-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  color: var(--color-warm-white);
  border-radius: var(--radius-full);
}
.gate-icon svg { width: 26px; height: 26px; }

.gate-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  margin-bottom: var(--space-sm);
}

.gate-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--color-charcoal);
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
}

.gate-sub {
  color: var(--color-brown-soft);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: var(--space-xl);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gate-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-cream);
  color: var(--color-charcoal);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.gate-input:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.18);
}

.gate-error {
  color: var(--color-terracotta);
  font-size: 0.92rem;
  font-weight: 600;
  margin: -4px 0 0;
}

.gate-foot {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--color-brown-soft);
  line-height: 1.5;
}

.gate-foot a { color: var(--color-sage-dark); font-weight: 600; }

/* ---------- WORKSHOP HUB HEADER ---------- */
.wh-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.wh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  margin-bottom: var(--space-md);
}
.wh-hero-eyebrow svg { width: 16px; height: 16px; }

.wh-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-charcoal);
  margin: 0 0 var(--space-md);
  line-height: 1.1;
}

.wh-hero-sub {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-brown-soft);
  line-height: 1.6;
}

.wh-hero-actions {
  margin-top: var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}

.wh-signout {
  font-size: 0.88rem;
  color: var(--color-brown-soft);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 180ms ease;
}
.wh-signout:hover {
  border-color: var(--color-sage);
  color: var(--color-sage-dark);
}

/* ---------- WORKSHOP CARD GRID ---------- */
.wh-grid-section { padding: var(--space-xl) 0 var(--space-3xl); position: relative; z-index: 2; }

.wh-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 700px) {
  .wh-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .wh-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-2xl); }
}

.wh-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.wh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-sage);
}

.wh-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-cream);
  overflow: hidden;
}

.wh-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.wh-card:hover .wh-card-cover img { transform: scale(1.04); }

.wh-card-kind {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  padding: 5px 10px;
  border-radius: var(--radius-full);
}

.wh-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wh-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--color-charcoal);
  margin: 0 0 6px;
}

.wh-card-sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-terracotta);
  margin: 0 0 var(--space-md);
  line-height: 1.4;
}

.wh-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.85rem;
  color: var(--color-brown-soft);
  margin-bottom: var(--space-md);
}

.wh-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wh-card-meta svg { width: 14px; height: 14px; }

.wh-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-sage-dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: gap 200ms ease;
}

.wh-card-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.wh-card:hover .wh-card-cta { gap: 12px; }

/* ---------- WORKSHOP DETAIL PAGE ---------- */
.wd-hero {
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  z-index: 2;
}

.wd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brown-soft);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  transition: color 200ms ease;
}
.wd-back:hover { color: var(--color-sage-dark); }
.wd-back svg { width: 14px; height: 14px; }

.wd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 900px) {
  .wd-grid { grid-template-columns: minmax(280px, 380px) 1fr; gap: var(--space-3xl); }
}

.wd-cover-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-cream);
}
.wd-cover-wrap img { width: 100%; height: auto; display: block; }

.wd-kind {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  margin-bottom: var(--space-md);
}

.wd-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.6vw, 2.8rem);
  color: var(--color-charcoal);
  margin: 0 0 var(--space-sm);
  line-height: 1.1;
}

.wd-sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--color-terracotta);
  margin: 0 0 var(--space-lg);
  line-height: 1.4;
}

.wd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: var(--space-lg);
  color: var(--color-brown-soft);
  font-size: 0.95rem;
}
.wd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wd-meta svg { width: 16px; height: 16px; color: var(--color-sage-dark); }

.wd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: var(--space-xl);
}

/* Primary "Start Slideshow" button — confident, calm, clearly the main action */
.wd-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: linear-gradient(180deg, #c46b4a, #a85a36);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 16px rgba(168, 90, 54, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.wd-start-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 22px rgba(168, 90, 54, 0.36);
  filter: brightness(1.04);
}
.wd-start-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
.wd-start-btn:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}
/* Play triangle: solid white, properly sized */
.wd-start-btn svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* Secondary "Fullscreen" — quieter, more like a tertiary text button */
.wd-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid rgba(60, 50, 45, 0.18);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.wd-secondary-btn:hover {
  background: rgba(60, 50, 45, 0.05);
  border-color: rgba(60, 50, 45, 0.32);
}
.wd-secondary-btn:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
}
.wd-secondary-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  opacity: 0.7;
}

/* Mobile: stack the two buttons full-width for easier tapping */
@media (max-width: 600px) {
  .wd-actions { flex-direction: column; align-items: stretch; }
  .wd-start-btn,
  .wd-secondary-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}

/* ---------- THUMBNAIL STRIP ---------- */
.wd-thumbs {
  margin-top: var(--space-xl);
}

.wd-thumbs-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-charcoal);
  margin: 0 0 var(--space-md);
}

.wd-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.wd-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: transform 220ms ease, border-color 220ms ease;
}
.wd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-thumb:hover { transform: translateY(-2px); border-color: var(--color-sage); }
.wd-thumb-num {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(46, 36, 33, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ---------- DETAIL BODY (rendered markdown) ---------- */
.wd-body {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.wd-body h1, .wd-body h2, .wd-body h3, .wd-body h4 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.wd-body h1 { font-size: 2rem; margin-top: 0; }
.wd-body h2 { font-size: 1.55rem; }
.wd-body h3 { font-size: 1.25rem; color: var(--color-sage-dark); }
.wd-body h4 { font-size: 1.05rem; }

.wd-body p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  margin: 0 0 var(--space-md);
}

.wd-body ul, .wd-body ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.4em;
}
.wd-body li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 6px;
}

.wd-body strong { color: var(--color-charcoal); font-weight: 700; }
.wd-body em { color: var(--color-terracotta); font-style: italic; }
.wd-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 6px;
}

.wd-body blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-sage);
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.wd-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

.wd-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.92rem;
}
.wd-body th, .wd-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}
.wd-body th {
  background: var(--color-cream);
  font-weight: 700;
  color: var(--color-charcoal);
}
.wd-body tbody tr:hover { background: rgba(122, 158, 126, 0.04); }

.wd-body a {
  color: var(--color-sage-dark);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.wd-body a:hover { color: var(--color-terracotta); }

/* ---------- LOADING / ERROR STATES ---------- */
.wh-loading {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-brown-soft);
}

/* =========================================================================
   FULLSCREEN SLIDESHOW
   ========================================================================= */
body.slideshow-open { overflow: hidden; }

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0707;
  display: flex;
  flex-direction: column;
  animation: slideshowIn 220ms ease;
  outline: none;
}

.slideshow.is-closing { animation: slideshowOut 180ms ease forwards; }

@keyframes slideshowIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideshowOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.slideshow-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 180ms ease;
}
.slideshow-image.is-loading { opacity: 0.35; }

/* Click zones (transparent buttons covering left/right halves) */
.slideshow-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
}
.slideshow-zone-left  { left: 0; cursor: w-resize; }
.slideshow-zone-right { right: 0; cursor: e-resize; }

/* Keep zones non-focusable visually but accessible */
.slideshow-zone:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: -8px;
}

/* Top bar */
.slideshow-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.slideshow-top > * { pointer-events: auto; }

.slideshow-counter {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}
.slideshow-counter-num { color: #fff; font-weight: 700; }

.slideshow-top-actions { display: flex; gap: 8px; }

.slideshow-iconbtn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 180ms ease, transform 180ms ease;
}
.slideshow-iconbtn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.slideshow-iconbtn svg { width: 18px; height: 18px; }

/* Bottom bar */
.slideshow-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.slideshow-bottom > * { pointer-events: auto; }

.slideshow-navbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 180ms ease, transform 180ms ease;
}
.slideshow-navbtn:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.slideshow-navbtn svg { width: 16px; height: 16px; }

/* Progress bar */
.slideshow-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.slideshow-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-sage), var(--color-terracotta));
  transition: width 280ms ease;
}

/* Loading spinner */
.slideshow-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}
.slideshow-loader.is-active { opacity: 1; }
.slideshow-loader-ring {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: slideshowSpin 0.85s linear infinite;
}
@keyframes slideshowSpin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------
   Speaker notes panel — discreet popup over the slide
   Pinned to the right side, scrollable, dismissible.
   ----------------------------------------------------------------------- */
.slideshow-notes {
  position: absolute;
  z-index: 5;
  top: 64px;
  right: 16px;
  bottom: 88px;
  width: min(460px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  background: rgba(20, 14, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  animation: slideshowNotesIn 180ms ease-out;
}
.slideshow-notes[hidden] { display: none; }

@keyframes slideshowNotesIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.slideshow-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.slideshow-notes-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.slideshow-notes-slidenum {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-left: 4px;
}

.slideshow-notes-close {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  padding: 0;
}
.slideshow-notes-close:hover,
.slideshow-notes-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}
.slideshow-notes-close svg { width: 14px; height: 14px; }

.slideshow-notes-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 20px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}
.slideshow-notes-body p { margin: 0 0 0.85em; }
.slideshow-notes-body p:last-child { margin-bottom: 0; }
.slideshow-notes-body strong { color: #fff; }
.slideshow-notes-body em { color: rgba(255, 255, 255, 0.92); font-style: italic; }
.slideshow-notes-body ul,
.slideshow-notes-body ol {
  margin: 0 0 0.85em;
  padding-left: 1.25em;
}
.slideshow-notes-body li { margin: 0.25em 0; }
.slideshow-notes-body blockquote {
  margin: 0.6em 0;
  padding: 0.5em 0.9em;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}
.slideshow-notes-empty {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* Subtle scrollbar inside the panel */
.slideshow-notes-body::-webkit-scrollbar { width: 8px; }
.slideshow-notes-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.slideshow-notes-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Active state on the notes toolbar button when panel is open */
.slideshow-iconbtn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .slideshow-top { padding: 12px 14px; }
  .slideshow-bottom { padding: 14px 16px 18px; gap: 12px; }
  .slideshow-iconbtn { width: 36px; height: 36px; }
  .slideshow-iconbtn svg { width: 16px; height: 16px; }
  .slideshow-navbtn span { display: none; }
  .slideshow-navbtn { padding: 10px 12px; }
  .slideshow-counter { font-size: 0.85rem; padding: 5px 12px; }

  /* On mobile, notes take the bottom half of the screen rather than a side rail */
  .slideshow-notes {
    top: auto;
    right: 8px;
    left: 8px;
    bottom: 76px;
    width: auto;
    max-height: 55vh;
  }
}
