/* The Wrapped (intensive.wrapped.js): slides in the look of the team's
   Community deck (Community_Slides.pdf, George 24 Nov). Colours sampled
   from it: lavender, olive and one orange, and every word in New Edge.
   Every slide is drawn on a 1600 x 900 canvas in units of --u, a
   sixteen-hundredth of the stage's width (a container query unit), so the
   same slide is right full screen, as a thumbnail and on the phone remote. */

:root {
  --wr-lav: #CEC1CA;
  --wr-olive: #38382B;
  --wr-orange: #CE622B;
  --wr-face: 'New Edge 666', 'Inter Tight', system-ui, sans-serif;
}

.wr-stage { position: relative; width: 100%; height: 100%; container-type: inline-size; overflow: hidden; }
.wr-slide {
  --u: 0.0625cqw;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-start;
  padding: calc(60 * var(--u)) calc(192 * var(--u));
  font-family: var(--wr-face); font-weight: 400;
  color: var(--wr-orange);
  -webkit-font-smoothing: antialiased;
}
.wr-slide.is-olive { justify-content: center; text-align: center; color: var(--wr-lav); }
.wr-thumb { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--wr-olive); }
.wr-thumb.is-lav { background: var(--wr-lav); }
.wr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* the % the trial font hasn't got, drawn to sit on the figures' baseline */
.wr-pct { display: inline-block; height: .7em; width: .6em; margin-left: .05em; vertical-align: baseline; overflow: visible; }

/* ---- the cover: WRAPPED / 2026 with the parts between ---- */
.wr-cover { margin-left: calc(180 * var(--u)); }
.wr-cover-t { font-size: calc(196 * var(--u)); line-height: .86; letter-spacing: -.005em; }
.wr-cover-l { display: flex; gap: calc(100 * var(--u)); margin: calc(6 * var(--u)) 0 calc(6 * var(--u)) calc(12 * var(--u)); font-size: calc(22 * var(--u)); line-height: 1; color: var(--wr-olive); }

/* ---- sections and quotes (olive, centred) ---- */
.wr-sec { max-width: calc(1240 * var(--u)); }
.wr-sec-t { margin: 0; font-size: calc(124 * var(--u)); font-weight: 400; line-height: 1.02; text-wrap: balance; }
.wr-sec-s { margin-top: calc(28 * var(--u)); font-size: calc(46 * var(--u)); line-height: 1.3; text-wrap: balance; }
.wr-quote { display: flex; flex-direction: column; align-items: center; max-width: calc(1120 * var(--u)); }
.wr-q { margin: 0; line-height: 1.22; text-wrap: balance; }
.wr-q.is-xl { font-size: calc(76 * var(--u)); }
.wr-q.is-l { font-size: calc(66 * var(--u)); }
.wr-q.is-m { font-size: calc(56 * var(--u)); }
.wr-q.is-s { font-size: calc(47 * var(--u)); }
.wr-q.is-xs { font-size: calc(39 * var(--u)); }
.wr-by { margin-top: calc(56 * var(--u)); font-size: calc(40 * var(--u)); }

/* ---- numbers (lavender, left) ---- */
.wr-stat { display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: calc(1220 * var(--u)); }
.wr-big { font-size: calc(250 * var(--u)); line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr-text { margin-top: calc(44 * var(--u)); max-width: calc(1000 * var(--u)); font-size: calc(48 * var(--u)); line-height: 1.32; }
.wr-pairs { display: flex; gap: calc(110 * var(--u)); margin-top: calc(56 * var(--u)); }
.wr-pair-n { font-size: calc(104 * var(--u)); line-height: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr-pair-t { margin-top: calc(16 * var(--u)); max-width: calc(330 * var(--u)); font-size: calc(26 * var(--u)); line-height: 1.3; }
.wr-line { margin-top: calc(40 * var(--u)); font-size: calc(40 * var(--u)); line-height: 1.3; color: var(--wr-olive); }
.wr-source { margin-top: calc(36 * var(--u)); font-size: calc(25 * var(--u)); line-height: 1.3; color: var(--wr-olive); }
/* a number with a long statement under it (the health check's) */
.wr-stat:has(.wr-line) .wr-big { font-size: calc(200 * var(--u)); }
.wr-stat:has(.wr-line) .wr-text { margin-top: calc(34 * var(--u)); font-size: calc(46 * var(--u)); }
.wr-stat:has(.wr-line) .wr-line { margin-top: calc(22 * var(--u)); font-size: calc(30 * var(--u)); }
/* a number with a chart under it */
.wr-stat.has-chart .wr-big, .wr-stat:has(.wr-days, .wr-shape, .wr-cols) .wr-big { font-size: calc(170 * var(--u)); }
.wr-stat:has(.wr-days, .wr-shape, .wr-cols) .wr-text { margin-top: calc(26 * var(--u)); font-size: calc(42 * var(--u)); }
.wr-stat:has(.wr-days) .wr-pairs { margin-top: calc(36 * var(--u)); }
.wr-stat:has(.wr-days) .wr-pair-n { font-size: calc(80 * var(--u)); }

/* ---- lists (lavender, left, like the Scripture slides) ---- */
.wr-list { width: 100%; max-width: calc(1220 * var(--u)); }
.wr-list-h { font-size: calc(50 * var(--u)); line-height: 1.25; margin-bottom: calc(34 * var(--u)); }
.wr-rows { list-style: none; margin: 0; padding: 0; }
.wr-row { display: flex; align-items: baseline; gap: calc(36 * var(--u)); padding: calc(16 * var(--u)) 0; border-top: calc(1.5 * var(--u)) solid rgba(56, 56, 43, .14); }
.wr-row-n { flex: none; width: calc(150 * var(--u)); font-size: calc(72 * var(--u)); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr-row-t { min-width: 0; font-size: calc(36 * var(--u)); line-height: 1.28; }
.wr-list.is-long .wr-list-h { margin-bottom: calc(22 * var(--u)); }
.wr-list.is-long .wr-row { padding: calc(11 * var(--u)) 0; }
.wr-list.is-long .wr-row-n { font-size: calc(58 * var(--u)); }
.wr-list.is-long .wr-row-t { font-size: calc(30 * var(--u)); }
.wr-list.is-long .wr-source { margin-top: calc(24 * var(--u)); }
.wr-row-s { display: block; margin-top: calc(6 * var(--u)); font-size: calc(22 * var(--u)); color: var(--wr-olive); }

/* ---- charts on lavender ---- */
.wr-cols { display: flex; align-items: flex-end; gap: calc(28 * var(--u)); margin-top: calc(44 * var(--u)); }
.wr-col { width: calc(118 * var(--u)); display: flex; flex-direction: column; align-items: flex-start; gap: calc(10 * var(--u)); }
.wr-col-n { font-size: calc(26 * var(--u)); font-variant-numeric: tabular-nums; color: var(--wr-olive); }
.wr-col-b { height: calc(170 * var(--u)); width: 100%; display: flex; align-items: flex-end; }
.wr-col-b > div { width: 100%; background: rgba(56, 56, 43, .16); }
.wr-col.is-top .wr-col-b > div { background: var(--wr-orange); }
.wr-col.is-top .wr-col-n { color: var(--wr-orange); }
.wr-col-l { font-size: calc(21 * var(--u)); color: var(--wr-olive); white-space: nowrap; }

.wr-days { display: flex; align-items: flex-end; gap: calc(8 * var(--u)); height: calc(110 * var(--u)); width: calc(1100 * var(--u)); margin-top: calc(44 * var(--u)); }
.wr-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: calc(6 * var(--u)); }
.wr-day > div { width: 100%; background: rgba(56, 56, 43, .2); }
.wr-day.is-hot > div { background: var(--wr-orange); }
.wr-day span { min-height: 1.2em; white-space: nowrap; }
.wr-day span { font-size: calc(15 * var(--u)); color: var(--wr-olive); font-variant-numeric: tabular-nums; }

.wr-shape { display: grid; grid-template-columns: calc(250 * var(--u)) calc(660 * var(--u)) calc(230 * var(--u)); gap: calc(22 * var(--u)) calc(30 * var(--u)); align-items: center; margin-top: calc(48 * var(--u)); }
.wr-shape-r { display: contents; }
.wr-shape-t { font-size: calc(34 * var(--u)); color: var(--wr-olive); }
.wr-shape-b { display: flex; height: calc(30 * var(--u)); gap: calc(3 * var(--u)); }
.wr-shape-n { font-size: calc(48 * var(--u)); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr-shape-n small { font-size: calc(22 * var(--u)); margin-left: calc(10 * var(--u)); color: var(--wr-olive); }
.wr-shape .is-b0, .wr-key .is-b0 { background: rgba(56, 56, 43, .12); }
.wr-shape .is-b1, .wr-key .is-b1 { background: rgba(56, 56, 43, .32); }
.wr-shape .is-b2, .wr-key .is-b2 { background: var(--wr-orange); }
.wr-key { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-top: calc(30 * var(--u)); font-size: calc(22 * var(--u)); color: var(--wr-olive); }
.wr-key span { width: calc(18 * var(--u)); height: calc(18 * var(--u)); margin-left: calc(18 * var(--u)); }
.wr-key span:first-child { margin-left: 0; }

.wr-close-t { font-size: calc(150 * var(--u)); line-height: 1; }

/* ---- what we did: a grid of numbers, four across ---- */
.wr-gridslide { width: 100%; max-width: calc(1220 * var(--u)); }
.wr-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(46 * var(--u)) calc(40 * var(--u)); margin-top: calc(10 * var(--u)); }
.wr-tile-n { font-size: calc(120 * var(--u)); line-height: .95; font-variant-numeric: tabular-nums; }
.wr-tile-t { margin-top: calc(12 * var(--u)); font-size: calc(28 * var(--u)); line-height: 1.3; max-width: calc(260 * var(--u)); }
.wr-gridslide .wr-source { margin-top: calc(48 * var(--u)); }

/* a long plain line (the health check's word on the room) sits smaller */
.wr-stat.has-long-line .wr-line { font-size: calc(32 * var(--u)); max-width: calc(1100 * var(--u)); }

/* ---- full screen ---- */
html.wr-on, html.wr-on body { overflow: hidden; }
.wr-show {
  position: fixed; inset: 0; z-index: 2147483000;
  background: var(--wr-olive); cursor: none;
  transition: background-color .6s ease;
}
.wr-show[data-tone="lav"] { background: var(--wr-lav); }
.wr-show.is-pointer { cursor: default; }
.wr-show-stage { position: absolute; left: 50%; top: 50%; width: min(100vw, 177.78vh); height: auto; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
.wr-show .wr-slide { transition: opacity .35s ease; }
.wr-show .wr-slide.is-leaving { opacity: 0; pointer-events: none; }
.wr-show .wr-in { transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 110ms + 140ms); }
.wr-show .wr-slide.is-entering .wr-in { opacity: 0; transform: translateY(calc(26 * var(--u))); transition: none; }
.wr-show .wr-slide.is-entering.is-back .wr-in { transform: translateY(calc(-18 * var(--u))); }
.wr-show-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .08); }
.wr-show-bar > div { height: 100%; background: var(--wr-orange); opacity: .55; transition: width .5s ease; }
.wr-show-x {
  position: absolute; top: 18px; right: 22px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .18); color: #fff; font: 400 24px/1 'Inter Tight', sans-serif; cursor: pointer;
  opacity: 0; transition: opacity .25s ease;
}
.wr-show.is-pointer .wr-show-x { opacity: 1; }
.wr-show-hit { position: absolute; top: 0; bottom: 0; z-index: 2; }
.wr-show-hit.is-back { left: 0; width: 30%; }
.wr-show-hit.is-next { right: 0; width: 70%; }
@media (prefers-reduced-motion: reduce) {
  .wr-show, .wr-show .wr-slide, .wr-show .wr-in { transition: none !important; }
}

/* ---- the console tab ---- */
.wr-present-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.intensive-admin .wr-present-row .adm-btn { padding: 11px 18px; font-size: 14px; }
.wr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 14px; }
.wr-grid-i { cursor: pointer; border-radius: 10px; outline-offset: 3px; }
.wr-grid-i .wr-thumb { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .15s ease; }
.wr-grid-i:hover .wr-thumb { transform: translateY(-2px); }
.wr-grid-l { display: flex; gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.3; color: var(--fg); }
.wr-grid-l span { color: var(--mut2); font-variant-numeric: tabular-nums; }
.wr-star {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  border: 1px solid var(--inbr); border-radius: 999px; padding: 3px 10px 3px 8px;
  background: transparent; color: var(--mut); font: 500 12px/1.2 'Inter Tight', system-ui, sans-serif; cursor: pointer;
}
.wr-star.is-on { border-color: var(--wr-orange); background: var(--wr-orange); color: #fff; }

/* ---- the remote ---- */
.wr-remote {
  position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto;
  background: #2A2A20; color: var(--wr-lav);
  display: flex; flex-direction: column; gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  font-family: 'Inter Tight', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.wr-r-top { display: flex; align-items: center; justify-content: space-between; }
.wr-r-x { width: 52px; border: 0; background: none; color: var(--wr-lav); font: 500 15px/1 'Inter Tight', sans-serif; padding: 8px 0; text-align: left; cursor: pointer; }
.wr-r-pos { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.wr-r-now .wr-thumb { border-radius: 12px; box-shadow: 0 0 0 2px var(--wr-orange); }
.wr-r-label { font-size: 17px; font-weight: 600; line-height: 1.3; }
.wr-r-next { display: grid; grid-template-columns: 42% 1fr; gap: 6px 14px; align-items: center; opacity: .85; }
.wr-r-next span { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.wr-r-next em { font-style: normal; font-size: 14px; line-height: 1.35; }
.wr-r-all { border-top: 1px solid rgba(220, 208, 215, .14); padding-top: 10px; }
.wr-r-all summary { font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.wr-r-all ol { list-style: none; margin: 8px 0 0; padding: 0; }
.wr-r-all li { display: flex; gap: 12px; padding: 10px 4px; font-size: 15px; border-radius: 8px; cursor: pointer; }
.wr-r-all li span { width: 22px; text-align: right; opacity: .5; font-variant-numeric: tabular-nums; }
.wr-r-all li.is-on { background: rgba(207, 98, 43, .22); }
.wr-r-btns { position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 10px; padding-top: 10px; background: linear-gradient(transparent, #2A2A20 30%); }
.wr-r-b { height: 76px; width: 84px; border-radius: 22px; border: 1px solid rgba(220, 208, 215, .25); background: transparent; color: var(--wr-lav); font: 500 34px/1 'Inter Tight', sans-serif; cursor: pointer; }
.wr-r-b.is-next { flex: 1; border: 0; background: var(--wr-orange); color: #fff; font-size: 22px; font-weight: 600; }
.wr-r-b:disabled { opacity: .35; cursor: default; }
@media (min-width: 900px) { .wr-remote { padding-left: max(18px, calc(50vw - 300px)); padding-right: max(18px, calc(50vw - 300px)); } }
