/* RUMvision homepage reference */
.list-blocklist .panel {
  border-color: transparent;
  box-shadow: none;
}

.feature-section .list-iconlist .panel {
  border-color: transparent;
  background: color-mix(in srgb, currentColor 5%, var(--bs-primary, #0a1446));
}

@media (min-width: 62rem) {
  .content-section:has(#mcp-or-model) .row:has(> div > .panel > .text-numeric) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.5rem, 1vw, 1rem);
  }

  .content-section:has(#mcp-or-model) .row:has(> div > .panel > .text-numeric) > div {
    width: auto;
    max-width: none;
    padding-inline: 0;
  }
}

/* Homepage reference media and review tracks */
.rv-content .logo-track,
.rv-content .rv-review-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem 1rem 1rem;
}
.rv-content .logo-track > li {
  flex: 0 0 clamp(7rem, 11vw, 11rem);
  scroll-snap-align: start;
}
.rv-content .logo-track img {
  display: block;
  width: 100%;
  height: 2.5rem;
  object-fit: contain;
}
.rv-content .rv-review-track > .carousel-cell {
  flex: 0 0 min(82vw, 24rem);
  width: auto;
  max-width: none;
  scroll-snap-align: start;
}
.rv-content .rv-review-track:focus-visible,
.rv-content .logo-track:focus-within {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.rv-content .blocklist-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.rv-content .blocklist-image :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rv-content .rv-team-lines {
  margin: 2rem 0 0;
}
.rv-content .rv-team-lines img {
  display: block;
  width: 100%;
  height: auto;
}
.rv-footer #footer:has(> .sub .display-2) {
  display: flex;
  flex-direction: column;
  reading-flow: flex-visual;
}
.rv-footer #footer > .sub:has(.display-2) {
  order: -1;
}
@media (min-width: 62rem) {
  .rv-content .bg-primary .rv-review-track > .carousel-cell {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

/* Blog overview */
body:has(.rv-content > main > .lb-s-list .listing[itemtype$="/Blog"]) .rv-header {
  background: var(--c-bg, #fff);
  color: var(--c-text, #0a1446);
}

body:has(.rv-content > main > .lb-s-list .listing[itemtype$="/Blog"]) .rv-navigation #nav > li > a {
  color: var(--c-text, #0a1446);
}

.rv-content > main:has(> .lb-s-list .listing[itemtype$="/Blog"]) {
  padding-block: clamp(2rem, 5vw, 4.5rem) 4rem;
}

.rv-content > main:has(> .lb-s-list .listing[itemtype$="/Blog"]) > .container h1 {
  margin-block: 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.rv-content > main > .lb-s-list:has(.listing[itemtype$="/Blog"]) {
  padding-block: 0;
}

.rv-content .listing[itemtype$="/Blog"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.5rem;
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.rv-content .listing[itemtype$="/Blog"] > li {
  width: auto;
  max-width: none;
  padding: 0;
}

.rv-content .listing[itemtype$="/Blog"] article {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--c-bg, #fff);
  border: 1px solid color-mix(in srgb, var(--c-text, #0a1446) 10%, transparent);
  border-radius: max(var(--radius-card, .5rem), .75rem);
  box-shadow: 0 0 1.25rem rgb(31 45 61 / 5%);
}

.rv-content .listing[itemtype$="/Blog"] article > .hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-soft, #f1f2f4);
}

.rv-content .listing[itemtype$="/Blog"] article > .hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-content .listing[itemtype$="/Blog"] article > h2 {
  order: 1;
  margin: 1.875rem 1.5rem .75rem;
  padding: 0 !important;
  min-block-size: 2.2em;
  line-height: 1.1;
  font-size: clamp(1.125rem, calc(1.125rem + .35vw), 1.45rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--c-text, #171717);
}

.rv-content .listing[itemtype$="/Blog"] article > h2 a {
  color: inherit;
}

.rv-content .listing[itemtype$="/Blog"] article > h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: auto;
}

.rv-content .listing[itemtype$="/Blog"] article {
  isolation: isolate;
}

.rv-content .listing[itemtype$="/Blog"] article > h2,
.rv-content .listing[itemtype$="/Blog"] article > h2 a {
  position: static;
}

.rv-content .listing[itemtype$="/Blog"] article :is(a, button, input, select, textarea):not(h2 a) {
  position: relative;
  z-index: 4;
}

.rv-content .listing[itemtype$="/Blog"] article:focus-within {
  outline: 2px solid var(--c-primary, #0a1446);
  outline-offset: 3px;
}

.rv-content .listing[itemtype$="/Blog"] article > :has(> .meta) {
  order: 2;
  padding-inline: 1.5rem !important;
}

.rv-content .listing[itemtype$="/Blog"] article .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  justify-content: space-between;
  margin: 0;
  padding: 0 !important;
  font: 400 1rem/1.35 var(--font-mono, monospace);
  color: #68778d;
}

.rv-content .listing[itemtype$="/Blog"] article .meta > li {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.rv-content .listing[itemtype$="/Blog"] article > [itemprop="description"] {
  order: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 1.5rem 1.5rem 1.5rem;
  padding: 0 !important;
  font-size: 1rem;
  line-height: 1.4;
}

@media (min-width: 46rem) {
  .rv-content .listing[itemtype$="/Blog"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .rv-content > main > .lb-s-list:has(.listing[itemtype$="/Blog"]) > .lb-s-in {
    max-inline-size: 81rem;
    padding-inline: clamp(1.5rem, 2vw, 2.5rem);
    margin-inline: auto;
  }
  .rv-content .listing[itemtype$="/Blog"] {
    inline-size: 76%;
  }
}

/* Blog detail */
.rv-content > main > article[itemtype$="/BlogPosting"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
}
.rv-content > main > article[itemtype$="/BlogPosting"] > [itemprop="articleBody"] {
  display: contents;
}
.rv-content > main > article[itemtype$="/BlogPosting"]::before {
  content: "";
  grid-area: 1 / 1 / 4 / -1;
  z-index: -1;
  background: var(--rv-navy, #060d2a);
  box-shadow: 0 0 0 100vmax var(--rv-navy, #060d2a);
  clip-path: inset(0 -100vmax);
}
.rv-content > main > article[itemtype$="/BlogPosting"] > h1 {
  grid-area: 1 / 1;
  color: #fff;
  align-self: end;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: .96;
  margin: 0;
  padding-block: clamp(2.5rem, 7vw, 6rem) 1rem;
}
.rv-content > main > article[itemtype$="/BlogPosting"] > .meta {
  grid-area: 2 / 1;
  color: #fff;
  margin-block: 0 1.5rem;
}
.rv-content .rv-post-cover {
  grid-area: 3 / 1;
  padding-block-end: 2rem;
}
.rv-content .rv-post-cover img {
  display: block;
  width: 100%;
  height: auto;
}
.rv-content > main > article[itemtype$="/BlogPosting"] .lb-intro {
  grid-area: 4 / 1;
  padding-block-start: 2rem;
  font-weight: 600;
}
.rv-content .rv-post-layout {
  grid-area: 5 / 1 / auto / -1;
  min-width: 0;
  display: grid;
  gap: 1.5rem;
  padding-block-end: 3rem;
}
.rv-content .rv-post-copy {
  min-width: 0;
  max-width: 72ch;
}
.rv-content .rv-post-copy :is(h2,h3)[id] {
  scroll-margin-top: calc(var(--lb-sticky-top, 4.5rem) + 1rem);
}
.rv-content .rv-post-toc,
.rv-content .rv-post-newsletter {
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: var(--radius-card, .5rem);
}
.rv-content .rv-post-toc {
  background: var(--c-soft, #f5f6fa);
}
.rv-content .rv-post-toc summary {
  cursor: pointer;
  font-weight: 600;
}
.rv-content .rv-post-toc ul {
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}
.rv-content .rv-post-toc li + li {
  margin-top: .5rem;
}
.rv-content .rv-post-toc a {
  color: inherit;
}
.rv-content .rv-post-newsletter {
  margin-block-start: 2rem;
}
.rv-content .rv-post-newsletter h2 {
  margin-block-start: 0;
  font-size: 1.25rem;
}
@media (min-width: 62rem) {
  .rv-content article:has(.rv-post-layout),
  .rv-content .rv-post-layout {
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.5fr);
    column-gap: clamp(2rem, 6vw, 5rem);
  }
  .rv-content article:has(.rv-post-layout)::before {
    grid-row: 1 / 3;
  }
  .rv-content article:has(.rv-post-layout) > h1,
  .rv-content article:has(.rv-post-layout) > .meta {
    z-index: 1;
    margin-inline-end: min(-11vw, -2rem);
  }
  .rv-content article:has(.rv-post-layout) > .meta {
    padding-block-end: 2rem;
  }
  .rv-content .rv-post-cover {
    grid-area: 1 / 2 / 3;
    align-self: center;
    margin-inline-start: 30%;
    padding-block: 2rem;
  }
  .rv-content article:has(.rv-post-layout) .lb-intro {
    grid-area: 4 / 2;
    max-width: 72ch;
  }
  .rv-content .rv-post-sidebar {
    display: flex;
    flex-direction: column;
  }
  .rv-content .rv-post-toc-boundary {
    flex: 1;
  }
  .rv-content .rv-post-toc {
    position: sticky;
    top: calc(var(--lb-sticky-top, 4.5rem) + 1rem);
    max-height: calc(100dvh - var(--lb-sticky-top, 4.5rem) - 2rem);
    overflow: auto;
  }
}

/* Shared blog detail, including posts without an inline cover or sidebar */
.rv-content > main > article[itemtype$="/BlogPosting"] > .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  padding: 0;
  list-style: none;
}
.rv-content > main > article[itemtype$="/BlogPosting"] > .meta > li {
  width: auto;
  margin: 0;
}
.rv-content > main > article[itemtype$="/BlogPosting"] > .meta > .label {
  color: inherit;
  background: transparent;
}
.rv-content > main > article[itemtype$="/BlogPosting"]:not(:has(.rv-post-layout))::before {
  grid-row: 1 / 3;
}
.rv-content > main > article[itemtype$="/BlogPosting"]:not(:has(.rv-post-layout)) > [itemprop="articleBody"] {
  display: block;
  grid-area: 3 / 1;
  width: min(100%, 72ch);
  min-width: 0;
  margin-inline: auto;
  padding-block: 0 3rem;
}
.rv-content > main > article[itemtype$="/BlogPosting"] > [itemprop="articleBody"] :is(img, video, iframe) {
  max-inline-size: 100%;
}
.rv-content > main > article[itemtype$="/BlogPosting"] > [itemprop="articleBody"] :is(h2,h3)[id] {
  scroll-margin-top: calc(var(--lb-sticky-top, 4.5rem) + 1rem);
}
body:has(.rv-content > main > article[itemtype$="/BlogPosting"]) .rv-navigation #nav > li > a,
body:has(.rv-content > main > article[itemtype$="/BlogPosting"]) .rv-header .lb-langswitch a {
  color: #fff;
}
body:has(.rv-content > main > article[itemtype$="/BlogPosting"]) .rv-navigation #nav > li > a.btn {
  color: var(--c-primary, #0a1446);
}

/* Related blog articles */
.rv-content article[itemtype$="/BlogPosting"] + .lb-related {
  position: relative;
  isolation: isolate;
  margin-block: 0 2rem;
  padding-block: clamp(2.5rem, 6vw, 6rem);
}
.rv-content article[itemtype$="/BlogPosting"] + .lb-related::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-soft, #f5f6fa);
  box-shadow: 0 0 0 100vmax var(--c-soft, #f5f6fa);
  clip-path: inset(0 -100vmax);
}
.rv-content .lb-related .lb-related-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rv-content .lb-related .lb-related-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-content .lb-related .lb-card-related {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  height: 100%;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
  border-radius: max(var(--radius-card, .5rem), .75rem);
  background: var(--c-soft, #f5f6fa);
  box-shadow: 0 0 1.25rem rgb(31 45 61 / 4%);
}
.rv-content .lb-related .lb-card-related > picture {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
}
.rv-content .lb-related .lb-card-related img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.rv-content .lb-related .lb-card-date {
  order: 1;
  margin: 1.25rem 1rem .5rem;
  color: var(--c-text, #0a1446);
  font-size: .82rem;
  font-weight: 600;
}
.rv-content .lb-related .lb-card-title {
  order: 2;
  margin: 0 1rem 1.5rem;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.rv-content .lb-related .lb-card-title a {
  color: var(--c-link, #004bb8);
}
.rv-content .lb-related .lb-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rv-content .lb-related .lb-card-related:focus-within {
  outline: 2px solid var(--c-link, #004bb8);
  outline-offset: 3px;
}
@media (min-width: 40rem) {
  .rv-content .lb-related .lb-related-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 62rem) {
  .rv-content .lb-related .lb-related-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
