/* NMG Latest News v1.51 */

.news-page {
  --news-edge: min(4.2vw, 70px);
  background: var(--ink);
}

.news-archive-page {
  --work-image: url("/assets/img/news/news-archive-background-v1.50.webp");
  --work-position: center top;
}

.news-archive-page .work-shell::before {
  background-attachment: fixed;
  filter: brightness(0.55) saturate(0.88) contrast(1.04);
}

.news-archive-page .work-shell::after {
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.28) 0%, rgba(5, 7, 10, 0.72) 42%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.92) 0%, rgba(5, 7, 10, 0.55) 44%, rgba(5, 7, 10, 0.25) 100%);
}

.news-archive {
  display: block;
  min-height: 0;
  align-items: initial;
  padding-top: clamp(126px, 14vh, 158px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.news-archive-heading {
  max-width: 980px;
}

.news-archive-heading h1 {
  margin: 23px 0 0;
  font-size: clamp(46px, 5.25vw, 80px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.news-archive-heading > p:last-child {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(11px, 0.96vw, 15px);
  line-height: 1.7;
}

.news-filters {
  display: grid;
  width: 100%;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  margin-top: clamp(34px, 4vw, 52px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 10px;
  background: rgba(5, 7, 10, 0.68);
  font-family: "Unbounded", Arial, sans-serif;
  grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(150px, 0.8fr)) auto minmax(150px, auto);
  -webkit-backdrop-filter: blur(16px) saturate(0.92);
  backdrop-filter: blur(16px) saturate(0.92);
}

.news-filter {
  min-width: 0;
}

.news-filter > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.news-filter--search {
  display: grid;
  align-items: center;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
}

.news-filter--search > label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 6px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.news-search-field {
  position: relative;
  display: block;
}

.news-search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-58%);
}

.news-search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.58);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.news-filter input,
.news-filter select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 5px;
  outline: 0;
  background-color: rgba(5, 7, 10, 0.67);
  color: var(--white);
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.11em;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.news-filter input {
  padding: 0 14px 0 39px;
  font-size: 8px;
  letter-spacing: 0;
}

.news-filter input::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.news-filter select {
  padding: 0 34px 0 14px;
  cursor: pointer;
}

.news-filter select option {
  background: var(--ink);
  color: var(--white);
  font-family: "Unbounded", Arial, sans-serif;
  font-weight: 400;
}

.news-filter input:focus,
.news-filter select:focus {
  border-color: rgba(20, 216, 208, 0.76);
  box-shadow: 0 0 0 2px rgba(20, 216, 208, 0.09);
}

.news-reset {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 6px;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.news-reset:hover,
.news-reset:focus-visible {
  color: var(--cyan);
  outline: 0;
}

.news-result-count {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 6px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.news-results {
  margin-top: 20px;
}

.news-feature {
  position: relative;
  min-height: clamp(290px, 31vw, 405px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: var(--panel);
  isolation: isolate;
}

.news-feature::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: 1.25px;
  border-radius: inherit;
  background: var(--gradient);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.news-feature:hover::after,
.news-feature:focus-within::after {
  opacity: 1;
}

.news-feature:hover,
.news-feature:focus-within {
  box-shadow: 0 0 26px rgba(20, 216, 208, 0.1), 0 0 30px rgba(237, 80, 233, 0.08);
}

.news-feature > a {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-feature > a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -5px;
}

.news-feature img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 650ms var(--ease-out), filter 450ms ease;
}

.news-feature:hover img,
.news-feature:focus-within img {
  filter: brightness(1.04);
  transform: scale(1.018);
}

.news-feature-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.98) 0%, rgba(5, 7, 10, 0.91) 31%, rgba(5, 7, 10, 0.32) 62%, rgba(5, 7, 10, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.1), rgba(5, 7, 10, 0.36));
}

.news-feature-copy {
  display: flex;
  width: min(520px, 43%);
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 4.2vw, 62px);
}

.news-story-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.news-story-meta > span:last-child {
  background: var(--gradient);
  background-clip: text;
  color: transparent;
  font-weight: 700;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-feature-copy > strong {
  margin-top: 27px;
  font-size: clamp(27px, 3.1vw, 48px);
  letter-spacing: -0.064em;
  line-height: 0.98;
}

.news-story-deck {
  max-width: 390px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(9px, 0.78vw, 12px);
  line-height: 1.65;
}

.news-story-arrow {
  position: relative;
  display: block;
  width: 34px;
  height: 18px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 180ms ease, transform 220ms var(--ease-out);
}

.news-story-arrow::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 18'%3E%3Cpath d='M1 9h30M24 2l7 7-7 7' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 18'%3E%3Cpath d='M1 9h30M24 2l7 7-7 7' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.news-feature:hover .news-story-arrow,
.news-feature:focus-within .news-story-arrow {
  color: var(--cyan);
  transform: translateX(5px);
}

.news-no-results {
  padding: clamp(48px, 7vw, 90px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(5, 7, 10, 0.76);
  text-align: center;
}

.news-no-results h2 {
  margin: 20px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.06em;
}

.news-no-results > p:not(.work-kicker) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.news-no-results button {
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(20, 216, 208, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 7px;
  letter-spacing: 0.17em;
  cursor: pointer;
}

/* Article */

.news-article-page {
  --work-image: none;
}

.news-article-page .work-shell::before,
.news-article-page .work-shell::after {
  content: none;
}

.news-article {
  display: block;
  min-height: 0;
  align-items: initial;
  width: 100%;
  max-width: none;
  padding: 80px 0 0;
}

.news-article-hero {
  position: relative;
  min-height: clamp(590px, 69vw, 800px);
  overflow: hidden;
  background: var(--ink);
}

.news-article-hero > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-article-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.99) 0%, rgba(5, 7, 10, 0.88) 32%, rgba(5, 7, 10, 0.25) 62%, rgba(5, 7, 10, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.18) 0%, rgba(5, 7, 10, 0.02) 68%, var(--ink) 100%);
  content: "";
}

.news-article-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1480px, calc(100% - 8.4vw));
  min-height: inherit;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  padding: clamp(80px, 9vw, 132px) 0 clamp(72px, 8vw, 116px);
}

.news-article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  background: var(--gradient);
  background-clip: text;
  color: transparent;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.21em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-article-hero h1 {
  max-width: 670px;
  margin: 32px 0 0;
  font-size: clamp(52px, 6.3vw, 96px);
  letter-spacing: -0.078em;
  line-height: 0.92;
}

.news-article-standfirst {
  max-width: 555px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(12px, 1.2vw, 18px);
  line-height: 1.7;
}

.news-article-rule {
  width: min(480px, 100%);
  height: 2px;
  margin-top: 36px;
  background: var(--gradient);
}

.news-article-layout {
  display: grid;
  width: min(1180px, calc(100% - 8.4vw));
  gap: clamp(44px, 7vw, 100px);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 112px) 0 clamp(80px, 10vw, 140px);
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
}

.news-article-aside {
  position: sticky;
  top: 118px;
  align-self: start;
  padding-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.news-article-aside p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 7px;
  letter-spacing: 0.18em;
  line-height: 1.8;
}

.news-article-aside p + p {
  margin-top: 18px;
}

.news-article-aside p:first-child {
  color: var(--white);
  font-weight: 700;
}

.news-article-copy {
  max-width: 760px;
}

.news-article-copy p {
  margin: 0 0 29px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(13px, 1.14vw, 17px);
  letter-spacing: -0.026em;
  line-height: 1.9;
}

.news-article-copy .news-article-opening {
  color: var(--white);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.58;
}

.news-article-copy .news-article-closing {
  margin-top: 45px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-weight: 700;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 7px;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.news-back-link::before {
  width: 22px;
  height: 12px;
  background: currentColor;
  content: "";
  transform: rotate(180deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 8h20M15 2l6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 8h20M15 2l6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.news-back-link:hover,
.news-back-link:focus-visible {
  color: var(--cyan);
  outline: 0;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .news-filters {
    grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) minmax(140px, 0.72fr) minmax(140px, 0.72fr);
  }

  .news-filter--search {
    grid-column: span 2;
  }

  .news-filter--production {
    grid-column: span 2;
  }

  .news-result-count {
    grid-column: auto;
    padding-left: 12px;
    text-align: right;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .news-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-filter--search {
    grid-column: 1 / -1;
  }

  .news-reset {
    justify-self: start;
  }

  .news-result-count {
    grid-column: 1 / -1;
    align-self: center;
    padding: 5px 0 0;
    border: 0;
    text-align: left;
  }

  .news-feature-copy {
    width: 54%;
  }

  .news-article-hero {
    min-height: 640px;
  }
}

@media (max-width: 760px) {
  .news-archive-page .work-shell::before {
    background-attachment: scroll;
    background-position: 67% top;
  }

  .news-archive-page .work-shell::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.22), rgba(5, 7, 10, 0.82) 30%, var(--ink) 64%),
      linear-gradient(90deg, rgba(5, 7, 10, 0.84), rgba(5, 7, 10, 0.34));
  }

  .news-archive {
    padding-top: max(124px, calc(env(safe-area-inset-top) + 108px));
  }

  .news-archive-heading h1 {
    font-size: clamp(40px, 11.2vw, 58px);
  }

  .news-filters {
    gap: 10px;
    padding: 12px;
    grid-template-columns: 1fr;
  }

  .news-filter--search,
  .news-result-count {
    grid-column: auto;
  }

  .news-filter--search {
    grid-template-columns: 1fr;
  }

  .news-filter--search > label {
    margin-bottom: 2px;
  }

  .news-result-count {
    padding: 5px 0 0;
    text-align: left;
  }

  .news-feature {
    min-height: 510px;
  }

  .news-feature img {
    object-position: 67% center;
  }

  .news-feature-shade {
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.2) 0%, rgba(5, 7, 10, 0.42) 36%, rgba(5, 7, 10, 0.98) 100%),
      linear-gradient(90deg, rgba(5, 7, 10, 0.58), rgba(5, 7, 10, 0.08));
  }

  .news-feature-copy {
    width: 100%;
    justify-content: flex-end;
    padding: 28px 24px 34px;
  }

  .news-feature-copy > strong {
    font-size: clamp(30px, 9vw, 43px);
  }

  .news-article {
    padding-top: max(76px, calc(env(safe-area-inset-top) + 60px));
  }

  .news-article-hero {
    min-height: 690px;
  }

  .news-article-hero > img {
    object-position: 68% center;
  }

  .news-article-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.14), rgba(5, 7, 10, 0.46) 40%, var(--ink) 100%),
      linear-gradient(90deg, rgba(5, 7, 10, 0.58), rgba(5, 7, 10, 0.08));
  }

  .news-article-hero-inner {
    justify-content: flex-end;
    padding-bottom: 68px;
  }

  .news-article-hero h1 {
    margin-top: 24px;
    font-size: clamp(44px, 13vw, 64px);
  }

  .news-article-standfirst {
    margin-top: 24px;
    font-size: 12px;
  }

  .news-article-layout {
    gap: 38px;
    padding-top: 52px;
    grid-template-columns: 1fr;
  }

  .news-article-aside {
    position: static;
    display: flex;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    flex-wrap: wrap;
    gap: 8px 22px;
  }

  .news-article-aside p + p {
    margin-top: 0;
  }

  .news-back-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-feature img,
  .news-story-arrow {
    transition: none;
  }
}
