/* ===================================================================
   Card Docs – redesign
   A product-site shell around the docs. Remove redesign.css and
   redesign.js from zensical.toml (and the overrides/partials) to go back.
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  --rd-ease: cubic-bezier(0.16, 1, 0.3, 1);       /* confident arrival */
  --rd-ease-out: cubic-bezier(0.23, 1, 0.32, 1);  /* UI feedback */
  --rd-ease-io: cubic-bezier(0.77, 0, 0.175, 1);  /* on-screen movement */
  --rd-navy: #0b1126;                             /* the hero video's deep blue */
  --rd-blue: #0071e3;
  --rd-blue-hover: #0077ed;
  --rd-radius-lg: 28px;
  --rd-radius: 18px;
  --rd-radius-sm: 12px;
  --rd-width: 980px;
  --rd-bar-width: 56rem;     /* 1120px, grows with the theme's root size on large screens */
  --rd-text: 17px;
  --md-text-font: "Inter";
}

[data-md-color-scheme="default"] {
  --rd-bg: #ffffff;
  --rd-bg-alt: #f5f5f7;
  --rd-bg-raised: #ffffff;
  --rd-ink: #1d1d1f;
  --rd-ink-2: #6e6e73;
  --rd-link: #0066cc;
  --rd-hairline: rgba(0, 0, 0, 0.1);
  --rd-nav: rgba(250, 250, 252, 0.82);
  --rd-nav-ink: #1d1d1f;
  --rd-local: rgba(255, 255, 255, 0.78);
  --rd-new: #b64400;
}

[data-md-color-scheme="slate"] {
  --rd-bg: #000000;
  --rd-bg-alt: #161617;
  --rd-bg-raised: #1d1d1f;
  --rd-ink: #f5f5f7;
  --rd-ink-2: #a1a1a6;
  --rd-link: #2997ff;
  --rd-hairline: rgba(255, 255, 255, 0.14);
  --rd-nav: rgba(22, 22, 23, 0.82);
  --rd-nav-ink: #f5f5f7;
  --rd-local: rgba(22, 22, 23, 0.78);
  --rd-new: #f56300;
  --md-hue: 240;
}

[data-md-color-scheme] {
  --md-default-bg-color: var(--rd-bg);
  --md-default-fg-color: var(--rd-ink);
  --md-default-fg-color--light: var(--rd-ink-2);
  --md-default-fg-color--lighter: var(--rd-hairline);
  --md-typeset-color: var(--rd-ink);
  --md-typeset-a-color: var(--rd-link);
  --md-accent-fg-color: var(--rd-link);
  --md-primary-fg-color: var(--rd-blue);
  --md-code-bg-color: var(--rd-bg-alt);
  --md-footer-bg-color: var(--rd-bg-alt);
  --md-footer-bg-color--dark: var(--rd-bg-alt);
}

/* ---------- Base & browser surfaces ---------- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; /* taste-skill-ignore: the site's incumbent typeface */
  font-optical-sizing: auto;
  background: var(--rd-bg);
  color: var(--rd-ink);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--rd-blue) 22%, transparent);
}

html {
  scrollbar-color: color-mix(in srgb, var(--rd-ink) 22%, transparent) transparent;
  -webkit-tap-highlight-color: transparent;
}

input {
  caret-color: var(--rd-blue);
}

:focus-visible {
  outline: 2px solid var(--rd-blue) !important;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Buttons & links ---------- */
.rd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  background: var(--rd-blue);
  color: #fff !important;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: background-color 200ms ease, transform 160ms var(--rd-ease-out);
}

.rd-button:hover {
  background: var(--rd-blue-hover);
}

.rd-button:active {
  transform: scale(0.97);
}

.rd-button--small {
  min-height: 1.5rem;
  padding: 0 0.65rem;
  font-size: 0.65rem;
}

.rd-more {
  color: var(--rd-link) !important;
  font-size: 17px;
  text-decoration: none !important;
}

.rd-more::after {
  content: "›";
  display: inline-block;
  margin-left: 0.25em;
  transition: transform 200ms var(--rd-ease-out);
}

.rd-more:hover {
  text-decoration: underline !important;
}

.rd-more:hover::after {
  transform: translateX(3px);
}

/* ---------- Global navigation ---------- */
.md-tabs {
  display: none !important;
}

.rd-globalnav {
  height: 2.6rem;
  margin-top: 0 !important;
  background: var(--rd-nav) !important;
  color: var(--rd-nav-ink) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px); /* taste-skill-ignore: translucent nav bars are the brief */
  backdrop-filter: saturate(180%) blur(20px); /* taste-skill-ignore: translucent nav bars are the brief */
  box-shadow: none !important; /* taste-skill-ignore: removes the theme's shadow */
}

/* On docs pages the global bar scrolls away; the card bar sticks */
body:has(.rd-localnav) .rd-globalnav {
  position: relative;
}

.rd-globalnav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--rd-bar-width);
  height: 2.6rem;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.rd-globalnav__logo {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  text-decoration: none;
}

.rd-globalnav__logo img {
  width: 1.2rem !important;
  height: 1.2rem !important;
}

.rd-globalnav__name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rd-globalnav__links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd-globalnav__link {
  display: block;
  white-space: nowrap;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  color: inherit !important;
  font-size: 0.7rem;
  opacity: 0.8;
  text-decoration: none !important;
  transition: opacity 200ms ease;
}

.rd-globalnav__link:hover,
.rd-globalnav__link--active {
  opacity: 1;
}

.rd-globalnav__tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rd-globalnav .md-header__button {
  margin: 0 !important;
  padding: 6px !important;
  color: inherit !important;
  opacity: 0.8;
  transition: opacity 200ms ease, transform 160ms var(--rd-ease-out);
}

.rd-globalnav .md-header__button:hover {
  opacity: 1;
}

.rd-globalnav .md-header__button:active {
  transform: scale(0.94);
}

.rd-globalnav .md-header__button svg {
  width: 1rem;
  height: 1rem;
}

.rd-globalnav__menu {
  display: none !important;
}

/* Search: the theme's search button, reduced to a magnifier */
.rd-globalnav label[for="__search"] {
  display: none !important;
}

.rd-globalnav .md-search__button {
  width: auto !important;
  min-width: 0;
  height: 1.7rem;
  padding: 0 0.4rem !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 0 !important;
  opacity: 0.8;
  transition: opacity 200ms ease, transform 160ms var(--rd-ease-out);
}

.rd-globalnav .md-search__button::before {
  position: static !important;
  display: block;
  width: 1rem !important;
  height: 1rem !important;
  background-color: currentColor !important;
}

.rd-globalnav .md-search__button::after {
  display: none !important;
}

.rd-globalnav .md-search__button:hover {
  opacity: 1;
}

.rd-globalnav .md-search__button:active {
  transform: scale(0.94);
}

@media screen and (max-width: 76.234em) {
  .rd-globalnav__links {
    display: none;
  }

  .rd-globalnav__menu {
    display: block !important;
  }

  .rd-globalnav__logo {
    flex: 1;
  }
}

/* Home page: the bar sits on the hero video */
body.hero-highlight-visible .rd-globalnav {
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff !important;
}

body:has(.hero-section):not(.hero-highlight-visible) .rd-globalnav {
  margin-top: 0 !important;
}

/* ---------- Card navigation ---------- */
.rd-localnav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 2.8rem;
  background: var(--rd-local);
  -webkit-backdrop-filter: saturate(180%) blur(20px); /* taste-skill-ignore: translucent nav bars are the brief */
  backdrop-filter: saturate(180%) blur(20px); /* taste-skill-ignore: translucent nav bars are the brief */
  transition: box-shadow 200ms ease;
}

.rd-localnav.is-stuck {
  box-shadow: 0 1px 0 var(--rd-hairline); /* taste-skill-ignore: sticky bar edge */
}

.rd-localnav__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: var(--rd-bar-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.rd-localnav__title {
  flex: 1;
  color: var(--rd-ink) !important;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none !important;
}

.rd-localnav__links {
  display: flex;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd-localnav__link {
  color: var(--rd-ink) !important;
  font-size: 0.68rem;
  opacity: 0.72;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity 200ms ease;
}

.rd-localnav__link:hover,
.rd-localnav__link--active {
  opacity: 1;
}

.rd-localnav__link--active {
  font-weight: 600;
}

@media screen and (max-width: 59.984em) {
  .rd-localnav__links {
    display: none;
  }

  .rd-localnav__title {
    font-size: 19px;
  }
}

/* Sidebars sit below the sticky card bar */
@media screen and (min-width: 76.25em) {
  body:has(.rd-localnav) .md-sidebar {
    top: 2.8rem;
  }
}

/* ---------- Layout ---------- */
/* Full-bleed bands and the hero text never cause sideways scrolling */
.md-container {
  overflow-x: clip;
}

.md-main__inner {
  margin-top: 0;
}

.md-grid {
  max-width: 1180px;
}

body:not(:has(.hero-section)):not(:has(.rd-hero)) .md-content__inner {
  max-width: 760px;
  padding-top: 40px;
}

/* ---------- Docs typography ---------- */
.md-typeset {
  font-size: var(--rd-text);
  line-height: 1.53;
  letter-spacing: -0.012em;
  color: var(--rd-ink);
}

.md-typeset > h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--rd-ink);
  text-wrap: balance;
}

.md-typeset > h1 + p {
  font-size: 21px;
  line-height: 1.43;
  color: var(--rd-ink-2);
}

.md-typeset > h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
  color: var(--rd-ink);
  text-wrap: balance;
}

.md-typeset > h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 36px 0 10px;
  color: var(--rd-ink);
}

.md-typeset p,
.md-typeset li {
  text-wrap: pretty;
}

.md-typeset hr {
  border: 0;
  height: 0;
  margin: 8px 0 0;
}

.md-typeset a {
  color: var(--rd-link);
  text-decoration: none;
}

.md-typeset a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.md-typeset .headerlink {
  color: var(--rd-ink-2) !important;
}

/* Tables: data keeps its rules */
.md-typeset__table {
  width: 100%;
}

.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  box-shadow: none; /* taste-skill-ignore: removes the theme's shadow */
}

.md-typeset table:not([class]) th {
  background: transparent;
  color: var(--rd-ink);
  font-weight: 600;
  border-bottom: 1px solid var(--rd-ink);
  padding: 10px 14px 10px 0;
}

.md-typeset table:not([class]) td {
  border-top: 0;
  border-bottom: 1px solid var(--rd-hairline);
  padding: 12px 14px 12px 0;
  vertical-align: top;
}

.md-typeset table:not([class]) tr:hover {
  background: transparent;
  box-shadow: none; /* taste-skill-ignore: removes the theme's shadow */
}

/* Code */
.md-typeset pre > code {
  border-radius: var(--rd-radius-sm);
  background: var(--rd-bg-alt);
  font-size: 13.5px;
  padding: 18px 20px;
}

.md-typeset :not(pre) > code {
  background: var(--rd-bg-alt);
  border-radius: 6px;
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  color: var(--rd-ink);
}

.md-typeset .md-clipboard {
  color: var(--rd-ink-2);
}

/* Callouts */
.md-typeset .admonition,
.md-typeset details {
  border: 0;
  border-radius: var(--rd-radius);
  background: var(--rd-bg-alt) !important;
  box-shadow: none; /* taste-skill-ignore */
  font-size: 15px;
  padding: 4px 22px 10px;
  margin: 28px 0;
}

.md-typeset .admonition-title,
.md-typeset summary {
  background: transparent !important;
  font-size: 15px;
  font-weight: 600;
  padding-left: 30px;
  margin: 0 -22px;
  padding-inline: 52px 22px;
}

.md-typeset .admonition-title::before,
.md-typeset summary::before {
  left: 22px;
}

/* Images in docs */
.md-typeset img {
  border-radius: var(--rd-radius-sm);
}

.doc-img-responsive {
  box-shadow: none !important; /* taste-skill-ignore: removes the theme's shadow */
}

/* Info blocks (card pages) */
.info-grid {
  gap: 16px !important;
}

.info-block {
  border: 0 !important;
  border-radius: var(--rd-radius) !important;
  background: var(--rd-bg-alt);
  padding: 24px !important;
}

.md-typeset .info-block h3 {
  margin-top: 0;
  font-size: 19px;
  font-weight: 600;
}

.md-typeset .info-block p {
  font-size: 15px;
  color: var(--rd-ink-2);
}

/* ---------- Sidebar & table of contents ---------- */
.md-nav {
  font-size: 14px;
}

.md-nav__title {
  color: var(--rd-ink) !important;
}

.md-nav__link {
  color: var(--rd-ink-2);
  border-radius: 8px;
  transition: color 150ms ease, background-color 150ms ease;
}

.md-nav__link:hover {
  color: var(--rd-ink) !important;
}

.md-nav--primary .md-nav__link--active,
.md-nav--primary .md-nav__link--active:hover {
  background: var(--rd-bg-alt) !important;
  color: var(--rd-ink) !important;
  font-weight: 600;
}

.md-nav--primary .md-nav__item--section > .md-nav__link {
  color: var(--rd-ink) !important;
  font-weight: 600;
}

.md-nav--secondary .md-nav__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--rd-ink-2) !important;
  background: transparent;
  box-shadow: none; /* taste-skill-ignore: removes the theme's shadow */
}

.md-nav--secondary .md-nav__link {
  font-size: 13px;
}

.md-nav--secondary .md-nav__link--active {
  color: var(--rd-link) !important;
}

.md-sidebar__scrollwrap {
  scrollbar-width: none;
}

/* ---------- Product page (card start page) ---------- */
body:has(.rd-hero) .md-content__inner > h1 {
  display: none;
}

body:has(.rd-hero) .md-content__inner {
  max-width: var(--rd-width);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 160px;
}

.rd-hero {
  padding: 72px 22px 0;
  text-align: center;
}

.rd-hero__title {
  margin: 0;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--rd-ink);
  text-wrap: balance;
}

.rd-hero__tagline {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--rd-ink-2);
}

.rd-hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
}

.rd-hero__copy > * {
  animation: rd-rise 900ms var(--rd-ease) both;
}

.rd-hero__tagline { animation-delay: 90ms !important; }
.rd-hero__actions { animation-delay: 180ms !important; }

@keyframes rd-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* The stage: a flat field, framed, that opens to the full width as you scroll.
   One card at a time; the switch below changes the view and the field with it. */
[data-md-color-scheme="default"] {
  --rd-field-light: #f5f5f7;
  --rd-field-dark: #1d1d1f;
}

[data-md-color-scheme="slate"] {
  --rd-field-light: #2a2a2d;
  --rd-field-dark: #161617;
}

.rd-stage {
  position: relative;
  width: 100vw;
  height: min(70vh, 680px);
  margin: 56px 0 0 calc(50% - 50vw);
  overflow: hidden;
  background: var(--rd-field-light);
  clip-path: inset(0 var(--rd-stage-x, 6vw) round var(--rd-stage-r, 32px));
  transition: background-color 600ms var(--rd-ease);
  animation: rd-stage-in 1100ms var(--rd-ease) 120ms both;
}

.rd-stage[data-field="dark"] {
  background: var(--rd-field-dark);
}

@keyframes rd-stage-in {
  from {
    clip-path: inset(18% 24% round 48px);
    opacity: 0;
  }
}

.rd-stage__cards {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6vw;
  transform: translateY(var(--rd-cards-y, 40px)) scale(var(--rd-cards-s, 0.94));
  will-change: transform;
}

.rd-stage__card {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  max-width: min(64%, 720px);
  max-height: 74%;
  border-radius: 16px !important;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45), 0 8px 18px -10px rgba(0, 0, 0, 0.25); /* taste-skill-ignore: the card floats over the stage */
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96);
  transition:
    opacity 450ms var(--rd-ease),
    filter 450ms var(--rd-ease),
    transform 650ms var(--rd-ease);
}

.rd-stage__card.is-active {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Segmented switch under the stage */
.rd-switch {
  --n: 2;
  --i: 0;
  position: relative;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  width: max-content;
  margin: 28px auto 0;
  padding: 4px;
  border-radius: 980px;
  background: var(--rd-bg-alt);
}

.rd-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--n));
  border-radius: 980px;
  background: var(--rd-bg-raised);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); /* taste-skill-ignore: the selected segment sits on the track */
  transform: translateX(calc(100% * var(--i)));
  transition: transform 380ms var(--rd-ease-io);
}

.rd-switch button {
  position: relative;
  min-height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--rd-ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms ease, transform 160ms var(--rd-ease-out);
}

.rd-switch button[aria-checked="true"] {
  color: var(--rd-ink);
}

.rd-switch button:active {
  transform: scale(0.96);
}

@media screen and (max-width: 767px) {
  .rd-hero {
    padding-top: 44px;
  }

  .rd-hero__actions {
    flex-direction: column;
    gap: 16px;
  }

  .rd-stage {
    height: 52vh;
    margin-top: 40px;
  }

  .rd-stage__card {
    max-width: 90%;
  }

  .rd-switch button {
    padding: 0 14px;
    font-size: 13px;
  }
}

/* Dynamic Grid: its idea as a working diagram */
.rd-griddemo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(82%, 760px);
  height: min(78%, 460px);
  padding: 14px;
  border-radius: 26px;
  background: #2c2c2e;
}

.rd-griddemo__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.rd-griddemo__mod {
  display: flex;
  align-items: flex-end;
  flex: var(--g) 1 0;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #1c1c1e;
  color: #f5f5f7;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
}

.rd-griddemo__mod--smart {
  background: #0a5bb5;
}

/* The media player only shows while something plays; the column closes the gap */
.rd-griddemo__mod--hides {
  transition:
    flex-grow 700ms var(--rd-ease-io),
    opacity 300ms ease,
    padding 700ms var(--rd-ease-io),
    margin 700ms var(--rd-ease-io);
}

.rd-griddemo.is-idle .rd-griddemo__mod--hides {
  flex-grow: 0.0001;
  opacity: 0;
  padding-block: 0;
  margin-bottom: -14px;
}

@media screen and (max-width: 767px) {
  .rd-griddemo {
    width: 92%;
    height: 70%;
    gap: 8px;
    padding: 8px;
  }

  .rd-griddemo__col {
    gap: 8px;
  }

  .rd-griddemo__mod {
    padding: 10px;
    font-size: 12px;
  }
}

/* Product page body: the markdown, set like a product story */
body:has(.rd-hero) .md-typeset > h1 + p {
  max-width: 820px;
  margin: 120px auto 28px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--rd-ink);
  text-align: center;
  text-wrap: balance;
}

body:has(.rd-hero) .md-typeset > h1 + p ~ p:not([align]) {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 19px;
  line-height: 1.5;
  color: var(--rd-ink-2);
  text-align: center;
}

body:has(.rd-hero) .md-typeset > h2 {
  max-width: 820px;
  margin: 140px auto 40px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-align: center;
}

body:has(.rd-hero) .md-typeset > h3 {
  margin: 96px auto 24px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

body:has(.rd-hero) .md-typeset .admonition {
  max-width: 680px;
  margin: 40px auto;
}

/* Screenshot rows become a gallery band */
body:has(.rd-hero) .md-typeset > p[align="center"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 100vw;
  margin: 40px 0 0 calc(50% - 50vw);
  padding: 72px 6vw;
  background: var(--rd-bg-alt);
  font-size: 0;
}

body:has(.rd-hero) .md-typeset > p[align="center"] + p[align="center"] {
  margin-top: 0;
  padding-top: 0;
}

body:has(.rd-hero) .md-typeset > p[align="center"] img {
  width: auto !important;
  max-width: min(46%, 620px);
  border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: screenshots float on the band */
}

@media screen and (max-width: 767px) {
  body:has(.rd-hero) .md-typeset > p[align="center"] img {
    max-width: 100%;
  }

  body:has(.rd-hero) .md-typeset > p[align="center"] {
    padding: 48px 20px;
    gap: 18px;
  }

  body:has(.rd-hero) .md-typeset > h1 + p {
    margin-top: 72px;
  }

  body:has(.rd-hero) .md-typeset > h2 {
    margin-top: 96px;
  }

  body:has(.rd-hero) .md-typeset > h3 {
    margin-top: 64px;
  }
}

/* Feature lists become a bento grid */
body:has(.rd-hero) .md-typeset > h2 + ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:has(.rd-hero) .md-typeset > h2 + ul > li {
  grid-column: span 2;
  margin: 0;
  padding: 32px 30px;
  border-radius: var(--rd-radius-lg);
  background: var(--rd-bg-alt);
  font-size: 17px;
  line-height: 1.47;
  color: var(--rd-ink-2);
}

body:has(.rd-hero) .md-typeset > h2 + ul > li:nth-child(1),
body:has(.rd-hero) .md-typeset > h2 + ul > li:nth-child(2) {
  grid-column: span 3;
}

body:has(.rd-hero) .md-typeset > h2 + ul > li:nth-child(1) {
  background: var(--rd-navy);
  color: rgba(255, 255, 255, 0.72);
}

body:has(.rd-hero) .md-typeset > h2 + ul > li:nth-child(1) strong,
body:has(.rd-hero) .md-typeset > h2 + ul > li:nth-child(1) code {
  color: #fff;
}

body:has(.rd-hero) .md-typeset > h2 + ul > li strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--rd-ink);
}

.rd-mark {
  display: block;
  font-size: 40px;
  line-height: 1;
}

.rd-dash {
  display: none;
}

body:has(.rd-hero) .md-typeset > h2 + ul > li ul {
  margin: 12px 0 0;
  font-size: 15px;
}

@media screen and (max-width: 900px) {
  body:has(.rd-hero) .md-typeset > h2 + ul {
    grid-template-columns: 1fr;
  }

  body:has(.rd-hero) .md-typeset > h2 + ul > li,
  body:has(.rd-hero) .md-typeset > h2 + ul > li:nth-child(n) {
    grid-column: auto;
  }
}

/* "Next steps" becomes a row of links */
body:has(.rd-hero) .md-typeset > h2#next-steps + ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

body:has(.rd-hero) .md-typeset > h2#next-steps + ul > li,
body:has(.rd-hero) .md-typeset > h2#next-steps + ul > li:nth-child(n) {
  grid-column: auto;
  padding: 0;
  background: transparent;
}

body:has(.rd-hero) .md-typeset > h2#next-steps + ul > li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  background: var(--rd-bg-alt);
  color: var(--rd-ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 200ms ease, transform 160ms var(--rd-ease-out);
}

body:has(.rd-hero) .md-typeset > h2#next-steps + ul > li a:hover {
  background: var(--rd-hairline);
}

body:has(.rd-hero) .md-typeset > h2#next-steps + ul > li a:active {
  transform: scale(0.97);
}

body:has(.rd-hero) .md-typeset .info-grid {
  margin: 0;
}

body:has(.rd-hero) .md-typeset .info-block {
  padding: 32px 30px !important;
  border-radius: var(--rd-radius-lg) !important;
}

body:has(.rd-hero) .md-typeset > table,
body:has(.rd-hero) .md-typeset > .md-typeset__scrollwrap {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.rd-footer {
  background: var(--rd-bg) !important;
  color: var(--rd-ink-2);
}

.rd-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 72px auto 0;
  padding: 0 22px 56px;
}

body:has(.rd-hero) .rd-pager,
body:has(.hero-section) .rd-pager {
  display: none;
}

.rd-pager__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-radius: var(--rd-radius);
  background: var(--rd-bg-alt);
  color: var(--rd-ink) !important;
  text-decoration: none !important;
  transition: background-color 200ms ease, transform 160ms var(--rd-ease-out);
}

.rd-pager__link--next {
  text-align: right;
}

.rd-pager__link:hover {
  background: var(--rd-hairline);
}

.rd-pager__link:active {
  transform: scale(0.98);
}

.rd-pager__direction {
  font-size: 13px;
  color: var(--rd-ink-2);
}

.rd-pager__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rd-directory {
  background: var(--rd-bg-alt);
  font-size: 12px;
  line-height: 1.33;
}

.rd-directory__inner {
  max-width: var(--rd-width);
  margin: 0 auto;
  padding: 40px 22px 24px;
}

.rd-directory__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 20px;
  padding-bottom: 40px;
}

.rd-directory__heading {
  margin: 0 0 10px;
  color: var(--rd-ink);
  font-weight: 600;
}

.rd-directory ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd-directory li {
  margin: 0 0 8px;
}

.rd-directory a {
  color: var(--rd-ink-2) !important;
  text-decoration: none;
}

.rd-directory a:hover {
  color: var(--rd-ink) !important;
  text-decoration: underline;
}

.rd-directory__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  color: var(--rd-ink-2);
}

.rd-directory__legal .md-copyright {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.rd-directory__legal .md-social__link svg {
  fill: var(--rd-ink-2);
}

@media screen and (max-width: 900px) {
  .rd-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .rd-pager {
    grid-template-columns: 1fr;
  }

  .rd-directory__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Home page (below the video hero) ---------- */
.md-typeset .highlights-section {
  padding: 120px 0 140px;
}

.md-typeset .highlights-title {
  max-width: 760px;
  margin: 0 auto 72px !important;
  font-size: clamp(36px, 5vw, 56px) !important;
  font-weight: 700 !important;
  line-height: 1.07 !important;
  letter-spacing: -0.03em;
  text-align: center;
  color: #f5f5f7 !important;
}

.md-typeset .highlights-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.md-typeset .highlights-content code {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

@media screen and (max-width: 767px) {
  .md-typeset .highlights-grid {
    grid-template-columns: 1fr;
  }
}

.md-typeset .highlights-icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
}

.md-typeset .highlights-content h3 {
  font-size: 21px !important;
  letter-spacing: -0.015em;
  color: #f5f5f7 !important;
}

.md-typeset .highlights-content p {
  font-size: 17px !important;
  line-height: 1.47 !important;
  color: #a1a1a6 !important;
}

.md-typeset .showcase-container {
  max-width: 1180px;
  padding: 140px 22px 160px;
}

.md-typeset .showcase-item {
  margin-bottom: 64px;
}

.md-typeset .showcase-title {
  font-size: clamp(40px, 6vw, 64px) !important;
  font-weight: 700 !important;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 18px !important;
}

.md-typeset .showcase-text {
  max-width: 680px;
  font-size: clamp(19px, 2vw, 24px) !important;
  line-height: 1.35 !important;
  color: var(--rd-ink-2);
  font-weight: 500;
}

/* The card lineup */
.md-typeset .cards-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
}

.md-typeset .card-tile {
  position: relative;
  align-items: center;
  overflow: hidden;
  min-height: 560px;
  padding: 52px 40px 0;
  border: 0;
  border-radius: var(--rd-radius-lg);
  background: var(--rd-bg-alt);
  text-align: center;
  transition: transform 500ms var(--rd-ease);
}

.md-typeset .card-tile:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none; /* taste-skill-ignore */
}

.md-typeset .card-tile__icon {
  display: none;
}

.md-typeset .card-badge,
.md-typeset .card-badge--wip {
  margin: 0 0 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rd-new);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.md-typeset .card-tile__name {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.md-typeset .card-tile__desc {
  max-width: 420px;
  margin: 0 0 22px;
  flex-grow: 0;
  font-size: 17px;
  line-height: 1.47;
  color: var(--rd-ink-2);
}

.md-typeset .card-tile__links {
  justify-content: center;
  gap: 28px;
  font-size: 17px;
}

.md-typeset .card-tile__links a {
  color: var(--rd-link);
}

.md-typeset .card-tile__links a::after {
  content: "›";
  display: inline-block;
  margin-left: 0.25em;
  transition: transform 200ms var(--rd-ease-out);
}

.md-typeset .card-tile__links a:hover::after {
  transform: translateX(3px);
}

.md-typeset .card-tile__shot {
  display: block;
  width: calc(100% + 80px);
  max-width: none;
  height: 260px;
  margin: auto -40px 0;
  padding: 36px 40px 0;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0 !important;
  background: var(--rd-navy);
  transition: transform 700ms var(--rd-ease);
}

@media (hover: hover) and (pointer: fine) {
  .md-typeset .card-tile:hover .card-tile__shot {
    transform: scale(1.03);
  }
}

@media screen and (max-width: 900px) {
  .md-typeset .cards-grid {
    grid-template-columns: 1fr;
  }

  .md-typeset .card-tile {
    min-height: 0;
  }
}

/* Home page reveals (the hero script observes .reveal) */
.md-typeset .reveal {
  transform: translate3d(0, 32px, 0);
  transition: opacity 900ms var(--rd-ease), transform 900ms var(--rd-ease);
}

/* ---------- Scroll reveals on product pages (set by redesign.js) ---------- */
.rd-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms var(--rd-ease), transform 900ms var(--rd-ease);
  transition-delay: var(--rd-delay, 0ms);
}

.rd-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Word-by-word statement */
.rd-words .rd-word {
  opacity: var(--rd-word, 0.18);
  transition: opacity 120ms linear;
}

/* ---------- Docs page entrance ---------- */
body:not(:has(.hero-section)):not(:has(.rd-hero)) .md-content__inner {
  animation: rd-page-in 420ms var(--rd-ease) both;
}

@keyframes rd-page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- Page-to-page continuity ---------- */
@view-transition {
  navigation: auto;
}

.rd-globalnav { view-transition-name: rd-globalnav; }
.rd-localnav { view-transition-name: rd-localnav; }
.md-sidebar--primary .md-sidebar__scrollwrap { view-transition-name: rd-sidebar; }
.md-content { view-transition-name: rd-content; }

::view-transition-group(*) {
  animation-duration: 380ms;
  animation-timing-function: var(--rd-ease-io);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
}

::view-transition-old(rd-content) {
  animation: rd-content-out 160ms ease-out both;
}

::view-transition-new(rd-content) {
  animation: none;
}

@keyframes rd-content-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

::view-transition-old(rd-globalnav),
::view-transition-old(rd-localnav) {
  display: none;
}

::view-transition-new(rd-globalnav),
::view-transition-new(rd-localnav) {
  animation: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rd-hero__copy > *,
  .rd-stage,
  body:not(:has(.hero-section)):not(:has(.rd-hero)) .md-content__inner {
    animation: rd-fade 240ms ease both !important;
  }

  @keyframes rd-fade {
    from { opacity: 0; }
  }

  .rd-reveal {
    transform: none;
    transition: opacity 300ms ease;
  }

  .rd-stage__cards {
    transform: none !important;
  }

  .rd-words .rd-word {
    opacity: 1 !important;
  }

  .rd-griddemo__mod--hides,
  .rd-stage__card,
  .rd-switch::before {
    transition-duration: 0.01ms !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.01ms !important;
  }
}
