/* Release notes index — research list without the industry column.
   Desktop row: Figma 3039:16233. Image slot stays empty until real assets exist. */

.release-notes-list__lead {
  gap: var(--d-10);
}

.release-notes-list__heading {
  display: flex;
  flex-direction: column;
  gap: var(--d-4);
  min-width: 0;
}

.release-notes-list__title {
  margin: 0;
  color: var(--text);
}

.release-notes-list__title a {
  color: inherit;
  text-decoration: none;
}

.release-notes-list__title a:hover {
  color: var(--text-muted);
}

.release-notes-list__title a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.release-notes-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--d-2);
}

/* link.svg is filled white for primary buttons. Paint it with the button text color. */
.release-notes-list__actions .btn__icon {
  width: 16px;
  height: 16px;
  overflow: hidden;
  object-fit: none;
  object-position: -999px -999px;
  background-color: currentColor;
  -webkit-mask: url("/images/icon/link.svg") center / contain no-repeat;
  mask: url("/images/icon/link.svg") center / contain no-repeat;
}

.release-notes-list__aside {
  gap: var(--d-6);
}

.release-notes-list__summary,
.release-notes-list__media-link {
  width: 100%;
}

.release-notes-list__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.release-notes-list__media-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.release-notes-list__summary {
  display: flex;
  flex-direction: column;
  gap: var(--d-4);
}

.release-notes-list__summary p {
  margin: 0;
}

/* Title column stays in view while a taller release scrolls, then leaves
   with the section. Matches the side-by-side rows only. */
@media (min-width: 80rem) {
  .release-notes-list__link {
    justify-content: space-between;
    gap: 0;
  }

  .release-notes-list__link .research-index-list__col--desc {
    flex: none;
    width: calc((100% - 25rem - var(--d-16)) * 0.85);
  }

  .release-notes-list__media-link,
  .release-notes-list__summary {
    width: 100%;
  }

  .release-notes-list__lead {
    position: sticky;
    top: calc(5rem + var(--d-8));
    align-self: flex-start;
  }
}

.release-notes-list__media {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.release-notes-list__media-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1248 / 846;
  object-fit: cover;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.release-notes-body {
  display: flex;
  flex-direction: column;
  gap: var(--d-5);
}

.release-notes-body p {
  margin: 0;
}

.release-notes-prose {
  display: flex;
  flex-direction: column;
  gap: var(--d-5);
  margin-top: var(--d-5);
}

.release-notes-prose h2,
.release-notes-prose p,
.release-notes-prose ul {
  margin: 0;
}

.release-notes-prose h2:not(:first-child) {
  margin-top: var(--d-5);
}

.release-notes-prose ul {
  padding-left: var(--d-6);
  list-style: disc;
}

.release-notes-prose li + li {
  margin-top: var(--d-3);
}

.release-notes-prose strong {
  font-weight: 600;
}

.release-notes-product {
  margin: 0;
}

/* Detail header — same arrangement as the case-study header.
   The image slot matches the index row. */

.release-notes-hero {
  padding-block: var(--d-16) var(--d-10);
  padding-inline: var(--d-4);
  background: var(--color-grey-200);
}

.release-notes-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--d-10);
  max-width: var(--width-content);
}

.release-notes-hero__lead {
  display: flex;
  flex-direction: column;
  gap: var(--d-10);
}

.release-notes-hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--d-4);
  flex: 1 1 0;
  min-width: 0;
}

.release-notes-hero__eyebrow {
  margin: 0;
  color: var(--color-grey-500);
}

.release-notes-hero__title {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-h1-mono-family);
  font-size: var(--font-h1-mono-size);
  font-weight: var(--font-h1-mono-weight);
  line-height: var(--font-h1-mono-line);
  letter-spacing: var(--font-h1-mono-tracking);
  color: var(--text);
}

.release-notes-hero__media {
  flex: 0 0 auto;
  width: 100%;
}

.release-notes-hero__inner > .dotted-divider {
  width: 100%;
}

@media (min-width: 40rem) {
  .release-notes-hero {
    padding-block: 7.5rem var(--d-1);
    padding-inline: var(--d-10);
  }

  .release-notes-hero__title {
    font-family: var(--font-display-s-family);
    font-size: var(--font-display-s-size);
    font-weight: var(--font-display-s-weight);
    line-height: var(--font-display-s-line-ratio);
    letter-spacing: var(--font-display-s-tracking);
  }
}

@media (min-width: 56.25rem) {
  .release-notes-hero__lead {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--d-20);
  }

  .release-notes-hero__intro {
    flex-direction: column-reverse;
    gap: var(--d-6);
  }

  .release-notes-hero__media {
    width: min(699px, 46%);
  }
}

/* Video sits in the article column and breaks out to the blog-table width. */
.release-notes-video {
  --blog-wide-target: min(var(--width-blog-wide), calc(100vw - 2 * var(--d-4)));
  position: relative;
  box-sizing: border-box;
  width: var(--blog-wide-target);
  max-width: none;
  /* 24px from the copy above and below. The body gap is 20px, and the next block sits 40px away. */
  margin-top: calc(var(--d-6) - var(--d-5));
  margin-bottom: calc(var(--d-6) - var(--d-10));
  margin-inline: calc(50% - var(--blog-wide-target) / 2);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.release-notes-video__play {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  color: inherit;
}

.release-notes-video__play:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.release-notes-video__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.release-notes-video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(68px, 20%);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.release-notes-video__warm {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  pointer-events: none;
}

.release-notes-video__warm.is-ready {
  pointer-events: auto;
}

.release-notes-video__warm.is-live {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 39.99rem) {
  .release-notes-video {
    --blog-wide-target: 100%;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

.release-notes-video__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.research-post .blog-faq {
  display: flex;
  flex-direction: column;
  gap: var(--d-5);
  width: 100%;
  margin-top: var(--d-4);
}

.research-post .blog-faq__title {
  margin: 0;
}

/* Keep the stacked mobile row until the 400px title and image both fit.
   Research tablet/desktop rules start at 40rem and 64rem. */
@media (max-width: 79.99rem) {
  .release-notes-list__link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--d-8);
  }

  .release-notes-list__link .research-index-list__col--report,
  .release-notes-list__link .research-index-list__col--desc {
    flex: none;
    width: 100%;
  }
}
