/* ──────────────────────────────────────────────────────────────
   Detail-page header (event, news, institution detail).
   Same look as the programme / donation-cause headers: no banner,
   tags → green title → meta line, centred on white.
   Main (section) pages keep their photo banner.
   ────────────────────────────────────────────────────────────── */

.kmo-detail-header {
  padding-top: clamp(140px, 14vw, 192px);
  padding-bottom: 2rem;
  background: #ffffff;
  text-align: center;
}


.kmo-detail-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.kmo-detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(26, 71, 49, 0.08);
  color: #1a4731;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kmo-detail-tag--accent { background: #c9a84c; color: #16240f; }

.kmo-detail-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1a4731;
  text-align: center;
  overflow-wrap: anywhere;
}

.kmo-detail-subtitle {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4b5563;
  text-align: center;
}

.kmo-detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.875rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  color: #4b5563;
}
.kmo-detail-meta > div { display: inline-flex; align-items: center; gap: 0.4rem; }
.kmo-detail-meta svg { color: #c9a84c; flex-shrink: 0; }

/* The page's own photo, shown under the header instead of behind the title */
.kmo-detail-cover {
  max-width: 48rem;
  margin: 2rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(26, 71, 49, 0.04);
}
.kmo-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 767px) {
  .kmo-detail-header { padding-bottom: 1.5rem; }
  .kmo-detail-meta { font-size: 0.8125rem; }
  .kmo-detail-cover { margin-top: 1.5rem; border-radius: 12px; }
}
