#allrecords #rica-reviews.rica-stories {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  scroll-margin-top: 100px;
  padding: clamp(32px, 3.2vw, 56px) var(--rica-section-gutter) clamp(36px, 4vw, 68px);
  box-sizing: border-box;
  color: var(--rica-panel-ink);
  background: var(--rica-scene-base);
  font-family: Manrope, sans-serif;
}
.rica-stories::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
  pointer-events: none;
  background: url("./rica-pricing-waves.webp") center bottom / max(100%, 700px) auto no-repeat,
    url("./rica-redesign-wave-top.webp") right top / min(46%, 770px) auto no-repeat;
  mask-image: linear-gradient(transparent, #000 14% 92%, transparent);
}
.rica-stories-layout { max-width: 1672px; margin-inline: auto; }
.rica-stories-kicker {
  display: flex;
  align-items: center;
  gap: .75em;
  margin: 0 0 .4em;
  font-size: clamp(15px, 1.28vw, 21px);
  font-weight: 800;
  text-transform: uppercase;
}
.rica-stories-kicker svg, .rica-story-nav svg, .rica-story-icon svg {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rica-stories-kicker svg { width: 2.45em; height: 2.45em; }
#allrecords #rica-reviews-title { margin: 0; font-size: clamp(29px, 3.45vw, 59px); font-weight: 800; letter-spacing: -.05em; line-height: 1.09; }
.rica-stories-intro { margin: .28em 0 1.2em; font-size: clamp(18px, 1.8vw, 30px); line-height: 1.35; }
.rica-story-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(360px, 31vw, 530px);
  gap: clamp(10px, 1vw, 18px);
}
.rica-story-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fffc;
  border-radius: clamp(16px, 1.6vw, 28px);
  background: var(--rica-panel-surface), #f7faf7;
  color: var(--rica-panel-ink);
  box-shadow: 0 8px 20px #213c4316;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.rica-story-feature { grid-row: span 2; }
.rica-story-cover { position: relative; display: block; min-height: 0; overflow: hidden; background: #dceae3; }
.rica-story-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center var(--story-focus, 50%); }
.rica-story-cover-detail { isolation: isolate; }
.rica-story-cover-detail::before {
  position: absolute;
  inset: -20px;
  z-index: -1;
  content: "";
  background: url("./rica-stories-frame-333.webp") center 33% / cover;
  filter: blur(16px);
  opacity: .72;
}
.rica-story-cover-detail img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mask-image: linear-gradient(to right, transparent, #000 12% 88%, transparent);
}
.rica-story-caption {
  display: block;
  padding: .67em .83em;
  font-size: clamp(16px, 1.18vw, 20px);
  font-weight: 800;
  line-height: 1.25;
}
.rica-story-feature .rica-story-caption { font-size: clamp(18px, 1.65vw, 28px); }
#allrecords .rica-story-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  font-size: 16px;
}
#allrecords .rica-story-feature .rica-story-icon { width: clamp(52px, 5vw, 76px); height: clamp(52px, 5vw, 76px); font-size: clamp(18px, 1.7vw, 26px); }
.rica-story-tile:is(:hover, :focus-visible) .rica-story-icon { filter: brightness(1.09); }
.rica-story-tile:focus-visible, .rica-story-nav button:focus-visible { outline: 2px solid #087680; outline-offset: -3px; }
.rica-story-carousel { margin: 16px 0 18px; }
.rica-story-carousel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rica-story-carousel-heading h3 { margin: 0; font: 800 clamp(17px, 1.5vw, 22px)/1.2 Manrope, sans-serif; }
.rica-story-nav { display: flex; gap: 8px; }
.rica-story-nav button:disabled { opacity: .45; cursor: default; }
.rica-story-rail {
  display: flex;
  gap: 12px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #84aaa9 transparent;
}
.rica-story-rail .rica-story-tile { flex: 0 0 36%; grid-template-rows: auto 1fr; scroll-snap-align: start; }
.rica-story-rail .rica-story-cover { height: clamp(124px, 11vw, 158px); }
.rica-story-rail .rica-story-caption { font-size: 16px; }
.rica-story-rail .rica-story-mobile { display: none; }
#allrecords #rica-reviews [data-story-source] {
  padding: 0;
  min-height: 44px;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #10636a;
  cursor: pointer;
  font: 750 16px/1.3 Manrope, sans-serif;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .21em;
}
.rica-story-ratings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 10px;
  border: 1px solid #fff9;
  border-radius: 27px;
  background: var(--rica-panel-surface), #fffffff0;
  box-shadow: 0 13px 30px #213c4316;
}
.rica-story-rating { padding-inline: clamp(8px, 1.7vw, 28px); }
.rica-story-rating + .rica-story-rating { border-left: 1px solid var(--rica-panel-line); }
.rica-story-rating-top, .rica-story-rating-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.rica-story-rating-top { font-size: clamp(16px, 1.45vw, 25px); }
.rica-story-rating-top img { object-fit: contain; }
.rica-story-rating-top b { margin-inline-start: auto; font-size: 1.12em; }
.rica-story-rating-top span { color: #df9b16; letter-spacing: .04em; }
.rica-story-rating-bottom { justify-content: space-between; font-size: 15px; }
.rica-story-rating-bottom span { color: #385461; }
.rica-story-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(840px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid #fff9;
  border-radius: 24px;
  padding: 14px clamp(14px, 3vw, 26px) 20px;
  overflow: auto;
  background: #fbf8f2;
  color: var(--rica-panel-ink);
  font: 500 16px/1.5 Manrope, sans-serif;
}
.rica-story-dialog::backdrop { background: #092936cc; }
.rica-story-dialog form { display: flex; justify-content: flex-end; }
.rica-story-close, .rica-story-nav button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--rica-panel-line);
  border-radius: 50%;
  background: #fff;
  color: #0e5961;
  cursor: pointer;
}
.rica-story-close { font-size: 27px; }
.rica-story-dialog [hidden] { display: none !important; }
.rica-story-video-dialog {
  --rica-video-ratio: 16 / 9;
  --rica-video-width-step: 16px;
  --rica-video-max-width: 900px;
  --rica-video-gutter-x: max(8px, env(safe-area-inset-left), env(safe-area-inset-right));
  --rica-video-gutter-y: max(8px, env(safe-area-inset-top), env(safe-area-inset-bottom));
  --rica-video-padding: clamp(8px, 1.2vw, 16px);
  --rica-video-header: 52px;
  --rica-video-gap: 6px;
  --rica-video-fit-width: min(
    var(--rica-video-max-width),
    calc(100dvw - 2 * (var(--rica-video-gutter-x) + var(--rica-video-padding) + 1px)),
    calc(max(0px, 100dvh - 2 * (var(--rica-video-gutter-y) + var(--rica-video-padding) + 1px) - var(--rica-video-header) - var(--rica-video-gap)) * var(--rica-video-ratio))
  );
  --rica-video-frame-width: var(--rica-video-fit-width);
  width: min(
    calc(100dvw - 2 * var(--rica-video-gutter-x)),
    max(180px, calc(var(--rica-video-frame-width) + 2 * (var(--rica-video-padding) + 1px)))
  );
  max-width: none;
  max-height: calc(100dvh - 2 * var(--rica-video-gutter-y));
  overflow: clip;
  background: var(--rica-panel-surface), #f7f4ef;
  box-shadow: 0 22px 65px #03191fa6;
  padding: var(--rica-video-padding);
}
.rica-story-video-dialog[data-format="portrait"] {
  --rica-video-ratio: 9 / 16;
  --rica-video-width-step: 9px;
  --rica-video-max-width: 410px;
}
@supports (width: round(down, 100px, 16px)) {
  /* Whole pixels on both axes keep the embed from gaining a scrollbar by rounding. */
  .rica-story-video-dialog {
    --rica-video-frame-width: round(down, var(--rica-video-fit-width), var(--rica-video-width-step));
  }
}
.rica-story-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--rica-video-header);
  margin-bottom: var(--rica-video-gap);
}
.rica-story-video-head h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.2;
  font-weight: 800;
}
.rica-story-video-head form { flex: none; margin: 0; }
.rica-story-player {
  width: min(100%, var(--rica-video-frame-width));
  aspect-ratio: var(--rica-video-ratio);
  margin-inline: auto;
  overflow: clip;
  background: #102125;
  border-radius: 12px;
}
.rica-story-player :is(iframe, video) { display: block; width: 100%; height: 100%; border: 0; }
.rica-story-player video { object-fit: contain; }
html:has(#rica-video-dialog[open]),
body:has(#rica-video-dialog[open]) {
  overflow: hidden;
  overscroll-behavior: none;
}
.rica-story-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #102125; border-radius: 12px; }
.rica-story-reviews-dialog { max-width: 660px; }
.rica-story-reviews-dialog :is(h3, h4) { margin: 0; font-weight: 800; }
.rica-story-reviews-dialog h3 { font-size: 25px; }
.rica-story-reviews-dialog p { margin: .35em 0 .8em; }
.rica-story-reviews-dialog article { border-top: 1px solid var(--rica-panel-line); padding-top: 10px; }
.rica-story-reviews-dialog .rica-primary-cta { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .rica-story-rail { scroll-behavior: auto; }
}
@media (max-width: 760px) {
  .rica-story-mosaic { display: block; height: auto; }
  .rica-story-mosaic .rica-story-tile:not(.rica-story-feature) { display: none; }
  .rica-story-feature { width: 100%; grid-template-rows: auto 1fr; }
  .rica-story-feature .rica-story-cover { aspect-ratio: 16 / 10; }
  .rica-story-rail .rica-story-mobile { display: grid; }
  .rica-story-rail .rica-story-tile { flex-basis: min(68%, 250px); }
  .rica-story-rail .rica-story-cover { height: auto; aspect-ratio: 2.1; }
  .rica-story-carousel { margin: 12px 0 10px; }
  .rica-story-ratings { grid-template-columns: minmax(0, 1fr); padding: 4px 12px; border-radius: 20px; }
  .rica-story-rating { padding: 10px 0 0; }
  .rica-story-rating + .rica-story-rating { border-left: 0; border-top: 1px solid var(--rica-panel-line); }
}
