/* ══ LAB ══
   Shared by lab.html and every experiment page. Calm and editorial: the site's
   paper palette, Newsreader for titles, Geist Mono for meta labels. theme.css
   loads after this and owns the palette and the nav's segmented control. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fafafa;
  --card:      #ffffff;
  --inner:     #e6e6e6;
  --border:    #e2e2e2;
  --text:      #1a1a1a;
  --text-sec:  #555555;
  --text-muted:#999999;
  --label:     #aaaaaa;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Newsreader', Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hair: color-mix(in srgb, var(--border) 70%, transparent);
}

html.dark {
  --bg:        #111111;
  --card:      #1c1c1c;
  --inner:     #252525;
  --border:    #2c2c2c;
  --text:      #e8e8e8;
  --text-sec:  #a0a0a0;
  --text-muted:#666666;
  --label:     #606060;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px;
}

/* ── NAV (as on the other pages; theme.css styles the links and the switch) ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg, #fafafa);
  pointer-events: none;
}
nav > * { pointer-events: auto; }
.nav-brand { flex-shrink: 0; display: flex; align-items: center; gap: 8px; position: relative; }
.nav-logo-img { height: 34px; width: auto; display: block; flex-shrink: 0; }
.nav-logo--dark { display: block; }
.nav-logo--light { display: none; }
html.dark .nav-logo--dark { display: none; }
html.dark .nav-logo--light { display: block; }
.nav-links { list-style: none; flex-shrink: 0; display: flex; align-items: stretch; gap: 2px; margin-left: auto; order: 1; }
.nav-links a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: #f5f5f5;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { background: #111; color: #fff; outline: none; }
html.dark .nav-links a, html.dark .nav-links a.active { background: #1e1e1e; color: #e8e8e8; }
html.dark .nav-links a:hover, html.dark .nav-links a:focus-visible { background: #f5f5f5; color: #111; }

@media (max-width: 768px) {
  .nav-logo-img { height: 26px; }
  .nav-links { gap: 2px; padding: 3px; border-radius: 6px; background: #f5f5f5; box-shadow: 0 2px 14px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06); }
  html.dark .nav-links { background: #1e1e1e; box-shadow: 0 2px 14px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08); }
  .nav-links a { height: 36px; padding: 0 12px; font-size: 11px; letter-spacing: 0.03em; }
}

/* ── SHARED ── */
.lab-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.lab-wide { max-width: 1600px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* a category tag: same shape as the site's other tags */
.lab-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 6px;
  background: var(--card);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-sec);
  white-space: nowrap;
}

/* ── LAB INDEX ── */
.lab-head { padding-block: clamp(48px, 9svh, 96px) 48px; }
.lab-head h1 {
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.lab-head p { max-width: 560px; margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--text-sec); }

.lab-list { list-style: none; border-top: 1px solid var(--hair); margin-bottom: 96px; }
.lab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 32px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--hair);
  color: inherit;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color .25s ease;
}
.lab-row:hover { background: var(--card); }
.lab-row:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.lab-row__text { display: grid; justify-items: start; gap: 8px; }
/* the title, with its tag right after it */
.lab-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lab-row__title { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.lab-row__desc { font-size: 15px; line-height: 1.5; color: var(--text-sec); }
/* the experiment itself, as a picture */
.lab-row__thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 60%, transparent);
  transition: transform .5s var(--ease);
}
.lab-row:hover .lab-row__thumb { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .lab-row__thumb { transition: none; } .lab-row:hover .lab-row__thumb { transform: none; } }

@media (max-width: 768px) {
  .lab-wrap { padding: 0 20px; }
  .lab-row { grid-template-columns: minmax(0, 1fr) 108px; gap: 16px; padding: 18px 4px; }
  .lab-row__title { font-size: 21px; }
}

/* ── EXPERIMENT PAGE ── */
.exp-head { padding-block: clamp(28px, 5svh, 56px) 32px; display: grid; gap: 56px; justify-items: start; }
/* the way back: a clear pill at the top left */
.exp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background-color .2s ease, border-color .2s ease;
}
.exp-back:hover { border-color: var(--text-muted); }
.exp-back:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.exp-back svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.exp-back:hover svg { transform: translateX(-3px); }
.exp-head h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 64px); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }
.exp-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 72px; padding-block: 40px 56px; border-top: 1px solid var(--hair); }
.exp-pager a { color: inherit; text-decoration: none; }
.exp-pager__side { display: grid; gap: 6px; }
.exp-pager__side span:last-child { font-family: var(--serif); font-size: 20px; }
.exp-pager__side:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.exp-pager__next { text-align: right; justify-self: end; }
.exp-pager__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  font-size: 13px;
  transition: background-color .2s ease;
}
.exp-pager__back:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.exp-pager__back .mono { color: var(--text-sec); }

@media (max-width: 860px) {
  .exp-pager { grid-template-columns: 1fr 1fr; }
  .exp-pager__back { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}

/* ══ COMPOSER ══ */
.cmp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
}

/* the projected slide sits on a screen-dark surround in both themes */
.cmp-view {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: #121212;
  color: #d9d9d6;
  overflow: hidden;
}
.cmp-canvas-wrap { position: relative; flex: 1; display: grid; place-items: center; padding: 24px; }

/* click-to-edit: the text under the pointer, outlined, with what clicking will do */
.cmp-hit {
  position: absolute;
  border: 1.5px dashed rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.cmp-hit[hidden] { display: none; }
.cmp-hit span {
  position: absolute;
  left: -1.5px;
  bottom: calc(100% + 6px);
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background: #ecece9;
  color: #121212;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
/* as wide as the column allows, but never taller than the window can show */
.cmp-canvas-wrap canvas {
  display: block;
  width: min(100%, calc((100svh - 220px) * 16 / 9));
  aspect-ratio: 16 / 9;
  height: auto;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Present: the slide alone, letterboxed in black */
.cmp-canvas-wrap:fullscreen { padding: 0; background: #000; cursor: none; }
.cmp-canvas-wrap:fullscreen canvas { width: 100vw; height: 100vh; object-fit: contain; box-shadow: none; }
.cmp-canvas-wrap:-webkit-full-screen { padding: 0; background: #000; cursor: none; }
.cmp-canvas-wrap:-webkit-full-screen canvas { width: 100vw; height: 100vh; object-fit: contain; box-shadow: none; }

.cmp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.cmp-read { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-width: 0; font-size: 13px; color: #e8c27a; }
.cmp-read:empty::before { content: "Live preview · 1920 × 1080"; color: #8f8f8c; }
.cmp-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #e0a94a; vertical-align: 1px; }
.cmp-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ecece9;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}
.cmp-btn:hover { background: rgba(255, 255, 255, 0.14); }
.cmp-btn--solid { background: #ecece9; color: #121212; }
.cmp-btn--solid:hover { background: #fff; }
.cmp-btn:focus-visible { outline: 2px solid #ecece9; outline-offset: 2px; }
.cmp-btn svg { width: 14px; height: 14px; }

/* ── the control panel ── */
.cmp-panel {
  /* takes the preview's height instead of setting its own, then scrolls */
  height: 0;
  min-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.cmp-sec { border-bottom: 1px solid var(--hair); }
.cmp-sec > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 450;
  color: var(--text);
}
.cmp-sec > summary::-webkit-details-marker { display: none; }
.cmp-sec > summary span { color: var(--text-muted); }
.cmp-sec > summary svg { width: 12px; height: 12px; color: var(--text-muted); transition: rotate .35s var(--ease); }
.cmp-sec[open] > summary svg { rotate: 180deg; }
.cmp-sec > summary:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.cmp-body { display: grid; gap: 14px; padding: 2px 16px 20px; }

.cmp-field { display: grid; gap: 6px; }
.cmp-field > label, .cmp-label { font-size: 12px; color: var(--text-sec); display: flex; justify-content: space-between; gap: 8px; }
.cmp-field output { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.cmp-hint { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.cmp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.cmp-input, .cmp-select, .cmp-text {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.cmp-input { height: 38px; padding: 0 12px; }
/* 2. our own chevron, set in from the edge */
.cmp-select {
  height: 38px;
  padding: 0 38px 0 12px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%23777' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  cursor: pointer;
}
.cmp-text { min-height: 150px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.cmp-input:focus-visible, .cmp-select:focus-visible, .cmp-text:focus-visible { outline: 2px solid var(--text); outline-offset: -1px; }
/* under 16px, iOS zooms the page when a field takes focus */
@media (pointer: coarse) { .cmp-input, .cmp-select, .cmp-text { font-size: 16px; } }
.cmp-file { font-size: 12px; color: var(--text-sec); }
.cmp-file::file-selector-button { height: 32px; margin-right: 10px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }

/* sliders: dark fill up to a white nub; --p is the filled share, set by the script */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  --fill: var(--text);
  --rest: color-mix(in srgb, var(--text) 14%, transparent);
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--fill) var(--p, 50%), var(--rest) var(--p, 50%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform .15s ease;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--rest); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--fill); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, 0.18); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 25%, transparent), 0 1px 3px rgba(0, 0, 0, 0.25); }
.cmp-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.cmp-check input { width: 16px; height: 16px; accent-color: var(--text); border-radius: 4px; }

/* a two- or three-way choice, built like the site's segmented controls */
.cmp-seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.cmp-seg button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-sec);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cmp-seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

/* liturgical seasons: a swatch per season, today's marked */
.cmp-seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cmp-season {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.cmp-season i { width: 16px; height: 16px; flex: none; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.cmp-season span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* today's season: a small dot on its swatch, keyed under the grid, so names stay on one line */
.cmp-season i { position: relative; }
.cmp-season[data-today] i::after,
.cmp-today-dot {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fa76a;
  box-shadow: 0 0 0 2px var(--bg);
}
.cmp-season[data-today] i::after { position: absolute; right: -3px; top: -3px; }
.cmp-today-dot { display: inline-block; margin-right: 4px; vertical-align: 0; box-shadow: none; }

/* ground colour: a swatch you can open, and a way back to the season's */
.cmp-colour { display: flex; align-items: center; gap: 12px; }
.cmp-colour input[type="color"] {
  width: 56px;
  height: 38px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}
.cmp-colour input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.cmp-colour input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.cmp-colour input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }
.cmp-colour input[type="color"]:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

/* upload, with removal right beside it */
.cmp-file-row { display: flex; align-items: center; gap: 8px; }

/* a top label's text, with its Hide switch beside it */
.cmp-label-row { display: flex; align-items: center; gap: 12px; }
.cmp-label-row .cmp-input { flex: 1; min-width: 0; }
.cmp-label-row .cmp-check { flex: none; color: var(--text-sec); }
.cmp-input:disabled { opacity: 0.45; }

/* the field a click on the slide opened */
@keyframes cmp-flash { from { box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 22%, transparent); } to { box-shadow: 0 0 0 4px transparent; } }
.cmp-input.is-flash, .cmp-text.is-flash { animation: cmp-flash 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .cmp-input.is-flash, .cmp-text.is-flash { animation: none; } }
.cmp-file-row .cmp-file { flex: 1; min-width: 0; }
.cmp-season[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

/* an overlay: on/off, then opacity and scale */
.cmp-orn { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--hair); }
.cmp-orn:first-child { border-top: 0; padding-top: 0; }
.cmp-orn .cmp-row { font-size: 11px; color: var(--text-muted); }
.cmp-orn .cmp-row label { display: grid; gap: 2px; }
.cmp-orn[data-off] .cmp-row { opacity: .4; }

.cmp-presets { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cmp-small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cmp-small-btn:hover { border-color: var(--text-muted); }
.cmp-small-btn { white-space: nowrap; }
.cmp-small-btn[hidden], .cmp-text-btn[hidden] { display: none; }
/* exporting, then presets: a hairline between the two jobs */
.cmp-split { padding-top: 14px; border-top: 1px solid var(--hair); }
/* a quiet action: reads as a link, not a fourth button */
.cmp-text-btn {
  justify-self: start;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.cmp-text-btn:hover { color: var(--text); }
.cmp-text-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.cmp-note { min-height: 18px; font-size: 12px; color: var(--text-muted); }

@media (max-width: 1100px) {
  .cmp { grid-template-columns: 1fr; height: auto; }
  .cmp-canvas-wrap { padding: 16px; }
  .cmp-canvas-wrap canvas { width: 100%; }
  .cmp-panel { height: auto; min-height: 0; overflow: visible; }
  .cmp-bar { flex-wrap: wrap; }
}

/* Present where the Fullscreen API isn't offered (iPhone Safari): the slide
   fills the window in a fixed black layer, with a way out */
.cmp-canvas-wrap.is-presenting {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 0;
  background: #000;
}
.cmp-canvas-wrap.is-presenting canvas { width: 100vw; height: 100dvh; object-fit: contain; box-shadow: none; }
.cmp-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cmp-close[hidden] { display: none; }

@media (max-width: 600px) {
  .exp-head { padding-block: 4px 24px; gap: 40px; }
  .exp-back { height: 36px; font-size: 13px; }
  /* the slide gets the width; the frame around it thins */
  .cmp-view, .cmp-panel { border-radius: 8px; }
  .cmp-canvas-wrap { padding: 8px; }
  .cmp-bar { padding: 10px; }
  .cmp-read:empty { display: none; }
  .cmp-actions { width: 100%; }
  .cmp-actions .cmp-btn { flex: 1; justify-content: center; height: 42px; }
  .cmp-sec > summary { height: 50px; }
  .cmp-field > label:has(.cmp-label-hint) { flex-direction: column; gap: 2px; }
  .cmp-season small { display: none; }
  .exp-pager { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .lab-row, .cmp-sec > summary svg { transition: none; }
}
