/* News and blog listings. */

.editorial-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 170px;
}
/* Hero lighting: soft blue from the left, violet from the top right, fading into the page. */
.editorial-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -120px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  pointer-events: none;
  background:
    radial-gradient(50% 80% at 0% 30%, rgba(0, 102, 255, 0.22), transparent 70%),
    radial-gradient(45% 80% at 100% 0%, rgba(122, 92, 255, 0.28), transparent 72%);
}
.editorial-hero__eyebrow {
  margin-top: 24px;
}
.editorial-hero__title {
  margin-top: 24px;
  max-width: 620px;
  font-size: 66px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.editorial-hero__title--blog {
  margin-top: 24px;
  font-size: 66px;
  line-height: normal;
}
.editorial-hero__text {
  width: 440px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--white-72);
}
.editorial-hero--blog {
  align-items: flex-start;
}
.editorial-hero__aside {
  width: 440px;
  flex-shrink: 0;
  margin-top: 31px;
}
.editorial-hero__chips {
  margin-top: 15px;
}

.editorial-featured {
  margin-top: 64px;
}
/* Featured news: image left, text right; no stroke, soft card. */
.featured-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  transition: background-color 300ms var(--ease-out);
}
.featured-item__media {
  position: relative;
  background: linear-gradient(135deg, #16224a, #0b1229);
  overflow: hidden;
}
.featured-item__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.featured-item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 48px 56px;
}
.featured-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--white-65);
}
.featured-item__badge {
  position: relative;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--color-lavender);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 18px;
  color: #1b1842;
  transition: filter var(--dur-hover) var(--ease-out);
}
.featured-item__badge:hover {
  filter: brightness(1.1);
}
.featured-item__title {
  font-size: 34px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.featured-item__link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.featured-item__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-72);
}
.featured-item__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-lavender);
  transition:
    gap var(--dur-hover) var(--ease-out),
    color var(--dur-hover) var(--ease-out);
}
.featured-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.featured-item:hover .featured-item__media img {
  transform: scale(1.03);
}
.featured-item:hover .featured-item__more {
  gap: 14px;
  color: var(--color-white);
}
/* Featured post (blog): full-bleed image, dark fade, text bottom-left. */
.featured-item--cover {
  display: block;
  min-height: 520px;
}
.featured-item--cover .featured-item__media {
  position: absolute;
  inset: 0;
}
.featured-item--cover .featured-item__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 13, 28, 0.1) 0%,
    rgba(8, 13, 28, 0.45) 45%,
    rgba(8, 13, 28, 0.92) 100%
  );
}
.featured-item--cover .featured-item__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: flex-end;
  gap: 16px;
  padding: 40px 48px;
}
.featured-item--cover .featured-item__title {
  max-width: 860px;
  font-size: 38px;
  line-height: 1.18;
}
.featured-item--cover .featured-item__meta {
  color: rgba(255, 255, 255, 0.8);
}
.featured-item--cover .featured-item__more {
  color: var(--color-white);
}

.editorial-list {
  margin-top: 80px;
  scroll-margin-top: 100px;
}
.editorial-list__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--white-12);
  border-radius: var(--radius-pill);
  background: var(--white-04);
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--color-white);
}
.search-field input::placeholder {
  color: var(--white-65);
}
.search-field:focus-within {
  outline: 2px solid var(--color-lavender);
  outline-offset: 2px;
}

.editorial-grid {
  display: grid;
  gap: 56px 24px;
}
.editorial-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 32px;
}
.editorial-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.editorial-grid:empty {
  display: none;
}
.editorial-item[hidden] {
  display: none;
}
.editorial-item .article-card__media {
  background: linear-gradient(135deg, #16224a, #0b1229);
}
.editorial-item .article-card__meta {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.editorial-grid--2 .article-card__media {
  height: 260px;
}
.editorial-list__empty {
  padding: 24px 0;
  color: var(--white-65);
}
.link-button {
  color: var(--color-lavender);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.editorial-list__more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
}
.pager[hidden] {
  display: none;
}
.pager__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 600;
  color: var(--white-72);
  transition:
    background-color var(--dur-hover) var(--ease-out),
    color var(--dur-hover) var(--ease-out);
}
.pager__btn:hover:not(:disabled) {
  background: var(--white-08);
  color: var(--color-white);
}
.pager__btn[aria-current='page'] {
  background: var(--color-blue);
  color: var(--color-white);
}
.pager__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.pager__gap {
  display: grid;
  place-items: center;
  width: 44px;
  color: var(--white-65);
}

.newsletter {
  margin-top: 160px;
}
.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 220px;
  padding: 40px 56px;
  border-radius: 16px;
  background: linear-gradient(110deg, #0a3fd6 0%, #1f5cff 45%, #5b4dff 100%);
}
.newsletter__title {
  font-size: 32px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -0.015em;
}
.newsletter__lead {
  margin-top: 10px;
  font-size: 16px;
  line-height: normal;
  color: rgba(255, 255, 255, 0.85);
}
.newsletter .newsletter__input,
.newsletter-tile .newsletter__input {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}
.newsletter .newsletter__input::placeholder,
.newsletter-tile .newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.newsletter .newsletter__input:focus,
.newsletter-tile .newsletter__input:focus {
  border-color: var(--color-white);
}
.newsletter__msg {
  color: rgba(255, 255, 255, 0.9) !important;
}
.newsletter__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.newsletter__input {
  width: 320px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--white-12);
  border-radius: 12px;
  background: var(--white-04);
  font-size: 15px;
  color: var(--color-white);
  outline: none;
}
.newsletter__input::placeholder {
  color: var(--white-65);
}
.newsletter__input:focus {
  border-color: var(--color-lavender);
}
.newsletter__input[aria-invalid='true'] {
  border-color: #ff8a8a;
}
.newsletter__msg {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  font-size: 13px;
  line-height: 1.4;
  color: var(--white-72);
  max-width: 480px;
}
.newsletter__msg.is-error {
  color: #ffb4b4;
}

/* Blog newsletter tile — 3rd column of the 2nd grid row. */
.editorial-list--blog {
  position: relative;
}
.newsletter-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 418px;
  margin-top: 56px;
  padding: 28px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(160deg, #6b4dff 0%, #3b5bff 45%, #0a5cff 100%);
}
.newsletter-tile__title {
  font-size: 26px;
  font-weight: 400;
  line-height: normal;
}
.newsletter-tile__text {
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.newsletter-tile__open {
  align-self: flex-start;
  margin-top: 8px;
}
.newsletter-tile__form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.newsletter-tile__form .newsletter__input {
  width: 100%;
}
.newsletter-tile .newsletter__msg {
  position: static;
}
.editorial-grid .newsletter-tile {
  order: 1;
  margin-top: 0;
  min-height: 0;
  height: 100%;
}

@media (max-width: 1023px) {
  .editorial-hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 130px;
  }
  .editorial-hero__text,
  .editorial-hero__aside {
    width: auto;
    max-width: 640px;
  }
  .editorial-hero__title,
  .editorial-hero__title--blog {
    font-size: 52px;
  }
  .featured-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured-item__media {
    min-height: 260px;
  }
  .featured-item__body {
    padding: 28px;
  }
  .featured-item--cover {
    min-height: 460px;
  }
  .featured-item--cover .featured-item__body {
    padding: 28px;
  }
  .featured-item--cover .featured-item__title {
    font-size: 30px;
  }
  .newsletter__inner {
    padding: 32px 24px 56px;
  }
  .editorial-list__controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-field {
    width: 100%;
  }
  .editorial-grid--2,
  .editorial-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px 56px;
  }
  .newsletter__form {
    width: 100%;
    flex-wrap: wrap;
  }
  .newsletter__form .newsletter__input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .newsletter {
    margin-top: 96px;
  }
}
@media (max-width: 599px) {
  .editorial-hero__title,
  .editorial-hero__title--blog {
    font-size: 42px;
  }
  .featured-item__title {
    font-size: 26px;
  }
  .editorial-grid--2,
  .editorial-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .newsletter__form .btn {
    width: 100%;
    justify-content: space-between;
  }
  .newsletter__form .newsletter__input {
    width: 100%;
    flex-basis: 100%;
  }
}
input[data-listing-search] {
  min-height: 24px;
} /* WCAG target size; the visual box is the surrounding field */
.editorial-grid--2 .article-card {
  padding-top: 280px;
}
.newsletter-tile__form[hidden],
.newsletter-tile__open[hidden] {
  display: none;
}
