/* Our experiments on top of the copied landing site. Loaded by landing/server.mjs on every page;
   nothing in landing/site/ is edited. Colours come from the site's own variables. */

/* Matrix canvases: the canvas redraws the glyphs, so the still artwork underneath is switched off
   (hero) or painted over cell by cell (playbook, closing). */
.lab-matrix {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease-out;
}
.lab-matrix[data-ready] {
  opacity: 1;
}
.hero-pulse_wrap > .lab-matrix {
  z-index: -1;
}
.hero-pulse_wrap[data-lab-matrix]::before {
  background-image: none;
}
.hero-pulse_wrap[data-lab-matrix] .hero-pulse_spotlight {
  display: none;
}
.backdrop-pulse_wrap.playbook > .lab-matrix {
  mask-image: linear-gradient(#000 65%, #0000);
}
.cta-pulse_wrap > .lab-matrix {
  inset: 0;
  z-index: -1;
}

/* Formations card: players slide between formations. */
.pulse-graphic_formation[data-lab-formations] .pulse-graphic_formation-player {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--lab-player-delay, 0ms);
}

/* Possession Data card: single values light up for a moment. */
.lab-stats {
  display: block;
  width: 100%;
  height: auto;
}
.lab-stats path {
  transition: opacity 0.45s ease-out;
}

/* Play List card: the real Play List has no scrubber any more, so the card shows a small play
   table with new plays arriving on top. */
.pulse-graphic_wrap.timeline[data-lab-playlist] .pulse-graphic_timeline {
  display: none;
}
.lab-plays {
  width: min(100%, 17.5rem);
  height: 5.75rem;
  overflow: hidden;
  font-family: chakra-petch, 'Chakra Petch', ui-monospace, monospace;
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-2, #a9afbd);
  mask-image: linear-gradient(#000 55%, #0000);
}
.lab-plays_head,
.lab-plays_row {
  display: grid;
  grid-template-columns: 2rem 4.25rem 1fr 2.75rem 2rem;
  align-items: center;
  gap: 0.5rem;
  height: 1.25rem;
  padding-inline: 0.5rem;
}
.lab-plays_head {
  color: color-mix(in srgb, var(--text-2, #a9afbd) 60%, transparent);
  font-size: 0.5625rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.lab-plays_row {
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}
.lab-plays_row > :first-child,
.lab-plays_head > :first-child {
  color: color-mix(in srgb, var(--text-2, #a9afbd) 60%, transparent);
}
.lab-plays_row > :last-child,
.lab-plays_head > :last-child {
  text-align: right;
}
.lab-plays_row [data-gain='up'] {
  color: var(--brand-500, #8bf08f);
}
.lab-plays_row [data-gain='down'] {
  color: var(--signal-negative, #fa666c);
}
.lab-plays_row[data-new] {
  color: var(--text, #e8ebf2);
  background: rgb(255 255 255 / 0.05);
}
.lab-plays_list {
  will-change: transform;
}
.lab-plays_list[data-sliding] {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Podcast hosts: larger portraits. */
.podcast-pulse_portrait {
  width: 9.5rem;
}

/* Back to top. */
.lab-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--neutral-950, #05050a) 82%, transparent);
  color: var(--brand-500, #8bf08f);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem) scale(0.9);
  transition:
    opacity 0.35s ease-out,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.5s;
  backdrop-filter: blur(8px);
}
.lab-top[data-shown] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.35s ease-out,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}
.lab-top:hover .lab-top_arrow {
  transform: translateY(-3px);
}
.lab-top:active {
  transform: scale(0.94);
}
.lab-top:focus-visible {
  outline: 2px solid var(--brand-500, #8bf08f);
  outline-offset: 3px;
}
.lab-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.lab-top_track {
  stroke: rgb(255 255 255 / 0.14);
}
.lab-top_progress {
  stroke: currentColor;
}
.lab-top_arrow {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
  transform: none;
  transition: transform 0.25s ease-out;
}
.lab-top_arrow svg {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lab-matrix,
  .lab-top,
  .lab-top[data-shown],
  .lab-top_arrow,
  .lab-stats path,
  .lab-plays_list[data-sliding],
  .pulse-graphic_formation[data-lab-formations] .pulse-graphic_formation-player {
    transition: none;
  }
  .lab-top {
    transform: none;
  }
}

/* The card (contact). Its classes are still named lab-login. */
.lab-login {
  /* The site's reset zeroes margins, which would pin the layer to the top left. */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  width: min(24rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  background: none;
  color: var(--text, #e8ebf2);
  overflow: visible;
}
.lab-login::backdrop {
  background: rgb(3 4 8 / 0.72);
  backdrop-filter: blur(10px);
}
.lab-login[open] {
  animation: lab-login-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lab-login-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.97);
  }
}
.lab-login_close:focus-visible,
.lab-login input:focus-visible,
.lab-login_action:focus-visible,
.lab-login a:focus-visible {
  outline: 2px solid var(--brand-500, #8bf08f);
  outline-offset: 2px;
}
.lab-login_stage {
  perspective: 1200px;
}
.lab-login a.lab-login_action {
  color: #05050a;
  text-decoration: none;
}
/* Anchor links must stop below the menu now that it stays on screen. */
main [id],
section[id] {
  scroll-margin-top: calc(var(--nav-height, 4.5rem) + 1rem);
}
.lab-login_card {
  position: relative;
  height: 23rem;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.lab-login_face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 80% at 0% 100%, rgb(139 240 143 / 0.1), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgb(250 102 108 / 0.08), transparent 60%),
    rgb(13 15 21 / 0.96);
  backface-visibility: hidden;
}
.lab-login_face[data-side='back'] {
  transform: rotateY(180deg);
}
.lab-login_face[inert] {
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}
.lab-login_title {
  margin: 0;
  font-family: chakra-petch, 'Chakra Petch', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lab-login_note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-2, #a9afbd);
}
.lab-login label {
  display: grid;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-2, #a9afbd);
}
.lab-login input {
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 0.625rem;
  background: rgb(255 255 255 / 0.04);
  color: var(--text, #e8ebf2);
  font: inherit;
  font-size: 1rem;
}
.lab-login_action {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.625rem;
  background: var(--brand-500, #8bf08f);
  color: #05050a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lab-login_action[data-quiet] {
  background: rgb(255 255 255 / 0.06);
  color: var(--text, #e8ebf2);
  border: 1px solid rgb(255 255 255 / 0.14);
}
.lab-login_action svg {
  width: 1.125rem;
  height: 1.125rem;
}
/* The email face's code step (TPODWP-1461): one of its two forms shows at a time, and the links
   under them are full-size tap targets. */
.lab-login [hidden] {
  display: none !important;
}
.lab-login input[name='code'] {
  width: 100%;
  min-width: 0;
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}
.lab-login a {
  color: var(--brand-500, #8bf08f);
}
.lab-login_status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-2, #a9afbd);
}
.lab-login_close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-2, #a9afbd);
  cursor: pointer;
}
.lab-login_close svg {
  width: 1.125rem;
  height: 1.125rem;
}

@media (prefers-reduced-motion: reduce) {
  .lab-login[open] {
    animation: none;
  }
  .lab-login_card {
    transition: none;
  }
}

/* Contact layer. Front: the form. Back: the
   "message received" face, with a line that runs out before the layer closes itself. */
/* The close button sits above the card, at its right edge, (elsewhere it shares
   the row of the icons). The band it sits in is part of the layer, so both stay centred together. */
.lab-contact {
  width: min(31rem, calc(100vw - 2rem));
  /* The band is as tall as on the sign-in layer where the window has the room, and shrinks before
     the form would have to scroll. */
  --lab-contact-band: clamp(3.375rem, calc(100dvh - 41.625rem), 4.5rem);
  padding-top: var(--lab-contact-band);
}
/* The card is as tall as the form, whatever the fonts measure; both faces share the one grid cell.
   Only a window too short for the form makes a face scroll. */
.lab-contact .lab-login_card {
  display: grid;
  height: auto;
}
.lab-contact .lab-login_face {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  min-width: 0;
  max-height: calc(100dvh - 2rem - var(--lab-contact-band));
}
@media (max-width: 30rem) {
  .lab-contact {
    --lab-contact-band: clamp(2.75rem, calc(100dvh - 50.5rem), 4.5rem);
  }
}
.lab-contact .lab-login_face {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.22) transparent;
}
.lab-contact .lab-login_close {
  top: 0;
  right: 0;
}
.lab-contact form {
  display: grid;
  gap: 0.5rem;
  flex: 1;
  align-content: start;
}
.lab-contact_pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.lab-contact input,
.lab-contact textarea {
  min-width: 0;
  width: 100%;
}
.lab-contact textarea {
  min-height: 4rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 0.625rem;
  background: rgb(255 255 255 / 0.04);
  color: var(--text, #e8ebf2);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
@media (max-height: 46rem), (max-width: 30rem) and (max-height: 53rem) {
  .lab-contact {
    --lab-contact-band: 2.75rem;
  }
  .lab-contact .lab-login_face {
    gap: 0.5rem;
    padding-block: 1rem;
  }
  .lab-contact form {
    gap: 0.375rem;
  }
  .lab-contact textarea {
    height: 3.25rem;
    min-height: 3.25rem;
  }
}
.lab-contact [aria-invalid='true'] {
  border-color: var(--away-500, #fa666c);
}
.lab-contact_topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.lab-contact_topics legend {
  width: 100%;
  margin-bottom: 0.375rem;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-2, #a9afbd);
}
.lab-contact_topics label {
  position: relative;
  display: block;
}
.lab-contact_topics input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.lab-contact_topics span {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  color: var(--text, #e8ebf2);
}
/* Every chip carries a small ring that fills with a tick when chosen, so a chip keeps its width and
   its neighbours stay where they are. */
.lab-contact_topics span::before {
  content: '';
  flex: none;
  width: 1rem;
  height: 1rem;
  display: grid;
  place-items: center;
  margin-right: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}
.lab-contact_topics input:checked + span {
  border-color: var(--brand-500, #8bf08f);
  background: rgb(139 240 143 / 0.12);
  color: var(--brand-500, #8bf08f);
}
.lab-contact_topics input:checked + span::before {
  content: '\2713';
  border-color: var(--brand-500, #8bf08f);
  background: var(--brand-500, #8bf08f);
  color: #05050a;
}
.lab-contact_topics input:focus-visible + span,
.lab-contact textarea:focus-visible,
.lab-contact input:focus-visible,
.lab-contact .lab-login_close:focus-visible {
  outline: 2px solid var(--brand-500, #8bf08f);
  outline-offset: 2px;
}
.lab-contact form .lab-login_status {
  color: var(--away-500, #fa666c);
}
.lab-contact form .lab-login_action {
  margin-top: auto;
}

.lab-contact .lab-login_face[data-side='back'] {
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* A tick inside rings that travel outwards, like a signal going out. */
.lab-contact_signal {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  margin-top: auto;
  /* Room for the rings to travel without crossing the heading under the tick. */
  margin-bottom: 2.25rem;
  border-radius: 50%;
  background: var(--brand-500, #8bf08f);
  color: #05050a;
  animation: lab-contact-pop 0.5s 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.lab-contact_signal svg {
  width: 2rem;
  height: 2rem;
}
.lab-contact_signal::before,
.lab-contact_signal::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--brand-500, #8bf08f);
  border-radius: 50%;
  opacity: 0;
  animation: lab-contact-ring 1.8s 0.6s ease-out infinite;
}
.lab-contact_signal::after {
  animation-delay: 1.5s;
}
/* Not sent: no rings going out, and the mark is a cross, so the colour is not the only signal. */
.lab-contact_signal[data-failed] {
  background: var(--away-500, #fa666c);
}
.lab-contact_signal[data-failed]::before,
.lab-contact_signal[data-failed]::after {
  display: none;
}
.lab-contact_signal[data-failed] ~ .lab-login_title .lab-contact_settle {
  color: var(--away-500, #fa666c);
}
/* No countdown bar on this face: the button takes over its job of keeping the group centred. */
.lab-contact_signal[data-failed] ~ .lab-login_action {
  margin-top: auto;
}
/* A field people never see or reach; scripts that fill every field give themselves away. */
.lab-contact_trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lab-contact .lab-login_action[aria-disabled='true'] {
  opacity: 0.6;
  cursor: progress;
}
@keyframes lab-contact-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes lab-contact-ring {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}
.lab-contact_settle {
  font-variant-numeric: tabular-nums;
  color: var(--brand-500, #8bf08f);
}
.lab-contact_spoken {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lab-contact_reply {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.lab-contact_timer {
  width: 100%;
  height: 2px;
  margin-top: auto;
  border-radius: 1px;
  background: rgb(255 255 255 / 0.1);
  overflow: hidden;
}
.lab-contact_timer span {
  display: block;
  height: 100%;
  background: var(--brand-500, #8bf08f);
  transform-origin: right;
  animation: lab-contact-run var(--lab-close, 6s) linear forwards;
}
.lab-contact_timer[data-stopped] span {
  animation-play-state: paused;
}
@keyframes lab-contact-run {
  to {
    transform: scaleX(0);
  }
}
.lab-contact .lab-login_face[data-side='back'] .lab-login_action {
  width: 100%;
}
@media (max-width: 30rem) {
  .lab-contact_pair {
    grid-template-columns: 1fr;
  }
  .lab-contact .lab-login_face {
    padding: 1.25rem;
    gap: 0.625rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lab-contact_timer span,
  .lab-contact_signal,
  .lab-contact_signal::before,
  .lab-contact_signal::after {
    animation: none;
  }
}

/* Main menu stays at the top of the window while the page scrolls. It is clear over the hero and
   gets a dark glass backing once the reader has scrolled. The backing is a layer of its own, so the
   phone menu inside the header keeps covering the whole screen. */
.nav_wrap.overlap {
  position: fixed;
}
.nav_wrap:not(.overlap) {
  position: sticky;
  top: 0;
}
.nav_wrap.overlap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgb(5 5 10 / 0.78);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}
.nav_wrap.overlap[data-lab-scrolled]::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .nav_wrap.overlap::before {
    transition: none;
  }
}

/* Room between the closing section (the phone on green) and the footer, which sat right under it. */
.footer_wrap {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

/* The menu link of the section being read, or of the page you are on (QB Reports): the hover
   colour, plus a mark so that it is not told by colour alone. */
.nav_links .nav_link[aria-current='location'],
.nav_links .nav_link[aria-current='page'] {
  color: var(--text);
}
.nav_links .nav_link {
  position: relative;
}
.nav_links .nav_link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  height: 1px;
  background: var(--brand-500, #8bf08f);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.nav_links .nav_link[aria-current='location']::after,
.nav_links .nav_link[aria-current='page']::after {
  opacity: 1;
  transform: scaleX(1);
}
.footer_link[aria-current='page'] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--brand-500, #8bf08f);
  text-underline-offset: 0.25em;
}
@media (prefers-reduced-motion: reduce) {
  .nav_links .nav_link::after {
    transition: none;
  }
}

/* An answer the lab script slides: the site's own slide (Chromium only) would run a second time
   when the answer is marked shut. */
details.accordion_item[data-lab-slide]::details-content {
  transition: none;
}
@keyframes lab-scan-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.97);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Talk to Us: the one plan card left takes the full width and says what each audience gets. */
#talk .plan-pulse_wrap {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}
#talk .plan-pulse_name {
  max-width: none;
}
#talk .plan-pulse_description {
  padding-bottom: 0;
}
#talk .plan-pulse_description p {
  max-width: none;
}
.lab-talk_lead {
  padding: var(--space-4);
  max-width: 44ch;
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.625rem);
  line-height: 1.35;
  color: var(--text);
  text-wrap: balance;
}
.lab-talk_audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  border-block: var(--border-width) solid var(--border);
}
.lab-talk_audience {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem var(--space-4);
  min-width: 0;
}
.lab-talk_audience + .lab-talk_audience {
  border-inline-start: var(--border-width) solid var(--border);
}
.lab-talk_name {
  font: 600 0.8125rem/1.15 var(--display-family);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-500);
}
.lab-talk_audience:nth-child(2) .lab-talk_name {
  color: var(--text);
}
.lab-talk_audience:nth-child(3) .lab-talk_name {
  color: var(--signal-negative);
}
.lab-talk_line {
  font: 500 clamp(1.125rem, 1rem + 0.5vw, 1.375rem) / 1.2 var(--display-family);
  text-transform: uppercase;
  color: var(--text);
}
.lab-talk_points {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}
.lab-talk_points li {
  position: relative;
  padding-inline-start: 1.125rem;
  line-height: 1.4;
}
.lab-talk_points li::before {
  content: '';
  position: absolute;
  inset-block-start: 0.6em;
  inset-inline-start: 0;
  width: 0.5rem;
  height: 1px;
  background: currentColor;
}
@media (width < 60rem) {
  .lab-talk_audiences {
    grid-template-columns: 1fr;
  }
  .lab-talk_audience + .lab-talk_audience {
    border-inline-start: 0;
    border-block-start: var(--border-width) solid var(--border);
  }
}

/* Podcast card: the latest episode's still, dark and tinted; pointing at the card brings its colours
   up and turns the logo into a play ring. */
.lab-podcard {
  cursor: pointer;
}
.lab-podcard_art,
.lab-podcard_art > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lab-podcard_art {
  overflow: hidden;
  pointer-events: none;
}
.lab-podcard_art img {
  max-width: none;
  object-fit: cover;
  object-position: 50% 30%;
  transition:
    opacity 0.6s ease,
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.lab-podcard_gray {
  filter: grayscale(1) contrast(1.15) brightness(0.55);
}
.lab-podcard_colour {
  opacity: 0;
}
.lab-podcard_tint {
  background:
    linear-gradient(to top, rgb(5 5 10 / 0.94) 12%, rgb(5 5 10 / 0.25) 55%, rgb(5 5 10 / 0.55)),
    radial-gradient(ellipse at bottom left, rgb(139 240 143 / 0.38), transparent 62%),
    radial-gradient(ellipse at bottom right, rgb(250 102 108 / 0.3), transparent 62%),
    repeating-linear-gradient(rgb(0 0 0 / 0.16) 0 1px, transparent 1px 3px);
}
/* The Lined Up mark is the front of a coin; its back is a glass play button. */
.lab-podcard .podcast-pulse_logo {
  transform-style: preserve-3d;
  transform: perspective(44rem) rotateY(0deg);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.lab-podcard .podcast-pulse_logo img {
  backface-visibility: hidden;
}
.lab-podcard_ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand-500, #8bf08f);
  border-radius: 50%;
  background: rgb(5 5 10 / 0.28);
  color: var(--brand-500, #8bf08f);
  backface-visibility: hidden;
  transform: rotateY(180deg);
}
.lab-podcard_ring svg {
  width: 46%;
  height: 46%;
  /* A triangle looks centred a little right of its box. */
  translate: 4% 0;
}
.lab-podcard_info {
  position: relative;
  display: grid;
  gap: 0.375rem;
  align-content: end;
  /* A date and three lines of title. */
  min-height: 6.25rem;
  margin-bottom: 1rem;
}
.lab-podcard_when {
  font-size: 0.75rem;
  color: var(--brand-500, #8bf08f);
}
.lab-podcard_name {
  max-width: 46ch;
  font: 600 clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem) / 1.3 var(--display-family);
  color: var(--text, #fefffe);
  text-wrap: balance;
}
@media (hover: hover) {
  .lab-podcard:hover .lab-podcard_colour {
    opacity: 0.9;
  }
  .lab-podcard:hover .lab-podcard_art img {
    transform: scale(1.05);
  }
  .lab-podcard:hover .podcast-pulse_logo {
    transform: perspective(44rem) rotateY(180deg);
  }
}
.lab-podcard:has(button:focus-visible) .podcast-pulse_logo {
  transform: perspective(44rem) rotateY(180deg);
}
.lab-podcard:has(button:focus-visible) .lab-podcard_colour {
  opacity: 0.9;
}

/* Podcast player. */
.lab-pod {
  position: fixed;
  inset: 0;
  margin: auto;
  /* Wide enough to enjoy, narrow enough that a 16:9 screen, the title and the strip fit the window. */
  width: min(68rem, calc(100vw - 2rem), calc((100dvh - 27.5rem) * 16 / 9));
  min-width: min(20rem, calc(100vw - 2rem));
  height: fit-content;
  max-height: calc(100dvh - 1rem);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text, #fefffe);
  overflow: visible;
}
.lab-pod::backdrop {
  background: rgb(3 4 8 / 0.82);
  backdrop-filter: blur(14px);
}
.lab-pod_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  /* As on the contact card: the close button stands clear of what it closes. */
  padding-bottom: 1.25rem;
}
.lab-pod_show {
  margin: 0;
  font: 600 0.8125rem/1.2 var(--display-family);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lab-pod_close,
.lab-pod_step {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-2, #a9afbd);
  cursor: pointer;
}
.lab-pod_close svg,
.lab-pod_step svg {
  width: 1.25rem;
  height: 1.25rem;
}
.lab-pod_screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 1rem;
  background: #05050a;
  box-shadow:
    -3rem 2rem 8rem -2rem rgb(139 240 143 / 0.22),
    3rem 2rem 8rem -2rem rgb(250 102 108 / 0.2);
  overflow: hidden;
}
.lab-pod_screen > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  object-fit: cover;
}
.lab-pod_ground {
  filter: brightness(0.4);
}
.lab-pod_away {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.875rem;
  background: rgb(5 5 10 / 0.35);
}
.lab-pod_go {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0 1.5rem 0 1.125rem;
  border-radius: 999px;
  background: var(--brand-500, #8bf08f);
  color: #05050a;
  font-weight: 600;
  text-decoration: none;
}
.lab-pod_go svg {
  width: 1.5rem;
  height: 1.5rem;
}
.lab-pod_why {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text, #fefffe);
}
.lab-pod_item[data-away] .lab-pod_pick[aria-current] .lab-pod_when::before {
  content: 'On YouTube · ';
}
.lab-pod_now {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.lab-pod_now > div {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}
.lab-pod_title {
  margin: 0;
  font: 600 clamp(0.9375rem, 0.85rem + 0.4vw, 1.1875rem) / 1.3 var(--display-family);
}
.lab-pod_date {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-2, #a9afbd);
}
.lab-pod_out {
  flex: none;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  font-size: 0.8125rem;
  color: var(--brand-500, #8bf08f);
}
.lab-pod_out[hidden] {
  display: none;
}
.lab-pod_shelf {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  /* The lens may reach past the player's own width. */
  margin: 0 calc(-1 * min(3rem, (100vw - 100%) / 2));
}
.lab-pod_strip {
  display: flex;
  flex: 1;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  /* Room above for a grown episode: what scrolls sideways is cut off at its top edge. */
  padding: 4.5rem 2.5rem 0.75rem;
  list-style: none;
  overflow: auto hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 2rem calc(100% - 2rem),
    transparent
  );
  mask-image: linear-gradient(to right, transparent, #000 2rem calc(100% - 2rem), transparent);
}
.lab-pod_strip::-webkit-scrollbar {
  display: none;
}
/* Snapping would fight the gliding. */
.lab-pod_strip[data-gliding] {
  scroll-snap-type: none;
}
.lab-pod_item {
  flex: 0 0 10rem;
  min-width: 0;
  transform-origin: 50% 100%;
}
.lab-pod_pick {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.lab-pod_frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  background: #16181f;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12);
  overflow: hidden;
}
.lab-pod_still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.lab-pod_badge {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: rgb(5 5 10 / 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lab-pod_badge svg {
  width: 1.75rem;
  height: 1.75rem;
}
.lab-pod_pick[aria-current] .lab-pod_frame {
  box-shadow: 0 0 0 2px var(--brand-500, #8bf08f);
}
.lab-pod_pick[aria-current] .lab-pod_when::before {
  content: 'Now playing · ';
  color: var(--brand-500, #8bf08f);
}
.lab-pod_name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.6em;
  font-size: 0.75rem;
  line-height: 1.3;
  overflow: hidden;
}
.lab-pod_when {
  white-space: nowrap;
  font-size: 0.6875rem;
  color: var(--text-2, #a9afbd);
}
.lab-pod_step[aria-disabled='true'] {
  opacity: 0.3;
  cursor: default;
}
.lab-pod[data-fits] .lab-pod_step {
  visibility: hidden;
}
.lab-pod :focus-visible {
  outline: 2px solid var(--brand-500, #8bf08f);
  outline-offset: 2px;
}
@media (hover: hover) {
  .lab-pod_close:hover,
  .lab-pod_step:hover {
    color: var(--text, #fefffe);
    background: rgb(255 255 255 / 0.08);
  }
  .lab-pod_pick:hover .lab-pod_badge {
    opacity: 1;
  }
}
/* A low window: less room above the strip and a one-line title, so that the video stays large. */
@media (max-height: 46rem) and (min-height: 30.01rem) {
  .lab-pod {
    width: min(68rem, calc(100vw - 2rem), calc((100dvh - 22rem) * 16 / 9));
  }
  .lab-pod_title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lab-pod_now {
    margin-top: 0.5rem;
  }
  .lab-pod_strip {
    padding-block: 4rem 0.25rem;
  }
  .lab-pod_item {
    flex-basis: 8rem;
  }
}
/* No pointer to grow anything: no room needed for it, and the strip snaps as it is swiped. No buttons: a finger moves it. */
@media (hover: none), (max-width: 47.99rem) {
  .lab-pod_shelf {
    margin: 0;
  }
  .lab-pod_step {
    display: none;
  }
  .lab-pod_strip {
    padding: 1rem 1.25rem 0.75rem;
    scroll-snap-type: x proximity;
    scroll-padding: 1.25rem;
  }
  .lab-pod_item {
    flex-basis: 11rem;
    scroll-snap-align: start;
  }
}
@media (max-width: 30rem) {
  .lab-pod {
    width: calc(100vw - 1rem);
  }
  .lab-pod_now {
    flex-direction: column;
    gap: 0;
  }
}
/* A very low and narrow window: the strip scrolls in below the video. */
@media (max-height: 30rem) {
  .lab-pod {
    width: min(calc(100vw - 2rem), calc((100dvh - 5.5rem) * 16 / 9));
    overflow: hidden auto;
  }
}
/* A phone on its side: the video on the left, the episodes as a list on the right. */
@media (max-height: 30rem) and (min-width: 35rem) {
  .lab-pod[open] {
    --pod-list: 12rem;
    display: grid;
    grid-template: auto auto minmax(0, 1fr) / auto minmax(0, 1fr);
    column-gap: 1rem;
    width: calc(100vw - 2rem);
    height: calc(100dvh - 1rem);
    overflow: hidden;
  }
  .lab-pod_head {
    grid-area: 1 / 1 / auto / -1;
    padding-bottom: 0.25rem;
  }
  .lab-pod_screen {
    grid-area: 2 / 1;
    width: min(calc((100dvh - 7.25rem) * 16 / 9), calc(100vw - 3rem - var(--pod-list)));
  }
  .lab-pod_now {
    grid-area: 3 / 1;
    /* The video sets the column's width, not the title. */
    width: 0;
    min-width: 100%;
    flex-direction: row;
    align-items: center;
    align-self: start;
    margin: 0.5rem 0 0;
  }
  .lab-pod_title {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lab-pod_date,
  .lab-pod_step {
    display: none;
  }
  .lab-pod_shelf {
    grid-area: 2 / 2 / 4;
    align-items: stretch;
    min-height: 0;
    margin: 0;
  }
  .lab-pod_strip {
    flex-direction: column;
    padding: 0.25rem 0.25rem 1.5rem;
    overflow: hidden auto;
    scroll-snap-type: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);
  }
  .lab-pod_item {
    flex: none;
  }
  .lab-pod_pick {
    grid-template-columns: 45% minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 0.625rem;
  }
  .lab-pod_frame {
    grid-row: 1 / -1;
    align-self: start;
  }
  .lab-pod_name {
    min-height: 0;
  }
  .lab-pod_when {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lab-podcard_art img,
  .lab-podcard .podcast-pulse_logo {
    transition: none;
  }
  .lab-podcard:hover .lab-podcard_art img {
    transform: none;
  }
}

/* The site trims a paragraph's edges to its letters; several in one answer need the room back. */
.accordion_body p + p {
  margin-top: 1.25em;
}
/* Room for the letters that reach above and below: the answer is cut off at its edges. */
.accordion_body p:first-child {
  padding-top: 0.3em;
}
.accordion_body p:last-child {
  padding-bottom: 0.3em;
}
/* As high as it gets once the episode is in: nothing below it moves. */
@media (max-width: 47.99rem) {
  .podcast-pulse_show:has(.lab-podcard_info) {
    min-height: 21rem;
  }
}

/* Phones: one whole card per swipe, with nothing of the next one showing. The cards line up with the
   page margins and the list clips the rest. */
@media (max-width: 47.99rem) {
  .slider_wrap {
    --_visible: 1;
  }
  .slider_wrap .slider_list,
  .features-pulse_wrap .features-pulse_list {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .features-pulse_wrap .features-pulse_item {
    flex-basis: 100%;
  }
}
/* The same phone on its side: two whole cards, which keeps them about as tall as when upright. */
@media (max-width: 47.99rem) and (orientation: landscape) {
  .slider_wrap {
    --_visible: 2;
  }
  .features-pulse_wrap .features-pulse_item {
    flex-basis: calc(50% - var(--site-gutter) / 2);
  }
}
/* A finger moves these lists: no arrow buttons, bigger dots in the middle. lab.js sways two arrows
   over a list the first time it comes into view and moves it on by itself now and then. */
.lab-swipe {
  display: none;
}
@media (hover: none), (max-width: 47.99rem) {
  .slider_steps,
  .features-pulse_steps {
    display: none;
  }
  .slider_controls,
  .features-pulse_wrap .features-pulse_controls:not([hidden]) {
    justify-content: center;
  }
  .slider_markers,
  .features-pulse_markers {
    gap: 0.75rem;
  }
  /* In the accent green, like the back-to-top button: the current card's dot filled, the others a
     faint ring. A tapped dot must not stay lit, hence the hover too. */
  .slider_marker,
  .features-pulse_marker {
    width: 1rem;
    height: 1rem;
    border-color: rgb(139 240 143 / 0.45);
  }
  .slider_marker:hover,
  .features-pulse_marker:hover {
    background-color: transparent;
  }
  .slider_marker.is-active,
  .features-pulse_marker[aria-current='true'] {
    border-color: var(--brand-500);
    background-color: var(--brand-500);
  }
  .lab-swipe-host {
    position: relative;
  }
  .lab-swipe {
    position: absolute;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 5rem;
    height: 3rem;
    margin: -1.5rem 0 0 -2.5rem;
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: 999px;
    background: rgb(5 5 10 / 0.72);
    backdrop-filter: blur(10px);
    color: var(--brand-500);
    pointer-events: none;
    animation: lab-swipe-show 3s ease-out both;
  }
  .lab-swipe svg {
    width: 2.5rem;
    height: 1rem;
    animation: lab-swipe-sway 0.9s ease-in-out 3 alternate;
  }
}
/* The ring that counts down to the next card (lab.js). Only shown while the list moves by itself. */
.lab-timer {
  display: none;
}
@media (hover: none), (max-width: 47.99rem) {
  .lab-timer {
    display: block;
    flex: none;
    position: relative;
    width: 2rem;
    height: 2rem;
    margin-inline-start: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }
  .lab-timer[data-running] {
    opacity: 1;
  }
  .lab-timer[data-stopped] {
    display: none;
  }
  .lab-timer svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    fill: none;
    stroke-width: 1.5;
  }
  .lab-timer_track {
    stroke: rgb(255 255 255 / 0.14);
  }
  .lab-timer_count {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--brand-500);
    font: 600 0.6875rem/1 var(--display-family);
    font-variant-numeric: tabular-nums;
  }
  .lab-timer_fill {
    stroke: var(--brand-500);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.25s linear;
  }
  .lab-timer_fill.lab-timer_reset {
    transition: none;
  }
}
@keyframes lab-swipe-show {
  0% {
    opacity: 0;
  }
  10%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes lab-swipe-sway {
  from {
    transform: translateX(-0.5rem);
  }
  to {
    transform: translateX(0.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lab-swipe svg {
    animation: none;
  }
}

/* Player Projections: the drawing ends in a cut-off glimpse of a second table, which on a phone
   looked like something to swipe. On an upright phone the first table fills the card and the glimpse
   is left out; on its side the card is wide enough for the whole drawing, as on a desktop. */
@media (max-width: 47.99rem) and (orientation: portrait) {
  .pulse-graphic_wrap.projections {
    overflow: hidden;
  }
  .pulse-graphic_wrap.projections > .pulse-graphic_asset {
    justify-self: start;
    /* The card runs its drawing to its right edge; the table keeps the card's margin there too. */
    width: calc((100% - var(--_padding, 1.25rem)) * 558 / 449);
  }
  .pulse-graphic_wrap.projections svg {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 47.99rem) {
  /* Watch the latest episode: as wide as the card, like Talk to Us on the plans, its channel below. */
  .podcast-pulse_show .podcast-pulse_action {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    text-align: center;
  }
  .podcast-pulse_show .podcast-pulse_action .button_wrap {
    width: 100%;
  }
}

/* A phone on its side: no menu bar taking a quarter of the screen, only the menu button in the
   corner. The open menu still covers the whole screen. */
@media (max-height: 30rem) and (orientation: landscape) {
  .nav_wrap.overlap {
    padding-top: 0.5rem;
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    pointer-events: none;
  }
  .nav_wrap.overlap::before {
    display: none;
  }
  .nav_wrap.overlap .nav_inner {
    min-height: 0;
  }
  .nav_wrap.overlap:not(.open) .nav_logo {
    visibility: hidden;
  }
  .nav_wrap.overlap .nav_toggle,
  .nav_wrap.overlap.open {
    pointer-events: auto;
  }
}

/* Touch screens flash a tapped link, button or FAQ question in the browser's own light blue. Ours is
   the accent green instead. Inherited by everything; mice and keyboards never show it. Keyboard focus
   keeps the site's own white ring. */
html {
  /* --brand-500 (#8bf08f) written out: older phone browsers (the S7 Edge stays on Android 8) lack color-mix. */
  -webkit-tap-highlight-color: rgb(139 240 143 / 0.28);
}

/* The phone picture under the hero (charts and a player table) is cut off at both sides in the
   artwork itself. Soft edges make it read as a backdrop, not as cards to swipe. The site shows it
   on narrow screens only. */
.hero-pulse_wrap .hero-pulse_data {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
}

/* Live Trends: a small graph fills the bottom of each card's dark panel (lab.js startTrendGraphs).
   It takes the card's own signal colour (red for a cold trend, green for a hot one), except GB's. */
.trend-pulse_message[data-lab-graph] {
  position: relative;
}
.lab-trend {
  position: absolute;
  inset: auto 0.8125rem 0.8125rem;
  width: calc(100% - 1.625rem);
  height: auto;
  overflow: visible;
  color: var(--_signal, var(--text, #e8ebf2));
}
.lab-trend_grid {
  stroke: rgb(255 255 255 / 0.06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.lab-trend_mean {
  stroke: rgb(255 255 255 / 0.32);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.lab-trend_line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.lab-trend_area {
  fill: currentColor;
  opacity: 0.08;
  stroke: none;
}
.lab-trend_dot {
  fill: currentColor;
}
.lab-trend_label {
  font-family: chakra-petch, 'Chakra Petch', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  fill: var(--text-2, #a9afbd);
  stroke: none;
}
.lab-trend_now {
  fill: currentColor;
}
.lab-trend_dot {
  stroke: none;
}
/* GB's graph is the app's projection graph: green over the average, red under, whatever the card. */
.lab-trend [data-side='over'] {
  color: var(--brand-500, #8bf08f);
}
.lab-trend [data-side='under'] {
  color: var(--signal-negative, #fa666c);
}
.lab-trend_ahead {
  stroke-dasharray: 6 4;
}
.lab-trend_value {
  fill: currentColor;
  font-size: 12px;
  font-weight: 600;
}
.lab-trend_avg {
  fill: var(--text, #e8ebf2);
  font-size: 11px;
  font-weight: 600;
}
/* Phones: the panel is shorter there; a little taller so the sentence and the graph never touch. */
@media (max-width: 47.99rem) {
  .trend-pulse_wrap .trend-pulse_message[data-lab-graph] {
    min-height: 12.75rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lab-trend_wipe {
    transform-box: fill-box;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  }
  .lab-trend_dot {
    opacity: 0;
    transition: opacity 0.4s ease 1.4s;
  }
  .lab-trend[data-drawn] .lab-trend_wipe {
    transform: none;
  }
  .lab-trend[data-drawn] .lab-trend_dot {
    opacity: 1;
  }
}

/* Feature filter chips are gone (Sven, 2026-12-02): a chip only dimmed the other cards, and most cards
   sit in two of the three groups, so it changed little. All eight cards always show. */
.features-pulse_filters {
  display: none;
}

/* Player Projections card: the average each line is measured against, dotted as in the app. */
.lab-projection_average {
  stroke: var(--text-2, #a9afbd);
  stroke-opacity: 0.55;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

/* Small tables in two feature cards (lab.js startFeatureTables): Players, QBs + routes (every
   width) and Personnel impact (phones only, in place of its picture). Text no smaller than 12px. */
.lab-players {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
}
.lab-players .lab-table_title {
  justify-content: flex-start;
  text-align: left;
}
.lab-table_title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: chakra-petch, 'Chakra Petch', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text, #e8ebf2);
}
.lab-table_title span:last-child:not(.lab-table_number, .lab-table_dot) {
  color: var(--text-2, #a9afbd);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
}
.lab-table_number {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--neutral-950, #05050a);
  color: var(--text-2, #a9afbd);
}
.lab-table_dot {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  background: #3b1d63 radial-gradient(circle, #f26a2e 0 0.15rem, transparent 0.17rem);
}
.lab-table {
  width: 100%;
  font-size: 0.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-2, #a9afbd);
}
.lab-table_head,
.lab-table_row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 1.875rem;
  padding-inline: 0.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.lab-table_head {
  min-height: 1.5rem;
  color: color-mix(in srgb, var(--text-2, #a9afbd) 70%, transparent);
  border-bottom-color: rgb(255 255 255 / 0.12);
}
.lab-table_head > :not(:first-child),
.lab-table_row > :not(:first-child) {
  text-align: right;
}
.lab-table_row > :first-child {
  color: var(--text, #e8ebf2);
}
.lab-table_row b {
  font-weight: 600;
}
.lab-table_row b[data-trend='up'] {
  color: var(--brand-500, #8bf08f);
}
.lab-table_row b[data-trend='down'] {
  color: var(--signal-negative, #fa666c);
}
.lab-table_qb .lab-table_row {
  position: relative;
}
.lab-table_qb .lab-table_row::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.25rem;
  background: rgb(255 255 255 / 0.07);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lab-table_qb .lab-table_row[data-lit]::before {
  opacity: 1;
}
/* Personnel impact: lower rows fade out, as in the picture. */
.lab-table_personnel {
  mask-image: linear-gradient(#000 55%, #0000);
}
.lab-personnel {
  display: none;
}
@media (max-width: 47.99rem) {
  [data-lab-personnel] .pulse-graphic_wrap.personnel {
    display: none;
  }
  [data-lab-personnel] .lab-personnel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-block: auto;
  }
}
/* Wide screens: the card is one of the design's short ones (picture area about 90px). The table must
   fit there without making the card, and the row beside it, taller: no title line, header and three
   rows. */
@media (min-width: 48rem) {
  .lab-players {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    /* Adds no height of its own: it fills what the card already has. */
    contain: size;
  }
  .lab-players .lab-table_title {
    display: none;
  }
  .lab-players .lab-table {
    font-size: 0.6875rem;
  }
  .lab-players .lab-table_head,
  .lab-players .lab-table_row {
    min-height: 1.125rem;
  }
  .lab-players .lab-table_row:nth-child(n + 5) {
    display: none;
  }
}
