/* Public activities and event listings/details. */

.axis-events-section {
  width: min(100%, calc(var(--content) + clamp(36px, 10vw, 128px)));
  margin-inline: auto;
  padding: clamp(54px, 7vw, 96px) clamp(18px, 5vw, 64px);
}

.axis-events-header {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.axis-events-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
}

.axis-events-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.axis-event-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.axis-event-visual {
  display: block;
  aspect-ratio: 1;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--brand-cream);
  color: var(--green-deep);
  text-decoration: none;
}

.axis-event-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.axis-event-date {
  display: grid;
  height: 100%;
  place-items: center;
  align-content: center;
}

.axis-event-date strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.axis-event-date span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
}

.axis-event-copy {
  display: grid;
  gap: 7px;
}

.axis-event-copy h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  font-weight: 500;
  line-height: 1.18;
}

.axis-event-copy h3 a,
.axis-event-action,
.axis-events-link {
  text-decoration: none;
}

.axis-event-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.axis-event-action {
  color: var(--green-deep);
  font-weight: 650;
}

.axis-events-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
}

.axis-events-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green-deep);
  font-weight: 650;
}

.activity-card,
.activity-row {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.activity-row {
  overflow: visible;
}

.activity-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.activity-card img,
.activity-card .thumb-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.activity-card__link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.activity-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.activity-card p,
.activity-row p {
  color: var(--ink-soft);
  font-weight: 350;
  line-height: 1.62;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 340px));
  justify-content: center;
  gap: clamp(28px, 5vw, 76px) clamp(22px, 4vw, 52px);
  width: min(100%, 1180px);
  margin-inline: auto;
}

.activity-row {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
}

.activity-row-date {
  position: absolute;
  top: 0;
  left: 22px;
  z-index: 1;
  display: grid;
  width: max-content;
  min-width: 76px;
  min-height: 70px;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-11px);
  box-shadow: 0 12px 30px rgba(22, 55, 50, 0.1);
}

.activity-row-date strong {
  display: grid;
  width: 100%;
  min-height: 30px;
  padding-inline: 10px;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1;
}

.activity-row-date span {
  display: grid;
  width: 100%;
  min-height: 22px;
  place-items: center;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.activity-row-date em {
  display: grid;
  min-height: 22px;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1;
}

.activity-row-media {
  position: relative;
  display: block;
  overflow: visible;
  background: var(--surface-muted);
}

.activity-row-media img,
.activity-row-media .thumb-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
}

.activity-row-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 22px 26px;
}

.activity-row-body .meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.55;
  text-transform: none;
}

.activity-row-body h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
  text-transform: uppercase;
}

.activity-row-description {
  margin: -6px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.activity-row-tags {
  display: grid;
  gap: 10px;
  align-items: start;
  justify-items: start;
}

.activity-row-location {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
}

.activity-row-modality {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.activity-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(30px, 5vw, 56px);
}

.activity-pagination a,
.activity-pagination span,
.activity-pagination strong {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.activity-pagination span {
  color: var(--muted);
}

.thumb-fallback {
  background:
    linear-gradient(145deg, rgba(40, 145, 122, 0.18), rgba(64, 221, 194, 0.16)),
    var(--surface-muted);
}

.detail {
  align-items: start;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
}

.activity-detail-page {
  width: min(100%, calc(var(--content) + clamp(36px, 10vw, 128px)));
  margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) clamp(18px, 5vw, 64px) clamp(64px, 8vw, 112px);
}

.activity-detail-hero {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.activity-detail-hero__media {
  display: block;
  width: 100%;
  height: clamp(240px, 40vw, 520px);
  border: 0;
  object-fit: cover;
}

.activity-detail-header {
  display: grid;
  gap: 12px;
  max-width: 920px;
  padding-block: clamp(28px, 5vw, 58px) clamp(14px, 2.4vw, 24px);
}

.activity-detail-header .back-link {
  margin-bottom: 8px;
}

.activity-detail__title {
  max-width: 860px;
  margin: 0;
  overflow-wrap: break-word;
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  font-weight: 540;
  line-height: 1.1;
  word-break: normal;
  hyphens: none;
}

.activity-detail-date {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.6vw, 1.16rem);
  font-weight: 680;
  line-height: 1.35;
}

.activity-detail-main .lead {
  max-width: 740px;
  margin: 0 0 clamp(18px, 3vw, 30px);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.activity-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.activity-detail-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.activity-detail-main .rich-text {
  margin-inline: 0;
}

.activity-detail-sidebar {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 14px;
  align-self: start;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(22, 55, 50, 0.08);
}

.activity-detail-info-item {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.activity-detail-info-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-detail-info-item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.activity-detail-info-item strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.45;
}


@media (max-width: 900px) {
  .axis-event-item {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
  }

  .axis-event-visual {
    min-height: 76px;
  }

  .axis-event-date strong {
    font-size: 1.75rem;
  }

  .axis-event-action {
    grid-column: 2;
    justify-self: start;
  }

  .activity-detail-layout {
    grid-template-columns: 1fr;
  }

  .activity-detail-main,
  .activity-detail-sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .activity-detail-sidebar {
    padding: 18px;
  }

  .activity-detail-hero__media {
    height: clamp(210px, 56vw, 360px);
  }
}

@media (max-width: 520px) {
  .activity-card__body,
  .activity-row-body {
    padding: 18px;
  }

  .activity-list {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .activity-row {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-width: 0;
  }

  .activity-row-media,
  .activity-row-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

}
