.page-template-page-sidebar-none,
.page-template-page-sidebar-none #page,
.page-template-page-sidebar-none #content.site-content,
.page-template-page-sidebar-none .entry-header,
.page-template-page-sidebar-none .entry-content {
  background-color: #fefcf7;
}

.page-template-page-sidebar-none #content.site-content {
  padding-bottom: 0;
}

/* BEST Hub Figma: News & Updates heading starts 100px below the hero. */
.newsroom-updates {
  padding: 100px 50px 48px;
  background: #fefcf7;
  color: #000;
}

.newsroom-updates__inner {
  width: 100%;
  max-width: 1412px;
  margin: 0 auto;
}

.newsroom-updates__header {
  border-bottom: 1px solid #000;
}

.newsroom-updates__title {
  margin: 0 0 10px;
  font-family: DIN2014-Regular, "DIN 2014", Arial, sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 33px;
  text-transform: uppercase;
}

.post-search-filter-wrapper {
  margin-top: 40px;
}

.newsroom-filter {
  display: grid;
  grid-template-columns: 361px 260px 109px;
  gap: 12px;
  justify-content: end;
}

.newsroom-filter__keyword,
.newsroom-filter__options {
  min-width: 0;
}

.newsroom-filter .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.newsroom-filter__options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

/* Keyword search, Filter, Sort, and Search: 50px tall, 10px radius, DIN Regular 17px. */
.newsroom-filter input,
.newsroom-filter select,
.newsroom-filter__submit {
  width: 100%;
  height: 50px;
  border: 1px solid #484848;
  border-radius: 10px;
  background: transparent;
  color: #484848;
  font-family: DIN2014-Regular, "DIN 2014", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.newsroom-filter input {
  padding: 0 18px;
}

/* Keyword copy sits high in the 50px field. Fill the content box, then shift the line down so DIN centers. */
@media (min-width: 768px) {
  .newsroom-filter input[type="search"] {
    appearance: none;
    padding: 4px 18px 0;
    line-height: 44px;
  }
}

.newsroom-filter input::placeholder {
  color: #484848;
  opacity: 1;
}

.newsroom-filter select {
  padding: 0 36px 0 24px;
  overflow: visible;
  text-align: left;
  text-align-last: left;
  text-overflow: clip;
  white-space: nowrap;
  appearance: none;
  background-color: transparent;
  background-image: url("../img/newsroom/newsroom-filter-arrow.svg");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16.5px 13px;
  cursor: pointer;
}

.newsroom-filter__submit {
  border-color: #000;
  background: #221d3e;
  color: #fefcf7;
  cursor: pointer;
  text-align: center;
}

/* Open Filter/Sort list, from Desktop-Keyword-Search-Filter-Dropdown.png on TDR-4707.
   Chrome and Edge draw this panel. Other browsers keep the native list. */
@supports (appearance: base-select) {
  .newsroom-filter select,
  .newsroom-filter select::picker(select) {
    appearance: base-select;
  }

  .newsroom-filter select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    overflow: hidden;
    background-image: none;
    text-align: center;
    white-space: nowrap;
  }

  .newsroom-filter select > button {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: center;
    text-transform: inherit;
    cursor: pointer;
  }

  .newsroom-filter select selectedcontent {
    display: block;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .newsroom-filter select::picker-icon {
    display: none;
  }

  .newsroom-filter select::after {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 8px;
    background: url("../img/newsroom/newsroom-filter-arrow.svg") center / contain no-repeat;
  }

  .newsroom-filter select::picker(select) {
    box-sizing: border-box;
    /* Open under the control. Pinning the panel to anchor(top) scrolls the
       page so the list can sit above the button, which lands it at the top. */
    top: calc(anchor(bottom) + 4px);
    right: auto;
    bottom: auto;
    left: anchor(left);
    width: max-content;
    min-width: max(anchor-size(width), 280px);
    max-height: min(50vh, 420px);
    margin: 0;
    padding: 0;
    border: 1px solid #c8c4bc;
    border-radius: 0;
    background: #fefcf7;
    box-shadow: none;
    overflow: auto;
    position-try-fallbacks: none;
  }

  .newsroom-filter select option {
    min-height: 42px;
    padding: 11px 18px;
    overflow: visible;
    color: #484848;
    font-family: DIN2014-Regular, "DIN 2014", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 20px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .newsroom-filter select option::checkmark {
    display: none;
  }

  .newsroom-filter select option:hover,
  .newsroom-filter select option:focus-visible,
  .newsroom-filter select option:checked {
    background: #f3efe6;
    color: #484848;
  }
}

.newsroom-filter__submit:hover {
  background: #39325f;
}

.newsroom-filter input:focus-visible,
.newsroom-filter select:focus-visible,
.newsroom-filter__submit:focus-visible,
.newsroom-filter__toggle:focus-visible {
  outline: 2px solid #221d3e;
  outline-offset: 3px;
}

.newsroom-filter__toggle {
  display: none;
}

.newsroom-updates__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 80px 68px;
  margin-top: 60px;
}

.newsroom-updates__empty,
.newsroom-updates__grid .no-post-class {
  grid-column: 1 / -1;
  margin: 0;
  color: #6a635e;
  font-family: DIN2014-Regular, "DIN 2014", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

.newsroom-story-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.newsroom-story-card__image-wrap {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 425 / 318;
  background: #c4c4c4;
}

.newsroom-story-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.newsroom-story-card__image--placeholder {
  background: #c4c4c4;
}

.newsroom-story-card__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding-top: 18px;
}

.entry-content .newsroom-story-card__excerpt,
.newsroom-updates .newsroom-story-card__excerpt,
.newsroom-story-card__title,
.newsroom-story-card__date {
  margin: 0;
}

.newsroom-story-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: #000;
  font-family: DIN2014-Bold, "DIN 2014", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.newsroom-story-card__date {
  color: #aca3a0;
  font-family: DIN2014-Light, "DIN 2014", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.newsroom-story-card__excerpt {
  color: #000;
  font-family: DIN2014-Light, "DIN 2014", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.36;
  text-align: left;
}

.newsroom-story-card__read-more {
  align-self: flex-start;
  color: #000;
  font-family: DIN2014-Light, "DIN 2014", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.36;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.newsroom-story-card__read-more::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.newsroom-story-card:hover .newsroom-story-card__image {
  transform: scale(1.02);
}

.newsroom-story-card:has(.newsroom-story-card__read-more:focus-visible) {
  outline: 2px solid #221d3e;
  outline-offset: 4px;
}

.newsroom-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
}

.newsroom-pagination__pages {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.newsroom-pagination button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: DIN2014-Bold, "DIN 2014", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 24px;
  text-transform: uppercase;
}

.newsroom-pagination__direction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #000;
  text-decoration: none;
}

.newsroom-pagination__previous {
  gap: 12px;
}

.newsroom-pagination__arrow {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 10px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.newsroom-pagination__previous .newsroom-pagination__arrow {
  -webkit-mask-image: url("../img/newsroom/newsroom-previous-arrow.svg");
  mask-image: url("../img/newsroom/newsroom-previous-arrow.svg");
}

.newsroom-pagination__next .newsroom-pagination__arrow {
  -webkit-mask-image: url("../img/newsroom/newsroom-next-arrow.svg");
  mask-image: url("../img/newsroom/newsroom-next-arrow.svg");
}

.newsroom-pagination__page {
  color: #aca3a0;
}

.newsroom-pagination__page.is-current {
  color: #000;
}

.newsroom-pagination button:hover:not(:disabled),
.newsroom-pagination button:focus-visible {
  color: #221d3e;
  text-decoration: none;
}

.newsroom-pagination button:focus-visible {
  outline: 2px solid #221d3e;
  outline-offset: 4px;
}

.newsroom-pagination button:disabled {
  color: #aca3a0;
  cursor: not-allowed;
}

.newsroom-pagination[aria-busy="true"] button {
  pointer-events: none;
}

.newsroom-pagination[hidden],
.newsroom-updates__more[hidden] {
  display: none !important;
}

.newsroom-updates__more {
  display: none;
  justify-content: center;
  margin-top: 80px;
}

/* BEST Hub Figma mobile: 12px DIN Bold, 0.13em tracking, centred 162px label with a 96px x 1.5px navy rule. */
.newsroom-updates__more-button {
  position: relative;
  min-width: 162px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #221d3e;
  font-family: DIN2014-Bold, "DIN 2014", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 15px;
  text-align: center;
  text-transform: uppercase;
}

.newsroom-updates__more-button::after {
  position: absolute;
  bottom: -0.75px;
  left: 50%;
  width: 96px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.newsroom-updates__more-button:hover {
  color: #000;
}

.newsroom-updates__more-button:focus-visible {
  outline: 2px solid #221d3e;
  outline-offset: 4px;
}

.newsroom-updates__grid > .no-post-class {
  grid-column: 1 / -1;
  margin: 0;
  font-family: DIN2014-Regular, "DIN 2014", Arial, sans-serif;
  text-align: center;
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .newsroom-filter {
    grid-template-columns: minmax(220px, 1fr) minmax(200px, 236px) 100px;
  }

  .newsroom-updates__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 40px;
  }
}

@media (max-width: 767.98px) {
  .newsroom-updates {
    padding: 32px 25px 24px;
  }

  .newsroom-updates__title {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 24px;
  }

  /* BEST Hub Figma (440px frame): 64px bar, #FEFCF8 fill, 1px #D6D2C6 border, 16px padding.
     32px keyword input with the arrow inside it, 24px filter icon to the right. */
  .post-search-filter-wrapper {
    margin-top: 25px;
  }

  .newsroom-filter {
    display: grid;
    grid-template-areas:
      "keyword toggle"
      "options options";
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 0 16px;
    padding: 16px;
    border: 1px solid #d6d2c6;
    background: #fefcf8;
  }

  .newsroom-filter__keyword {
    grid-area: keyword;
  }

  .newsroom-filter__options {
    display: none;
    grid-area: options;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
  }

  .newsroom-filter__options.is-open {
    display: grid;
  }

  .newsroom-filter input,
  .newsroom-filter select {
    height: 32px;
    border-radius: 0;
    font-size: 11px;
    line-height: 12px;
  }

  .newsroom-filter input {
    padding: 9px 44px 9px 12px;
    border-color: rgba(0, 0, 0, 0.13);
    background: transparent;
  }

  .newsroom-filter input::placeholder {
    color: #aca3a0;
  }

  .newsroom-filter select {
    justify-content: flex-start;
    gap: 0;
    padding: 0 28px;
    border-color: rgba(0, 0, 0, 0.13);
    background-color: transparent;
    background-image: url("../img/newsroom/newsroom-filter-arrow.svg");
    background-position: right 10px center;
    background-size: 11px 9px;
    text-align: left;
  }

  .newsroom-filter select::after {
    content: none;
  }

  .newsroom-filter select > button,
  .newsroom-filter select selectedcontent {
    flex: 1;
    text-align: left;
  }

  .newsroom-filter select::picker(select) {
    top: calc(anchor(bottom) + 4px);
    bottom: auto;
    position-try-fallbacks: none;
  }

  /* The search arrow sits inside the keyword input, not in a box of its own. */
  .newsroom-filter__submit {
    position: relative;
    grid-area: keyword;
    justify-self: end;
    width: 44px;
    height: 32px;
    z-index: 1;
    border: 0;
    background: transparent url("../img/newsroom/newsroom-search-arrow.svg") right 12px center / 15.67px 9.68px no-repeat;
    color: #000;
  }

  .newsroom-filter__submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .newsroom-filter__submit:hover {
    background-color: transparent;
    opacity: 0.7;
  }

  .newsroom-filter__toggle {
    position: relative;
    display: block;
    grid-area: toggle;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent url("../img/newsroom/newsroom-filter.svg") center / 24px 24px no-repeat;
  }

  .newsroom-filter__toggle::before,
  .newsroom-filter__toggle::after {
    content: none;
  }

  .newsroom-updates__grid {
    grid-template-columns: 1fr;
    gap: 41px;
    margin-top: 25px;
  }

  .newsroom-updates__grid > .newsroom-story-card:nth-child(n + 4) {
    display: none;
  }

  .newsroom-updates__grid.is-expanded > .newsroom-story-card:nth-child(n + 4) {
    display: grid;
  }

  .newsroom-story-card {
    display: grid;
    grid-template-columns: 44.62% minmax(0, 1fr);
    align-items: start;
    gap: 17px;
    height: auto;
    min-height: 0;
  }

  .newsroom-story-card__image-wrap {
    align-self: start;
    aspect-ratio: 1;
  }

  .newsroom-story-card__content {
    align-self: start;
    gap: 10px;
    padding: 0;
  }

  /* BEST Hub Figma mobile card: 10px gaps; title 14/15 bold, date 8/10, excerpt and link 10/13 light. */
  /* Figma: exactly 10px between title, date, excerpt and link; nothing stretches the column. */
  .newsroom-updates .newsroom-story-card__content {
    justify-content: flex-start;
    align-content: flex-start;
    gap: 10px;
    padding: 0;
  }

  .newsroom-updates .newsroom-story-card__date,
  .newsroom-updates .newsroom-story-card__date + .newsroom-story-card__excerpt {
    margin: 0;
    padding: 0;
  }

  /* Global mobile styles add 22px of padding above every h3 and 20px above every p.
     That drops the card copy below the image. The 10px column gap is the only spacing. */
  .newsroom-updates .newsroom-story-card__title,
  .newsroom-updates .newsroom-story-card__date,
  .newsroom-updates .newsroom-story-card__excerpt,
  .newsroom-updates .newsroom-story-card__read-more {
    margin-top: 0;
    padding-top: 0;
  }

  /* DIN caps sit inside the line box, so a zero padding still leaves the headline a few pixels below the photo. */
  .newsroom-updates .newsroom-story-card__title {
    margin-top: -4px;
  }

  .newsroom-story-card__title {
    font-size: 14px;
    line-height: 15px;
    -webkit-line-clamp: 4;
  }

  .newsroom-story-card__date {
    font-size: 8px;
    letter-spacing: 0.16px;
    line-height: 10px;
  }

  .newsroom-updates .newsroom-story-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: #000;
    font-size: 10px;
    letter-spacing: 0.2px;
    line-height: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .newsroom-story-card__read-more {
    align-self: flex-start;
    font-size: 10px;
    letter-spacing: 0.2px;
    line-height: 13px;
    text-underline-offset: auto;
  }

  .newsroom-updates__more {
    display: flex;
    margin-top: 44px;
    margin-bottom: 0;
  }

  .newsroom-pagination {
    display: none;
  }
}
