/* Slidestory: the talk track and accessibility blocks in the options room, and present mode. */

/* ---------- what to say ---------- */
.gs-extra { display: grid; gap: 16px; }
.gs-extra:empty { display: none; }
.gs-lr { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gs-lr .gs-l { margin: 0; }
.say { font: 500 clamp(15px, 1.4vw, 17px)/1.5 var(--sans); color: var(--ink); text-wrap: pretty; white-space: pre-line; }
.say-n { font-size: 12.5px; color: var(--muted); }
.copy { display: inline-flex; align-items: center; font: 600 13px/1 var(--sans); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.copy:hover { border-color: var(--ink); background: var(--surface); }
.copy[data-s="ok"] { background: var(--ok-bg); border-color: transparent; color: var(--ok-fg); }
.copy[data-s="bad"] { background: var(--tune-bg); border-color: transparent; color: var(--tune-fg); }

/* ---------- accessibility ---------- */
.ax-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ax-r { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ax-d { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--ok); }
.ax-r[data-l="note"] .ax-d { background: var(--tune); }
.ax-r[data-l="warn"] .ax-d { background: var(--bad); }
.ax-more { margin-top: 2px; }
.ax-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); width: fit-content; }
.ax-alt { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ax-copy { margin-top: 8px; }

/* ---------- the Present button beside Download ---------- */
.sc-pr svg { width: 15px; height: 15px; }
.dgo svg { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }

/* ---------- present mode ---------- */
dialog.pr { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #05070F; color: #EEF1FC; overflow: hidden; }
dialog.pr::backdrop { background: #05070F; }
.pr-in { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; outline: none; }
.pr-main { position: relative; min-height: 0; }
.pr-stage { container-type: size; position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.pr-slide { width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #000; }
.pr-slide svg { display: block; width: 100%; height: 100%; }
.pr-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pr-prog { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--mark); transition: width .3s var(--ease); }
.pr-bar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(18, 25, 54, .88); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); transition: opacity .25s; max-width: calc(100% - 24px); }
.pr-b, .pr-t { display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--sans); min-height: 40px; border-radius: 999px; border: 0; background: transparent; color: #EEF1FC; cursor: pointer; transition: background .15s; }
.pr-b { width: 40px; }
.pr-b svg { width: 18px; height: 18px; }
.pr-t { padding: 0 14px; }
.pr-b:hover:not(:disabled), .pr-t:hover { background: rgba(255, 255, 255, .12); }
.pr-b:disabled { opacity: .35; cursor: default; }
.pr-t[aria-pressed="true"] { background: var(--mark); color: var(--mark-ink); }
.pr-x { background: rgba(255, 255, 255, .12); }
.pr-pos { min-width: 58px; text-align: center; font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: #C9D1EE; }
.pr-sp { width: 1px; align-self: stretch; margin: 6px 4px; background: rgba(255, 255, 255, .18); }
.pr button:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
/* with the talk showing, the controls move to the top corner so they never cover the bottom of the picture */
.pr[data-notes="1"] .pr-bar { top: 14px; bottom: auto; left: auto; right: 14px; transform: none; }
.pr[data-idle="1"] .pr-bar { opacity: 0; pointer-events: none; }
.pr[data-idle="1"] .pr-stage { cursor: none; }
.pr-bar:focus-within { opacity: 1 !important; pointer-events: auto !important; }
.pr-notes { max-height: 34vh; overflow-y: auto; padding: 18px clamp(20px, 6vw, 96px) 24px; background: #0D1330; border-top: 1px solid rgba(255, 255, 255, .12); }
.pr-note { max-width: 70ch; margin: 0 auto; font: 500 clamp(18px, 2.3vw, 28px)/1.45 var(--sans); white-space: pre-line; text-wrap: pretty; color: #EEF1FC; }
.pr-note[data-empty="1"] { color: #98A4CC; }
@media (max-width: 640px) {
  .pr-t { padding: 0 10px; }
  .pr-bar { bottom: 10px; gap: 2px; }
  .pr-pos { min-width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-prog { transition: none; }
}
