/* ══════════════════════════════════════
   Event teaser — listing card layout
   See: GitHub issue #213
   ══════════════════════════════════════ */

.slnt-event-teaser {
  display: flex;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.slnt-event-teaser:last-child {
  border-bottom: none;
}

.slnt-event-teaser--no-image {
  display: block;
}

.slnt-event-teaser__image {
  flex: 0 0 200px;
}

.slnt-event-teaser__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.slnt-event-teaser__text {
  flex: 1 1 auto;
  min-width: 0;
  /* Vertical rhythm between title / standfirst / rows / CTA. */
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.slnt-event-teaser__title {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--text, #1a1a1a);
}

.slnt-event-teaser__standfirst {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-mid, #444);
}

/* ── When / Where rows ── */

.slnt-event-teaser__row {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--text, #1a1a1a);
}

.slnt-event-teaser__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  color: var(--text-mid, #555);
}

.slnt-event-teaser__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.slnt-event-teaser__label {
  font-weight: 700;
  color: var(--text, #1a1a1a);
}

.slnt-event-teaser__label::after {
  content: ':';
  margin-right: 0.2em;
}

.slnt-event-teaser__value {
  /* Smart date can render multiple inline elements; keep them inline. */
  display: inline;
}

.slnt-event-teaser__value time {
  display: inline;
}

/* ── CTA (field_url) ── */

.slnt-event-teaser__cta-outer {
  margin-top: 0.3rem;
}

.slnt-event-teaser__cta {
  /* Inherits .slnt-cta from cta.css. Tighten size for the teaser context. */
  font-size: 0.9rem;
  padding: 0.55em 1.1em;
}

.slnt-event-teaser__cta .slnt-cta__icon {
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
  fill: currentColor;
}

/* Override the default .layout-content link rules that might colour the CTA. */
.layout-content .slnt-event-teaser__cta,
.layout-content .slnt-event-teaser__cta:hover {
  text-decoration: none;
  color: #fff;
}

/* ── Mobile ── */

@media (max-width: 599px) {
  .slnt-event-teaser {
    flex-direction: column;
    gap: 0.8rem;
  }
  .slnt-event-teaser__image {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .slnt-event-teaser__title {
    font-size: 1.1rem;
  }
}

/* ══════════════════════════════════════
   Link / Organisation teasers — same shape
   ══════════════════════════════════════ */

.slnt-link-teaser,
.slnt-organisation-teaser {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.slnt-link-teaser:last-child,
.slnt-organisation-teaser:last-child {
  border-bottom: none;
}

.slnt-link-teaser__link,
.slnt-organisation-teaser__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
  line-height: 1.3;
}

.slnt-link-teaser__icon,
.slnt-organisation-teaser__icon {
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
}

.slnt-link-teaser__standfirst,
.slnt-organisation-teaser__standfirst {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-mid, #444);
}
