/* STS Kollegal event cards. Scoped to .evt-card so unrelated pages stay unchanged. */
.evt-card {
  --evt-ink: #171A1D;
  --evt-surface: #FFFFFF;
  --evt-soft: #F5F6F2;
  --evt-accent: #FFD84D;
  box-sizing: border-box;
  width: min(100%, 980px);
  margin: clamp(24px, 4vw, 48px) auto;
  overflow: hidden;
  color: var(--evt-ink);
  background: var(--evt-surface);
  border: 1px solid rgba(23, 26, 29, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(23, 26, 29, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.evt-card *,
.evt-card *::before,
.evt-card *::after { box-sizing: border-box; }
.evt-card .evt-header {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 16px clamp(18px, 3vw, 30px);
  background: var(--evt-ink);
  border-bottom: 4px solid var(--evt-accent);
}
.evt-card .evt-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 12px;
  color: var(--evt-ink);
  background: var(--evt-accent);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}
.evt-card .evt-body { padding: clamp(18px, 3.4vw, 34px); }
.evt-card .evt-title {
  margin: 0 0 14px;
  color: var(--evt-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.evt-card .evt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: #343A3F;
  font-size: 0.93rem;
}
.evt-card .evt-meta > span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  background: var(--evt-soft);
  border: 1px solid rgba(23, 26, 29, 0.1);
  border-radius: 8px;
}
.evt-card .evt-tibetan {
  margin: 20px 0;
  padding: 18px 20px;
  color: var(--evt-ink);
  background: var(--evt-soft);
  border-left: 4px solid var(--evt-accent);
  border-radius: 0 10px 10px 0;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 2;
  overflow-wrap: anywhere;
}
.evt-card .evt-english { line-height: 1.8; }
.evt-card .evt-english > :first-child { margin-top: 0; }
.evt-card .evt-english > :last-child { margin-bottom: 0; }
.evt-card .evt-english h3 {
  margin: 24px 0 8px;
  color: var(--evt-ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.35;
}
.evt-card .evt-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.8vw, 16px) !important;
  margin: clamp(22px, 3vw, 32px) 0 0 !important;
}
.evt-card .evt-gallery figure {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  background: var(--evt-soft);
  border: 1px solid rgba(23, 26, 29, 0.1);
  border-radius: 12px;
}
.evt-card .evt-gallery img {
  display: block;
  width: 100% !important;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0 !important;
}
.evt-card .evt-lightbox-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: zoom-in;
  text-align: inherit;
}
.evt-card .evt-lightbox-trigger:focus-visible,
.evt-lightbox__close:focus-visible {
  outline: 3px solid var(--evt-accent);
  outline-offset: 3px;
}
.evt-card .evt-lightbox-trigger img { transition: transform 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .evt-card .evt-lightbox-trigger:hover img { transform: scale(1.025); }
}
.evt-lightbox {
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 92dvh;
  padding: 14px;
  overflow: auto;
  color: #F5F6F2;
  background: #171A1D;
  border: 1px solid rgba(255, 216, 77, 0.55);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}
.evt-lightbox::backdrop { background: rgba(10, 12, 14, 0.82); }
.evt-lightbox__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.evt-lightbox__close {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  color: #171A1D;
  background: #FFD84D;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.evt-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(92dvh - 100px);
  margin: 0 auto;
  object-fit: contain;
}
.evt-lightbox__caption {
  margin: 10px 0 0;
  color: #F5F6F2;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .evt-card { margin: 20px auto; border-radius: 14px; }
  .evt-card .evt-header { min-height: 0; padding: 14px 18px; }
  .evt-card .evt-body { padding: 18px; }
  .evt-card .evt-title { letter-spacing: -0.015em; }
  .evt-card .evt-gallery { grid-template-columns: minmax(0, 1fr) !important; }
  .evt-card .evt-tibetan { padding: 14px; line-height: 1.95; }
  .evt-lightbox { width: 96vw; padding: 10px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .evt-card .evt-lightbox-trigger img { transition: none; }
}
