/* Shared styles for Events & Programs detail pages.
   Matches Publications / Research Areas: black hero, Snap yellow accents. */

.event-detail-page {
  background: #fff;
}

.event-detail-page .event-back {
  display: inline-block;
  margin: 0 0 20px;
  text-decoration: none;
}

.event-detail-body {
  padding: 48px 0 72px;
  background: #fff;
}

.event-detail-body .program-content {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  color: #3f4453;
}

.event-detail-body .program--h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin: 8px 0 8px;
}

.event-detail-body hr {
  border: 0;
  border-top: 1px solid #ececef;
  margin: 40px 0;
}

.event-detail-body .program-pictures .multiple-img .image {
  border-radius: 14px;
  border: 1px solid #ececef;
}

.event-detail-body .program-events .program-cards .program-card {
  border: 2px solid #ececef;
  border-radius: 18px;
  background: #fff;
  /* Cards stay static — only the pill button changes on hover */
}

.event-detail-body .program-events .program-cards .program-card:hover {
  border-color: #ececef;
  transform: none;
  background: #fff;
}

.event-detail-body .program-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.event-detail-body .program-date {
  font-size: 14px;
  color: #63697a;
  line-height: 1.5;
}

/* Program action chips → shared primary pill (black → yellow hover) */
.event-detail-body .program-type,
.event-detail-body a.program-type,
.event-detail-body button.program-type {
  align-self: flex-end;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 100px;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.event-detail-body a.program-type:hover,
.event-detail-body a.program-type:focus-visible {
  background: #fefc00;
  border-color: #fefc00;
  color: #000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 252, 0, 0.55);
}

.event-detail-body button.program-type {
  cursor: default;
}

.event-detail-body button.program-type:hover,
.event-detail-body button.program-type:focus {
  background: #000;
  border-color: #000;
  color: #fff;
  box-shadow: none;
}

/* Fellowships / list pages */
.event-detail-body .team--nav-h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-top: 40px;
}

.event-detail-body .team--nav-h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

/* Markdown event / news article body */
.news-detail-page .news--detail-posted-by {
  max-width: 820px;
  margin-bottom: 12px;
  color: #63697a;
  font-size: 14px;
}

.news-detail-page .news--detail-content {
  padding-top: 0;
}

.news-detail-page .news--detail-content .container.content {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.news-detail-page .news--detail-content a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-detail-page .news--detail-content a:hover,
.news-detail-page .news--detail-content a:focus-visible {
  color: #000;
  background: #fefc00;
  outline: none;
}

@media (max-width: 768px) {
  .event-detail-body {
    padding: 32px 0 56px;
  }

  .event-detail-body .program-pictures .multiple-img {
    flex-direction: column;
  }

  .event-detail-body .program-pictures .multiple-img .image {
    max-width: 100%;
  }

  .event-detail-body .program-events .program-cards .program-card {
    flex: 1 1 100%;
    min-width: 0;
  }
}
