.raa-story {
  background: #f6f4f0;
  color: #293834;
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0 auto 40px;
}

.raa-story__inner {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: 24px;
  padding-right: 24px;
}

.raa-story__hero {
  background:
    linear-gradient(90deg, rgba(220, 230, 221, .96) 0%, rgba(220, 230, 221, .9) 58%, rgba(202, 219, 204, .82) 100%),
    url("/themes/custom/raa/images/community-help/paper-background.jpg") center / cover;
  border-bottom: 1px solid rgba(41, 56, 52, .16);
  padding: 34px 0 18px;
  position: relative;
}

.raa-story__hero::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(47, 114, 95, .12), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(151, 194, 34, .13), transparent 30%);
  content: "";
  inset: 0;
  opacity: .8;
  pointer-events: none;
  position: absolute;
}

.raa-story__hero .raa-story__inner {
  position: relative;
  z-index: 1;
}

.raa-story__hero h1 {
  background: transparent;
  color: #293834;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 14px;
}

.item-page-child .raa-story__hero h1 {
  padding: 1.25% 5%;
  text-align: center;
}

.raa-story__hero p {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
/*   max-width: 820px; */
}

.raa-story__timeline {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  position: relative;
}

.raa-story__timeline::before {
  background: #337162;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 21px;
}

.raa-story__timeline li {
  min-width: 0;
  position: relative;
  text-align: center;
}

.raa-story__step {
  background: transparent;
  border: 0;
  color: #43514d;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  font: inherit;
  gap: 8px;
  min-height: 76px;
  min-width: 88px;
  padding: 0 8px;
}

.raa-story :focus-visible,
.raa-story-node :focus-visible {
  /* Make keyboard focus obvious without changing mouse-focused styling. */
  outline: 3px solid #8bc34a;
  outline-offset: 4px;
}

.raa-story button:focus-visible,
.raa-story a:focus-visible,
.raa-story iframe:focus-visible,
.raa-story video:focus-visible {
  box-shadow: 0 0 0 4px rgba(47, 114, 95, .22);
}

.raa-story__step-number {
  align-items: center;
  background: #78988b;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  width: 48px;
  z-index: 1;
}

.raa-story__step.is-active .raa-story__step-number,
.raa-story__step:hover .raa-story__step-number,
.raa-story__step:focus .raa-story__step-number {
  background: #136d61;
}

.raa-story__step.is-watched .raa-story__step-number::after {
  align-items: center;
  background: #fff;
  border: 2px solid #2f725f;
  border-radius: 50%;
  bottom: -5px;
  color: #2f725f;
  content: "✓";
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: -7px;
  text-shadow: none;
  width: 22px;
}

.raa-story__step-label {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.raa-story__body {
  padding-bottom: 40px;
  padding-top: 28px;
}

.raa-story__now {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  font-size: 22px;
  gap: 8px;
  margin-bottom: 24px;
}

.raa-story__now span {
  color: #6c7471;
  font-weight: 700;
}

.raa-story__now strong {
  font-size: 26px;
}

.raa-story__player {
  margin: 0;
  max-width: none;
}

.raa-story__chapter[hidden] {
  display: none;
}

.raa-story__media {
  aspect-ratio: 16 / 9;
  background: #203832;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(32, 56, 50, .18);
  overflow: hidden;
}

.raa-story__media iframe,
.raa-story__media video,
.raa-story__media img {
  border: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.raa-story__continue {
  display: flex;
  justify-content: center;
  margin: 18px 0 30px;
}

.raa-story__continue-button,
.raa-story__card-button,
.raa-story__related-button,
.raa-story__reset-history {
  align-items: center;
  background: #2f725f;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
}

.raa-story__continue-button:hover,
.raa-story__continue-button:focus,
.raa-story__card-button:hover,
.raa-story__card-button:focus,
.raa-story__related-button:hover,
.raa-story__related-button:focus,
.raa-story__reset-history:hover,
.raa-story__reset-history:focus {
  background: #155b4f;
}

.raa-story__explore {
  border-top: 1px solid rgba(41, 56, 52, .18);
  font-size: 28px;
  margin: 0 0 22px;
  padding-top: 18px;
  text-align: center;
}

.item-page-child > section h2.raa-story__explore {
  padding: 1.5% 5%;
  text-align: center;
}

.raa-story__cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.raa-story__card {
  background: #203832;
  border: 1px solid rgba(41, 56, 52, .15);
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 270px;
  overflow: hidden;
  position: relative;
}

.raa-story__card::before {
  /* Busy thumbnail images need stronger contrast where authors place text. */
  background:
    linear-gradient(135deg, rgba(8, 27, 23, .86) 0%, rgba(8, 27, 23, .74) 42%, rgba(8, 27, 23, .36) 68%, rgba(8, 27, 23, .16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .24) 42%, rgba(0, 0, 0, .55) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.raa-story__card img {
  /* Full inset sizing protects against theme image rules that cap max-width. */
  bottom: 0;
  filter: saturate(1.12) brightness(.92);
  height: 100%;
  inset: 0;
  left: 0;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 0;
}

.raa-story__card.is-active {
  border-color: #2f725f;
  box-shadow: inset 0 0 0 2px #2f725f;
}

.raa-story__watched-badge {
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  color: #2f725f;
  display: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  position: absolute;
  right: 14px;
  text-shadow: none;
  top: 14px;
  z-index: 3;
}

.raa-story__card.is-watched > .raa-story__watched-badge,
.raa-story__related-item.is-watched > .raa-story__watched-badge {
  display: inline-block;
}

.raa-story__card-content {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 270px;
  padding: 22px;
  position: relative;
  z-index: 2;
}

.raa-story__card h3 {
  background: #2f725f;
  color: #fff;
  display: inline-block;
  font-size: 23px;
  line-height: 1.22;
  margin: 0 0 20px;
  max-width: min(100%, 520px);
  padding: 14px 16px;
  text-shadow: none;
}

.raa-story__card h3 span {
  display: block;
  font-size: 20px;
}

.raa-story__card p {
  background: rgba(8, 27, 23, .48);
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 10px;
  max-width: 520px;
  padding: 7px 10px;
}

.item-page .raa-story .raa-story__card > img {
  height: 100%;
  max-width: none;
  width: 100%;
}

.item-page .raa-story .raa-story__card h3,
.item-page .raa-story .raa-story__card h3 span,
.item-page .raa-story .raa-story__card p,
.item-page .raa-story .raa-story__card .raa-story__duration {
  color: #fff;
  text-shadow: none;
}

.item-page .raa-story .raa-story__card h3 {
  background: #2f725f;
}

.item-page .raa-story .raa-story__card p {
  font-size: 19px;
  line-height: 1.42;
}

.raa-story__related {
  border-top: 1px solid rgba(41, 56, 52, .18);
  margin-top: 30px;
  padding-top: 24px;
}

.raa-story__related h2 {
  background: transparent;
  color: #293834;
  font-size: 24px;
  letter-spacing: 0;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  text-transform: none;
}

.raa-story__related-list {
  display: grid;
  gap: 12px;
}

.raa-story__related-item {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(41, 56, 52, .16);
  border-radius: 6px;
  display: flex;
  gap: 14px;
  min-height: 96px;
  padding: 12px;
  position: relative;
}

.raa-story__related-item.is-active {
  border-color: #2f725f;
  box-shadow: inset 0 0 0 2px #2f725f;
}

.raa-story__related-item.is-watched {
  background: #f7fbf8;
}

.raa-story__related-item img {
  flex: 0 0 132px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 132px;
}

.raa-story__related-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.raa-story__related-item h3 {
  background: transparent;
  color: #293834;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 6px;
  padding: 0;
  text-transform: none;
}

.raa-story__related-item p {
  color: #4f5a56;
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
}

.item-page .raa-story .raa-story__related h2,
.item-page .raa-story .raa-story__related-item h3 {
  background: transparent !important;
  color: #293834 !important;
  display: block;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.2;
  margin-left: 0;
  padding: 0;
  text-align: left;
  text-transform: none;
}

.item-page .raa-story .raa-story__related-item h3 {
  font-size: 19px;
  margin: 0 0 6px;
}

.item-page .raa-story .raa-story__related-item p {
  color: #4f5a56;
  font-size: 15px;
  line-height: 1.35;
  padding: 0.25rem 0;
}

.raa-story__related-button {
  align-items: center;
  background: #2f725f;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 7px;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
}

.raa-story-node {
  background: #f6f4f0;
  border-radius: 6px;
  color: #293834;
  margin-bottom: 32px;
  overflow: hidden;
}

.raa-story-node__hero {
  background: #dce6dd;
  padding: 28px;
}

.raa-story-node__eyebrow {
  color: #2f725f;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.raa-story-node__title {
  background: transparent;
  color: #293834;
  font-size: 34px;
  line-height: 1.18;
  margin: 0;
}

.raa-story-node__media {
  aspect-ratio: 16 / 9;
  background: #203832;
}

.raa-story-node__media img,
.raa-story-node__media video,
.raa-story-node__media iframe {
  border: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.raa-story-node__content {
  padding: 28px;
}

.raa-story-node__summary {
  font-size: 18px;
  line-height: 1.5;
}

.raa-story-node__meta {
  background: #fff;
  border: 1px solid rgba(41, 56, 52, .14);
  border-radius: 6px;
  margin: 18px 0;
  padding: 16px;
}

.raa-story-node__meta p {
  margin: 0 0 12px;
}

.raa-story-node__meta p:last-child {
  margin-bottom: 0;
}

.raa-story-node__back {
  color: #2f725f;
  font-weight: 700;
}

.raa-story__duration {
  margin-top: 4px;
}

.raa-story__card-button {
  /* Different title lengths should not move the play buttons vertically. */
  align-self: center;
  margin-top: auto;
  min-width: 168px;
}

.raa-story__card.is-active .raa-story__card-button {
  background: #1f6f5d;
}

.raa-story__history {
  border-top: 1px solid rgba(41, 56, 52, .18);
  margin: 28px 0 0;
  padding-top: 16px;
}

.raa-story__completed {
  color: #6c7471;
  font-size: 16px;
  margin: 0;
  text-align: center;
}

.raa-story__reset-row {
  display: flex;
  justify-content: center;
  margin: 28px 0 0;
}

.raa-story__reset-history {
  background: #6b7d75;
  font-size: 13px;
  min-height: 30px;
  padding: 6px 11px;
}

.raa-story__empty {
  font-size: 18px;
  margin: 0;
  text-align: center;
}

@media (max-width: 760px) {
  .raa-story__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .raa-story__hero h1 {
    font-size: 28px;
  }

  .raa-story__hero p {
    font-size: 16px;
  }

  .raa-story__timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }

  .raa-story__timeline::before {
    display: none;
  }

  .raa-story__now,
  .raa-story__now strong {
    font-size: 20px;
  }

  .raa-story__cards {
    grid-template-columns: 1fr;
  }

  .raa-story__related-item {
    align-items: start;
    flex-wrap: wrap;
  }

  .raa-story__related-button {
    width: 100%;
  }

  .raa-story__related-item img {
    flex-basis: 96px;
    width: 96px;
  }

}
