/* Public Help centre: /help (topic grid) and /post/{id} (topic page).
 *
 * Dark theme on top of theme-dark.css (`.user-body--dark`); the header and
 * footer come from site.css. Layered surfaces rather than flat black, the
 * brand gold as the single accent, and a soft blue only in the background
 * aura. Mobile first.
 *
 * Fluid sizing: like the site header, every text size, space, control and
 * content width below is a `clamp()` that grows with the viewport width, from
 * a phone minimum to a wide-monitor maximum. The page therefore fills the
 * screen proportionally at every size instead of staying a narrow column in
 * the middle of a large monitor. The topic grid shares the header's side
 * gutter, so cards line up with the brand and the menu.
 *
 * Motion: entrance (fade + rise, staggered for cards), a slow drift of the
 * background aura, card lift on hover and a pointer spotlight driven by
 * help-page.js. Only transform and opacity are animated; everything stops
 * under prefers-reduced-motion and the page is complete without JavaScript.
 */

.help-body {
  /* Colour */
  --help-bg: #0a0b0f;
  --help-surface: rgba(23, 24, 31, 0.78);
  --help-surface-solid: #16171e;
  --help-surface-raised: #1d1e27;
  --help-line: rgba(255, 255, 255, 0.08);
  --help-line-strong: rgba(255, 255, 255, 0.16);
  --help-text: #f4f5f8;
  --help-body-text: #d9dbe3;
  --help-muted: #a3a6b4;
  --help-subtle: #7d8090;
  --help-gold: var(--color-brand);
  --help-gold-strong: #ffd84d;
  --help-gold-soft: rgba(235, 196, 42, 0.12);
  --help-gold-line: rgba(235, 196, 42, 0.45);
  --help-blue-glow: rgba(96, 140, 255, 0.22);
  --help-gold-glow: rgba(235, 196, 42, 0.2);

  /* Fluid type scale: phone size at 360px, growing to the wide-screen cap. */
  --help-fs-xs: clamp(0.75rem, 0.64rem + 0.22vw, 1rem);
  --help-fs-sm: clamp(0.8125rem, 0.68rem + 0.28vw, 1.125rem);
  --help-fs-base: clamp(0.9375rem, 0.76rem + 0.36vw, 1.3125rem);
  --help-fs-md: clamp(1rem, 0.8rem + 0.42vw, 1.4375rem);
  --help-fs-lg: clamp(1.125rem, 0.86rem + 0.6vw, 1.75rem);
  --help-fs-xl: clamp(1.375rem, 1rem + 0.9vw, 2.375rem);
  --help-fs-title: clamp(1.875rem, 1rem + 3.2vw, 5.25rem);
  --help-fs-hero: clamp(2.25rem, 1rem + 4.4vw, 6.75rem);

  /* Fluid spacing */
  --help-space-2xs: clamp(0.25rem, 0.18rem + 0.15vw, 0.5rem);
  --help-space-xs: clamp(0.5rem, 0.36rem + 0.3vw, 0.875rem);
  --help-space-sm: clamp(0.75rem, 0.55rem + 0.45vw, 1.25rem);
  --help-space-md: clamp(1rem, 0.72rem + 0.6vw, 1.75rem);
  --help-space-lg: clamp(1.5rem, 1.05rem + 0.95vw, 2.75rem);
  --help-space-xl: clamp(2rem, 1.35rem + 1.4vw, 4rem);
  --help-space-2xl: clamp(3rem, 2rem + 2.2vw, 6rem);

  /* Fluid controls and shapes */
  --help-control: clamp(44px, 2.2rem + 0.9vw, 64px);
  --help-radius: clamp(14px, 0.65rem + 0.45vw, 26px);
  --help-radius-sm: clamp(10px, 0.45rem + 0.3vw, 18px);

  /* Widths. The grid follows the header gutter; the article column scales. */
  --help-gutter: var(--site-header-gutter);
  --help-article: min(100rem, max(52rem, 58vw));
  --help-card-min: clamp(17rem, 21vw, 34rem);

  --help-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --help-enter: 700ms;

  background-color: var(--help-bg);
  color: var(--help-text);
  font-size: var(--help-fs-base);
  overflow-x: hidden;
}

.help-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--help-gutter);
}

.help-main {
  position: relative;
  isolation: isolate;
  padding-bottom: var(--help-space-2xl);
}

/* ------------------------------------------------------------- Entrance */

@keyframes help-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.help-rise {
  animation: help-rise var(--help-enter) var(--help-ease-out) both;
}

.help-hero__inner > .help-rise:nth-child(2),
.help-post__header > .help-rise:nth-child(2) { animation-delay: 70ms; }
.help-hero__inner > .help-rise:nth-child(3),
.help-post__header > .help-rise:nth-child(3) { animation-delay: 140ms; }
.help-hero__inner > .help-rise:nth-child(4) { animation-delay: 210ms; }
.help-post > .help-breadcrumb { animation-delay: 40ms; }
.help-post > .help-video { animation-delay: 200ms; }
.help-post > .help-post__body { animation-delay: 260ms; }
.help-post > .help-post__footer { animation-delay: 320ms; }

/* --------------------------------------------------------------- Aura */

.help-hero__aura {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: clamp(30rem, 60vh, 60rem);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

/* Fine dot grid behind the orbs. */
.help-hero__aura::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: clamp(20px, 1rem + 0.5vw, 32px) clamp(20px, 1rem + 0.5vw, 32px);
}

/* Orbs scale with the window so the glow covers a wide monitor too. */
.help-hero__orb {
  --orb: clamp(30rem, 48vw, 80rem);

  position: absolute;
  top: calc(var(--orb) * -0.58);
  left: 50%;
  width: var(--orb);
  height: var(--orb);
  border-radius: 50%;
  will-change: transform;
}

.help-hero__orb--gold {
  margin-left: calc(var(--orb) * -0.7);
  background: radial-gradient(circle, var(--help-gold-glow), transparent 65%);
  animation: help-drift-a 18s ease-in-out infinite alternate;
}

.help-hero__orb--blue {
  top: calc(var(--orb) * -0.48);
  margin-left: calc(var(--orb) * -0.16);
  background: radial-gradient(circle, var(--help-blue-glow), transparent 65%);
  animation: help-drift-b 22s ease-in-out infinite alternate;
}

@keyframes help-drift-a {
  to { transform: translate3d(8%, 6%, 0) scale(1.08); }
}

@keyframes help-drift-b {
  to { transform: translate3d(-10%, 8%, 0) scale(0.94); }
}

/* --------------------------------------------------------------- Hero */

.help-hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 5vw, 9rem) clamp(2rem, 1rem + 3vw, 6rem);
  text-align: center;
}

.help-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--help-space-md);
}

.help-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--help-space-xs);
  padding: var(--help-space-2xs) var(--help-space-sm);
  border: 1px solid var(--help-gold-line);
  border-radius: var(--radius-pill);
  background-color: var(--help-gold-soft);
  color: var(--help-gold);
  font-size: var(--help-fs-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-eyebrow__dot {
  position: relative;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background-color: var(--help-gold);
}

.help-eyebrow__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: inherit;
  animation: help-ping 2.4s var(--help-ease-out) infinite;
}

@keyframes help-ping {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(3); }
}

.help-hero__title {
  max-width: 18ch;
  font-family: var(--font-brand);
  font-size: var(--help-fs-hero);
  font-weight: var(--font-weight-brand);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--help-text);
}

.help-gradient-text {
  background-image: linear-gradient(100deg, var(--help-gold-strong) 0%, var(--help-gold) 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.help-hero__lead {
  max-width: 40em;
  font-size: var(--help-fs-md);
  color: var(--help-muted);
}

/* ------------------------------------------------------------- Search */

.help-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: clamp(20rem, 42vw, 64rem);
  margin-top: var(--help-space-xs);
  padding: var(--help-space-2xs);
  border: 1px solid var(--help-line-strong);
  border-radius: var(--radius-pill);
  background-color: var(--help-surface);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: var(--help-fs-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.help-search:focus-within {
  border-color: var(--help-gold-line);
  box-shadow: 0 0 0 4px var(--help-gold-soft), 0 20px 50px -24px rgba(0, 0, 0, 0.9);
}

.help-search__icon {
  position: absolute;
  left: 1.4em;
  width: 1.15em;
  height: 1.15em;
  color: var(--help-subtle);
  pointer-events: none;
}

.help-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--help-control);
  padding: 0 0.75em 0 3.1em;
  border: 0;
  background: transparent;
  color: var(--help-text);
  font-family: inherit;
  font-size: inherit;
}

.help-search__input::placeholder {
  color: var(--help-subtle);
}

.help-search__input:focus {
  outline: none;
}

.help-search__input::-webkit-search-cancel-button {
  filter: invert(0.7);
}

/* ------------------------------------------------------------ Buttons */

.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--help-control);
  padding: 0 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--help-fs-base);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast);
}

.help-button:hover {
  text-decoration: none;
}

.help-button:active {
  transform: scale(0.97);
}

.help-button--primary {
  background-color: var(--help-gold);
  color: var(--color-brand-contrast);
}

.help-button--primary:hover {
  background-color: var(--help-gold-strong);
}

.help-button--ghost {
  border-color: var(--help-line-strong);
  background-color: var(--help-surface-raised);
  color: var(--help-text);
}

.help-button--ghost:hover {
  border-color: var(--help-gold-line);
  color: var(--help-gold);
}

.help-button__icon {
  width: 1.1em;
  height: 1.1em;
}

/* Same size as the .help-eyebrow pill it sits beside ("Help topic"). */
.help-button--pill {
  gap: var(--help-space-2xs);
  min-height: 0;
  padding: var(--help-space-2xs) var(--help-space-sm);
  font-size: var(--help-fs-xs);
  letter-spacing: 0.04em;
}

.help-button--pill .help-button__icon {
  width: 1em;
  height: 1em;
}

.help-search__button {
  flex: 0 0 auto;
  min-height: calc(var(--help-control) - 4px);
  font-size: var(--help-fs-sm);
}

.help-link {
  color: var(--help-gold);
  font-weight: var(--font-weight-semibold);
}

.help-body :focus-visible {
  outline: 2px solid var(--help-gold);
  outline-offset: 3px;
}

/* ------------------------------------------------------------- Topics */

.help-topics__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--help-space-xs) var(--help-space-md);
  margin-bottom: var(--help-space-lg);
  padding-bottom: var(--help-space-md);
  border-bottom: 1px solid var(--help-line);
}

.help-topics__heading {
  font-family: var(--font-brand);
  font-size: var(--help-fs-xl);
  font-weight: var(--font-weight-bold);
  overflow-wrap: anywhere;
}

.help-topics__meta {
  display: flex;
  align-items: center;
  gap: var(--help-space-md);
  font-size: var(--help-fs-sm);
}

.help-count {
  color: var(--help-muted);
  font-variant-numeric: tabular-nums;
}

/* As many columns as fit at the fluid minimum card width: one on phones,
   two on tablets, three on laptops, four or more on wide monitors. */
.help-grid,
.help-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--help-card-min)), 1fr));
  gap: var(--help-space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-grid__item {
  display: flex;
  animation: help-rise var(--help-enter) var(--help-ease-out) both;
}

/* Staggered entrance for the twelve cards of a page. */
.help-grid__item:nth-child(2) { animation-delay: 50ms; }
.help-grid__item:nth-child(3) { animation-delay: 100ms; }
.help-grid__item:nth-child(4) { animation-delay: 150ms; }
.help-grid__item:nth-child(5) { animation-delay: 200ms; }
.help-grid__item:nth-child(6) { animation-delay: 250ms; }
.help-grid__item:nth-child(7) { animation-delay: 300ms; }
.help-grid__item:nth-child(8) { animation-delay: 350ms; }
.help-grid__item:nth-child(9) { animation-delay: 400ms; }
.help-grid__item:nth-child(10) { animation-delay: 450ms; }
.help-grid__item:nth-child(11) { animation-delay: 500ms; }
.help-grid__item:nth-child(n + 12) { animation-delay: 550ms; }

/* --------------------------------------------------------------- Card */

.help-card {
  --spot-x: 50%;
  --spot-y: 0%;

  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--help-space-sm);
  width: 100%;
  min-height: clamp(13rem, 9rem + 6vw, 22rem);
  padding: var(--help-space-lg);
  overflow: hidden;
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  background-color: var(--help-surface-solid);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
  color: var(--help-text);
  text-decoration: none;
  transition: transform 320ms var(--help-ease-out), border-color var(--transition-normal);
}

/* Pointer spotlight (position set by help-page.js) and a gold top hairline. */
.help-card::before,
.help-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--help-ease-out);
}

.help-card::before {
  inset: 0;
  background: radial-gradient(clamp(320px, 28vw, 640px) circle at var(--spot-x) var(--spot-y), rgba(235, 196, 42, 0.1), transparent 45%);
}

.help-card::after {
  inset: 0 var(--help-space-lg) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--help-gold), transparent);
}

.help-card:hover {
  text-decoration: none;
  border-color: var(--help-line-strong);
  transform: translateY(-4px);
}

.help-card:hover::before,
.help-card:hover::after,
.help-card:focus-visible::after {
  opacity: 1;
}

.help-card:active {
  transform: translateY(-1px);
}

.help-card__index {
  font-family: var(--font-mono);
  font-size: var(--help-fs-xs);
  color: var(--help-subtle);
  letter-spacing: 0.08em;
}

.help-card__title {
  font-family: var(--font-brand);
  font-size: var(--help-fs-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  overflow-wrap: anywhere;
  transition: color var(--transition-normal);
}

.help-card:hover .help-card__title {
  color: var(--help-gold-strong);
}

.help-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--help-muted);
  font-size: var(--help-fs-base);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.help-card__footer {
  display: flex;
  align-items: center;
  gap: var(--help-space-sm);
  margin-top: auto;
  padding-top: var(--help-space-sm);
}

.help-card__langs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--help-space-2xs);
  min-width: 0;
}

.help-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2em 0.65em;
  border: 1px solid var(--help-line-strong);
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--help-muted);
  font-size: var(--help-fs-xs);
  font-weight: var(--font-weight-semibold);
}

.help-chip__icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--help-gold);
}

.help-card__views {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-left: auto;
  color: var(--help-subtle);
  font-size: var(--help-fs-xs);
  font-variant-numeric: tabular-nums;
}

.help-card__views-icon {
  width: 1.15em;
  height: 1.15em;
}

.help-card__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(2rem, 1.5rem + 0.8vw, 3rem);
  height: clamp(2rem, 1.5rem + 0.8vw, 3rem);
  border: 1px solid var(--help-line-strong);
  border-radius: 50%;
  color: var(--help-text);
  transition: transform 320ms var(--help-ease-out), background-color var(--transition-normal),
    border-color var(--transition-normal), color var(--transition-normal);
}

.help-card__arrow svg {
  width: 45%;
  height: 45%;
}

.help-card:hover .help-card__arrow {
  border-color: var(--help-gold);
  background-color: var(--help-gold);
  color: var(--color-brand-contrast);
  transform: translateX(3px);
}

.help-card--compact {
  min-height: 0;
  padding: var(--help-space-md) var(--help-space-lg);
}

/* ------------------------------------------------------------- States */

.help-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--help-space-sm);
  padding: var(--help-space-2xl) var(--help-space-lg);
  border: 1px dashed var(--help-line-strong);
  border-radius: var(--help-radius);
  background-color: var(--help-surface-solid);
  text-align: center;
}

.help-state__icon {
  display: grid;
  place-items: center;
  width: clamp(3.5rem, 2.6rem + 1.6vw, 5.5rem);
  height: clamp(3.5rem, 2.6rem + 1.6vw, 5.5rem);
  border-radius: 50%;
  background-color: var(--help-gold-soft);
  color: var(--help-gold);
}

.help-state__icon svg {
  width: 46%;
  height: 46%;
}

.help-state--error .help-state__icon {
  background-color: var(--color-error-soft);
  color: var(--color-error);
}

.help-state__heading {
  font-size: var(--help-fs-lg);
  font-weight: var(--font-weight-bold);
}

.help-state__text {
  max-width: 32em;
  margin-bottom: var(--help-space-xs);
  color: var(--help-muted);
}

/* -------------------------------------------------------------- Pager */

.help-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--help-space-xs);
  margin-top: var(--help-space-2xl);
  font-size: var(--help-fs-sm);
}

.help-pager__pages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--help-space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-pager__button,
.help-pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-width: var(--help-control);
  min-height: var(--help-control);
  padding: 0 0.9em;
  border: 1px solid var(--help-line-strong);
  border-radius: var(--radius-pill);
  background-color: var(--help-surface-solid);
  color: var(--help-text);
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.help-pager__button:hover,
.help-pager__page:hover {
  border-color: var(--help-gold-line);
  color: var(--help-gold);
  text-decoration: none;
}

.help-pager__page[aria-current="page"] {
  border-color: var(--help-gold);
  background-color: var(--help-gold);
  color: var(--color-brand-contrast);
}

.help-pager__icon {
  width: 1.1em;
  height: 1.1em;
}

.help-pager__gap {
  display: inline-grid;
  place-items: center;
  min-width: 2em;
  min-height: var(--help-control);
  color: var(--help-subtle);
}

/* ---------------------------------------------------------- Post page */

.help-main--post {
  padding-top: clamp(1.5rem, 0.8rem + 2.5vw, 5rem);
}

.help-hero__aura--post {
  height: clamp(24rem, 50vh, 48rem);
}

/* The article column widens with the window (58% of the viewport on a large
   monitor) but is never narrower than 52rem, so phones and tablets use the
   full width between the gutters. */
.help-post,
.help-related {
  max-width: calc(var(--help-article) + 2 * var(--help-gutter));
}

/* "Help topic" label on the left and the back link on the right, in one
   row; the same back link repeats below the topic. */
.help-post__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--help-space-sm);
  align-self: stretch;
}

.help-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--help-space-2xs);
  margin: 0 0 var(--help-space-lg);
  padding: 0;
  list-style: none;
  font-size: var(--help-fs-sm);
  color: var(--help-subtle);
}

.help-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--help-space-2xs);
  min-width: 0;
}

.help-breadcrumb__list li + li::before {
  content: "/";
  color: var(--help-line-strong);
}

.help-breadcrumb__list a {
  color: var(--help-muted);
}

.help-breadcrumb__list a:hover {
  color: var(--help-gold);
}

.help-breadcrumb__list [aria-current="page"] {
  max-width: 40ch;
  overflow: hidden;
  color: var(--help-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-post__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--help-space-md);
}

.help-post__title {
  font-family: var(--font-brand);
  font-size: var(--help-fs-title);
  font-weight: var(--font-weight-brand);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.help-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--help-space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-post__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.9em;
  border: 1px solid var(--help-line);
  border-radius: var(--radius-pill);
  background-color: var(--help-surface-solid);
  color: var(--help-muted);
  font-size: var(--help-fs-sm);
  font-variant-numeric: tabular-nums;
}

.help-post__meta-icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--help-gold);
}

/* -------------------------------------------------------------- Video */

.help-video {
  margin-top: var(--help-space-xl);
  padding: var(--help-space-md);
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  background-color: var(--help-surface-solid);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
}

.help-video__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--help-space-sm);
  margin-bottom: var(--help-space-md);
  padding-inline: var(--help-space-2xs);
}

.help-video__heading {
  font-size: var(--help-fs-md);
  font-weight: var(--font-weight-bold);
}

.help-video__panel + .help-video__panel {
  margin-top: var(--help-space-lg);
}

.help-video__language {
  margin-bottom: var(--help-space-xs);
  padding-inline: var(--help-space-2xs);
  font-size: var(--help-fs-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--help-muted);
}

/* 16:9 player as wide as the column, but never taller than the window, so
   the whole video stays visible on short, wide screens. */
.help-video__frame {
  position: relative;
  width: min(100%, calc((100vh - 9rem) * 16 / 9));
  width: min(100%, calc((100dvh - 9rem) * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--help-radius-sm);
  background-color: #000;
}

.help-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.help-video__external {
  display: flex;
  align-items: center;
  gap: var(--help-space-md);
  padding: var(--help-space-lg);
  border: 1px solid var(--help-line-strong);
  border-radius: var(--help-radius-sm);
  background-image: radial-gradient(circle at 0% 50%, var(--help-gold-soft), transparent 60%);
  color: var(--help-text);
  font-size: var(--help-fs-base);
  transition: border-color var(--transition-normal), transform 320ms var(--help-ease-out);
}

.help-video__external:hover {
  border-color: var(--help-gold-line);
  text-decoration: none;
  transform: translateY(-2px);
}

.help-video__external-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  background-color: var(--help-gold);
  color: var(--color-brand-contrast);
}

.help-video__external-icon svg {
  width: 50%;
  height: 50%;
}

.help-video__external-text {
  display: grid;
  gap: 0.15em;
  min-width: 0;
}

.help-video__external-text span {
  color: var(--help-muted);
  font-size: var(--help-fs-sm);
}

.help-video__external-arrow {
  width: 1.2em;
  height: 1.2em;
  margin-left: auto;
  color: var(--help-muted);
}

/* Tabs (enhanced by help-page.js; hidden without it). */
.help-tabs {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--help-line-strong);
  border-radius: var(--radius-pill);
  background-color: var(--help-bg);
}

.help-tabs__tab {
  position: relative;
  z-index: 1;
  min-width: 6.5em;
  min-height: calc(var(--help-control) - 6px);
  padding: 0 1.2em;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--help-muted);
  font-family: inherit;
  font-size: var(--help-fs-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: color var(--transition-normal);
}

.help-tabs__tab:hover {
  color: var(--help-text);
}

.help-tabs__tab[aria-selected="true"] {
  color: var(--color-brand-contrast);
}

/* Sliding pill under the selected tab; geometry set by help-page.js. */
.help-tabs__indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--tab-width, 0);
  border-radius: var(--radius-pill);
  background-color: var(--help-gold);
  transform: translateX(var(--tab-x, 0));
  transition: transform 380ms var(--help-ease-out), width 380ms var(--help-ease-out);
}

.help-video.is-tabbed .help-video__panel + .help-video__panel {
  margin-top: 0;
}

.help-video.is-tabbed [data-panel-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.help-video.is-tabbed .help-video__panel:not([hidden]) {
  animation: help-fade 360ms var(--help-ease-out) both;
}

@keyframes help-fade {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------- Description */

.help-post__body {
  margin-top: var(--help-space-xl);
  font-size: var(--help-fs-md);
  line-height: 1.75;
  color: var(--help-body-text);
}

.help-post__body p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.help-post__body p + p {
  margin-top: var(--help-space-md);
}

.help-post__footer {
  margin-top: var(--help-space-2xl);
  padding-top: var(--help-space-lg);
  border-top: 1px solid var(--help-line);
}

/* ------------------------------------------------------------ Related */

.help-related {
  margin-top: var(--help-space-2xl);
}

.help-related__heading {
  margin-bottom: var(--help-space-md);
  font-family: var(--font-brand);
  font-size: var(--help-fs-xl);
  font-weight: var(--font-weight-bold);
}

/* ------------------------------------------------------------- Mobile */

@media (max-width: 479.98px) {
  .help-search {
    flex-wrap: wrap;
    border-radius: var(--help-radius);
  }

  .help-search__icon {
    top: calc(var(--help-space-2xs) + var(--help-control) / 2 - 0.575em);
  }

  .help-search__button {
    flex-basis: 100%;
  }

  .help-card {
    min-height: 0;
  }

  .help-video {
    padding: var(--help-space-sm);
  }

  .help-tabs {
    width: 100%;
  }

  .help-tabs__tab {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .help-rise,
  .help-grid__item,
  .help-hero__orb,
  .help-eyebrow__dot::after,
  .help-video.is-tabbed .help-video__panel:not([hidden]) {
    animation: none;
  }

  .help-card,
  .help-card__arrow,
  .help-video__external,
  .help-tabs__indicator {
    transition: none;
  }

  .help-card:hover,
  .help-video__external:hover,
  .help-card:hover .help-card__arrow {
    transform: none;
  }
}
