:root {
  --xn-blue: var(--cr-blue, #488cfe);
  --xn-ink: #111111;
  --xn-paper: #ffffff;
  --xn-line: #cfcfcd;
  --xn-muted: #646462;
}

/* Newsroom brand normalization for the imported editorial resource layout. */
body[data-product="press"] {
  --color-neon: #488cfe;
  --xn-blue: #488cfe;
}

body[data-product="press"] .xperf-newsroom-title-wrap {
  display: block !important;
}

body[data-product="press"] .xperf-newsroom-title-wrap > div {
  display: none !important;
}

body[data-product="press"] .xperf-newsroom-title {
  display: block !important;
  width: fit-content !important;
  max-width: none !important;
  overflow: visible !important;
  padding: 0 !important;
  background: transparent !important;
  color: #141414 !important;
  font-family: var(--xperf-heading-font) !important;
  font-size: clamp(3.125rem, 5.75vw, 6.875rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.132rem !important;
  line-height: 0.96 !important;
  white-space: normal !important;
}

@media (min-width: 94.5rem) {
  body[data-product="press"] .xperf-newsroom-title {
    letter-spacing: -0.24rem !important;
  }
}

html.xp-title-wipe-motion body[data-product="press"] .xperf-newsroom-title[data-hero-title-wipe] {
  opacity: 0;
}

html.xp-title-wipe-motion body[data-product="press"] .xperf-newsroom-title[data-hero-title-wipe].is-title-wipe-ready {
  opacity: 1;
}

body[data-product="press"] .xperf-newsroom-title .xp-title-wipe__measure {
  display: inline-block;
  white-space: nowrap;
}

body[data-product="press"] .xperf-newsroom-title .xp-title-wipe__line-wrapper {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 1.1em;
  margin-top: -0.1em;
  padding-bottom: 0.15em;
  overflow: hidden;
}

body[data-product="press"] .xperf-newsroom-title .xp-title-wipe__line-wrapper:first-child {
  margin-top: 0;
}

body[data-product="press"] .xperf-newsroom-title .xp-title-wipe__line {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  color: #141414;
  opacity: 0;
}

body[data-product="press"] .xperf-newsroom-title .xp-title-wipe__bar {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
  background: #488cfe;
  transform: translate3d(-102%, 0, 0);
}

body[data-product="press"] .xperf-newsroom-title[data-hero-title-wipe].is-title-wipe-revealed .xp-title-wipe__bar {
  animation: xperf-newsroom-title-wipe-bar 2s both;
}

body[data-product="press"] .xperf-newsroom-title[data-hero-title-wipe].is-title-wipe-revealed .xp-title-wipe__line {
  animation: xperf-newsroom-title-wipe-text 2s both;
}

@keyframes xperf-newsroom-title-wipe-bar {
  0% {
    transform: translate3d(-102%, 0, 0);
    animation-timing-function: cubic-bezier(1, 0, 0, 1);
  }

  50% {
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(1, 0, 0, 1);
  }

  100% {
    transform: translate3d(102%, 0, 0);
  }
}

@keyframes xperf-newsroom-title-wipe-text {
  0%,
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.xp-title-wipe-motion body[data-product="press"] .xperf-newsroom-title[data-hero-title-wipe] {
    opacity: 1;
  }

  body[data-product="press"] .xperf-newsroom-title .xp-title-wipe__line {
    opacity: 1;
  }

  body[data-product="press"] .xperf-newsroom-title .xp-title-wipe__bar {
    display: none;
  }
}

/* Match the ClusterReady hero title's desktop anchor point. The imported
   editorial header has its own grid and padding utilities, so normalize the
   header itself instead of compensating with a title transform. */
body[data-product="press"] main#main > .flex.flex-col {
  padding-top: 0 !important;
}

body[data-product="press"] main#main > .flex.flex-col > header {
  display: block !important;
  min-height: clamp(180px, 17vw, 280px);
  padding: clamp(64px, 4vw, 80px) clamp(32px, 7vw, 144px) 36px !important;
}

body[data-product="press"] main#main > .flex.flex-col > header > div:first-child {
  width: 100%;
  max-width: 1800px;
  margin-inline: auto;
}

body[data-product="press"] main#main > .flex.flex-col > header > div:not(:first-child) {
  display: none !important;
}

body[data-product="press"] .bg-neon,
body[data-product="press"] .hover\:bg-neon:hover {
  background-color: #488cfe !important;
}

body[data-product="press"] .text-neon {
  color: #488cfe !important;
}

body[data-product="press"] .border-neon,
body[data-product="press"] .border-b-neon {
  border-color: #488cfe !important;
}

body[data-product="press"] .after\:bg-neon::after {
  background-color: #488cfe !important;
}

body[data-product="press"] .xperf-newsroom-topics__heading {
  padding-block: 14px;
  border-top: 1px solid #141414;
  border-bottom: 1px solid #141414;
  color: #141414;
}

/* Restore the editorial newsroom composition: a persistent topic rail on the
   left and full-width release stories on the right.  The release copy itself
   is intentionally untouched; this layer only controls composition. */
@media (min-width: 1024px) {
  body[data-product="press"] #resources-posts-list {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    align-items: start;
    column-gap: clamp(24px, 2.4vw, 48px) !important;
  }

  body[data-product="press"] .xperf-newsroom-topics {
    position: sticky;
    top: calc(var(--xperf-nav-height, 80px) + 32px);
    display: block !important;
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: start;
  }
}

body[data-product="press"] .xperf-newsroom-topics__list {
  display: grid;
  padding-top: 20px;
  gap: 8px;
}

body[data-product="press"] .xperf-newsroom-filter {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 3px 6px;
  border: 0;
  background: transparent;
  color: #141414;
  cursor: pointer;
  text-align: left;
}

body[data-product="press"] .xperf-newsroom-filter[aria-pressed="true"] {
  background: #488cfe;
}

body[data-product="press"] .xperf-newsroom-mobile-topics {
  padding-block: 18px 28px;
  border-top: 1px solid #141414;
}

body[data-product="press"] .xperf-newsroom-mobile-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

body[data-product="press"] .xperf-newsroom-card-date {
  margin-left: auto;
  color: #141414 !important;
  white-space: nowrap;
}

body[data-product="press"] .xperf-newsroom-card-subtitle {
  max-width: 58ch;
  margin-top: 18px;
  color: #141414 !important;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.4;
}

body[data-product="press"] .xperf-newsroom-release-grid {
  display: grid;
  grid-column: 3 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

/* Cards sit as separate white blocks on the platinum page ground; the gap
   between them does the separating, so they carry no rules. */
body[data-product="press"] .xperf-newsroom-release-card {
  display: flex;
  min-height: clamp(320px, 26vw, 430px);
  flex-direction: column;
  padding: clamp(32px, 3.5vw, 64px) clamp(28px, 4vw, 72px);
  border: 0;
  background: #ffffff;
  color: #141414;
}

body[data-product="press"] .xperf-newsroom-release-card[hidden] {
  display: none !important;
}

body[data-product="press"] .xperf-newsroom-release-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(42px, 5vw, 84px);
  font-family: var(--font-mono), monospace;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

body[data-product="press"] .xperf-newsroom-release-card__topic {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  background: #488cfe;
  color: #141414;
}

body[data-product="press"] .xperf-newsroom-release-card__topic-text {
  color: #141414;
}

body[data-product="press"] .xperf-newsroom-release-card__topic-text.xperf-scramble-lock-single-line {
  white-space: nowrap;
}

/* Keep complete release titles within two lines on the desktop cards. */
body[data-product="press"] .xperf-newsroom-release-card h3 {
  color: #141414;
  font-family: "XPerf DIN", "DIN", "DIN Alternate", sans-serif !important;
  max-width: 100%;
  font-size: clamp(24px, 1.9vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.16;
}

body[data-product="press"] .xperf-newsroom-release-card p {
  max-width: 66.666%;
  margin-top: clamp(28px, 3vw, 46px);
  color: #141414;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.42;
}

body[data-product="press"] .xperf-newsroom-release-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 38px;
  border-bottom: 1px solid #488cfe;
  color: #141414;
  font-family: var(--font-mono), monospace;
  font-size: 18px;
  line-height: 1.3;
}

@media (max-width: 1279px) {
  body[data-product="press"] .xperf-newsroom-release-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1023px) {
  body[data-product="press"] .xperf-newsroom-release-grid {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 639px) {
  body[data-product="press"] .xperf-newsroom-release-grid {
    grid-template-columns: 1fr;
  }

  body[data-product="press"] .xperf-newsroom-release-card {
    min-height: 460px;
  }
}

@media (max-width: 767px) {
  body[data-product="press"] .xperf-newsroom-title {
    font-size: clamp(3.125rem, 5.75vw, 6.875rem) !important;
  }

  body[data-product="press"] main#main > .flex.flex-col > header {
    min-height: 170px;
    padding: 56px 32px 28px !important;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  html body[data-product="press"] .xperf-newsroom-release-card h3,
  html body[data-product="press"]
    .xperf-newsroom-release-card
    h3.xperf-min-font {
    font-size: 20px !important;
  }
}

@media (max-width: 420px) {
  body[data-product="press"] .xperf-newsroom-title {
    font-size: 2.75rem !important;
  }
}

body.xn-page .xn-hero .xp-hero__title {
  max-width: 9ch;
  font-size: clamp(72px, 7vw, 120px);
  font-weight: 500;
}

.xn-hero__visual .xp-hero__visual-frame {
  aspect-ratio: 16 / 10;
  background: #181818;
}

.xn-hero__visual .xp-hero__visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05) brightness(0.72);
  transform: scale(1.08);
}

.xn-news {
  position: relative;
  background: var(--xn-paper);
  color: var(--xn-ink);
}

.xn-news__shell {
  display: grid;
  width: min(100%, var(--cr-shell));
  margin-inline: auto;
  padding-inline: var(--cr-gutter);
  grid-template-columns: minmax(250px, 3fr) minmax(0, 9fr);
  column-gap: clamp(48px, 6vw, 112px);
}

.xn-topics {
  padding-block: clamp(96px, 9vw, 160px);
  border-right: 1px solid var(--xn-line);
}

.xn-topics__sticky {
  position: sticky;
  top: calc(var(--cr-nav-offset) + 32px);
  padding-right: clamp(28px, 4vw, 72px);
}

.xn-topics__label {
  margin: 0 0 38px;
  font-family: var(--cr-display) !important;
  font-size: clamp(34px, 2.3vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.xn-topics__list {
  display: grid;
}

.xn-topics__list button {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--xn-line);
  background: transparent;
  color: var(--xn-muted);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1.35;
  text-align: left;
  transition: color 180ms ease, padding-left 180ms ease;
}

.xn-topics__list button:last-child {
  border-bottom: 1px solid var(--xn-line);
}

.xn-topics__list button span {
  flex: 0 0 auto;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.xn-topics__list button:hover,
.xn-topics__list button[aria-pressed="true"] {
  padding-left: 14px;
  color: var(--xn-ink);
}

.xn-topics__list button[aria-pressed="true"] {
  background: var(--xn-blue);
}

.xn-feed {
  min-width: 0;
  padding-block: clamp(96px, 9vw, 160px);
}

.xn-feed__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(42px, 4vw, 72px);
}

.xn-feed__header h2 {
  max-width: none;
  font-size: clamp(50px, 4.5vw, 82px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.xn-feed__count {
  margin: 0;
  color: var(--xn-muted);
  font-size: 24px;
  white-space: nowrap;
}

.xn-feed__list {
  border-top: 1px solid var(--xn-ink);
}

.xn-card {
  padding-block: clamp(52px, 5vw, 88px);
  border-bottom: 1px solid var(--xn-line);
  background: var(--xn-paper);
}

.xn-card[hidden] {
  display: none !important;
}

.xn-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(36px, 4vw, 64px);
  color: var(--xn-muted);
  font-size: 24px;
  line-height: 1.25;
}

.xn-card__meta span {
  color: var(--xn-blue);
  text-transform: uppercase;
}

.xn-card__meta time {
  font-variant-numeric: tabular-nums;
}

.xn-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(250px, 4fr);
  align-items: end;
  gap: clamp(40px, 5vw, 88px);
}

.xn-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
}

.xn-card__copy h3 {
  max-width: 20ch;
  font-family: var(--cr-display) !important;
  font-size: clamp(38px, 3.2vw, 58px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.03;
  text-wrap: balance;
}

.xn-card__copy p {
  max-width: 55ch;
  color: var(--xn-muted);
  font-size: clamp(24px, 1.45vw, 28px);
  line-height: 1.48;
}

.xn-card__copy a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--xn-blue);
  color: var(--xn-ink);
  font-size: 24px;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.xn-card__copy a span {
  color: var(--xn-blue);
  transition: transform 180ms ease;
}

.xn-card__copy a:hover span {
  transform: translate(3px, -3px);
}

.xn-card__media {
  display: grid;
  min-height: 270px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  background: #f0f0ee;
}

.xn-card__media img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  transition: transform 500ms var(--cr-ease);
}

.xn-card:hover .xn-card__media img {
  transform: scale(1.035);
}

.xn-card__media--dark {
  background: #141414;
}

.xn-card__media--dark img {
  padding: clamp(24px, 3vw, 44px);
}

.xn-card__media--logo img {
  width: min(72%, 320px);
  height: auto;
  filter: grayscale(1) contrast(1.12);
}

.xn-card__media--photo img {
  max-height: none;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.xn-feed__empty {
  padding-block: 90px;
  border-bottom: 1px solid var(--xn-line);
  color: var(--xn-muted);
  font-size: 28px;
}

@media (max-width: 1120px) {
  .xn-news__shell {
    grid-template-columns: 1fr;
  }

  .xn-topics {
    padding: 48px 0 0;
    border-right: 0;
  }

  .xn-topics__sticky {
    position: static;
    padding-right: 0;
  }

  .xn-topics__label {
    margin-bottom: 24px;
  }

  .xn-topics__list {
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .xn-topics__list button {
    width: auto;
    min-width: max-content;
    min-height: 54px;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--xn-line);
  }

  .xn-topics__list button:last-child {
    border-bottom: 1px solid var(--xn-line);
  }

  .xn-topics__list button:hover,
  .xn-topics__list button[aria-pressed="true"] {
    padding-left: 16px;
  }

  .xn-feed {
    padding-top: 72px;
  }
}

@media (max-width: 820px) {
  body.xn-page .xn-hero .xp-hero__title {
    font-size: clamp(58px, 18vw, 84px);
  }

  .xn-feed__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .xn-card__layout {
    grid-template-columns: 1fr;
  }

  .xn-card__media {
    min-height: 230px;
    grid-row: 1;
  }

  .xn-card__copy {
    grid-row: 2;
  }

  .xn-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xn-card__media img,
  .xn-card__copy a span,
  .xn-topics__list button {
    transition: none;
  }
}

@media (max-width: 1023px) {
  /* The two-thirds measure is a wide-screen device; on narrow viewports the
     text needs the full card width to stay readable. */
  body[data-product="press"] .xperf-newsroom-release-card h3,
  body[data-product="press"] .xperf-newsroom-release-card p {
    max-width: 100%;
  }
}
