:root {
  --cds-story-navy: #082f49;
  --cds-story-blue: #0f4c75;
  --cds-story-ink: #102a43;
  --cds-story-gold: #ffd400;
}

body.cds-story-open {
  overflow: hidden;
}

body.cds-story-open .site-navbar a.site-active:not(.cds-story-section-active) {
  color: #fff;
}

body.cds-story-open .site-navbar a.cds-story-section-active {
  color: var(--cds-story-gold);
}

body.cds-story-open .site-nav-home.cds-story-section-active .site-nav-logo {
  outline: 2px solid var(--cds-story-gold);
  outline-offset: 2px;
}

.cds-story[hidden],
.cds-story-launcher[hidden] {
  display: none !important;
}

.cds-story {
  --story-accent: #26a69a;
  --cds-replay-title-size: clamp(28px, 3.4vw, 54px);
  --cds-replay-copy-size: clamp(16px, 1.45vw, 20px);
  --cds-replay-box-label-size: clamp(22px, 2vw, 34px);
  position: fixed;
  inset: 94px 0 0;
  z-index: 900;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 212, 0, 0.075), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.05), transparent 27%),
    linear-gradient(135deg, #000 0%, #080808 54%, #171717 100%);
  font-family: "Roboto", Arial, sans-serif;
}

.cds-story::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.cds-story__header,
.cds-story__footer,
.cds-story__stage {
  position: relative;
  z-index: 1;
}

.cds-story__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 58px) 10px;
  border-top: 1px solid #242424;
}

.cds-story__skip,
.cds-story__controls button,
.cds-story-launcher {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cds-story__skip {
  padding: 8px 16px;
}

.cds-story__skip:hover,
.cds-story__skip:focus-visible,
.cds-story__controls button:hover,
.cds-story__controls button:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.cds-story__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  align-items: center;
  min-height: 0;
  padding: 10px clamp(20px, 4vw, 58px) 16px;
  gap: clamp(22px, 4vw, 66px);
}

.cds-story__visual {
  position: relative;
  display: grid;
  place-items: center;
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.cds-story__bubble {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: 30px;
  color: var(--cds-story-ink);
  background: #fff;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.25);
}

.cds-story__bubble::before {
  position: absolute;
  top: 47%;
  left: -22px;
  width: 44px;
  height: 44px;
  content: "";
  transform: rotate(45deg);
  border-radius: 0 0 0 10px;
  background: #fff;
}

.cds-story__step-label {
  display: inline-block;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--story-accent) 82%, #082f49);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cds-story__bubble h1 {
  margin: 0 0 16px;
  color: var(--cds-story-ink);
  font-size: clamp(1.75rem, 3.4vw, 3.35rem);
  line-height: 1.06;
}

.cds-story__bubble > p:not(.cds-story__caption) {
  margin: 0;
  color: #334e68;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.55;
}

.cds-story__caption {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #d9e2ec;
  color: #627d98;
  font-size: 0.84rem;
  line-height: 1.4;
}

.cds-story__caption:empty {
  display: none;
}

.cds-story__references {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.cds-story__references:empty {
  display: none;
}

.cds-story__references::before {
  margin-right: 2px;
  color: #627d98;
  content: "Evidence:";
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cds-story__reference {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid #c8d4dc;
  border-radius: 999px;
  color: #315a73;
  background: #f5f9fb;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.cds-story__reference:hover,
.cds-story__reference:focus-visible {
  border-color: var(--story-accent);
  color: #102a43;
  background: #fff;
}

.cds-story__footer {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 8px clamp(20px, 4vw, 58px) 20px;
}

.cds-story__progress {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cds-story__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.cds-story__dot[aria-current="step"] {
  width: 32px;
  background: var(--cds-story-gold);
}

.cds-story__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds-story__controls button {
  min-width: 96px;
  padding: 9px 17px;
}

.cds-story__controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.cds-story__controls .cds-story__next {
  border-color: var(--cds-story-gold);
  color: #092f49;
  background: var(--cds-story-gold);
}

.cds-story__controls > span {
  min-width: 55px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  text-align: center;
}

.cds-story-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  color: #fff;
  background: #082f49;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.cds-story-launcher:hover,
.cds-story-launcher:focus-visible {
  transform: translateY(-2px);
  background: #0f4c75;
}

.cds-story.is-changing .cds-story__visual,
.cds-story.is-changing .cds-story__bubble {
  opacity: 0;
  transform: translateY(10px);
}

.cds-story__visual,
.cds-story__bubble {
  transition: opacity 180ms ease, transform 180ms ease;
}

/* Story visuals */
.cds-story-visual {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(20px, 3vw, 42px);
  color: var(--cds-story-ink);
}

.cds-story-orbit {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(15, 76, 117, 0.08) 0 2px, transparent 3px) 0 0 / 24px 24px,
    linear-gradient(145deg, #f7fbff, #eaf4fb);
}

.cds-story-orbit__center {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(150px, 22vw, 230px);
  aspect-ratio: 1;
  padding: 24px;
  border: 2px solid var(--story-accent);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--cds-story-blue), var(--cds-story-navy));
  box-shadow: 0 18px 38px rgba(8, 47, 73, 0.24);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
  text-align: center;
}

.cds-story-orbit__ring {
  position: absolute;
  width: min(72%, 520px);
  aspect-ratio: 1.8;
  border: 2px dashed color-mix(in srgb, var(--story-accent) 45%, transparent);
  border-radius: 50%;
}

.cds-story-orbit__node {
  position: absolute;
  z-index: 3;
  max-width: 155px;
  padding: 12px 17px;
  border: 1px solid #c9dce8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(8, 47, 73, 0.13);
  font-weight: 700;
  text-align: center;
}

.cds-story-orbit__node--1 {
  top: 16%;
  left: 9%;
}

.cds-story-orbit__node--2 {
  top: 18%;
  right: 8%;
}

.cds-story-orbit__node--3 {
  right: 12%;
  bottom: 16%;
}

.cds-story-orbit__node--4 {
  bottom: 14%;
  left: 10%;
}

.cds-story-flow,
.cds-story-cards,
.cds-story-dimensions,
.cds-story-questions,
.cds-story-methods {
  display: grid;
  align-content: center;
  gap: clamp(12px, 2vw, 22px);
  background: linear-gradient(145deg, #f8fbfd, #edf5fa);
}

.cds-story-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(24px, 3.5vw, 52px);
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(255, 212, 0, 0.09) 5% 95%, transparent 95%),
    #f4f6f7;
}

.cds-story-flow__item,
.cds-story-card,
.cds-story-dimension,
.cds-story-question {
  position: relative;
  box-sizing: border-box;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid #d5e2ea;
  border-top: 5px solid var(--story-accent);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 25px rgba(8, 47, 73, 0.09);
}

.cds-story-flow__item {
  display: flex;
  flex-direction: column;
  min-height: clamp(220px, 29vh, 290px);
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid #d8dde1;
  border-top: 8px solid #151515;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.cds-story-flow__item:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: calc(clamp(24px, 3vw, 40px) * -1);
  display: grid;
  place-items: center;
  width: clamp(24px, 3vw, 40px);
  height: 44px;
  content: "→";
  transform: translateY(-50%);
  color: #111;
  background: transparent;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 900;
}

.cds-story-flow__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #111;
  background: var(--cds-story-gold);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.cds-story-flow h3,
.cds-story-card h3,
.cds-story-dimension h3,
.cds-story-question h3 {
  margin: 0 0 7px;
  color: var(--cds-story-ink);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}

.cds-story-flow p,
.cds-story-card p,
.cds-story-dimension p,
.cds-story-question p {
  margin: 0;
  color: #526d82;
  font-size: clamp(0.86rem, 1.15vw, 1rem);
  line-height: 1.5;
}

.cds-story-flow h3 {
  margin-bottom: 12px;
  color: #111;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.cds-story-flow p {
  color: #405261;
  font-size: clamp(0.96rem, 1.28vw, 1.1rem);
  line-height: 1.55;
}

.cds-story-item-reference {
  display: block;
  margin-top: 11px;
  color: #486581;
  font-size: clamp(0.67rem, 0.92vw, 0.79rem);
  font-weight: 800;
  line-height: 1.3;
}

.cds-story-flow .cds-story-item-reference {
  margin-top: auto;
  padding-top: 18px;
  color: #5c6670;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
}

.cds-story-methods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
  padding: clamp(26px, 4vw, 58px);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 212, 0, 0.12), transparent 38%),
    #f4f6f7;
}

.cds-story-method {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(230px, 30vh, 300px);
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid #d6dadd;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.cds-story-method::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  content: "";
  background: #111;
}

.cds-story-method__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #111;
  background: var(--cds-story-gold);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cds-story-method h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.cds-story-method p {
  margin: 0;
  color: #405261;
  font-size: clamp(0.96rem, 1.28vw, 1.1rem);
  line-height: 1.55;
}

.cds-story-method .cds-story-item-reference {
  margin-top: auto;
  padding-top: 18px;
  color: #5c6670;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
}

.cds-story-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cds-story-dimensions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cds-story-dimension {
  min-height: 125px;
}

.cds-story-dimension__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: #fff;
  background: var(--story-accent);
  font-weight: 900;
}

.cds-story-questions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cds-story-question {
  border-top-color: var(--question-color, var(--story-accent));
}

.cds-story-question__code {
  display: block;
  margin-bottom: 8px;
  color: var(--question-color, var(--story-accent));
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.cds-story-media {
  display: grid;
  place-items: center;
  padding: 16px;
  background: #f8fafc;
}

.cds-story-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.cds-story-plot {
  position: absolute;
  inset: 10px;
  min-width: 0;
  min-height: 0;
}

.cds-story-plot > div,
.cds-story-plot .js-plotly-plot,
.cds-story-plot .plot-container,
.cds-story-plot .svg-container {
  width: 100% !important;
  height: 100% !important;
}

.cds-story-plot-status {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 30px;
  color: #526d82;
  text-align: center;
}

.cds-story-table-wrap {
  display: grid;
  align-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(16px, 3vw, 36px);
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbfd, #edf5fa);
}

.cds-story-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #cbd8e1;
  border-radius: 16px;
  color: #243b53;
  background: #fff;
  font-size: clamp(0.68rem, 1vw, 0.88rem);
  table-layout: fixed;
}

.cds-story-table th,
.cds-story-table td {
  padding: clamp(8px, 1.2vw, 13px);
  overflow: hidden;
  border-right: 1px solid #e4ebf0;
  border-bottom: 1px solid #e4ebf0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cds-story-table th {
  color: #fff;
  background: var(--cds-story-blue);
}

.cds-story-table tr:last-child td {
  border-bottom: 0;
}

.cds-story-table th:last-child,
.cds-story-table td:last-child {
  border-right: 0;
}

/* Concise, consistent visual language for every introduction. */
.cds-story-flow,
.cds-story-tokens {
  align-content: center;
  align-items: stretch;
  padding: clamp(28px, 5vw, 72px);
  gap: clamp(24px, 3vw, 46px);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 212, 0, 0.1), transparent 42%),
    linear-gradient(145deg, #f8fafc, #edf1f4);
}

.cds-story-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cds-story-flow__item,
.cds-story-token {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: clamp(155px, 25vh, 245px);
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid #cdd5dc;
  border-top: 8px solid #111;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.cds-story-token {
  padding-inline: clamp(12px, 1.4vw, 22px);
}

.cds-story-flow__item::before,
.cds-story-token::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 42%;
  height: 8px;
  content: "";
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: var(--cds-story-gold);
}

.cds-story-flow__item:not(:last-child)::after {
  top: 50%;
  right: calc(clamp(24px, 3vw, 46px) * -1);
  width: clamp(24px, 3vw, 46px);
  height: auto;
  content: "→";
  transform: translateY(-50%);
  color: #111;
  background: transparent;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cds-story-flow h3,
.cds-story-token h3 {
  margin: 0;
  color: #111;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cds-story-tokens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cds-story-tokens--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cds-story-tokens--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cds-story-tokens--4 .cds-story-token {
  min-height: clamp(115px, 18vh, 175px);
}

@media (max-width: 880px) {
  .cds-story__header {
    padding-top: 10px;
  }

  .cds-story__stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: 4px;
  }

  .cds-story__visual {
    border-radius: 20px;
  }

  .cds-story__bubble {
    padding: 18px 22px;
    border-radius: 20px;
  }

  .cds-story__bubble::before {
    top: -12px;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translateX(-50%) rotate(45deg);
  }

  .cds-story__bubble h1 {
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 5vw, 2rem);
  }

  .cds-story__bubble > p:not(.cds-story__caption) {
    font-size: clamp(0.88rem, 2.8vw, 1rem);
  }

  .cds-story__caption {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 0.72rem;
  }

  .cds-story__references {
    margin-top: 8px;
  }

  .cds-story__reference {
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .cds-story__footer {
    padding-bottom: 12px;
  }

  .cds-story-dimensions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cds-story-dimension {
    min-height: 0;
    padding: 12px;
  }

  .cds-story-dimension p {
    display: none;
  }

  .cds-story-flow,
  .cds-story-tokens {
    padding: 18px;
    gap: 14px;
  }

  .cds-story-flow__item,
  .cds-story-token {
    min-height: 110px;
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .cds-story__skip {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .cds-story__stage {
    padding-inline: 12px;
  }

  .cds-story__footer {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-inline: 12px;
  }

  .cds-story__progress {
    justify-content: center;
  }

  .cds-story__controls {
    justify-content: center;
  }

  .cds-story__controls button {
    min-width: 86px;
    padding: 7px 12px;
  }

  .cds-story-orbit__center {
    width: 108px;
    padding: 12px;
    font-size: 0.95rem;
  }

  .cds-story-orbit__ring {
    width: 88%;
  }

  .cds-story-orbit__node {
    max-width: 88px;
    padding: 7px 9px;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .cds-story-flow {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .cds-story-flow__item {
    min-height: 0;
    padding: 12px 16px;
  }

  .cds-story-flow__item:not(:last-child)::after {
    display: none;
  }

  .cds-story-tokens,
  .cds-story-tokens--2,
  .cds-story-tokens--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
  }

  .cds-story-tokens--3 {
    grid-template-columns: 1fr;
  }

  .cds-story-token,
  .cds-story-tokens--4 .cds-story-token {
    min-height: 70px;
    padding: 10px;
    border-top-width: 5px;
    border-radius: 14px;
  }

  .cds-story-token::before {
    top: -5px;
    height: 5px;
  }

  .cds-story-flow h3,
  .cds-story-token h3 {
    font-size: 0.9rem;
  }

  .cds-story-flow__number {
    width: 28px;
    height: 28px;
    margin-bottom: 7px;
    font-size: 0.66rem;
  }

  .cds-story-flow h3 {
    margin-bottom: 5px;
    font-size: 0.96rem;
  }

  .cds-story-flow p {
    font-size: 0.73rem;
    line-height: 1.35;
  }

  .cds-story-flow .cds-story-item-reference {
    padding-top: 5px;
    font-size: 0.65rem;
  }

  .cds-story-methods {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px;
  }

  .cds-story-method {
    min-height: 0;
    padding: 12px 16px;
  }

  .cds-story-method__number {
    width: 28px;
    height: 28px;
    margin-bottom: 7px;
    font-size: 0.66rem;
  }

  .cds-story-method h3 {
    margin-bottom: 5px;
    font-size: 0.96rem;
  }

  .cds-story-method p {
    font-size: 0.73rem;
    line-height: 1.35;
  }

  .cds-story-method .cds-story-item-reference {
    padding-top: 5px;
    font-size: 0.65rem;
  }

  .cds-story-cards,
  .cds-story-questions {
    gap: 8px;
  }

  .cds-story-card,
  .cds-story-question {
    padding: 11px;
  }

  .cds-story-card p,
  .cds-story-question p {
    display: none;
  }

  .cds-story-dimension__icon {
    width: 27px;
    height: 27px;
    margin-bottom: 6px;
  }
}

/* Keep every Replay box label centred despite host-page styles. */
.cds-story .cds-story-flow__item,
.cds-story .cds-story-token,
.cds-story .cds-story-card,
.cds-story .cds-story-dimension,
.cds-story .cds-story-question,
.cds-story .cds-story-method {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.cds-story .cds-story-flow__item h3,
.cds-story .cds-story-token h3,
.cds-story .cds-story-card h3,
.cds-story .cds-story-dimension h3,
.cds-story .cds-story-question h3,
.cds-story .cds-story-method h3,
.cds-story .cds-story-flow__item p,
.cds-story .cds-story-card p,
.cds-story .cds-story-dimension p,
.cds-story .cds-story-question p,
.cds-story .cds-story-method p {
  width: 100% !important;
  text-align: center !important;
}

.cds-story .cds-story-orbit__center,
.cds-story .cds-story-orbit__node {
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
}

@media (max-height: 650px) {
  .cds-story__header {
    padding-top: 7px;
    padding-bottom: 5px;
  }

  .cds-story__stage {
    padding-top: 3px;
    padding-bottom: 7px;
  }

  .cds-story__bubble {
    padding-block: 16px;
  }

  .cds-story__step-label {
    margin-bottom: 5px;
  }

  .cds-story__footer {
    padding-top: 4px;
    padding-bottom: 8px;
  }
}

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

/* Uniform Replay typography and collision-free flow connectors. */
.cds-story .cds-story__bubble {
  align-self: center;
  padding: clamp(22px, 2.5vw, 36px);
}

.cds-story .cds-story__step-label {
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.cds-story .cds-story__bubble h1 {
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: var(--cds-replay-title-size) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
}

.cds-story .cds-story__bubble > p:not(.cds-story__caption) {
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: var(--cds-replay-copy-size) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

.cds-story .cds-story-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.cds-story .cds-story-flow__item {
  align-self: center;
  flex: 1 1 0;
  padding-inline: clamp(18px, 1.8vw, 28px);
}

.cds-story .cds-story-flow__item:not(:last-child)::after {
  content: none !important;
}

.cds-story .cds-story-flow__connector {
  display: grid;
  flex: 0 0 clamp(42px, 4vw, 64px);
  place-items: center;
  align-self: center;
  color: #111;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
}

.cds-story .cds-story-flow h3,
.cds-story .cds-story-token h3,
.cds-story .cds-story-card h3,
.cds-story .cds-story-dimension h3,
.cds-story .cds-story-question h3,
.cds-story .cds-story-method h3 {
  max-width: 100%;
  margin: 0 !important;
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: var(--cds-replay-box-label-size) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.cds-story .cds-story-flow h3,
.cds-story .cds-story-token h3 {
  box-sizing: border-box;
  white-space: nowrap;
}

.cds-story .cds-story-table {
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: clamp(13px, 1.15vw, 16px) !important;
}

.cds-story .cds-story-table th,
.cds-story .cds-story-table td {
  font-size: inherit !important;
}

.cds-story .cds-story__caption {
  font-size: 13px !important;
}

.cds-story .cds-story__references::before,
.cds-story .cds-story__reference {
  font-size: 12px !important;
}

.cds-story .cds-story__controls > span {
  font-size: 14px !important;
}

@media (max-width: 880px) {
  .cds-story {
    --cds-replay-title-size: clamp(22px, 5vw, 32px);
    --cds-replay-copy-size: clamp(14px, 2.8vw, 16px);
    --cds-replay-box-label-size: clamp(16px, 2.8vw, 22px);
  }

  .cds-story .cds-story__bubble {
    padding: 18px 22px;
  }

  .cds-story .cds-story-flow__connector {
    flex-basis: 34px;
    font-size: 1.65rem;
  }

  .cds-story .cds-story-flow h3,
  .cds-story .cds-story-token h3,
  .cds-story .cds-story-card h3,
  .cds-story .cds-story-dimension h3,
  .cds-story .cds-story-question h3,
  .cds-story .cds-story-method h3 {
    font-size: var(--cds-replay-box-label-size) !important;
  }
}

@media (max-width: 560px) {
  .cds-story {
    --cds-replay-box-label-size: 15px;
  }

  .cds-story .cds-story-flow {
    flex-direction: column;
  }

  .cds-story .cds-story-flow__connector {
    flex-basis: 24px;
    min-height: 24px;
    transform: rotate(90deg);
    font-size: 1.35rem;
  }

  .cds-story .cds-story-flow h3,
  .cds-story .cds-story-token h3,
  .cds-story .cds-story-card h3,
  .cds-story .cds-story-dimension h3,
  .cds-story .cds-story-question h3,
  .cds-story .cds-story-method h3 {
    font-size: var(--cds-replay-box-label-size) !important;
  }
}

@media (max-height: 900px) and (min-width: 881px) {
  .cds-story .cds-story__bubble {
    padding-block: 24px;
  }

  .cds-story .cds-story__step-label {
    margin-bottom: 8px;
  }

  .cds-story .cds-story__bubble h1 {
    margin-bottom: 12px;
  }

  .cds-story .cds-story__references {
    margin-top: 10px;
  }
}

@media (max-height: 650px) and (min-width: 881px) {
  .cds-story .cds-story__bubble {
    padding-block: 16px;
  }
}
