.sbt-page {
  /* Load the web font that is actually used (see the <link> in index.html). Do not list a font that
     only exists on some dev machines first: it renders with different weights locally. */
  --sbt-font: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif;
  --sbt-bg: #ffffff;
  --sbt-ink: #212226;
  --sbt-accent: #1a73e8;
  --sbt-line: #e3e5e8;
  /* Type scale: 0.8px at the 375px mobile frame, 1px at the 1440px desktop frame. A length, so no
     browser support for typed arithmetic is needed. Consumed by .sbt-fs / -lh / -tr below. */
  --sbt-sp: clamp(0.8px, calc(0.8px + 0.2 * (100vw - 375px) / 1065), 1px);
  font-family: var(--sbt-font);
  font-weight: 400;
  font-synthesis: none;
  background: var(--sbt-bg);
  color: var(--sbt-ink);
  overflow-x: clip;
}

/* In a layer: unlayered CSS beats Tailwind's utilities layer, so this would cancel every mt-* / mb-*. */
@layer base {
  .sbt-page :where(h1, h2, h3, h4, h5, h6, p) {
    margin: 0;
  }
}

/* Typography helpers; set the numbers with --fs / --lh / --tr (and -m variants) */
.sbt-page .sbt-fs {
  font-size: calc(var(--fs) * var(--sbt-sp));
}

.sbt-page .sbt-lh {
  line-height: calc(var(--lh) * var(--sbt-sp));
}

.sbt-page .sbt-tr {
  letter-spacing: calc(var(--tr) * var(--sbt-sp));
}

/* Below `lg` the mobile frame's exact values win (set via `m: [...]`). */
@media (max-width: 1023.98px) {
  .sbt-page .sbt-m.sbt-fs {
    font-size: calc(var(--fs-m) * 1px);
  }

  .sbt-page .sbt-m.sbt-lh {
    line-height: calc(var(--lh-m) * 1px);
  }

  .sbt-page .sbt-m.sbt-tr {
    letter-spacing: calc(var(--tr-m) * 1px);
  }
}

.sbt-page button:not(:disabled) {
  cursor: pointer;
}

.sbt-page :where(a, button):focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 3px;
}

/* Hover tint on buttons: an overlay that only changes opacity. */
.sbt-page .sbt-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.sbt-page .sbt-btn:enabled:hover::after,
.sbt-page a.sbt-btn:hover::after {
  opacity: 0.08;
}

/* Underline that grows on hover/focus (nav and footer links). */
.sbt-page .sbt-link {
  position: relative;
}

.sbt-page .sbt-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease-out;
}

.sbt-page .sbt-link:hover::after,
.sbt-page .sbt-link:focus-visible::after,
.sbt-page .sbt-link[aria-current="location"]::after {
  transform: scaleX(1);
}

/* Scroll reveal. `[data-motion]` is set by initReveal() only when JS runs and motion is allowed, so
   nothing is hidden without JS. A keyframe (not a transition) so hover transitions keep working. */
[data-motion] .sbt-reveal {
  opacity: 0;
}

[data-motion] .sbt-reveal[data-shown] {
  animation: sbt-fade-up 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) both;
}

@keyframes sbt-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sbt-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.sbt-page .sbt-faq__answer {
  animation: sbt-fade-in 300ms ease-out both;
}

/* Key-dates ticker at every width: two copies of the list, moved by half the track width. */
@keyframes sbt-marquee {
  to {
    transform: translateX(-50%);
  }
}

.sbt-page .sbt-marquee {
  animation: sbt-marquee 40s linear infinite;
}

.sbt-page .sbt-marquee:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .sbt-page *,
  .sbt-page *::before,
  .sbt-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .sbt-page .sbt-marquee {
    animation: none !important;
  }
}
