/**
 * Publication Teaser Component Styles
 *
 * Horizontal layout: portrait cover image left, info column + buttons right.
 * Figma node ID: 141:19326
 */

/* ── Wrapper ── */
.publication-teaser {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-1000);
  align-items: flex-start;

  .slider & {
    flex: 1;
    flex-direction: column;
    gap: var(--spacing-200);
  }
}

/* ── Cover image ── */
.publication-teaser__image {
  flex-shrink: 0;
  width: 200px;
  height: 267px;

  .slider & {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-end;
    flex-grow: 1;
  }
  .media__credits-overlay {
    display: none;
  }


  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-m, 4px);
    border: var(--border-width-regular, 2px) solid var(--ambience);
  }
}

.publication-teaser__image:empty {
  display: none;
}

.publication-teaser__image figure,
.publication-teaser__image .image {
  width: 100%;
  height: 100%;
  margin: 0;
}


/* ── Right section ── */
.publication-teaser__right {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-500, 40px);
  align-items: center;
  min-width: 0;

  .slider & {
    flex-direction: column;
    gap: var(--spacing-200);
    align-items: flex-start;
    flex-grow: 0;
  }
}

/* ── Info column ── */
.publication-teaser__info {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-400, 32px);

  .slider & {
    width: 100%;
    min-width: auto;
    min-height: calc(3 * var(--text-paragraph-s) * 1.4); /* 3 rows x line height) */
    justify-content: center;
  }
}

/* ── Title ── */
.publication-teaser__title {
  margin: 0;
  font-size: var(--text-paragraph-s);
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.4;
  letter-spacing: -0.39px;
  color: var(--trust);
}

/* ── Teaser text ── */
.publication-teaser__teaser {
  margin: 0;
  font-size: var(--text-size-Paragraph-paragraph-m, 22px);
  font-weight: var(--font-weight-regular, 400);
  line-height: 1.5;
  color: var(--trust);
}

/* ── Publisher badge — pink attitude background ── */
.publication-teaser__publisher {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: var(--spacing-050, 4px) var(--spacing-150, 12px);
  background: var(--attitude, #ffa0fa);
  border-radius: var(--border-radius-s, 2px);
  font-size: var(--text-label-s);
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.1;
  color: var(--trust);
}

/* ── Authors ── */
.publication-teaser__authors {
  margin: 0;
  font-size: var(--text-paragraph-s, 18px);
  font-weight: var(--font-weight-regular, 400);
  line-height: 1.5;
  color: var(--trust);
}

/* ── Meta badges row ── */
.publication-teaser__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-100, 8px);
  align-items: center;
}

.publication-teaser__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-050, 4px) var(--spacing-100, 8px);
  background: var(--ambience, #ebe6e1);
  border-radius: var(--border-radius-s, 2px);
  font-size: var(--text-label-s);
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.1;
  letter-spacing: -0.16px;
  color: var(--trust);
}

/* ── Action buttons column ── */
.publication-teaser__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-150, 12px);
  justify-content: center;
  flex-shrink: 0;
  align-self: center;

  .slider & {
    align-self: flex-start;
    .container & .button__container {
      padding-block: 0;
    }
  }
}

/* ── Shared button base ── */
.publication-teaser__btn {
  /*display: inline-flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
  /*gap: var(--spacing-100, 8px);*/
  /*height: 44px;*/
  /*padding-inline: var(--spacing-300, 24px);*/
  /*border-radius: var(--border-radius-round, 1000px);*/
  /*font-size: var(--text-paragraph-s, 18px);*/
  /*font-weight: var(--font-weight-bold, 700);*/
  /*line-height: 1.1;*/
  /*text-decoration: none;*/
  /*white-space: nowrap;*/
  /*transition: opacity 0.2s ease;*/
  /*cursor: pointer;*/
}

.publication-teaser__btn:hover {
  /*opacity: 0.8;*/
}

/* ── Details button — ambience fill ── */
/*.publication-teaser__btn--details {
  background: var(--ambience, #ebe6e1);
  color: var(--trust);
  border: none;
}*/

/* ── PDF button — trust outline ── */
.publication-teaser__btn--pdf {
  background: transparent;
  color: var(--trust);
  border: var(--border-width-regular, 2px) solid var(--trust);
}
