/* Authored \n breaks are desktop-only; below the site's mobile breakpoint
   (navbar switch, 1280px) the text reflows naturally. */
@media (max-width: 1280px) {
  br.multiline-br {
    display: none;
  }
}

.publications,
.publications *,
.publications *::before,
.publications *::after,
.publication-card,
.publication-card *,
.publication-card *::before,
.publication-card *::after {
  box-sizing: border-box;
}

.publications {
  --publications-column-gap: 30px;
  --publications-row-gap: 46px;
  --publication-card-basis: calc((100% - 90px) / 3);

  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fcfcfc;
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.publications__inner {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  padding: 46px 0 57px;
}

.publications__search-wrap {
  position: relative;
  width: min(439px, 100%);
  height: 43px;
  margin-left: auto;
}

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

.publications__search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 10px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  pointer-events: none;
}

.publications__search {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px 16px 10px 48px;
  border: 0;
  border-radius: 4px;
  outline: 1px solid transparent;
  background: linear-gradient(155deg, #fcfcfc 0%, #e6ece9 100%);
  color: #18141e;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  appearance: none;
  transition: outline-color 180ms ease, background-color 180ms ease;
}

.publications__search::placeholder {
  color: rgba(24, 20, 30, 0.4);
  font-style: italic;
  opacity: 1;
}

.publications__search:focus-visible {
  outline-color: #3dbf7b;
}

.publications__search::-webkit-search-cancel-button {
  cursor: pointer;
}

.publications__grid {
  display: grid !important;
  width: 100%;
  min-width: 0;
  margin-top: 57px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--publications-row-gap) var(--publications-column-gap);
  align-items: stretch;
}

.publications__grid:has(> slot[name="children"]) {
  display: block !important;
}

.publications__grid > slot[name="children"] {
  display: flex !important;
  width: calc(100% + var(--publications-column-gap));
  min-width: 0;
  margin: calc(var(--publications-row-gap) / -2)
    calc(var(--publications-column-gap) / -2);
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}

/* Webflow assigns ONE wrapper div to the slot; display: contents collapses
   it so the hosts participate in the slot's wrap-flex directly. */
.publications__grid > slot[name="children"]::slotted(*) {
  display: contents !important;
}

/* !important: Webflow's page-level code-island { display: contents } rule
   beats normal :host declarations, which killed the card sizing. */
:host([data-publication-card-host]) {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 23px 15px !important;
  flex: 1 1 calc((100% - 90px) / 3) !important;
}

:host([data-publication-card-host][data-publication-hidden]) {
  display: none !important;
  margin: 0 !important;
}

:host {
  display: flex;
  width: 100%;
  min-width: 0;
  order: var(--publication-card-priority, 1);
}

.publication-card {
  width: 100%;
  min-width: 0;
  min-height: 411px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(155deg, #fcfcfc 0%, #e6ece9 100%);
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  order: var(--publication-card-priority, 1);
}

.publication-card__link {
  display: flex;
  width: 100%;
  min-height: 411px;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.publication-card__link:hover {
  transform: translateY(-3px);
}

.publication-card__link:active {
  transform: translateY(-1px);
}

.publication-card__link:focus-visible {
  outline: 2px solid #3dbf7b;
  outline-offset: -2px;
  border-radius: 20px;
}

.publication-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 308;
  overflow: hidden;
  border-radius: 20px;
  background: #e6ece9;
}

.publication-card__media--tint {
  filter: grayscale(100%);
  transition: filter 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.publication-card__media--tint:hover {
  filter: grayscale(0%);
}


.publication-card__image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--publication-card-image-position, center);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.publication-card__link:hover .publication-card__image {
  transform: scale(1.018);
}

.publication-card__title {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 21px 18px 24px;
  color: #18141e;
  font: inherit;
  font-size: 27px;
  font-weight: 400;
  line-height: 32.4px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.publications__empty {
  width: 100%;
  min-height: 220px;
  margin: 57px 0 0;
  padding: 64px 24px;
  border-radius: 20px;
  background: linear-gradient(155deg, #fcfcfc 0%, #e6ece9 100%);
  color: rgba(24, 20, 30, 0.68);
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

.publications__pagination {
  display: flex;
  min-height: 36px;
  margin-top: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.publications__pagination button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.publications__page-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  place-items: center;
  background: #3dbf7b;
  color: #fcfcfc;
  font-size: 18px;
  line-height: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.publications__page-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
}

.publications__page-arrow:active:not(:disabled) {
  transform: translateY(1px);
}

.publications__page-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.publications__page-number {
  min-width: 18px;
  padding: 4px 2px;
  background: transparent;
  color: rgba(24, 20, 30, 0.64);
  font-size: 13px;
  line-height: 18px;
}

.publications__page-number.is-active {
  color: #18141e;
  font-weight: 500;
}

@media (max-width: 1439px) {
  .publications__inner {
    width: calc(100% - 60px);
  }
}

@media (max-width: 1000px) {
  .publications {
    --publication-card-basis: calc((100% - 60px) / 2);
  }

  .publications__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :host([data-publication-card-host]) {
    flex-basis: calc((100% - 60px) / 2) !important;
  }
}

@media (max-width: 767px) {
  .publications {
    --publications-column-gap: 24px;
    --publications-row-gap: 24px;
    --publication-card-basis: calc(100% - 24px);
  }

  .publications__inner {
    width: calc(100% - 32px);
    padding: 32px 0 48px;
  }

  .publications__search-wrap {
    width: 100%;
  }

  .publications__grid {
    margin-top: 32px;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--publications-row-gap) var(--publications-column-gap);
  }

  :host([data-publication-card-host]) {
    margin: 12px !important;
    flex-basis: calc(100% - 24px) !important;
  }

  .publication-card,
  .publication-card__link {
    min-height: 0;
  }

  .publication-card__title {
    min-height: 84px;
    padding: 18px 16px 22px;
    font-size: 24px;
    line-height: 29px;
  }

  .publications__pagination {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publication-card__link,
  .publication-card__image,
  .publications__page-arrow {
    transition: none;
  }
}


@keyframes publications-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.publications-reveal .publications__inner {
  opacity: 0;
}

.publications-reveal.is-revealed .publications__inner {
  animation: publications-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 100ms both;
}

@media (prefers-reduced-motion: reduce) {
  .publications-reveal .publications__inner {
    opacity: 1;
    animation: none;
  }
}


@keyframes publication-card-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.publication-card--reveal {
  opacity: 0;
}

.publication-card--reveal.is-revealed {
  animation: publication-card-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 60ms both;
}

@media (prefers-reduced-motion: reduce) {
  .publication-card--reveal {
    opacity: 1;
    animation: none;
  }
}

/* Waterfall: siblings entering together stagger left-to-right */

/* waterfall-publication-card */
:host(:nth-child(2)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(2) {
  animation-delay: 160ms;
}
:host(:nth-child(3)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(3) {
  animation-delay: 260ms;
}
:host(:nth-child(4)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(4) {
  animation-delay: 360ms;
}
:host(:nth-child(5)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(5) {
  animation-delay: 460ms;
}
:host(:nth-child(6)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(6) {
  animation-delay: 560ms;
}
:host(:nth-child(7)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(7) {
  animation-delay: 660ms;
}

/* waterfall-ext-publication-card: items 8+ keep cascading instead of snapping to the base delay */
:host(:nth-child(8)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(8) {
  animation-delay: 760ms;
}
:host(:nth-child(9)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(9) {
  animation-delay: 860ms;
}
:host(:nth-child(n + 10)) .publication-card--reveal.is-revealed,
.publication-card--reveal.is-revealed:nth-child(n + 10) {
  animation-delay: 960ms;
}

