/* Daleel Research: poster and slide designs (exported to PNG/PDF/PPTX) and the presentation-tool screens.
   Export rules (html2canvas and PowerPoint read these): text in pills and badges is centred with line-height, never
   flex baseline tricks; list markers are ::before shapes; no negative margins; no opacity on text (explicit colours);
   rules and bars are real elements, not borders on shapes; letter-spacing only where it is designed. */

/* ================================================================ poster */
/* Canvas 1200 px wide (A0: 1 px ≈ 2 pt in print). Sizes are relative to --fs, the body size fit() picks between the
   24 pt floor and the largest size the content allows; small text has floors of its own. */
.pst { position: relative; overflow: hidden; box-sizing: border-box; background: var(--bg); color: var(--text); font-family: var(--fb); font-size: var(--fs); line-height: 1.4; letter-spacing: 0; text-align: left; }
.pst *, .sl * { box-sizing: border-box; }
/* Zero specificity, so every component's own margins win. */
:where(.pst, .sl) :where(p, h3) { margin: 0; }
.pst-tplbg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pst-inner { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1em; padding-bottom: 1.15em; }
.pst.tpl .pst-inner { top: var(--st); bottom: var(--sb); left: var(--sl); right: var(--sr); padding: 0; }

.pst-head { flex: 0 0 auto; padding: 1.7em 2.6em 1.6em; color: #fff; text-align: center; background: linear-gradient(90deg, var(--dark), var(--dark2)); }
.pst-head.on-tpl { background: transparent; color: var(--text); padding: .3em .8em .1em; }
.pst-logos { display: flex; justify-content: center; align-items: center; gap: 1.2em; margin-bottom: .9em; }
.pst-logos img { height: 2.7em; width: auto; max-width: 9em; }
.pst-title { margin: 0; font-family: var(--fh); font-weight: var(--fwh); font-size: clamp(34px, 2.85em, 64px); line-height: 1.1; letter-spacing: -.008em; word-spacing: .04em; text-wrap: balance; }
.pst-title .hl { color: var(--accent-dk); }
.pst-subtitle { margin: .4em 0 0; font-family: var(--fh); font-weight: 500; font-size: 1.32em; line-height: 1.25; color: rgba(255, 255, 255, .86); }
.pst-authors { margin: .95em 0 0; font-weight: 600; font-size: 1.12em; line-height: 1.35; }
.pst-affs { margin: .3em 0 0; font-size: max(10px, .8em); line-height: 1.4; color: rgba(255, 255, 255, .82); }
.pst-head.on-tpl .pst-title { color: var(--title); font-size: clamp(30px, 2.4em, 56px); }
.pst-head.on-tpl .pst-title .hl { color: var(--accent-ink); }
.pst-head.on-tpl .pst-subtitle, .pst-head.on-tpl .pst-affs { color: var(--muted); }
/* Organiser template with a dark title band: the title block turns light (the content cards stay white). */
.pst.tpl-dark .pst-head.on-tpl, .pst.tpl-dark .pst-head.on-tpl .pst-title { color: #fff; }
.pst.tpl-dark .pst-head.on-tpl .hl { color: var(--accent); }
.pst.tpl-dark .pst-head.on-tpl .pst-subtitle, .pst.tpl-dark .pst-head.on-tpl .pst-affs { color: rgba(255, 255, 255, .85); }

/* The answer, right under the title, for the passer-by who gives the poster five seconds */
.pst-hero { flex: 0 0 auto; margin: 0 1.2em; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6em; align-items: center; padding: 1.3em 1.6em 1.35em; border-radius: .9em; background: var(--surface); }
.pst.tpl .pst-hero { margin: 0; }
.pst-hero.solo { grid-template-columns: 1fr; }
.pst-hero-k { font-family: var(--fh); font-weight: 700; font-size: max(10px, .8em); line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--accent2-ink); }
.pst-hero-line { margin: .35em 0 0; font-family: var(--fh); font-weight: 700; font-size: 1.7em; line-height: 1.22; letter-spacing: -.005em; color: var(--title); text-wrap: balance; }
.pst-hero-line b { color: var(--primary-ink); }
.pst-hero-nums { display: grid; gap: .7em; }
.pst-hero-nums.n1 { grid-template-columns: 1fr; }
.pst-hero-nums.n2 { grid-template-columns: repeat(2, 1fr); }
.pst-hero-nums.n3 { grid-template-columns: repeat(3, 1fr); }

.pst-grid { display: grid; gap: 1em; padding: 0 1.2em; min-height: 0; }
.pst.tpl .pst-grid { padding: 0; }
.pst-grid.g2 { grid-template-columns: 1fr 1fr; }
.pst-grid.g3 { grid-template-columns: 1fr 1.15fr 1fr; flex: 1 1 0; }
/* The top row takes every spare pixel; the bottom row is as tall as its longer column, and the shorter column spreads
   its own blocks, so no card ends in an empty band. */
.pst-grid.top { flex: 1 1 0; }
.pst-grid.bottom { flex: 0 0 auto; }
/* Arrangement B (chosen by fit when it balances better): Conclusion across the bottom, in two columns of its own. */
.pst-grid.bottom.single { grid-template-columns: 1fr; }
.pst-grid.bottom.single > .pst-col:empty { display: none; }
.pst-grid.bottom.single .c-concl > .pst-body { display: grid; grid-template-columns: 1.45fr 1fr; column-gap: 1.8em; row-gap: .8em; align-items: start; }
.pst-grid.bottom.single .c-concl .pst-concl { grid-row: span 2; }
.pst.measure .pst-card.grow > .pst-body { justify-content: flex-start; }
.pst.measure .pst-discs { flex: 0 0 auto; }
.pst-col { display: flex; flex-direction: column; gap: 1em; min-height: 0; min-width: 0; }
.pst-card { position: relative; display: flex; flex-direction: column; gap: .8em; padding: 1.15em 1.25em 1.25em; background: var(--surface); border-radius: .85em; overflow: hidden; flex: 0 0 auto; min-width: 0; }
.pst-card.grow { flex: 1 1 0; min-height: 0; }
.pst-grid.bottom .pst-card.grow { flex: 1 1 auto; }
.pst-body { display: flex; flex-direction: column; gap: .8em; flex: 1 1 auto; min-height: 0; }
.pst-card.grow > .pst-body { justify-content: space-between; }
/* Numbered section heading inside its card: the reading path 1 to 5 */
.pst-h { display: flex; align-items: center; gap: .6em; }
.pst-hn { flex: 0 0 auto; display: block; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--fh); font-weight: 700; font-size: .95em; line-height: 1.75em; text-align: center; }
.pst-ht { flex: 0 0 auto; font-family: var(--fh); font-weight: 700; font-size: 1.16em; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-ink); }
.pst-hr { flex: 1 1 auto; height: 2px; background: var(--line); }

.pst-point { display: flex; gap: .7em; align-items: flex-start; }
.pst-ico { flex: 0 0 2.2em; height: 2.2em; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.pst-ico svg { width: 1.25em; height: 1.25em; }
.pst-point p { padding-top: .2em; }
.pst-point b, .pst-small b, .pst-list b, .pst-concl b { color: var(--title); }
.pst-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.6em, 1fr)); gap: .6em; }
.pst-stat { display: flex; flex-direction: column; gap: .25em; padding: .7em .85em .8em; border-radius: .7em; background: var(--tint); min-width: 0; }
.pst-stat b { display: block; font-family: var(--fh); font-weight: 700; font-size: 1.95em; line-height: 1.05; letter-spacing: -.015em; color: var(--primary-ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.pst-stat.big b { font-size: 2.5em; }
.pst-stat span { display: block; font-size: max(10px, .8em); line-height: 1.3; font-weight: 600; color: var(--text); }
.pst-stat i { display: block; font-style: normal; font-size: max(9px, .7em); line-height: 1.3; color: var(--muted); }
.pst-stat.tone-good b { color: var(--accent2-ink); }
.pst-stat.tone-bad b { color: #B42318; }
.pst-aim { padding: .75em .95em .8em; border-radius: .65em; background: var(--tint2); }
.pst-aim-k { display: block; margin-bottom: .2em; font-family: var(--fh); font-weight: 700; font-size: max(9px, .72em); line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.pst-aim p { font-weight: 600; color: var(--title); }

.pst-pico { display: grid; grid-template-columns: 1fr 1fr; gap: .7em .9em; }
.pst-pico-i { display: flex; gap: .6em; align-items: flex-start; }
.pst-letter { flex: 0 0 auto; display: block; width: 1.9em; height: 1.9em; border-radius: .45em; background: var(--primary); color: var(--on-primary); font-family: var(--fh); font-weight: 700; font-size: 1em; line-height: 1.9em; text-align: center; }
.pst-pico-i p { font-size: .92em; line-height: 1.32; }
.pst-plabel { font-family: var(--fh); font-size: .82em; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink); }
.pst-chips { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.pst-chip { display: block; padding: .22em .8em .26em; border-radius: 99em; background: var(--tint); color: var(--primary-ink); font-weight: 600; font-size: .84em; line-height: 1.3; }
.pst-chip-d { display: block; margin-left: .3em; font-size: .8em; color: var(--muted); }
.pst-small { font-size: .9em; line-height: 1.38; }

/* Native search flow: a funnel that narrows to the included studies */
.pst-flow { display: flex; flex-direction: column; align-items: center; margin-top: .1em; }
.pst-fl { display: flex; justify-content: space-between; align-items: center; gap: .8em; padding: .5em .95em .55em; border-radius: .55em; background: var(--tint); }
.pst-fl span { font-size: .86em; line-height: 1.25; font-weight: 600; color: var(--text); }
.pst-fl b { font-family: var(--fh); font-weight: 700; font-size: 1.32em; line-height: 1.1; color: var(--primary-ink); white-space: nowrap; }
.pst-fl b small { font-size: .62em; font-weight: 600; }
.pst-fl.last { background: var(--primary); }
.pst-fl.last span, .pst-fl.last b { color: var(--on-primary); }
.pst-flx { display: flex; align-items: center; gap: .4em; height: 1.9em; font-size: max(9px, .76em); color: var(--muted); }
.pst-flx-ic svg { display: block; width: 1.1em; height: 1.1em; }

.pst-banner { display: block; align-self: flex-start; padding: .35em .9em .4em; border-radius: 99em; background: var(--dark); color: #fff; font-weight: 600; font-size: .88em; line-height: 1.3; }
.pst-figs { display: flex; flex-direction: column; gap: .9em; }
.pst-fig { margin: 0; display: flex; flex-direction: column; gap: .45em; align-items: center; }
.pst-fig-art { flex: 0 0 auto; overflow: hidden; border-radius: .45em; background: #fff; }
.pst-fig:not(.native) .pst-fig-art { border: 1px solid var(--line); }
.pst-fig-art img { display: block; width: 100%; height: 100%; max-width: none; }
.pst-fig figcaption { align-self: stretch; font-size: max(10px, .78em); line-height: 1.35; color: var(--muted); }
.pst-list { list-style: none; margin: 0; padding: 0; }
.pst-list > li { position: relative; padding-left: 1.05em; margin: 0 0 .45em; }
.pst-list > li:last-child { margin-bottom: 0; }
.pst-list > li::before { content: ""; position: absolute; left: .1em; top: .52em; width: .38em; height: .38em; border-radius: 50%; background: var(--accent); }

.pst-discs { display: flex; flex-direction: column; gap: .7em; flex: 1 1 auto; justify-content: space-between; }
.pst-disc { padding: .65em .9em .7em; border-radius: .6em; background: var(--tint); }
.pst-disc p { font-size: .95em; line-height: 1.38; }
.pst-disc p > b { font-family: var(--fh); color: var(--primary-ink); }
.pst-concl { list-style: none; margin: 0; padding: 0; counter-reset: concl; display: flex; flex-direction: column; gap: .55em; }
.pst-concl > li { counter-increment: concl; position: relative; padding-left: 1.7em; font-size: 1.04em; line-height: 1.36; }
.pst-concl > li::before { content: counter(concl) "."; position: absolute; left: 0; font-family: var(--fh); font-weight: 700; color: var(--accent2-ink); }
.pst-endrow { display: flex; gap: 1em; align-items: flex-end; justify-content: space-between; margin-top: .2em; }
.pst-contact { flex: 1 1 auto; min-width: 0; }
.pst-contact-k { display: block; font-size: max(9px, .7em); line-height: 1.2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pst-contact p { margin-top: .15em; font-size: .86em; line-height: 1.35; }
.pst-qr { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .3em; padding: .5em; border-radius: .6em; background: #fff; border: 1px solid var(--line); }
.pst-qr-art svg { display: block; width: 6.6em; height: 6.6em; }
.pst-qr span { display: block; font-size: max(8px, .6em); line-height: 1.2; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink); }
.pst-refs { list-style: none; margin: 0; padding: 0; counter-reset: pref; font-size: max(8px, .62em); line-height: 1.35; color: var(--muted); }
.pst-refs > li { counter-increment: pref; position: relative; padding-left: 1.7em; margin-bottom: .2em; }
.pst-refs > li::before { content: counter(pref) "."; position: absolute; left: 0; width: 1.3em; text-align: right; font-weight: 600; }
.pst.land .pst-title { font-size: clamp(32px, 2.4em, 60px); }

/* ================================================================ slides */
/* Canvas 1280 × 720 (960 × 720 for 4:3); 1 px = 0.75 pt in PowerPoint. Each text role has a size, scaled by the deck
   density --k that fitSlides() picks, and a floor it never goes below; titles step on their own (--kt). */
.sl {
  --t-title: max(34px, calc(44px * var(--kt)));
  --t-lead: max(25px, calc(31px * var(--k)));
  --t-body: max(23px, calc(27px * var(--k)));
  --t-label: max(19px, calc(22px * var(--k)));
  --t-cap: max(16px, calc(18px * var(--k)));
  --t-num: max(50px, calc(64px * var(--k)));
  --t-hero: max(78px, calc(108px * var(--k)));
  position: relative; overflow: hidden; color: var(--text); font-family: var(--fb); font-size: var(--t-body); line-height: 1.3; letter-spacing: 0; text-align: left;
}
.sl-bg { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, var(--dark), var(--dark2)); }
.sl-bg.light { background: var(--surface); }
.sl-orb { position: absolute; right: -200px; bottom: -290px; width: 680px; height: 680px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.r43 .sl-orb { right: -260px; }
.sl-progress { position: absolute; left: 0; top: 0; height: 6px; background: var(--primary); }
.sl-logos { position: absolute; top: 30px; right: 48px; display: flex; gap: 16px; align-items: center; height: 48px; }
.sl-logos img { height: 48px; width: auto; max-width: 150px; }
.t-title .sl-logos { top: 40px; right: 56px; height: 56px; }
.t-title .sl-logos img { height: 56px; max-width: 170px; }
.sl-main { position: absolute; left: 64px; right: 64px; top: 46px; bottom: 74px; display: flex; flex-direction: column; min-height: 0; }
.sl.has-logos:not(.dark) .sl-label, .sl.has-logos:not(.dark) .sl-title { padding-right: 200px; }
.sl-label { flex: 0 0 auto; margin: 0 0 14px; font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2-ink); }
.sl.dark .sl-label { color: var(--accent-dk); }
.sl-title { flex: 0 0 auto; margin: 0 0 30px; font-family: var(--fh); font-weight: var(--fwh); font-size: var(--t-title); line-height: 1.12; letter-spacing: -.012em; color: var(--title); text-wrap: balance; }
.sl-title b { color: var(--primary-ink); }
.sl-body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 26px; }
.sl-banner { flex: 0 0 auto; margin-top: 22px; padding: 14px 24px 15px; border-radius: 14px; background: var(--dark); color: #fff; font-weight: 600; font-size: var(--t-label); line-height: 1.3; text-align: center; }
.sl-banner b { color: var(--accent-dk); }
.sl-footer { position: absolute; left: 64px; right: 64px; bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; font-size: 16px; line-height: 1.3; color: var(--muted); }
.sl-footer > span:first-child { flex: 1 1 auto; min-width: 0; }
.sl-pg { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.sl.dark .sl-footer { color: rgba(255, 255, 255, .72); }

/* No lone word on a last line, and no word broken at its own hyphen when a better break exists. */
.sl-list > li, .sl-card p, .sl-card h3, .sl-concl-i p, .sl-lim h3, .sl-lim p, .sl-pico-t p, .sl-step p, .sl-stat span, .sl-q, .sl-fbox span,
.pst-list > li, .pst-concl > li, .pst-point p, .pst-disc p, .pst-aim p, .pst-pico-i p, .pst-small, .pst-fig figcaption, .sl-fig figcaption { text-wrap: pretty; }
.sl-list { list-style: none; margin: 0; padding: 0; font-size: var(--t-lead); line-height: 1.3; }
.sl-list > li { position: relative; padding-left: 1.05em; margin: 0 0 .62em; }
.sl-list > li:last-child { margin-bottom: 0; }
.sl-list > li::before { content: ""; position: absolute; left: .08em; top: .48em; width: .34em; height: .34em; border-radius: 50%; background: var(--accent); }
.sl-list b { color: var(--title); }
.sl-list.small { font-size: var(--t-body); }
.sl-list.small > li { margin-bottom: .5em; }

.sl-stats { display: grid; gap: 24px; }
.sl-stats.n1 { grid-template-columns: 1fr; }
.sl-stats.n2, .sl-stats.n4 { grid-template-columns: repeat(2, 1fr); }
.sl-stats.n3 { grid-template-columns: 1.15fr 1fr; }
.sl-stats.n3 > .hero { grid-row: span 2; }
.sl-stats.col { grid-template-columns: 1fr; gap: 16px; }
.sl-stat { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 28px 26px; border-radius: 18px; background: var(--tint); min-width: 0; }
.sl-stat b { display: block; font-family: var(--fh); font-weight: 700; font-size: var(--t-num); line-height: 1.04; letter-spacing: -.02em; color: var(--primary-ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.sl-stat.hero b, .sl-stats.n1 .sl-stat b { font-size: var(--t-hero); }
.sl-stat span { display: block; font-size: var(--t-label); line-height: 1.28; font-weight: 600; color: var(--text); }
.sl-stat i { display: block; font-style: normal; font-size: var(--t-cap); line-height: 1.32; color: var(--muted); }
.sl-stats.col .sl-stat { padding: 18px 22px 20px; gap: 6px; }
.sl-stats.col .sl-stat b { font-size: max(40px, calc(52px * var(--k))); }
.sl-stat.tone-good b { color: var(--accent2-ink); }
.sl-stat.tone-bad b { color: #B42318; }

.sl-cards { display: grid; gap: 22px; }
.sl-cards.n1 { grid-template-columns: 1fr; }
.sl-cards.n2, .sl-cards.n4 { grid-template-columns: repeat(2, 1fr); }
.sl-cards.n3 { grid-template-columns: repeat(3, 1fr); }
.sl-card { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; border-radius: 18px; background: var(--tint); min-width: 0; }
.sl-num { display: block; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--fh); font-weight: 700; font-size: 20px; line-height: 42px; text-align: center; }
.sl-card h3 { font-family: var(--fh); font-weight: 700; font-size: max(24px, calc(29px * var(--k))); line-height: 1.18; color: var(--title); }
.sl-card p { font-size: var(--t-body); line-height: 1.3; }

.sl-pico { display: flex; flex-direction: column; gap: calc(22px * var(--k)); }
.sl-pico-i { display: flex; gap: 24px; align-items: center; }
.sl-letter { flex: 0 0 auto; display: block; width: calc(56px * var(--k)); height: calc(56px * var(--k)); border-radius: 14px; background: var(--primary); color: var(--on-primary); font-family: var(--fh); font-weight: 700; font-size: calc(28px * var(--k)); line-height: calc(56px * var(--k)); text-align: center; }
.sl-pico-t { flex: 1 1 auto; min-width: 0; }
.sl-plabel { display: block; margin-bottom: 4px; font-size: max(15px, calc(16px * var(--k))); line-height: 1.2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sl-pico-t p { font-size: var(--t-body); line-height: 1.28; }

.sl-figrow { display: flex; gap: 36px; flex: 1 1 0; min-height: 0; align-items: flex-start; }
.sl-figrow.wide { flex-direction: column; gap: 22px; align-items: stretch; }
.sl-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; min-width: 0; }
.sl-figrow.wide .sl-fig { align-items: center; }
.sl-fig-art { flex: 0 0 auto; overflow: hidden; border-radius: 12px; background: #fff; }
.sl-fig:not(.native) .sl-fig-art { border: 1px solid var(--line); }
.sl-fig-art img { display: block; width: 100%; height: 100%; max-width: none; }
.sl-fig-missing { width: 640px; height: 340px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--tint); color: var(--muted); font-size: var(--t-label); }
.sl-fig figcaption { align-self: stretch; font-size: var(--t-cap); line-height: 1.35; color: var(--muted); }
.sl-take { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.sl-figrow.wide .sl-take { flex: 0 0 auto; flex-direction: row; align-items: flex-start; gap: 28px; }
.sl-figrow.wide .sl-take > * { flex: 1 1 0; min-width: 0; }
.sl-figrow.wide .sl-stats.col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.sl-tablewrap { min-height: 0; }
.sl-table { width: 100%; border-collapse: collapse; font-size: var(--t-label); line-height: 1.28; font-variant-numeric: tabular-nums; }
.sl-table th { padding: 0 16px 12px; text-align: left; vertical-align: bottom; font-size: 16px; line-height: 1.25; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--primary); }
.sl-table td { padding: calc(16px * var(--k)) 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.sl-table th:first-child, .sl-table td:first-child { padding-left: 0; }
.sl-table td:first-child { font-weight: 600; color: var(--title); }
.sl-table.r6 td, .sl-table.r7 td, .sl-table.r8 td { padding-top: 10px; padding-bottom: 10px; }
.sl-table td.cert { font-weight: 700; }
.sl-table td.cert::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em; border-radius: 50%; background: currentColor; }
.sl-table .c-high { color: #166534; }
.sl-table .c-mod { color: #1D4ED8; }
.sl-table .c-low { color: #B45309; }
.sl-table .c-vlow { color: #B91C1C; }

.sl-concl { display: flex; flex-direction: column; gap: calc(28px * var(--k)); }
.sl-concl-i { display: flex; gap: 24px; align-items: flex-start; }
.sl-cn { flex: 0 0 calc(54px * var(--k)); display: block; font-family: var(--fh); font-weight: 700; font-size: calc(44px * var(--k)); line-height: 1; color: var(--accent2-ink); }
.sl-concl-i p { flex: 1 1 auto; min-width: 0; padding-top: 2px; font-size: var(--t-lead); line-height: 1.3; }
.sl-concl-i p b { color: var(--title); }

.sl-lims { display: flex; flex-direction: column; gap: calc(18px * var(--k)); }
.sl-lim { padding: calc(20px * var(--k)) 26px calc(22px * var(--k)); border-radius: 16px; background: var(--tint); }
.sl-lim h3 { font-family: var(--fh); font-weight: 700; font-size: var(--t-lead); line-height: 1.22; color: var(--title); }
.sl-lim p { margin-top: 6px; font-size: var(--t-body); line-height: 1.3; }

.sl-steps { display: grid; gap: 28px; }
.sl-steps.n2 { grid-template-columns: repeat(2, 1fr); }
.sl-steps.n3 { grid-template-columns: repeat(3, 1fr); }
.sl-steps.n4 { grid-template-columns: repeat(4, 1fr); }
.sl-step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sl-step-bar { display: block; height: 6px; margin-bottom: 8px; border-radius: 3px; background: var(--primary); }
.sl-step-k { display: block; font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent2-ink); }
.sl-step b { display: block; font-family: var(--fh); font-weight: 700; font-size: max(32px, calc(42px * min(var(--k), 1.1))); line-height: 1.08; color: var(--primary-ink); white-space: nowrap; }
.sl-step p { font-size: var(--t-label); line-height: 1.3; }

.sl-flow { display: flex; align-items: stretch; }
.sl-fbox { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: calc(30px * var(--k)) 18px calc(32px * var(--k)); border-radius: 18px; background: var(--tint); text-align: center; }
.sl-fbox b { display: block; font-family: var(--fh); font-weight: 700; font-size: var(--t-num); line-height: 1.04; color: var(--primary-ink); white-space: nowrap; }
.sl-fbox span { display: block; font-size: var(--t-label); line-height: 1.25; font-weight: 600; }
.sl-fbox.last { background: var(--primary); }
.sl-fbox.last b, .sl-fbox.last span { color: var(--on-primary); }
.sl-farrow { flex: 0 0 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 6px; text-align: center; }
.sl-farrow svg { display: block; width: 44px; height: 22px; }
.sl-farrow span { display: block; font-size: max(15px, calc(17px * var(--k))); line-height: 1.25; color: var(--muted); }

.sl-cmp { display: flex; flex-direction: column; gap: calc(26px * var(--k)); }
.sl-cmp-row { display: grid; grid-template-columns: 280px 1fr 210px; gap: 28px; align-items: center; }
.r43 .sl-cmp-row { grid-template-columns: 200px 1fr 170px; }
.sl-cmp-l { display: block; font-size: var(--t-lead); line-height: 1.22; font-weight: 600; }
.sl-cmp-track { height: calc(52px * var(--k)); border-radius: 12px; background: var(--tint); overflow: hidden; }
.sl-cmp-bar { height: 100%; border-radius: 12px; background: var(--primary); }
.sl-cmp-row.alt .sl-cmp-bar { background: var(--grey); }
.sl-cmp-v { display: block; font-family: var(--fh); font-weight: 700; font-size: var(--t-num); line-height: 1.04; color: var(--primary-ink); text-align: right; white-space: nowrap; }
.sl-cmp-row.alt .sl-cmp-v { color: var(--muted); }
.sl-cmp-note { font-size: var(--t-cap); line-height: 1.35; color: var(--muted); }

.sl-refrow { display: flex; gap: 40px; flex: 1 1 0; min-height: 0; }
.sl-refs { flex: 1 1 0; min-width: 0; list-style: none; margin: 0; padding: 0; font-size: max(16px, calc(18px * var(--k))); line-height: 1.35; }
.sl-refs > li { counter-increment: ref; position: relative; padding-left: 2.1em; margin-bottom: .55em; }
.sl-refs > li::before { content: counter(ref) "."; position: absolute; left: 0; width: 1.6em; text-align: right; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.sl-qr { position: absolute; right: 88px; top: 50%; width: 300px; margin-top: -172px; padding: 24px 24px 18px; border-radius: 22px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sl-qr svg { display: block; width: 252px; height: 252px; }
.sl-qr span { display: block; font-size: 16px; line-height: 1.25; font-weight: 600; color: #1D1D1F; text-align: center; }
.sl-qr.light { position: static; flex: 0 0 240px; width: 240px; margin: 0; padding: 18px 18px 14px; align-self: flex-start; border: 1px solid var(--line); }
.sl-qr.light svg { width: 200px; height: 200px; }
.r43 .sl-qr { right: 48px; width: 260px; }
.r43 .sl-qr svg { width: 212px; height: 212px; }

/* Title, statement and closing: dark, quiet, one idea each */
.sl-titlebox { position: absolute; left: 88px; right: 120px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.sl-rule { width: 56px; height: 5px; margin-bottom: 22px; border-radius: 3px; background: var(--accent); }
.sl-kicker { font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.sl-h1 { margin: 18px 0 0; font-family: var(--fh); font-weight: var(--fwh); font-size: max(38px, calc(56px * var(--kt))); line-height: 1.08; letter-spacing: -.018em; color: #fff; text-wrap: balance; }
.sl-h1 .hl, .sl-h1 b { color: var(--accent-dk); }
.sl-sub { margin: 18px 0 0; font-size: 26px; line-height: 1.3; color: rgba(255, 255, 255, .84); }
.sl-authors { margin: 40px 0 0; font-size: 24px; line-height: 1.35; font-weight: 600; color: #fff; }
.sl-affs { margin: 8px 0 0; font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.t-statement .sl-main { justify-content: center; padding-bottom: 20px; }
.t-statement .sl-label { margin-bottom: 22px; }
.sl-statement { font-family: var(--fh); font-weight: var(--fwh); font-size: max(40px, calc(58px * var(--kt))); line-height: 1.14; letter-spacing: -.016em; color: #fff; max-width: 1060px; text-wrap: balance; }
.sl-statement b { color: var(--accent-dk); }
.sl-q { margin-top: 30px; max-width: 980px; font-size: var(--t-lead); line-height: 1.32; color: rgba(255, 255, 255, .88); }
.sl-closing { position: absolute; left: 88px; right: 120px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.sl-closing.has-qr { right: 470px; }
.r43 .sl-closing.has-qr { right: 340px; }
.sl-kicker2 { font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dk); }
.sl-message { margin-top: 18px; font-family: var(--fh); font-weight: var(--fwh); font-size: max(32px, calc(46px * var(--kt))); line-height: 1.15; letter-spacing: -.014em; color: #fff; text-wrap: balance; }
.sl-message b { color: var(--accent-dk); }
.sl-contact { margin-top: 42px; }
.sl-cname { font-size: 26px; line-height: 1.3; font-weight: 600; }
.sl-cmail { margin-top: 4px; font-size: 22px; line-height: 1.3; color: rgba(255, 255, 255, .86); }
.sl-cinst { margin-top: 4px; font-size: 18px; line-height: 1.35; color: rgba(255, 255, 255, .74); }
.sl-thanks { position: absolute; left: 0; bottom: 70px; font-family: var(--fh); font-weight: 600; font-size: 28px; line-height: 1.2; color: rgba(255, 255, 255, .92); }

/* ================================================================ tool screens */
.dz-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ev-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ev-file { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; }
.ev-file button { border: 0; background: none; cursor: pointer; color: inherit; padding: 0; display: inline-flex; }
.ev-file .ic { width: 14px; height: 14px; }
.ev-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ev-cols h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .02em; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(22, 24, 31, .12); }   /* the hex code sits in the title attribute */
.swatch-l { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pal-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: #fff; border: 1.5px solid rgba(0, 0, 0, .07); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; font: inherit; color: inherit; }
.pal-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .07); }
.pal-card.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.pal-mock { position: relative; height: 128px; border-radius: 12px; overflow: hidden; }
.pal-mock .pm-band { position: absolute; left: 0; right: 0; top: 0; height: 36%; }
.pal-mock .pm-title { position: absolute; left: 12px; right: 12px; top: 10px; height: 9px; border-radius: 5px; opacity: .95; }
.pal-mock .pm-title.s2 { top: 25px; right: 40%; opacity: .6; }
.pal-mock .pm-card { position: absolute; top: 44%; bottom: 10px; width: 42%; border-radius: 8px; }
.pal-mock .pm-card.l { left: 12px; } .pal-mock .pm-card.r { right: 12px; }
.pal-mock .pm-pill { position: absolute; top: calc(44% - 6px); width: 60px; height: 12px; border-radius: 99px; }
.pal-mock .pm-pill.l { left: calc(12px + 21% - 30px); } .pal-mock .pm-pill.r { right: calc(12px + 21% - 30px); }
.pal-name { font-weight: 700; font-size: 15px; }
.pal-why { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.au-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.au-table th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; padding: 0 6px; }
.au-table td { padding: 0 4px; vertical-align: middle; }
.au-table .field { width: 100%; }
.au-table .narrow { width: 90px; }
.au-table .tiny-col { width: 70px; text-align: center; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 10px; }
.asset { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); }
.asset-img { height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #f5f5f7; overflow: hidden; }
.asset-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.asset .field { font-size: 12px; padding: 6px 8px; }
.art-sum { display: grid; gap: 10px; }
.art-sum .kv div { grid-template-columns: 140px 1fr; }
.design-stage { position: relative; overflow: hidden; border-radius: 18px; background: #e9ecf1; padding: 18px; }
.design-scale { transform-origin: 0 0; }
.design-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.design-tools .row { gap: 8px; }
.slide-list { display: flex; flex-direction: column; gap: 18px; }
.slide-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.slide-meta { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); padding-top: 4px; }
.slide-meta b { font-size: 15px; color: var(--text-1); }
.slide-box { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); background: #fff; }
.slide-tools { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; opacity: .55; transition: opacity .2s; }
.slide-item:hover .slide-tools, .slide-tools:focus-within { opacity: 1; }
.slide-tools .icon-btn { width: 30px; height: 30px; }
.slide-tools .icon-btn:disabled { opacity: .3; cursor: default; }

/* Rehearsal mode: dark, calm, everything the presenter needs at a glance */
.rh { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 18px 24px 22px; background: #0B0D12; color: #F5F5F7; font-family: var(--font, system-ui); }
.rh-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.rh-clock { display: flex; align-items: baseline; gap: 10px; }
.rh-clock b { font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rh-clock b.near { color: #FFB340; }
.rh-clock b.over { color: #FF6961; }
.rh-clock span { font-size: 15px; color: rgba(255, 255, 255, .6); }
.rh-mid { display: flex; align-items: center; gap: 14px; }
.rh-n { font-size: 15px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.rh-slide { padding: 6px 14px; border-radius: 99px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(48, 209, 88, .18); color: #30D158; }
.rh-slide.near { background: rgba(255, 179, 64, .18); color: #FFB340; }
.rh-slide.over { background: rgba(255, 105, 97, .2); color: #FF6961; }
.rh-actions { display: flex; justify-content: flex-end; gap: 8px; }
.rh-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.rh-btn:hover { background: rgba(255, 255, 255, .18); }
.rh-btn .ic { width: 20px; height: 20px; }
.rh-end { background: #fff; color: #0B0D12; }
.rh-end:hover { background: #E5E5EA; }
.rh-main { display: grid; grid-template-columns: 1fr 300px; gap: 20px; min-height: 0; }
.rh-stage { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.rh-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.rh-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.rh-next { width: 100%; opacity: .85; }
.rh-last { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .6); }
.rh-help { margin-top: auto; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.rh-notes { max-height: 30vh; overflow: auto; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.rh-key { margin: 0 0 8px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.rh-cue { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; color: var(--accent-on-dark); }
.rh-cue .ic { width: 18px; height: 18px; flex: none; }
.rh-text { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.rh-cut { margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, .55); }
.rh-blank { position: fixed; inset: 0; z-index: 201; background: #000; }
.rh-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.rh-table th, .rh-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid rgba(0, 0, 0, .07); font-variant-numeric: tabular-nums; }
.rh-table th { font-size: 12px; color: var(--text-3); }
@media (max-width: 900px) { .rh-main { grid-template-columns: 1fr; } .rh-side { display: none; } .rh-clock b { font-size: 30px; } }
.backup-sep { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.backup-sep::before, .backup-sep::after { content: ''; height: 1px; flex: 1; background: rgba(0, 0, 0, .1); }
.editing [data-edit] { outline: 1.5px dashed rgba(var(--brand-rgb), .55); outline-offset: 2px; border-radius: 3px; cursor: text; }
.editing [data-edit]:focus { outline: 2px solid var(--accent); background: rgba(var(--brand-rgb), .06); }
.time-pill { font-variant-numeric: tabular-nums; }
.script-unit { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.script-unit:first-child { border-top: 0; }
.script-unit textarea { width: 100%; min-height: 90px; }
.su-h b { display: block; font-size: 13.5px; }
.su-key, .su-cue { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--ink-2, #3a3a3c); }
.su-cut { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.su-h span { font-size: 12px; color: var(--text-3); }
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); }
.qa summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--brand-wash-solid); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.qa-topic { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.qa-body { margin: 10px 0 0 36px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.qa-body .basis { font-size: 12.5px; color: var(--text-3); }
.qa-body .caution { font-size: 12.5px; color: #b25b00; }
.safe-sliders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.safe-sliders label { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
@media screen and (max-width: 760px) {
  .dz-row, .ev-cols { grid-template-columns: 1fr; }
  .script-unit { grid-template-columns: 1fr; }
  .slide-item { grid-template-columns: 1fr; }
  .slide-meta { flex-direction: row; justify-content: flex-start; }
  .safe-sliders { grid-template-columns: 1fr 1fr; }
}

/* ================================================================ printing a design */
body.printing-design > *:not(.print-host) { display: none !important; }
.print-host { display: none; }
body.printing-design .print-host { display: block; }
.print-host .print-page { overflow: hidden; page-break-after: always; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
