/* Newsroom listing — Stripe news layout on the shared 1266px / 4-column rails. */

body.mw-source-newsroom {
  --newsroom-grid-max: 1266px;
  --newsroom-grid-inset: 16px;
  --newsroom-page-margin: 16px;
  --newsroom-ink: #0a2540;
  --newsroom-copy: #425466;
  --newsroom-accent: #635bff;
  --newsroom-guide: rgba(66, 71, 112, 0.12);
  --newsroom-font: sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: clip;
  background: #fff;
  color: var(--newsroom-ink);
  font-family: var(--newsroom-font);
}

@media (min-width: 640px) {
  body.mw-source-newsroom {
    --newsroom-page-margin: 16px;
  }

  body.mw-source-newsroom::before,
  body.mw-source-newsroom::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(66, 71, 112, 0.06);
    z-index: 2;
    pointer-events: none;
  }

  body.mw-source-newsroom::before {
    left: calc(
      var(--newsroom-page-margin)
      + max(0px, (100vw - 2 * var(--newsroom-page-margin) - var(--newsroom-grid-max)) / 2)
    );
  }

  body.mw-source-newsroom::after {
    right: calc(
      var(--newsroom-page-margin)
      + max(0px, (100vw - 2 * var(--newsroom-page-margin) - var(--newsroom-grid-max)) / 2)
    );
  }

  body.mw-source-newsroom footer.mw-shared-footer {
    z-index: 3;
  }
}

@media (min-width: 1136px) {
  html body.mw-source-newsroom .mw-core-header .mw-core-header__inner {
    width: calc(100% - (2 * var(--newsroom-page-margin))) !important;
    max-width: var(--newsroom-grid-max) !important;
    padding-inline: var(--newsroom-grid-inset) !important;
  }
}

.newsroom-page *,
.newsroom-page *::before,
.newsroom-page *::after {
  box-sizing: border-box;
}

.newsroom-page {
  position: relative;
  z-index: 1;
}

.newsroom-section {
  position: relative;
  padding-inline: var(--newsroom-page-margin);
}

.newsroom-section__inner {
  position: relative;
  z-index: 1;
  width: min(var(--newsroom-grid-max), 100%);
  max-width: 100%;
  margin-inline: auto;
  padding: 8px 0 96px;
}

.newsroom-guides {
  display: none;
}

@media (min-width: 900px) {
  .newsroom-section--has-guides {
    isolation: isolate;
  }

  .newsroom-guides {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    z-index: 0;
  }

  .newsroom-guides__container {
    position: relative;
    width: min(var(--newsroom-grid-max), calc(100% - 2 * var(--newsroom-page-margin)));
    height: 100%;
    margin: 0 auto;
  }

  .newsroom-guides__line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-image: repeating-linear-gradient(
      to bottom,
      var(--newsroom-guide) 0 4px,
      transparent 4px 8px
    );
  }

  .newsroom-guides__line:nth-child(1) { left: 25%; }
  .newsroom-guides__line:nth-child(2) { left: 50%; }
  .newsroom-guides__line:nth-child(3) { left: 75%; }
}

.newsroom-breadcrumb {
  display: flex;
  align-items: center;
  width: 25%;
  min-width: 12rem;
  min-height: 48px;
  margin: 0;
  padding: 12px var(--newsroom-grid-inset) 8px;
}

.newsroom-breadcrumb a {
  color: var(--newsroom-accent);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.newsroom-breadcrumb a:hover {
  opacity: 0.65;
}

.newsroom-heading {
  width: 25%;
  min-width: 12rem;
  margin: 28px 0 56px;
  padding-inline: var(--newsroom-grid-inset);
  color: var(--newsroom-ink);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.newsroom-list {
  display: flex;
  flex-direction: column;
}

.newsroom-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 0;
  padding: 28px 0;
  color: inherit;
  text-decoration: none;
}

.newsroom-item__date,
.newsroom-item__title {
  position: relative;
  margin: 0;
  padding-left: 14px;
}

.newsroom-item__date::before,
.newsroom-item__title::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 2px;
  height: 14px;
  background: var(--newsroom-accent);
}

.newsroom-item__date {
  color: var(--newsroom-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.01em;
}

.newsroom-item__title {
  color: var(--newsroom-ink);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 28px;
}

.newsroom-item:hover .newsroom-item__title {
  color: #697386;
}

.newsroom-item__cta {
  display: block;
  margin: 12px 0 0;
  padding-left: 14px;
  color: var(--newsroom-accent);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 24px;
}

.newsroom-item__copy {
  min-width: 0;
}

.newsroom-item__media {
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f9fc;
}

.newsroom-item__media img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
}

@media (min-width: 900px) {
  .newsroom-item {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 0;
    padding: 32px 0;
  }

  .newsroom-item__date {
    grid-column: 1;
    padding-left: 16px;
    padding-right: 16px;
  }

  .newsroom-item__copy {
    grid-column: 2 / 4;
  }

  .newsroom-item__title {
    padding-left: 16px;
    padding-right: 16px;
  }

  .newsroom-item__cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .newsroom-item__media {
    grid-column: 4;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .newsroom-item__media img {
    height: 156px;
    border-radius: 8px;
  }
}

.newsroom-empty {
  margin: 0;
  padding: 12px 0 48px;
  color: var(--newsroom-copy);
  font-size: 16px;
  line-height: 1.5;
}

.newsroom-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 0 24px;
}

.newsroom-article__title {
  margin: 20px 0 32px;
  padding-inline: var(--newsroom-grid-inset);
  color: var(--newsroom-ink);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

@media (min-width: 640px) {
  .newsroom-article__title {
    font-size: 56px;
    margin: 28px 0 40px;
  }
}

.newsroom-article__date {
  position: relative;
  margin: 0 0 24px;
  padding: 0 var(--newsroom-grid-inset) 0 16px;
  color: var(--newsroom-copy);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.01em;
}

.newsroom-article__date::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 2px;
  height: 14px;
  background: var(--newsroom-accent);
}

.newsroom-article__media {
  margin: 0 0 32px;
  padding-inline: var(--newsroom-grid-inset);
  overflow: hidden;
  background: #f6f9fc;
}

.newsroom-article__media img {
  display: block;
  width: 100%;
  height: auto;
}

.newsroom-article__body {
  padding-inline: var(--newsroom-grid-inset);
  color: var(--newsroom-copy);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
}

.newsroom-article__body > *:first-child {
  margin-top: 0;
}

.newsroom-article__body p {
  margin: 0 0 1.2em;
}

.newsroom-article__body img {
  max-width: 100%;
  height: auto;
}

.newsroom-article__body a {
  color: var(--newsroom-accent);
  text-decoration: none;
}

.newsroom-article__body a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .newsroom-article {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .newsroom-article__title {
    grid-column: 1 / 4;
  }

  .newsroom-article__date {
    grid-column: 1;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .newsroom-article__media {
    grid-column: 2 / -1;
    margin: 0 0 40px;
    padding: 0;
  }

  .newsroom-article__body {
    grid-column: 2 / -1;
  }
}

@media (max-width: 899px) {
  .newsroom-breadcrumb,
  .newsroom-heading {
    width: 100%;
  }

  .newsroom-heading {
    margin-bottom: 36px;
  }

  .newsroom-item__copy {
    display: contents;
  }

  .newsroom-item__date { order: 1; }
  .newsroom-item__title { order: 2; }
  .newsroom-item__media { order: 3; }
  .newsroom-item__cta { order: 4; }
}

@media (max-width: 639px) {
  body.mw-source-newsroom {
    --newsroom-grid-inset: 0px;
  }
}
