/**
 * @file
 * Teaser.
 */

.teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--imtm-color-text);
  background-color: var(--imtm-color-white);
  box-shadow: var(--imtm-shadow-soft);
  transition: box-shadow 0.25s ease;
}

a.teaser:hover {
  text-decoration: none;
  box-shadow: var(--imtm-shadow-soft-hover);
}

.teaser__title {
  font-weight: 700;
  color: var(--imtm-color-text);
}

.teaser__meta,
.teaser__footer {
  color: var(--imtm-color-text-muted);
}

/* Lecture. */
.teaser--lecture .teaser__title {
  font-size: 1.25rem;
}

.teaser--lecture .teaser__meta {
  margin: 1rem 0;
}

.teaser--lecture .teaser__footer strong {
  font-size: 1.25rem;
}

/* Press release. */
.teaser--press .teaser__title {
  font-size: 1.1rem;
}

.teaser--press .teaser__meta {
  margin-top: 1rem;
}

/* Media mention. */
.teaser--media {
  display: block;
}

.teaser--media .teaser__title {
  margin-bottom: 1rem;
}

.teaser--media .teaser__body:not(:last-child) {
  margin-bottom: 1rem;
}

.teaser--media .teaser__body img {
  max-width: 100%;
  height: auto;
}

.teaser--media .teaser__body p:last-child {
  margin-bottom: 0;
}

.teaser__links a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  color: var(--imtm-color-white);
  background-color: var(--imtm-color-gray-100);
}

.teaser__attachments-title {
  font-weight: 700;
}

.teaser__attachments {
  font-style: italic;
}

/* Certificate. */
.teaser--certificate {
  min-height: 210px;
  box-shadow: var(--imtm-shadow-tile);
}

.teaser--certificate .teaser__title,
.teaser--certificate .teaser__meta {
  margin-bottom: 1rem;
}

.teaser--certificate .teaser__footer {
  margin-top: auto;
}

.teaser--certificate .teaser__footer .file {
  font-style: italic;
}

/* Tender (rows striped by the listing). */
.teaser--tender {
  margin: 0;
  background: transparent;
  box-shadow: none;
}

.teaser--tender .teaser__title {
  margin-bottom: 1rem;
}

.teaser__footer,
.teaser__body {
  overflow-wrap: anywhere;
}
