/*
 * ByteCrafters website base styles. Hand-written; uses only the variables in tokens.css, so load tokens.css first.
 * Part of the ByteCrafters design system, bc-web package. Never edit a copy of this file in a site:
 * change the design system repository, release, then copy again.
 */

/* ---- element defaults ------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bc-background);
  color: var(--bc-text);
  font-family: var(--bc-font-text);
  font-size: var(--bc-type-body-size);
  line-height: var(--bc-type-body-line-height);
  font-weight: var(--bc-type-body-weight);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--bc-font-display);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--bc-type-h1-size); line-height: var(--bc-type-h1-line-height); letter-spacing: var(--bc-type-h1-tracking); }
h2 { font-size: var(--bc-type-h2-size); line-height: var(--bc-type-h2-line-height); letter-spacing: var(--bc-type-h2-tracking); }
h3, h4 { font-size: var(--bc-type-h3-size); line-height: var(--bc-type-h3-line-height); letter-spacing: var(--bc-type-h3-tracking); }

p { margin: 0 0 var(--bc-space-16); }

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--bc-text); text-underline-offset: 0.2em; }
a:hover { color: var(--bc-signal-text); }

code, kbd, samp, pre {
  font-family: var(--bc-font-mono);
  font-size: var(--bc-type-mono-size);
}

hr {
  border: 0;
  border-top: var(--bc-stroke-hairline) solid var(--bc-line);
  margin: var(--bc-space-24) 0;
}

:focus-visible {
  outline: var(--bc-stroke-focus) solid var(--bc-signal-text);
  outline-offset: 2px;
}

/* A skip-link target such as main is focused by script order, not by the reader: no ring around it. */
[tabindex="-1"]:focus-visible {
  outline: none;
}

::selection {
  background: var(--bc-signal-soft);
  color: var(--bc-on-signal-soft);
}

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

/* ---- layout ----------------------------------------------------------------------------------------------------- */

.bc-container {
  width: 100%;
  max-width: calc(var(--bc-content-max-width) + 2 * var(--bc-gutter));
  margin-inline: auto;
  padding-inline: var(--bc-gutter);
}

.bc-section {
  padding-block: var(--bc-section-space);
}

@media (min-width: 768px) {
  .bc-container {
    max-width: calc(var(--bc-content-max-width) + 2 * var(--bc-gutter-wide));
    padding-inline: var(--bc-gutter-wide);
  }
  .bc-section { padding-block: var(--bc-section-space-wide); }
}

.bc-grid {
  display: grid;
  gap: var(--bc-space-16);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bc-grid { gap: var(--bc-space-24); }
  .bc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bc-divider {
  border: 0;
  border-top: var(--bc-stroke-hairline) solid var(--bc-line);
  margin: var(--bc-space-24) 0;
}

/* ---- type ------------------------------------------------------------------------------------------------------- */

.bc-display {
  margin: 0;
  font-family: var(--bc-font-display);
  font-size: var(--bc-type-display-size);
  line-height: var(--bc-type-display-line-height);
  font-weight: var(--bc-type-display-weight);
  letter-spacing: var(--bc-type-display-tracking);
  text-wrap: balance;
}
.bc-h1 { font-family: var(--bc-font-display); font-size: var(--bc-type-h1-size); line-height: var(--bc-type-h1-line-height); font-weight: var(--bc-type-h1-weight); letter-spacing: var(--bc-type-h1-tracking); }
.bc-h2 { font-family: var(--bc-font-display); font-size: var(--bc-type-h2-size); line-height: var(--bc-type-h2-line-height); font-weight: var(--bc-type-h2-weight); letter-spacing: var(--bc-type-h2-tracking); }
.bc-h3 { font-family: var(--bc-font-display); font-size: var(--bc-type-h3-size); line-height: var(--bc-type-h3-line-height); font-weight: var(--bc-type-h3-weight); letter-spacing: var(--bc-type-h3-tracking); }

.bc-body-large {
  font-size: var(--bc-type-body-large-size);
  line-height: var(--bc-type-body-large-line-height);
  max-width: var(--bc-text-max-width);
}
.bc-small {
  font-size: var(--bc-type-small-size);
  line-height: var(--bc-type-small-line-height);
}
.bc-overline {
  font-family: var(--bc-font-text);
  font-size: var(--bc-type-overline-size);
  line-height: var(--bc-type-overline-line-height);
  font-weight: var(--bc-type-overline-weight);
  letter-spacing: var(--bc-type-overline-tracking);
  text-transform: var(--bc-type-overline-transform);
  color: var(--bc-text-muted);
}
.bc-mono {
  font-family: var(--bc-font-mono);
  font-size: var(--bc-type-mono-size);
  line-height: var(--bc-type-mono-line-height);
  font-weight: var(--bc-type-mono-weight);
}
.bc-muted { color: var(--bc-text-muted); }

/* ---- links ------------------------------------------------------------------------------------------------------ */

.bc-link {
  color: var(--bc-text);
  text-decoration: underline;
  text-decoration-thickness: var(--bc-stroke-hairline);
  text-underline-offset: 0.2em;
  transition: color var(--bc-duration-fast) var(--bc-ease-standard);
}
.bc-link:hover { color: var(--bc-signal-text); }

/* ---- buttons ---------------------------------------------------------------------------------------------------- */

.bc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bc-space-8);
  min-height: 44px;
  padding: 0 var(--bc-space-24);
  border: var(--bc-stroke-hairline) solid transparent;
  border-radius: var(--bc-radius-full);
  background: var(--bc-action);
  color: var(--bc-on-action);
  font-family: var(--bc-font-text);
  font-size: var(--bc-type-body-size);
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--bc-duration-fast) var(--bc-ease-standard);
}
.bc-button:hover { opacity: 0.88; color: var(--bc-on-action); }
.bc-button--secondary {
  background: transparent;
  color: var(--bc-text);
  border-color: var(--bc-line-strong);
}
.bc-button--secondary:hover { color: var(--bc-text); border-color: var(--bc-text-muted); opacity: 1; }
.bc-button--quiet {
  background: transparent;
  color: var(--bc-text);
  padding: 0 var(--bc-space-12);
}
.bc-button--quiet:hover { color: var(--bc-signal-text); opacity: 1; }

/* ---- card, chip ------------------------------------------------------------------------------------------------- */

.bc-card {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-12);
  padding: var(--bc-space-24);
  background: var(--bc-surface);
  border: var(--bc-stroke-hairline) solid var(--bc-line);
  border-radius: var(--bc-radius-lg);
  color: var(--bc-text);
  min-width: 0;
}
.bc-card > * { margin: 0; }
.bc-card--link {
  text-decoration: none;
  transition: border-color var(--bc-duration-base) var(--bc-ease-standard);
}
.bc-card--link:hover { border-color: var(--bc-line-strong); color: var(--bc-text); }

.bc-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--bc-space-6);
  min-height: 28px;
  padding: 0 var(--bc-space-12);
  border: var(--bc-stroke-hairline) solid var(--bc-line-strong);
  border-radius: var(--bc-radius-full);
  background: transparent;
  color: var(--bc-text);
  font-size: var(--bc-type-small-size);
  line-height: 1.2;
  font-weight: 500;
}
.bc-chip--signal {
  background: var(--bc-signal-soft);
  border-color: transparent;
  color: var(--bc-signal-text);
}

/* ---- utilities -------------------------------------------------------------------------------------------------- */

.bc-skip-link {
  position: absolute;
  inset-block-start: var(--bc-space-8);
  inset-inline-start: var(--bc-space-8);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--bc-space-24);
  border-radius: var(--bc-radius-full);
  background: var(--bc-action);
  color: var(--bc-on-action);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--bc-space-8)));
}
.bc-skip-link:focus, .bc-skip-link:focus-visible {
  transform: none;
  color: var(--bc-on-action);
}

.bc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* A button label that shows only when there is room, so a button with an icon keeps just the icon
   where two buttons would not fit on one line. It is hidden from view (still read by screen readers)
   on small phones, and again where the hero first splits into two narrow columns. */
@media (max-width: 479.98px), (min-width: 768px) and (max-width: 1023.98px) {
  .bc-button__label--wide {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.bc-list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bc-space-12);
}

/* ---- page chrome: header, wordmark, nav, footer ----------------------------------------------------------------- */

.bc-header {
  background: var(--bc-background);
  border-bottom: var(--bc-stroke-hairline) solid var(--bc-line);
}
.bc-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--bc-space-24);
  row-gap: var(--bc-space-4);
  width: 100%;
  min-height: var(--bc-header-height);
  max-width: calc(var(--bc-content-max-width) + 2 * var(--bc-gutter));
  margin-inline: auto;
  padding-inline: var(--bc-gutter);
}
/* The brand block: the mark, the name beside it and, on app sites, a very small "by ByteCrafters"
   line tucked under the name. The mark is as tall as the name and the line together. */
.bc-header__brand {
  --bc-brand-size: var(--bc-type-h3-size);
  display: grid;
  grid-template-columns: max-content;
  align-content: center;
  padding-block: var(--bc-space-12);
}
.bc-header__brand .bc-wordmark {
  align-items: flex-start;
  min-height: 0;
  font-size: var(--bc-brand-size);
}
.bc-header__brand .bc-wordmark__mark {
  width: 2em;
  height: 2em;
  object-fit: contain;
}
.bc-byline {
  position: relative;
  justify-self: start;
  margin-top: calc(var(--bc-brand-size) * -0.85);
  margin-inline-start: calc(var(--bc-brand-size) * 2.5);
  color: var(--bc-text-muted);
  font-size: var(--bc-type-overline-size);
  line-height: 1.2;
  text-decoration: none;
}
/* Keeps the small line easy to hit without making it look bigger. It grows downwards only, so it
   never covers the app name above it. */
.bc-byline::after {
  content: "";
  position: absolute;
  inset: 0 0 calc(var(--bc-space-12) * -1) 0;
}
.bc-byline:hover, .bc-byline:focus-visible { color: var(--bc-signal-text); text-decoration: underline; text-underline-offset: 0.2em; }

.bc-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  color: var(--bc-text);
  font-family: var(--bc-font-display);
  font-size: var(--bc-type-h3-size);
  line-height: 1;
  font-weight: var(--bc-type-display-weight);
  letter-spacing: var(--bc-type-h1-tracking);
  text-decoration: none;
}
.bc-wordmark:hover { color: var(--bc-text); }
.bc-wordmark__mark {
  flex: none;
  display: block;
  height: 1.6em;
  width: auto;
}
.bc-wordmark--small { font-size: var(--bc-type-body-size); }

/* Parts of the ByteCrafters mark when it is drawn inline: five bits in the text colour, three in green. */
.bc-mark-ink { fill: var(--bc-text); stroke: var(--bc-text); }
.bc-mark-signal { fill: var(--bc-signal); stroke: var(--bc-signal); }

.bc-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--bc-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--bc-space-12);
  color: var(--bc-text);
  text-decoration: none;
  text-underline-offset: 0.2em;
}
.bc-nav a:hover { color: var(--bc-signal-text); text-decoration: underline; }
.bc-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: var(--bc-stroke-hairline);
}

/* Phone menu for a header. A real checkbox, out of sight but still focusable, opens and closes the
   links; its label is the Menu button. No script. From 768px the links are always shown and the
   button is gone. Only a nav that follows the checkbox is affected, so a footer nav never folds. */
.bc-nav__toggle, .bc-nav__button { display: none; }
@media (max-width: 767.98px) {
  .bc-nav__toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
  }
  .bc-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 var(--bc-space-16);
    color: var(--bc-text);
    font-size: var(--bc-type-small-size);
    font-weight: 500;
    border: var(--bc-stroke-hairline) solid var(--bc-line-strong);
    border-radius: var(--bc-radius-full);
    cursor: pointer;
    user-select: none;
  }
  .bc-nav__toggle:focus-visible + .bc-nav__button {
    outline: var(--bc-stroke-focus) solid var(--bc-signal-text);
    outline-offset: 2px;
  }
  .bc-nav__toggle:checked + .bc-nav__button { background: var(--bc-well); }
  .bc-nav__toggle ~ .bc-nav {
    display: none;
    flex-basis: 100%;
    padding-bottom: var(--bc-space-8);
  }
  .bc-nav__toggle:checked ~ .bc-nav { display: block; }
  .bc-nav__toggle ~ .bc-nav ul { flex-direction: column; align-items: stretch; }
  .bc-nav__toggle ~ .bc-nav a {
    display: flex;
    padding-inline: 0;
    border-top: var(--bc-stroke-hairline) solid var(--bc-line);
  }
}

.bc-footer {
  background: var(--bc-background);
  border-top: var(--bc-stroke-hairline) solid var(--bc-line);
  padding-block: var(--bc-space-24);
}
.bc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-8) var(--bc-space-24);
  width: 100%;
  max-width: calc(var(--bc-content-max-width) + 2 * var(--bc-gutter));
  margin-inline: auto;
  padding-inline: var(--bc-gutter);
  font-size: var(--bc-type-small-size);
  line-height: var(--bc-type-small-line-height);
}
.bc-footer__inner p { margin: 0; color: var(--bc-text-muted); }
.bc-footer .bc-nav a { font-size: var(--bc-type-small-size); padding-inline: 0; margin-inline-end: var(--bc-space-16); }

@media (min-width: 768px) {
  .bc-header__inner, .bc-footer__inner {
    max-width: calc(var(--bc-content-max-width) + 2 * var(--bc-gutter-wide));
    padding-inline: var(--bc-gutter-wide);
  }
}

/* ---- product page: hero, features, screenshots, band ------------------------------------------------------------ */

.bc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bc-space-32);
  align-items: center;
}
.bc-hero__text > * { margin: 0; }
.bc-hero__text > * + * { margin-top: var(--bc-space-16); }
.bc-hero__text > .bc-actions { margin-top: var(--bc-space-24); }
.bc-hero__visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.bc-hero__visual .bc-shot { max-width: min(100%, calc(var(--bc-text-max-width) / 2)); }

/* The hero fits the first screen. --bc-hero-fit is the height left under the header and inside the
   section's padding. The hero graphic (and a screenshot, where a page uses one) never grows past it, so the
   window edge does not cut it off; it shrinks with the window, down to a floor that keeps it readable on very
   short screens. */
.bc-hero {
  --bc-hero-fit: calc(100vh - var(--bc-header-height) - 2 * var(--bc-section-space));
}
.bc-hero__visual .bc-shot > img,
.bc-hero__visual .bc-shot > picture img {
  width: auto;
  max-width: 100%;
  max-height: max(var(--bc-hero-fit), calc(var(--bc-text-max-width) / 3));
}

/* Hero graphic: the app's one drawing, 640 x 400 (see Web/product-site.md, "Hero graphic"). A rounded panel
   with a 1 px line that the image fills at 16:10. Stacked on phones it takes the full width. Beside the text,
   from 768 px, its width follows --bc-hero-fit so that its height never passes it. */
.bc-hero__graphic {
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: var(--bc-ink);
  border: var(--bc-stroke-hairline) solid var(--bc-line);
  border-radius: var(--bc-radius-xl);
}
.bc-hero__graphic > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 768px) {
  .bc-hero {
    --bc-hero-fit: calc(100vh - var(--bc-header-height) - 2 * var(--bc-section-space-wide));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bc-space-48);
    min-height: var(--bc-hero-fit);
  }
  .bc-hero__graphic {
    width: min(100%, calc(max(var(--bc-hero-fit), calc(var(--bc-text-max-width) / 3)) * 16 / 10));
  }
}
/* Phones: the first block of a page sits closer to the header, and the hero drops its status
   label so the app name comes first. Wider screens keep both. */
@media (max-width: 767.98px) {
  main > .bc-section:first-child { padding-top: var(--bc-space-32); }
  .bc-hero__status { display: none; }
}
/* Small viewport units leave out a phone browser's retractable bars. */
@supports (height: 100svh) {
  .bc-hero {
    --bc-hero-fit: calc(100svh - var(--bc-header-height) - 2 * var(--bc-section-space));
  }
  @media (min-width: 768px) {
    .bc-hero {
      --bc-hero-fit: calc(100svh - var(--bc-header-height) - 2 * var(--bc-section-space-wide));
    }
  }
}

.bc-feature-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bc-space-24);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bc-feature-list > li > * { margin: 0; }
.bc-feature-list > li > * + * { margin-top: var(--bc-space-4); }
.bc-feature-list p { color: var(--bc-text-muted); }
@media (min-width: 768px) {
  .bc-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bc-space-32) var(--bc-space-48); }
}

.bc-shot {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--bc-surface);
  border: var(--bc-stroke-hairline) solid var(--bc-line);
  border-radius: var(--bc-radius-xl);
}
.bc-shot > img, .bc-shot > picture img { display: block; width: 100%; height: auto; }

.bc-shots {
  display: flex;
  gap: var(--bc-space-16);
  max-width: 100%;
  margin: 0;
  padding: 0 0 var(--bc-space-8);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.bc-shots > * {
  flex: 0 0 auto;
  width: min(70%, calc(var(--bc-text-max-width) / 2));
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .bc-shots > * { flex: 1 1 0; min-width: 0; width: auto; max-width: calc(var(--bc-text-max-width) / 2); }
}

/* Auto-scrolling screenshot strip, CSS only (see Web/product-site.md, "Screenshot strip").
   Markup, in this order: .bc-shots-auto > input.bc-shots-auto__toggle (checkbox), label.bc-shots-auto__pause
   ("Pause"), .bc-shots-auto__viewport > .bc-shots-auto__track > the screenshots, then the same screenshots again
   as .bc-shots-auto__copy with aria-hidden="true". The track moves left by exactly one set, then starts over,
   so the copy makes the loop seamless.
   - It pauses while the pointer is over it or anything in it has focus.
   - Pause checked, or reduced motion: no movement, the copy is hidden and the strip scrolls sideways by hand.
   - The viewport clips the track (moving) or scrolls it (by hand), so the page never scrolls sideways.
   Speed: 8 s per screenshot. No motion token is that long (the longest is 320 ms), so it is a plain value here.
   The count is read from the markup (three to six; four without :has support). */
.bc-shots-auto {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bc-space-16);
  min-width: 0;
}
/* The real checkbox: hidden from view, still focusable and still announced. The label is what people see. */
.bc-shots-auto__toggle {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  opacity: 0;
}
/* Use with .bc-button .bc-button--secondary: a 44 px pill. The ring shows the checkbox state: hollow while the
   strip moves, filled while it is paused. */
.bc-shots-auto__pause {
  justify-self: end;
}
.bc-shots-auto__pause::before {
  content: "";
  flex: none;
  width: var(--bc-space-12);
  height: var(--bc-space-12);
  border: var(--bc-stroke-emphasis) solid currentColor;
  border-radius: var(--bc-radius-full);
}
.bc-shots-auto__toggle:checked + .bc-shots-auto__pause {
  background: var(--bc-well);
  border-color: var(--bc-text);
  color: var(--bc-text);
}
.bc-shots-auto__toggle:checked + .bc-shots-auto__pause::before { background: currentColor; }
.bc-shots-auto__toggle:focus-visible + .bc-shots-auto__pause {
  outline: var(--bc-stroke-focus) solid var(--bc-signal-text);
  outline-offset: 2px;
}

.bc-shots-auto__viewport {
  container-type: inline-size;
  max-width: 100%;
  overflow: hidden;
}
.bc-shots-auto__track {
  --bc-shots-auto-count: 4;
  display: flex;
  gap: var(--bc-space-16);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: bc-shots-auto-move calc(var(--bc-shots-auto-count) * 8s) linear infinite;
}
/* The track holds each screenshot twice, so 6, 8, 10 or 12 children mean 3, 4, 5 or 6 screenshots. */
.bc-shots-auto__track:has(> :nth-child(6):last-child) { --bc-shots-auto-count: 3; }
.bc-shots-auto__track:has(> :nth-child(10):last-child) { --bc-shots-auto-count: 5; }
.bc-shots-auto__track:has(> :nth-child(12):last-child) { --bc-shots-auto-count: 6; }
/* Every screenshot has the same width and keeps its own height from its width and height attributes. One set is
   always at least as wide as the strip, so no gap shows before the loop starts over. */
.bc-shots-auto__track > * {
  flex: none;
  width: calc(var(--bc-text-max-width) / 3);
  width: max(calc(var(--bc-text-max-width) / 3), calc((100cqi + var(--bc-space-16)) / var(--bc-shots-auto-count) - var(--bc-space-16)));
  max-width: none;
  scroll-snap-align: start;
}
@keyframes bc-shots-auto-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--bc-space-16) / 2)); }
}
.bc-shots-auto__viewport:hover .bc-shots-auto__track,
.bc-shots-auto__viewport:focus-within .bc-shots-auto__track {
  animation-play-state: paused;
}

/* Paused by the control: an ordinary strip that scrolls sideways by hand. */
.bc-shots-auto__toggle:checked ~ .bc-shots-auto__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: var(--bc-space-8);
}
.bc-shots-auto__toggle:checked ~ .bc-shots-auto__viewport .bc-shots-auto__track { animation: none; }
.bc-shots-auto__toggle:checked ~ .bc-shots-auto__viewport .bc-shots-auto__copy { display: none; }

/* Reduced motion: never moves, and the control has nothing to do. */
@media (prefers-reduced-motion: reduce) {
  .bc-shots-auto__toggle, .bc-shots-auto__pause { display: none; }
  .bc-shots-auto__viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: var(--bc-space-8);
  }
  .bc-shots-auto__track { animation: none; }
  .bc-shots-auto__copy { display: none; }
}

.bc-band {
  padding-block: var(--bc-section-space);
  background: var(--bc-surface);
  border-block: var(--bc-stroke-hairline) solid var(--bc-line);
}
.bc-band > .bc-container > * { margin: 0; }
.bc-band > .bc-container > * + * { margin-top: var(--bc-space-16); }
.bc-band > .bc-container > .bc-actions { margin-top: var(--bc-space-24); }
@media (min-width: 768px) {
  .bc-band { padding-block: var(--bc-section-space-wide); }
}

/* ---- long-form text: prose, table, note, meta ------------------------------------------------------------------- */

.bc-meta {
  margin: var(--bc-space-8) 0 var(--bc-space-32);
  color: var(--bc-text-muted);
  font-size: var(--bc-type-small-size);
  line-height: var(--bc-type-small-line-height);
}

.bc-note {
  margin: 0 0 var(--bc-space-16);
  padding: var(--bc-space-16) var(--bc-space-20);
  background: var(--bc-surface);
  border: var(--bc-stroke-hairline) solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  font-size: var(--bc-type-small-size);
  line-height: var(--bc-type-small-line-height);
}
.bc-note > :last-child { margin-bottom: 0; }

/* Long words such as bare web addresses wrap instead of pushing the page sideways. */
.bc-prose { max-width: var(--bc-text-max-width); overflow-wrap: break-word; }
.bc-prose > :first-child { margin-top: 0; }
.bc-prose h1, .bc-prose h2, .bc-prose h3, .bc-prose h4 {
  scroll-margin-top: calc(var(--bc-header-height) + var(--bc-space-16));
}
.bc-prose h1 { margin: 0 0 var(--bc-space-16); }
.bc-prose h1 + .bc-meta { margin-top: calc(var(--bc-space-8) - var(--bc-space-16)); }
.bc-prose h2 { margin: var(--bc-space-48) 0 var(--bc-space-12); }
.bc-prose h3, .bc-prose h4 { margin: var(--bc-space-32) 0 var(--bc-space-8); }
.bc-prose ul, .bc-prose ol, .bc-prose dl, .bc-prose pre { margin: 0 0 var(--bc-space-16); }
.bc-prose ul, .bc-prose ol { padding-inline-start: var(--bc-space-24); }
.bc-prose li { margin-bottom: var(--bc-space-6); }
.bc-prose li > ul, .bc-prose li > ol { margin: var(--bc-space-6) 0 0; }
.bc-prose dt { margin-top: var(--bc-space-16); font-weight: 600; }
.bc-prose dd { margin: var(--bc-space-4) 0 0; }
/* A button placed inside prose keeps its button colours. */
.bc-prose a:not(.bc-button) {
  color: var(--bc-text);
  text-decoration: underline;
  text-decoration-thickness: var(--bc-stroke-hairline);
  text-underline-offset: 0.2em;
  transition: color var(--bc-duration-fast) var(--bc-ease-standard);
}
.bc-prose a:not(.bc-button):hover { color: var(--bc-signal-text); }
.bc-prose strong { font-weight: 600; }
.bc-prose code {
  padding: var(--bc-space-2) var(--bc-space-4);
  background: var(--bc-well);
  border-radius: var(--bc-radius-xs);
  overflow-wrap: anywhere;
}
.bc-prose pre {
  padding: var(--bc-space-16);
  background: var(--bc-well);
  border-radius: var(--bc-radius-sm);
  overflow-x: auto;
}
.bc-prose pre code { padding: 0; background: none; }
.bc-prose hr { margin: var(--bc-space-32) 0; }
.bc-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--bc-type-small-size);
  line-height: var(--bc-type-small-line-height);
}
.bc-prose th, .bc-prose td {
  padding: var(--bc-space-8) var(--bc-space-12);
  text-align: start;
  vertical-align: top;
  border-bottom: var(--bc-stroke-hairline) solid var(--bc-line);
}
.bc-prose th { font-weight: 600; border-bottom-color: var(--bc-line-strong); }
.bc-prose > table { margin-bottom: var(--bc-space-16); }

.bc-table-wrap {
  max-width: 100%;
  margin: 0 0 var(--bc-space-16);
  overflow-x: auto;
}
.bc-table-wrap > table { min-width: calc(var(--bc-text-max-width) * 0.75); margin: 0; }

/* A section that follows another section: the space between them is one section space, not two. */
.bc-section--follow { padding-top: 0; }

/* Section heading (an h2 with .bc-h2) and the line that closes a section, with their spacing. */
.bc-section-title { margin: 0 0 var(--bc-space-24); }
.bc-section-foot { margin: var(--bc-space-24) 0 0; }
